Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.HeatLosses.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.001369/0.001369, allocations: 107.6 kB / 21.18 MB, free: 452 kB / 14.72 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.0015/0.0015, allocations: 216.1 kB / 24.47 MB, free: 3.777 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.437/1.437, allocations: 207.7 MB / 235.3 MB, free: 9.805 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.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.Translational.Examples.HeatLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|damper.s_rel|damper.v_rel|massWithStopAndFriction.s|massWithStopAndFriction.v|springDamper.s_rel|springDamper.v_rel|springDamper1.s_rel|springDamper1.v_rel|brake.mode|brake.startBackward|brake.startForward|massWithStopAndFriction.mode|massWithStopAndFriction.startBackward|massWithStopAndFriction.startForward|supportFriction.mode|supportFriction.startBackward|supportFriction.startForward",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.HeatLosses") translateModel(Modelica.Mechanics.Translational.Examples.HeatLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|damper.s_rel|damper.v_rel|massWithStopAndFriction.s|massWithStopAndFriction.v|springDamper.s_rel|springDamper.v_rel|springDamper1.s_rel|springDamper1.v_rel|brake.mode|brake.startBackward|brake.startForward|massWithStopAndFriction.mode|massWithStopAndFriction.startBackward|massWithStopAndFriction.startForward|supportFriction.mode|supportFriction.startBackward|supportFriction.startForward",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.HeatLosses") [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.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.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001968/0.001968, allocations: 55.92 kB / 347.7 MB, free: 9.383 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.323/0.325, allocations: 49.15 MB / 396.8 MB, free: 9.398 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.HeatLosses): time 0.005728/0.3307, allocations: 3.922 MB / 400.8 MB, free: 6.766 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003366/0.3341, allocations: 1.293 MB / 402.1 MB, free: 5.875 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005451/0.3346, allocations: 21.66 kB / 402.1 MB, free: 5.863 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003963/0.335, allocations: 116.6 kB / 402.2 MB, free: 5.793 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005324/0.3355, allocations: 226.1 kB / 402.4 MB, free: 5.633 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001524/0.3371, allocations: 437.2 kB / 402.8 MB, free: 5.402 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001637/0.3387, allocations: 1.134 MB / 404 MB, free: 4.859 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004427/0.3391, allocations: 184.7 kB / 404.2 MB, free: 4.742 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001037/0.3402, allocations: 488.3 kB / 404.6 MB, free: 4.547 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008618/0.341, allocations: 481.4 kB / 405.1 MB, free: 4.359 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002004/0.3412, allocations: 91.75 kB / 405.2 MB, free: 4.359 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004224/0.3417, allocations: 150.8 kB / 405.3 MB, free: 4.34 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002696/0.3419, allocations: 225.3 kB / 405.6 MB, free: 4.195 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004503/0.3424, allocations: 377.8 kB / 405.9 MB, free: 3.996 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001494/0.3439, allocations: 1.078 MB / 407 MB, free: 3.57 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.541e-06/0.3439, allocations: 0.5156 kB / 407 MB, free: 3.57 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.245e-06/0.3439, allocations: 0 / 407 MB, free: 3.57 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.066e-05/0.3439, allocations: 4 kB / 407 MB, free: 3.566 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: 169 * Number of variables: 169 Notification: Performance of Generate backend data structure: time 0.003601/0.3475, allocations: 1.358 MB / 408.4 MB, free: 2.703 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.982e-05/0.3476, allocations: 12.27 kB / 408.4 MB, free: 2.699 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003533/0.3479, allocations: 96.73 kB / 408.5 MB, free: 2.648 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009019/0.3488, allocations: 388.7 kB / 408.9 MB, free: 2.316 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.836e-05/0.3489, allocations: 50.22 kB / 408.9 MB, free: 2.297 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001711/0.3491, allocations: 80.33 kB / 409 MB, free: 2.262 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001826/0.3509, allocations: 0.8107 MB / 409.8 MB, free: 1.781 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.779e-05/0.3509, allocations: 5.078 kB / 409.8 MB, free: 1.777 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.516e-05/0.351, allocations: 30.84 kB / 409.8 MB, free: 1.754 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.03e-05/0.3511, allocations: 20.03 kB / 409.8 MB, free: 1.75 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00208/0.3531, allocations: 0.8623 MB / 410.7 MB, free: 1.332 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003956/0.3571, allocations: 1.841 MB / 412.5 MB, free: 52 kB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001591/0.3587, allocations: 0.6678 MB / 413.2 MB, free: 15.7 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001016/0.3597, allocations: 435.8 kB / 413.6 MB, free: 15.48 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.359e-05/0.3598, allocations: 13.81 kB / 413.7 MB, free: 15.48 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001348/0.3611, allocations: 0.5492 MB / 414.2 MB, free: 15.14 MB / 334.1 MB Notification: Performance of pre-optimization done (n=86): time 2.925e-06/0.3611, allocations: 0 / 414.2 MB, free: 15.14 MB / 334.1 MB Notification: Performance of matching and sorting (n=106): time 0.01246/0.3736, allocations: 3.852 MB / 418.1 MB, free: 13.12 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.64e-05/0.3737, allocations: 62.16 kB / 418.1 MB, free: 13.06 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005552/0.3742, allocations: 376.7 kB / 418.5 MB, free: 12.82 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001102/0.3743, allocations: 58.59 kB / 418.5 MB, free: 12.77 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003092/0.3746, allocations: 281.2 kB / 418.8 MB, free: 12.52 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003797/0.375, allocations: 375.2 kB / 419.2 MB, free: 12.19 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004025/0.3754, allocations: 194.6 kB / 419.4 MB, free: 12.07 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002511/0.3757, allocations: 372.8 kB / 419.7 MB, free: 11.71 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001151/0.3768, allocations: 437.9 kB / 420.2 MB, free: 11.5 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001192/0.378, allocations: 0.5354 MB / 420.7 MB, free: 11.07 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001753/0.3798, allocations: 0.7753 MB / 421.5 MB, free: 10.28 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.895e-06/0.3798, allocations: 0 / 421.5 MB, free: 10.28 MB / 334.1 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.00323/0.383, allocations: 1.354 MB / 422.8 MB, free: 8.91 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.234e-05/0.383, allocations: 8 kB / 422.8 MB, free: 8.902 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.686e-06/0.383, allocations: 0 / 422.8 MB, free: 8.902 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001233/0.3843, allocations: 0.6426 MB / 423.5 MB, free: 8.25 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008337/0.3851, allocations: 207.7 kB / 423.7 MB, free: 8.047 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004497/0.3896, allocations: 3.285 MB / 427 MB, free: 4.602 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001247/0.3908, allocations: 175.9 kB / 427.1 MB, free: 4.43 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.477e-05/0.3909, allocations: 35.98 kB / 427.2 MB, free: 4.395 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 27 (supportFriction.free,massWithStopAndFriction.stopped,massWithStopAndFriction.mode,$PRE.massWithStopAndFriction.mode,massWithStopAndFriction.locked,massWithStopAndFriction.startBackward,$PRE.massWithStopAndFriction.startBackward,massWithStopAndFriction.startForward,$PRE.massWithStopAndFriction.startForward,massWithStopAndFriction.free,brake.mode,$PRE.brake.mode,brake.locked,brake.startBackward,$PRE.brake.startBackward,brake.startForward,$PRE.brake.startForward,brake.free,supportFriction.mode,$PRE.supportFriction.mode,supportFriction.locked,supportFriction.startBackward,$PRE.supportFriction.startBackward,supportFriction.startForward,$PRE.supportFriction.startForward,elastoGap.contact,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (115): * Single equations (assignments): 112 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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): 3 systems {(1,7), (1,5), (1,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0004727/0.3914, allocations: 233.6 kB / 427.4 MB, free: 4.156 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001525/0.3915, allocations: 71.58 kB / 427.5 MB, free: 4.086 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002345/0.3918, allocations: 102.9 kB / 427.6 MB, free: 3.984 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.103e-05/0.3918, allocations: 12 kB / 427.6 MB, free: 3.973 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.375e-05/0.3918, allocations: 0 / 427.6 MB, free: 3.973 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.897e-06/0.3918, allocations: 3.984 kB / 427.6 MB, free: 3.969 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004815/0.3966, allocations: 2.187 MB / 429.8 MB, free: 1.711 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.375e-06/0.3966, allocations: 8 kB / 429.8 MB, free: 1.703 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007833/0.3974, allocations: 176 kB / 430 MB, free: 1.531 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001112/0.3985, allocations: 0.6193 MB / 430.6 MB, free: 0.9023 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.857e-05/0.3986, allocations: 35.95 kB / 430.6 MB, free: 0.8672 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003897/0.4025, allocations: 3.077 MB / 433.7 MB, free: 13.63 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.48e-06/0.4025, allocations: 4.031 kB / 433.7 MB, free: 13.63 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004054/0.4066, allocations: 1.849 MB / 435.5 MB, free: 11.73 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004897/0.4071, allocations: 155.4 kB / 435.7 MB, free: 11.58 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001422/0.4072, allocations: 32 kB / 435.7 MB, free: 11.55 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001317/0.4085, allocations: 207.7 kB / 435.9 MB, free: 11.35 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009078/0.4094, allocations: 388.3 kB / 436.3 MB, free: 10.97 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.164e-05/0.4095, allocations: 43.95 kB / 436.3 MB, free: 10.93 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003111/0.4098, allocations: 259.2 kB / 436.6 MB, free: 10.67 MB / 350.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.4098, allocations: 0 / 436.6 MB, free: 10.67 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0009431/0.4108, allocations: 247.9 kB / 436.8 MB, free: 10.43 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 8 (springDamper.s_rel,springDamper.v_rel,elastoGap.s_rel,elastoGap.v_rel,massWithStopAndFriction.s,massWithStopAndFriction.v,springDamper1.s_rel,springDamper1.v_rel) * Number of discrete variables: 17 ($whenCondition1,elastoGap.contact,supportFriction.startForward,supportFriction.startBackward,supportFriction.locked,supportFriction.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode,massWithStopAndFriction.free,massWithStopAndFriction.startForward,massWithStopAndFriction.startBackward,massWithStopAndFriction.locked,massWithStopAndFriction.mode,massWithStopAndFriction.stopped) * Number of discrete states: 9 (massWithStopAndFriction.mode,massWithStopAndFriction.startBackward,massWithStopAndFriction.startForward,brake.mode,brake.startForward,brake.startBackward,supportFriction.mode,supportFriction.startForward,supportFriction.startBackward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (89): * Single equations (assignments): 86 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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): 3 systems {(1,6), (1,6), (1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003382/0.4111, allocations: 164.8 kB / 437 MB, free: 10.26 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002717/0.4138, allocations: 1.118 MB / 438.1 MB, free: 9.133 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.687e-06/0.4138, allocations: 320 / 438.1 MB, free: 9.133 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001773/0.4156, allocations: 0.7426 MB / 438.9 MB, free: 8.375 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009645/0.4166, allocations: 143 kB / 439 MB, free: 8.238 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004645/0.4212, allocations: 1.964 MB / 441 MB, free: 6.223 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003802/0.4216, allocations: 336.8 kB / 441.3 MB, free: 5.867 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003784/0.422, allocations: 81.33 kB / 441.4 MB, free: 5.785 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000192/0.4222, allocations: 63.42 kB / 441.4 MB, free: 5.723 MB / 350.1 MB Notification: Performance of SimCode: time 9.12e-07/0.4222, allocations: 0 / 441.4 MB, free: 5.723 MB / 350.1 MB Notification: Performance of Templates: time 0.03054/0.4527, allocations: 16.49 MB / 457.9 MB, free: 5.176 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.HeatLosses.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.HeatLosses.sim & ./Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.HeatLosses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.HeatLosses_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Translational/Examples/HeatLosses/HeatLosses.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.HeatLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.630588358268142]