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.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.00259/0.00259, allocations: 103.5 kB / 21.73 MB, free: 2.688 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.002887/0.002887, allocations: 167.4 kB / 25.03 MB, free: 8.926 MB / 18.57 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.407/1.407, allocations: 158.6 MB / 186.8 MB, free: 2.895 MB / 170.7 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.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_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: Performance of FrontEnd - loaded program: time 1.734e-06/1.734e-06, allocations: 0 / 250.4 MB, free: 7.848 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.177e-05/3.35e-05, allocations: 2.312 kB / 250.4 MB, free: 7.844 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2): time 0.004935/0.004968, allocations: 2.713 MB / 253.1 MB, free: 5.117 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.002565/0.007533, allocations: 1.112 MB / 254.2 MB, free: 3.988 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001892/0.007722, allocations: 7.938 kB / 254.2 MB, free: 3.98 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003015/0.008024, allocations: 71.36 kB / 254.3 MB, free: 3.91 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007201/0.008744, allocations: 206.6 kB / 254.5 MB, free: 3.707 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005493/0.009293, allocations: 251.4 kB / 254.7 MB, free: 3.461 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008005/0.01009, allocations: 0.6585 MB / 255.4 MB, free: 2.801 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002169/0.01031, allocations: 71.98 kB / 255.4 MB, free: 2.73 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006298/0.01094, allocations: 415.2 kB / 255.8 MB, free: 2.324 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005079/0.01145, allocations: 303.3 kB / 256.1 MB, free: 2.027 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001105/0.01156, allocations: 52 kB / 256.2 MB, free: 1.977 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000305/0.01186, allocations: 131.9 kB / 256.3 MB, free: 1.848 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002388/0.0121, allocations: 147.6 kB / 256.5 MB, free: 1.703 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005388/0.01264, allocations: 183.5 kB / 256.6 MB, free: 1.52 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001048/0.01369, allocations: 0.7049 MB / 257.3 MB, free: 0.8125 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.532e-06/0.0137, allocations: 4 kB / 257.3 MB, free: 0.8086 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.933e-06/0.0137, allocations: 0 / 257.3 MB, free: 0.8086 MB / 234.7 MB Notification: Performance of Transformations before backend: time 8.897e-06/0.01371, allocations: 4 kB / 257.4 MB, free: 0.8047 MB / 234.7 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.001899/0.01561, allocations: 0.8308 MB / 258.2 MB, free: 15.93 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.297e-05/0.01565, allocations: 12.03 kB / 258.2 MB, free: 15.92 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004596/0.01611, allocations: 100.6 kB / 258.3 MB, free: 15.82 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006457/0.01675, allocations: 303.2 kB / 258.6 MB, free: 15.5 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002159/0.01697, allocations: 148.4 kB / 258.7 MB, free: 15.34 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.67e-05/0.01707, allocations: 44.33 kB / 258.8 MB, free: 15.29 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001185/0.01825, allocations: 0.5683 MB / 259.3 MB, free: 14.71 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.702e-05/0.01828, allocations: 8.188 kB / 259.4 MB, free: 14.7 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.945e-05/0.01834, allocations: 20.11 kB / 259.4 MB, free: 14.68 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.478e-05/0.01835, allocations: 16 kB / 259.4 MB, free: 14.66 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001351/0.0197, allocations: 0.566 MB / 260 MB, free: 14.1 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002685/0.02239, allocations: 1.132 MB / 261.1 MB, free: 12.93 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001154/0.02354, allocations: 478.3 kB / 261.6 MB, free: 12.45 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006306/0.02417, allocations: 277 kB / 261.8 MB, free: 12.17 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.241e-05/0.02424, allocations: 12.5 kB / 261.8 MB, free: 12.16 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.408e-05/0.02428, allocations: 41.89 kB / 261.9 MB, free: 12.11 MB / 250.7 MB Notification: Performance of pre-optimization done (n=61): time 2.145e-06/0.02428, allocations: 0 / 261.9 MB, free: 12.11 MB / 250.7 MB Notification: Performance of matching and sorting (n=69): time 0.007353/0.03164, allocations: 2.442 MB / 264.3 MB, free: 9.609 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.728e-05/0.03172, allocations: 85.77 kB / 264.4 MB, free: 9.508 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005281/0.03225, allocations: 376.2 kB / 264.8 MB, free: 9.125 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 7.164e-05/0.03232, allocations: 41.7 kB / 264.8 MB, free: 9.078 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002022/0.03252, allocations: 220.4 kB / 265 MB, free: 8.855 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002825/0.03281, allocations: 250 kB / 265.3 MB, free: 8.609 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002649/0.03307, allocations: 139.9 kB / 265.4 MB, free: 8.465 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0003325/0.0334, allocations: 0.543 MB / 265.9 MB, free: 7.91 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006151/0.03402, allocations: 257.2 kB / 266.2 MB, free: 7.656 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007362/0.03476, allocations: 371.5 kB / 266.6 MB, free: 7.273 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001125/0.03588, allocations: 0.5117 MB / 267.1 MB, free: 6.75 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.384e-06/0.03588, allocations: 0 / 267.1 MB, free: 6.75 MB / 250.7 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.001896/0.03778, allocations: 0.8451 MB / 267.9 MB, free: 5.895 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.799e-05/0.0378, allocations: 4 kB / 267.9 MB, free: 5.891 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.454e-06/0.03781, allocations: 0 / 267.9 MB, free: 5.891 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001214/0.03902, allocations: 468.5 kB / 268.4 MB, free: 5.43 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003851/0.0394, allocations: 83.81 kB / 268.5 MB, free: 5.348 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001761/0.04117, allocations: 1.358 MB / 269.8 MB, free: 3.957 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003925/0.04156, allocations: 35.97 kB / 269.9 MB, free: 3.922 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.651e-05/0.04163, allocations: 31.98 kB / 269.9 MB, free: 3.891 MB / 250.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,32)} Notification: Performance of prepare postOptimizeDAE: time 0.0003318/0.04197, allocations: 216.3 kB / 270.1 MB, free: 3.668 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001544/0.04212, allocations: 67.7 kB / 270.2 MB, free: 3.602 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001952/0.04232, allocations: 59.73 kB / 270.2 MB, free: 3.543 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.287e-06/0.04233, allocations: 8 kB / 270.2 MB, free: 3.535 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.933e-06/0.04233, allocations: 0 / 270.2 MB, free: 3.535 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.978e-06/0.04234, allocations: 3.984 kB / 270.2 MB, free: 3.531 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003776/0.04612, allocations: 1.631 MB / 271.9 MB, free: 1.844 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.828e-06/0.04612, allocations: 0 / 271.9 MB, free: 1.844 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000373/0.0465, allocations: 71.89 kB / 271.9 MB, free: 1.773 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001083/0.04758, allocations: 443.4 kB / 272.4 MB, free: 1.336 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.879e-05/0.04765, allocations: 19.98 kB / 272.4 MB, free: 1.316 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001641/0.04929, allocations: 1.308 MB / 273.7 MB, free: 15.97 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.924e-06/0.04929, allocations: 3.938 kB / 273.7 MB, free: 15.97 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002709/0.052, allocations: 1.288 MB / 275 MB, free: 14.66 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003052/0.0523, allocations: 103.7 kB / 275.1 MB, free: 14.55 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001061/0.05241, allocations: 23.94 kB / 275.1 MB, free: 14.53 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003885/0.0528, allocations: 31.97 kB / 275.1 MB, free: 14.5 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002494/0.05305, allocations: 96.53 kB / 275.2 MB, free: 14.41 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.82e-05/0.05311, allocations: 23.98 kB / 275.3 MB, free: 14.38 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0003535/0.05346, allocations: 257.1 kB / 275.5 MB, free: 14.13 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.05346, allocations: 0 / 275.5 MB, free: 14.13 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0005802/0.05404, allocations: 152 kB / 275.7 MB, free: 13.98 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,29)} Notification: Performance of Backend phase and start with SimCode phase: time 0.000305/0.05435, allocations: 147.1 kB / 275.8 MB, free: 13.83 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.001661/0.05601, allocations: 0.6634 MB / 276.5 MB, free: 13.16 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.05601, allocations: 0 / 276.5 MB, free: 13.16 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000897/0.05691, allocations: 381.6 kB / 276.8 MB, free: 12.79 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005579/0.05746, allocations: 104 kB / 276.9 MB, free: 12.69 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002631/0.06009, allocations: 0.9996 MB / 277.9 MB, free: 11.65 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003903/0.06049, allocations: 214 kB / 278.2 MB, free: 11.42 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002195/0.0607, allocations: 59.38 kB / 278.2 MB, free: 11.36 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001486/0.06085, allocations: 40.48 kB / 278.2 MB, free: 11.32 MB / 266.7 MB Notification: Performance of SimCode: time 1.904e-06/0.06085, allocations: 0 / 278.2 MB, free: 11.32 MB / 266.7 MB Notification: Performance of Templates: time 0.01753/0.07838, allocations: 8.404 MB / 286.7 MB, free: 2.941 MB / 266.7 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=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe 2>&1) [Timeout 240] 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.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.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.7550764250336215]