Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001297/0.001297, allocations: 107.8 kB / 19.76 MB, free: 2.551 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001347/0.001347, allocations: 189.4 kB / 22.92 MB, free: 5.582 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.465/1.465, allocations: 207.6 MB / 233.5 MB, free: 10.99 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500,variableFilter="time|Inertia2.phi|Inertia2.w|bearingFriction.mode|bearingFriction.startBackward|bearingFriction.startForward|gear.mode",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2") translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500,variableFilter="time|Inertia2.phi|Inertia2.w|bearingFriction.mode|bearingFriction.startBackward|bearingFriction.startForward|gear.mode",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2") [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001879/0.001879, allocations: 51.92 kB / 345.4 MB, free: 10.48 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3412/0.343, allocations: 49.13 MB / 394.5 MB, free: 9.449 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2): time 0.003879/0.3469, allocations: 2.747 MB / 397.3 MB, free: 7.527 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002479/0.3494, allocations: 1.145 MB / 398.4 MB, free: 6.73 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002953/0.3497, allocations: 8.656 kB / 398.4 MB, free: 6.727 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003649/0.3501, allocations: 79.33 kB / 398.5 MB, free: 6.684 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001009/0.3511, allocations: 190.3 kB / 398.7 MB, free: 6.578 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006515/0.3517, allocations: 249.4 kB / 398.9 MB, free: 6.457 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007594/0.3525, allocations: 0.646 MB / 399.6 MB, free: 6.168 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002472/0.3527, allocations: 87.25 kB / 399.6 MB, free: 6.117 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005189/0.3533, allocations: 294 kB / 399.9 MB, free: 6 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005527/0.3538, allocations: 352.3 kB / 400.3 MB, free: 5.867 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001141/0.3539, allocations: 51.12 kB / 400.3 MB, free: 5.867 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000383/0.3543, allocations: 141.7 kB / 400.5 MB, free: 5.84 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002221/0.3545, allocations: 154.6 kB / 400.6 MB, free: 5.75 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003033/0.3548, allocations: 249.4 kB / 400.9 MB, free: 5.598 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009505/0.3558, allocations: 0.6477 MB / 401.5 MB, free: 5.355 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.901e-06/0.3558, allocations: 0 / 401.5 MB, free: 5.355 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.124e-06/0.3558, allocations: 0 / 401.5 MB, free: 5.355 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.07e-05/0.3558, allocations: 0 / 401.5 MB, free: 5.355 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 98 * Number of variables: 98 Notification: Performance of Generate backend data structure: time 0.001692/0.3575, allocations: 0.8108 MB / 402.3 MB, free: 4.77 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.859e-05/0.3575, allocations: 17.5 kB / 402.3 MB, free: 4.762 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004553/0.358, allocations: 68.8 kB / 402.4 MB, free: 4.734 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006745/0.3587, allocations: 369 kB / 402.8 MB, free: 4.441 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001464/0.3588, allocations: 97.08 kB / 402.9 MB, free: 4.359 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001064/0.3589, allocations: 42.17 kB / 402.9 MB, free: 4.344 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001213/0.3601, allocations: 0.5617 MB / 403.5 MB, free: 4.121 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.658e-05/0.3602, allocations: 2.141 kB / 403.5 MB, free: 4.121 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.624e-05/0.3602, allocations: 14.88 kB / 403.5 MB, free: 4.109 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.376e-05/0.3602, allocations: 14.16 kB / 403.5 MB, free: 4.105 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001423/0.3617, allocations: 0.6371 MB / 404.1 MB, free: 3.941 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002622/0.3643, allocations: 1.29 MB / 405.4 MB, free: 3.262 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001167/0.3655, allocations: 0.5091 MB / 405.9 MB, free: 3.074 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006116/0.3661, allocations: 293.7 kB / 406.2 MB, free: 2.973 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.785e-05/0.3661, allocations: 15.47 kB / 406.2 MB, free: 2.965 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.196e-05/0.3661, allocations: 37.98 kB / 406.3 MB, free: 2.922 MB / 318.1 MB Notification: Performance of pre-optimization done (n=61): time 2.194e-06/0.3661, allocations: 0 / 406.3 MB, free: 2.922 MB / 318.1 MB Notification: Performance of matching and sorting (n=69): time 0.006473/0.3726, allocations: 2.86 MB / 409.1 MB, free: 1.223 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.845e-05/0.3727, allocations: 92.53 kB / 409.2 MB, free: 1.117 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004303/0.3731, allocations: 324.8 kB / 409.5 MB, free: 0.9219 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.828e-05/0.3732, allocations: 47.38 kB / 409.6 MB, free: 0.875 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001028/0.3733, allocations: 170.2 kB / 409.7 MB, free: 0.7148 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001546/0.3734, allocations: 237.6 kB / 410 MB, free: 0.5078 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002071/0.3736, allocations: 123.1 kB / 410.1 MB, free: 440 kB / 318.1 MB Notification: Performance of setup shared object (initialization): time 8.753e-05/0.3737, allocations: 348.8 kB / 410.4 MB, free: 92 kB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006107/0.3743, allocations: 286.3 kB / 410.7 MB, free: 15.96 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006811/0.375, allocations: 359.8 kB / 411.1 MB, free: 15.77 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001078/0.3761, allocations: 0.5268 MB / 411.6 MB, free: 15.51 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.944e-06/0.3761, allocations: 0 / 411.6 MB, free: 15.51 MB / 334.1 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.001803/0.3779, allocations: 0.8637 MB / 412.5 MB, free: 15.1 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.273e-05/0.3779, allocations: 10.47 kB / 412.5 MB, free: 15.1 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.065e-06/0.3779, allocations: 0 / 412.5 MB, free: 15.1 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001153/0.3791, allocations: 472.8 kB / 412.9 MB, free: 14.89 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003781/0.3794, allocations: 84.91 kB / 413 MB, free: 14.87 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001516/0.381, allocations: 1.076 MB / 414.1 MB, free: 14.08 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005023/0.3815, allocations: 61.61 kB / 414.2 MB, free: 14.05 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.563e-05/0.3815, allocations: 20 kB / 414.2 MB, free: 14.04 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 15 (bearingFriction.free,gear.ideal,bearingFriction.mode,$PRE.bearingFriction.mode,bearingFriction.locked,bearingFriction.startBackward,$PRE.bearingFriction.startBackward,bearingFriction.startForward,$PRE.bearingFriction.startForward,gear.mode,$PRE.gear.mode,gear.locked,gear.startBackward,gear.startForward,gear.tau_aPos) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 45 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,32)} Notification: Performance of prepare postOptimizeDAE: time 0.0003324/0.3819, allocations: 192.1 kB / 414.4 MB, free: 13.87 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001157/0.382, allocations: 44.59 kB / 414.4 MB, free: 13.85 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001686/0.3821, allocations: 67.33 kB / 414.5 MB, free: 13.79 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.818e-06/0.3822, allocations: 7.156 kB / 414.5 MB, free: 13.79 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.83e-05/0.3822, allocations: 0 / 414.5 MB, free: 13.79 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.846e-06/0.3822, allocations: 9.047 kB / 414.5 MB, free: 13.78 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003422/0.3856, allocations: 1.742 MB / 416.2 MB, free: 12.63 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.609e-06/0.3856, allocations: 1.188 kB / 416.2 MB, free: 12.63 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003765/0.386, allocations: 80.48 kB / 416.3 MB, free: 12.61 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001142/0.3871, allocations: 451.9 kB / 416.7 MB, free: 12.41 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.601e-05/0.3872, allocations: 25.34 kB / 416.8 MB, free: 12.39 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001399/0.3886, allocations: 1.04 MB / 417.8 MB, free: 11.61 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.445e-06/0.3886, allocations: 0 / 417.8 MB, free: 11.61 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002706/0.3913, allocations: 1.291 MB / 419.1 MB, free: 10.73 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003626/0.3917, allocations: 176.8 kB / 419.3 MB, free: 10.54 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001003/0.3918, allocations: 20 kB / 419.3 MB, free: 10.52 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004298/0.3922, allocations: 52 kB / 419.3 MB, free: 10.46 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002226/0.3924, allocations: 88.42 kB / 419.4 MB, free: 10.38 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.329e-05/0.3925, allocations: 32.03 kB / 419.5 MB, free: 10.35 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000374/0.3929, allocations: 241.9 kB / 419.7 MB, free: 10.11 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.3929, allocations: 0 / 419.7 MB, free: 10.11 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0006148/0.3935, allocations: 147.9 kB / 419.8 MB, free: 9.969 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (Inertia2.phi,Inertia2.w) * Number of discrete variables: 9 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,gear.mode,bearingFriction.startForward,bearingFriction.startBackward,bearingFriction.locked,bearingFriction.mode) * Number of discrete states: 4 (bearingFriction.mode,bearingFriction.startBackward,bearingFriction.startForward,gear.mode) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (39): * Single equations (assignments): 38 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,29)} Notification: Performance of Backend phase and start with SimCode phase: time 0.000305/0.3938, allocations: 151 kB / 420 MB, free: 9.809 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001648/0.3954, allocations: 0.6689 MB / 420.7 MB, free: 9.145 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.997e-06/0.3954, allocations: 0 / 420.7 MB, free: 9.145 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009198/0.3964, allocations: 356 kB / 421 MB, free: 8.801 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005165/0.3969, allocations: 60.97 kB / 421.1 MB, free: 8.734 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00294/0.3998, allocations: 1.121 MB / 422.2 MB, free: 7.582 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004884/0.4003, allocations: 0.8289 MB / 423 MB, free: 6.727 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002322/0.4005, allocations: 59.34 kB / 423.1 MB, free: 6.668 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001405/0.4007, allocations: 43.42 kB / 423.1 MB, free: 6.625 MB / 334.1 MB Notification: Performance of SimCode: time 1.473e-06/0.4007, allocations: 0 / 423.1 MB, free: 6.625 MB / 334.1 MB Notification: Performance of Templates: time 0.01876/0.4194, allocations: 10.46 MB / 433.6 MB, free: 12.15 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.sim & ./Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/LossyGearDemo2/LossyGearDemo2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] "" Variables in the reference:time,Inertia2.phi,Inertia2.w,bearingFriction.mode,bearingFriction.startBackward,bearingFriction.startForward,gear.mode Variables in the result:DriveSine.amplitude,DriveSine.freqHz,DriveSine.offset,DriveSine.phase,DriveSine.startTime,Inertia1.J,Inertia2.J,Inertia2.phi,Inertia2.w,bearingFriction.mode,bearingFriction.peak,bearingFriction.phi_support,bearingFriction.startBackward,bearingFriction.startForward,bearingFriction.support.phi,bearingFriction.tau_pos[1,1],bearingFriction.tau_pos[1,2],bearingFriction.tau_pos[2,1],bearingFriction.tau_pos[2,2],bearingFriction.w_small,fixed.flange.phi,fixed.phi0,gear.eta_mf1_0,gear.eta_mf2_0,gear.lossTable[1,1],gear.lossTable[1,2],gear.lossTable[1,3],gear.lossTable[1,4],gear.lossTable[1,5],gear.mode,gear.phi_support,gear.ratio,gear.support.phi,gear.tau_bf1_0,gear.tau_bf2_0,gear.tau_bf_a_0,load.duration,load.height,load.offset,load.startTime,time,torque1.phi_support,torque1.support.phi,torque2.phi_support,torque2.support.phi [Calling sys.exit(0), Time elapsed: 5.0645765252411366]