Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.001409/0.001409, allocations: 71.77 kB / 21.69 MB, free: 2.852 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.001477/0.001477, allocations: 166.7 kB / 24.99 MB, free: 8.789 MB / 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.007/1.007, allocations: 177.1 MB / 205.3 MB, free: 5.637 MB / 186.7 MB " [Timeout remaining time 179] 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.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_4.1.0_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_4.1.0_Modelica.Mechanics.Translational.Examples.HeatLosses") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.974e-06/1.974e-06, allocations: 0 / 273 MB, free: 1.848 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.941e-05/3.138e-05, allocations: 2.312 kB / 273 MB, free: 1.844 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.HeatLosses): time 0.006204/0.006236, allocations: 4.406 MB / 277.4 MB, free: 13.42 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002623/0.008859, allocations: 1.551 MB / 279 MB, free: 11.86 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002503/0.009109, allocations: 15.88 kB / 279 MB, free: 11.84 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004319/0.009541, allocations: 138.6 kB / 279.2 MB, free: 11.71 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005693/0.01011, allocations: 301.5 kB / 279.4 MB, free: 11.41 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008401/0.01095, allocations: 435 kB / 279.9 MB, free: 10.98 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001065/0.01202, allocations: 1.197 MB / 281.1 MB, free: 9.785 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003459/0.01236, allocations: 182.2 kB / 281.2 MB, free: 9.594 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008678/0.01323, allocations: 0.7018 MB / 281.9 MB, free: 8.891 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005414/0.01377, allocations: 438.9 kB / 282.4 MB, free: 8.461 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001375/0.01391, allocations: 96 kB / 282.5 MB, free: 8.367 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002978/0.01421, allocations: 167.8 kB / 282.6 MB, free: 8.203 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002545/0.01446, allocations: 247.2 kB / 282.9 MB, free: 7.961 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003497/0.01481, allocations: 343.2 kB / 283.2 MB, free: 7.625 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009834/0.01579, allocations: 0.8565 MB / 284.1 MB, free: 6.766 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.807e-06/0.0158, allocations: 0 / 284.1 MB, free: 6.766 MB / 266.7 MB Notification: Performance of FrontEnd: time 9.12e-07/0.0158, allocations: 0 / 284.1 MB, free: 6.766 MB / 266.7 MB Notification: Performance of Transformations before backend: time 8.046e-06/0.01581, allocations: 0 / 284.1 MB, free: 6.766 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: 174 * Number of variables: 174 Notification: Performance of Generate backend data structure: time 0.002445/0.01825, allocations: 1.415 MB / 285.5 MB, free: 5.301 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.683e-05/0.01829, allocations: 8.031 kB / 285.5 MB, free: 5.293 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005651/0.01885, allocations: 176.3 kB / 285.7 MB, free: 5.121 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006598/0.01951, allocations: 426.8 kB / 286.1 MB, free: 4.672 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.871e-05/0.01957, allocations: 62.36 kB / 286.1 MB, free: 4.613 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001355/0.01971, allocations: 76.33 kB / 286.2 MB, free: 4.539 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001357/0.02106, allocations: 0.6245 MB / 286.8 MB, free: 3.906 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.323e-05/0.0211, allocations: 11.88 kB / 286.8 MB, free: 3.895 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.782e-05/0.02119, allocations: 32 kB / 286.9 MB, free: 3.863 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.193e-05/0.02121, allocations: 16 kB / 286.9 MB, free: 3.848 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00124/0.02245, allocations: 499.5 kB / 287.4 MB, free: 3.359 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003455/0.0259, allocations: 1.752 MB / 289.1 MB, free: 1.551 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001173/0.02708, allocations: 0.5139 MB / 289.6 MB, free: 1.027 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005778/0.02765, allocations: 263.1 kB / 289.9 MB, free: 0.7656 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.783e-05/0.02772, allocations: 16.98 kB / 289.9 MB, free: 0.75 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007721/0.02849, allocations: 402.6 kB / 290.3 MB, free: 348 kB / 266.7 MB Notification: Performance of pre-optimization done (n=90): time 3.106e-06/0.0285, allocations: 0 / 290.3 MB, free: 348 kB / 266.7 MB Notification: Performance of matching and sorting (n=110): time 0.1051/0.1336, allocations: 2.818 MB / 293.1 MB, free: 27.88 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.735e-05/0.1337, allocations: 64.59 kB / 293.2 MB, free: 27.82 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003286/0.134, allocations: 426.2 kB / 293.6 MB, free: 27.59 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 5.997e-05/0.1341, allocations: 57.33 kB / 293.7 MB, free: 27.54 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001202/0.1342, allocations: 331 kB / 294 MB, free: 27.29 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001798/0.1344, allocations: 392.2 kB / 294.4 MB, free: 27.04 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000214/0.1346, allocations: 191.3 kB / 294.6 MB, free: 26.94 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 8.472e-05/0.1347, allocations: 0.5473 MB / 295.1 MB, free: 26.41 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004586/0.1351, allocations: 248.1 kB / 295.4 MB, free: 26.38 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004556/0.1356, allocations: 363 kB / 295.7 MB, free: 26.25 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006825/0.1362, allocations: 0.5016 MB / 296.2 MB, free: 26.03 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.274e-06/0.1363, allocations: 0 / 296.2 MB, free: 26.03 MB / 266.7 MB Notification: Performance of matching and sorting (n=137) (initialization): time 0.001475/0.1377, allocations: 0.9743 MB / 297.2 MB, free: 25.72 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.784e-05/0.1377, allocations: 7.5 kB / 297.2 MB, free: 25.72 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.123e-06/0.1378, allocations: 5.25 kB / 297.2 MB, free: 25.72 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006374/0.1384, allocations: 435.9 kB / 297.6 MB, free: 25.6 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004348/0.1388, allocations: 192.3 kB / 297.8 MB, free: 25.58 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001899/0.1407, allocations: 3.96 MB / 301.8 MB, free: 21.87 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004239/0.1411, allocations: 122 kB / 301.9 MB, free: 21.85 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.2e-05/0.1412, allocations: 36.86 kB / 301.9 MB, free: 21.84 MB / 266.7 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,9), (1,5), (1,8)} Notification: Performance of prepare postOptimizeDAE: time 0.0001813/0.1414, allocations: 221.4 kB / 302.1 MB, free: 21.63 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001273/0.1415, allocations: 114.7 kB / 302.3 MB, free: 21.58 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.513e-05/0.1416, allocations: 104.2 kB / 302.4 MB, free: 21.49 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.774e-06/0.1416, allocations: 13.23 kB / 302.4 MB, free: 21.49 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.053e-06/0.1416, allocations: 5.375 kB / 302.4 MB, free: 21.49 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.308e-06/0.1416, allocations: 5.109 kB / 302.4 MB, free: 21.49 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002234/0.1439, allocations: 1.859 MB / 304.2 MB, free: 20.57 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.409e-06/0.1439, allocations: 2.719 kB / 304.2 MB, free: 20.57 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004015/0.1443, allocations: 171.3 kB / 304.4 MB, free: 20.55 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000526/0.1448, allocations: 437.3 kB / 304.8 MB, free: 20.4 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.703e-05/0.1448, allocations: 34.19 kB / 304.9 MB, free: 20.38 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001595/0.1464, allocations: 3.738 MB / 308.6 MB, free: 16.88 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.966e-06/0.1464, allocations: 6.281 kB / 308.6 MB, free: 16.88 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001536/0.148, allocations: 1.304 MB / 309.9 MB, free: 16.29 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002079/0.1482, allocations: 162.4 kB / 310.1 MB, free: 16.2 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.209e-05/0.1483, allocations: 35.47 kB / 310.1 MB, free: 16.18 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004183/0.1487, allocations: 130.5 kB / 310.2 MB, free: 16.16 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000438/0.1491, allocations: 368.8 kB / 310.6 MB, free: 16.08 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.599e-05/0.1492, allocations: 42.42 kB / 310.6 MB, free: 16.07 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001421/0.1493, allocations: 279.5 kB / 310.9 MB, free: 15.9 MB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.1493, allocations: 4 kB / 310.9 MB, free: 15.89 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004499/0.1498, allocations: 243.3 kB / 311.2 MB, free: 15.86 MB / 266.7 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 (90): * Single equations (assignments): 87 * 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,8), (1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0007144/0.1505, allocations: 398 kB / 311.5 MB, free: 15.68 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.000975/0.1515, allocations: 0.8827 MB / 312.4 MB, free: 15.12 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.1515, allocations: 0 / 312.4 MB, free: 15.12 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004915/0.1519, allocations: 0.5758 MB / 313 MB, free: 14.52 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004903/0.1524, allocations: 196.3 kB / 313.2 MB, free: 14.34 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002074/0.1545, allocations: 1.759 MB / 314.9 MB, free: 12.53 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001006/0.1546, allocations: 169.2 kB / 315.1 MB, free: 12.34 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002112/0.1548, allocations: 85.64 kB / 315.2 MB, free: 12.25 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001343/0.155, allocations: 68.48 kB / 315.3 MB, free: 12.19 MB / 266.7 MB Notification: Performance of SimCode: time 5.71e-07/0.155, allocations: 0 / 315.3 MB, free: 12.19 MB / 266.7 MB Notification: Performance of Templates: time 0.01501/0.17, allocations: 16.05 MB / 331.3 MB, free: 12.3 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.HeatLosses.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.HeatLosses.sim & ./Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.HeatLosses -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.HeatLosses_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Translational/Examples/HeatLosses/HeatLosses.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.4025319889187813]