Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001861/0.001861, allocations: 95.61 kB / 20.96 MB, free: 3.457 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001969/0.001969, allocations: 161.3 kB / 24.27 MB, free: 152 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.561/1.561, allocations: 177.1 MB / 204.6 MB, free: 5.598 MB / 186.7 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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_4.1.0_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_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.363e-06/1.363e-06, allocations: 0 / 272.3 MB, free: 1.848 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.515e-05/2.651e-05, allocations: 2.312 kB / 272.3 MB, free: 1.844 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2): time 0.004962/0.004988, allocations: 2.847 MB / 275.1 MB, free: 14.99 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002562/0.00755, allocations: 1.236 MB / 276.4 MB, free: 13.74 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001497/0.0077, allocations: 7.938 kB / 276.4 MB, free: 13.73 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003407/0.008041, allocations: 95.2 kB / 276.5 MB, free: 13.64 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005583/0.008599, allocations: 222.7 kB / 276.7 MB, free: 13.43 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005685/0.009168, allocations: 255.5 kB / 276.9 MB, free: 13.18 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009726/0.01014, allocations: 0.7364 MB / 277.7 MB, free: 12.44 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002088/0.01035, allocations: 79.97 kB / 277.8 MB, free: 12.36 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007136/0.01106, allocations: 447.1 kB / 278.2 MB, free: 11.92 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005056/0.01157, allocations: 319.3 kB / 278.5 MB, free: 11.61 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001299/0.0117, allocations: 56 kB / 278.6 MB, free: 11.55 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003168/0.01201, allocations: 155.8 kB / 278.7 MB, free: 11.4 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002353/0.01225, allocations: 171.5 kB / 278.9 MB, free: 11.23 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002635/0.01251, allocations: 195.6 kB / 279.1 MB, free: 11.04 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001054/0.01357, allocations: 0.7827 MB / 279.9 MB, free: 10.25 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.587e-06/0.01357, allocations: 3.938 kB / 279.9 MB, free: 10.25 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.292e-06/0.01357, allocations: 0 / 279.9 MB, free: 10.25 MB / 266.7 MB Notification: Performance of Transformations before backend: time 7.414e-06/0.01358, allocations: 0 / 279.9 MB, free: 10.25 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 100 * Number of variables: 100 Notification: Performance of Generate backend data structure: time 0.001897/0.01548, allocations: 0.8773 MB / 280.7 MB, free: 9.336 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.83e-05/0.01553, allocations: 12.03 kB / 280.8 MB, free: 9.324 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005816/0.01611, allocations: 108.6 kB / 280.9 MB, free: 9.219 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007094/0.01682, allocations: 319.2 kB / 281.2 MB, free: 8.879 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002129/0.01703, allocations: 152.4 kB / 281.3 MB, free: 8.703 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001021/0.01713, allocations: 44.33 kB / 281.4 MB, free: 8.66 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00144/0.01857, allocations: 0.5721 MB / 281.9 MB, free: 8.07 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.416e-05/0.0186, allocations: 4.188 kB / 281.9 MB, free: 8.066 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.254e-05/0.01866, allocations: 20.12 kB / 282 MB, free: 8.047 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.599e-05/0.01867, allocations: 12 kB / 282 MB, free: 8.035 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001404/0.02008, allocations: 0.5426 MB / 282.5 MB, free: 7.492 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002754/0.02283, allocations: 1.156 MB / 283.7 MB, free: 6.297 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001226/0.02406, allocations: 470.1 kB / 284.1 MB, free: 5.824 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000645/0.0247, allocations: 257.1 kB / 284.4 MB, free: 5.57 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.342e-05/0.02477, allocations: 12.69 kB / 284.4 MB, free: 5.559 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.074e-05/0.02481, allocations: 45.83 kB / 284.4 MB, free: 5.504 MB / 266.7 MB Notification: Performance of pre-optimization done (n=62): time 1.813e-06/0.02481, allocations: 0 / 284.4 MB, free: 5.504 MB / 266.7 MB Notification: Performance of matching and sorting (n=70): time 0.007125/0.03193, allocations: 2.325 MB / 286.8 MB, free: 3.121 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.768e-05/0.03201, allocations: 93.69 kB / 286.9 MB, free: 3.012 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000509/0.03252, allocations: 364.3 kB / 287.2 MB, free: 2.641 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 7.082e-05/0.03259, allocations: 45.7 kB / 287.3 MB, free: 2.59 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001913/0.03278, allocations: 224.4 kB / 287.5 MB, free: 2.363 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002657/0.03305, allocations: 258 kB / 287.7 MB, free: 2.109 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002846/0.03333, allocations: 147.9 kB / 287.9 MB, free: 1.953 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0003309/0.03367, allocations: 0.543 MB / 288.4 MB, free: 1.398 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006191/0.03428, allocations: 237.2 kB / 288.6 MB, free: 1.168 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009648/0.03525, allocations: 359.5 kB / 289 MB, free: 0.793 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001132/0.03638, allocations: 480 kB / 289.5 MB, free: 324 kB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.03638, allocations: 0 / 289.5 MB, free: 324 kB / 266.7 MB Notification: Performance of matching and sorting (n=80) (initialization): time 0.1162/0.1526, allocations: 0.797 MB / 290.3 MB, free: 27.86 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.497e-05/0.1526, allocations: 6.125 kB / 290.3 MB, free: 27.86 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.929e-06/0.1526, allocations: 1.125 kB / 290.3 MB, free: 27.86 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001116/0.1537, allocations: 422.3 kB / 290.7 MB, free: 27.84 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003982/0.1541, allocations: 83.3 kB / 290.8 MB, free: 27.84 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001266/0.1554, allocations: 1.286 MB / 292 MB, free: 27.04 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004985/0.1559, allocations: 43.84 kB / 292.1 MB, free: 27.04 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.715e-05/0.156, allocations: 26.03 kB / 292.1 MB, free: 27.04 MB / 266.7 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,33)} Notification: Performance of prepare postOptimizeDAE: time 0.0002553/0.1562, allocations: 224.2 kB / 292.3 MB, free: 26.88 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001914/0.1564, allocations: 65.22 kB / 292.4 MB, free: 26.88 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000173/0.1566, allocations: 67.8 kB / 292.5 MB, free: 26.87 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.386e-06/0.1566, allocations: 7.562 kB / 292.5 MB, free: 26.87 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.156e-06/0.1566, allocations: 1.281 kB / 292.5 MB, free: 26.87 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.117e-06/0.1566, allocations: 2.859 kB / 292.5 MB, free: 26.87 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003152/0.1598, allocations: 1.565 MB / 294 MB, free: 26.14 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.678e-06/0.1598, allocations: 1.734 kB / 294 MB, free: 26.14 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003727/0.1601, allocations: 86.8 kB / 294.1 MB, free: 26.14 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009869/0.1611, allocations: 384.2 kB / 294.5 MB, free: 26.04 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.596e-05/0.1612, allocations: 27.14 kB / 294.5 MB, free: 26.03 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001131/0.1623, allocations: 1.238 MB / 295.8 MB, free: 25.07 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.245e-06/0.1623, allocations: 1.25 kB / 295.8 MB, free: 25.07 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002335/0.1647, allocations: 1.222 MB / 297 MB, free: 24.53 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000266/0.1649, allocations: 111.9 kB / 297.1 MB, free: 24.48 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.951e-05/0.165, allocations: 22.38 kB / 297.1 MB, free: 24.46 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004013/0.1654, allocations: 41.31 kB / 297.2 MB, free: 24.45 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000241/0.1657, allocations: 102.9 kB / 297.3 MB, free: 24.43 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.992e-05/0.1657, allocations: 26.03 kB / 297.3 MB, free: 24.42 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002755/0.166, allocations: 259.4 kB / 297.5 MB, free: 24.26 MB / 266.7 MB Notification: Performance of sort global known variables: time 1e-07/0.166, allocations: 0 / 297.5 MB, free: 24.26 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0005406/0.1665, allocations: 142.6 kB / 297.7 MB, free: 24.24 MB / 266.7 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,30)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002505/0.1691, allocations: 425.5 kB / 298.1 MB, free: 24.12 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.001513/0.1706, allocations: 0.6278 MB / 298.7 MB, free: 23.94 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.1706, allocations: 1.188 kB / 298.7 MB, free: 23.94 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007932/0.1714, allocations: 373.1 kB / 299.1 MB, free: 23.83 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005561/0.1719, allocations: 113.2 kB / 299.2 MB, free: 23.79 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002174/0.1741, allocations: 1.022 MB / 300.2 MB, free: 23.25 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001997/0.1743, allocations: 225 kB / 300.4 MB, free: 23.15 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002338/0.1745, allocations: 73.88 kB / 300.5 MB, free: 23.13 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001679/0.1747, allocations: 57.67 kB / 300.6 MB, free: 23.11 MB / 266.7 MB Notification: Performance of SimCode: time 6.81e-07/0.1747, allocations: 0 / 300.6 MB, free: 23.11 MB / 266.7 MB Notification: Performance of Templates: time 0.01319/0.1879, allocations: 8.915 MB / 309.5 MB, free: 16.96 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.sim & ./Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo2/LossyGearDemo2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_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.continuous,DriveSine.f,DriveSine.offset,DriveSine.phase,DriveSine.startTime,Inertia1.J,Inertia2.J,Inertia2.phi,Inertia2.w,bearingFriction.mode,bearingFriction.peak,bearingFriction.smoothness,bearingFriction.startBackward,bearingFriction.startForward,bearingFriction.tau_pos[1,1],bearingFriction.tau_pos[1,2],bearingFriction.tau_pos[2,1],bearingFriction.tau_pos[2,2],bearingFriction.w_small,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.ratio,gear.smoothness,gear.tau_bf1_0,gear.tau_bf2_0,gear.tau_bf_a_0,load.duration,load.height,load.offset,load.startTime,time [Calling sys.exit(0), Time elapsed: 4.760575380991213]