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.0008133/0.0008133, allocations: 75.77 kB / 22.46 MB, free: 2.09 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.0009024/0.0009024, allocations: 160.1 kB / 25.75 MB, free: 8.945 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 0.9958/0.9958, allocations: 158.6 MB / 187.5 MB, free: 2.949 MB / 170.7 MB " [Timeout remaining time 179] 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: Performance of FrontEnd - loaded program: time 1.243e-06/1.243e-06, allocations: 0 / 251.1 MB, free: 7.824 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.614e-05/1.738e-05, allocations: 10.19 kB / 251.1 MB, free: 7.812 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.HeatLosses): time 0.01061/0.01063, allocations: 4.235 MB / 255.3 MB, free: 3.543 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.001992/0.01262, allocations: 1.337 MB / 256.7 MB, free: 2.203 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002304/0.01285, allocations: 15.88 kB / 256.7 MB, free: 2.188 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003089/0.01316, allocations: 114.8 kB / 256.8 MB, free: 2.074 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00338/0.01654, allocations: 241.8 kB / 257 MB, free: 1.836 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008356/0.01737, allocations: 443 kB / 257.5 MB, free: 1.398 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008985/0.01827, allocations: 1.162 MB / 258.6 MB, free: 240 kB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002931/0.01856, allocations: 178.1 kB / 258.8 MB, free: 44 kB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007285/0.01929, allocations: 0.6706 MB / 259.5 MB, free: 15.37 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003462/0.02275, allocations: 430.9 kB / 259.9 MB, free: 14.95 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001168/0.02287, allocations: 92 kB / 260 MB, free: 14.86 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002254/0.0231, allocations: 151.9 kB / 260.1 MB, free: 14.71 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001903/0.02329, allocations: 227.2 kB / 260.4 MB, free: 14.49 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002989/0.02359, allocations: 331.3 kB / 260.7 MB, free: 14.16 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008188/0.0244, allocations: 0.8098 MB / 261.5 MB, free: 13.35 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.567e-06/0.02441, allocations: 3.984 kB / 261.5 MB, free: 13.35 MB / 250.7 MB Notification: Performance of FrontEnd: time 9.31e-07/0.02441, allocations: 4 kB / 261.5 MB, free: 13.34 MB / 250.7 MB Notification: Performance of Transformations before backend: time 7.915e-06/0.02442, allocations: 0 / 261.5 MB, free: 13.34 MB / 250.7 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.004832/0.02925, allocations: 1.361 MB / 262.9 MB, free: 11.93 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.728e-05/0.02929, allocations: 11.98 kB / 262.9 MB, free: 11.92 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000295/0.02958, allocations: 156.2 kB / 263 MB, free: 11.77 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005208/0.0301, allocations: 390.2 kB / 263.4 MB, free: 11.36 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.862e-05/0.03015, allocations: 54.38 kB / 263.5 MB, free: 11.31 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001164/0.03027, allocations: 76.33 kB / 263.5 MB, free: 11.24 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00112/0.03139, allocations: 0.6448 MB / 264.2 MB, free: 10.59 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.679e-05/0.03141, allocations: 8.141 kB / 264.2 MB, free: 10.58 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.12e-05/0.03148, allocations: 32.12 kB / 264.2 MB, free: 10.55 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.637e-05/0.0315, allocations: 16 kB / 264.2 MB, free: 10.53 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008292/0.03233, allocations: 0.5229 MB / 264.8 MB, free: 10 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002176/0.03451, allocations: 1.741 MB / 266.5 MB, free: 8.199 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007304/0.03524, allocations: 0.502 MB / 267 MB, free: 7.684 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003584/0.03559, allocations: 271.2 kB / 267.3 MB, free: 7.418 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.272e-05/0.03565, allocations: 17 kB / 267.3 MB, free: 7.402 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000501/0.03615, allocations: 422.5 kB / 267.7 MB, free: 6.977 MB / 250.7 MB Notification: Performance of pre-optimization done (n=86): time 3.236e-06/0.03615, allocations: 7.984 kB / 267.7 MB, free: 6.969 MB / 250.7 MB Notification: Performance of matching and sorting (n=106): time 0.004309/0.04046, allocations: 2.875 MB / 270.6 MB, free: 4.047 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.069e-05/0.04049, allocations: 68.34 kB / 270.6 MB, free: 3.969 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002715/0.04076, allocations: 410.7 kB / 271 MB, free: 3.551 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 5.819e-05/0.04082, allocations: 57.69 kB / 271.1 MB, free: 3.488 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001492/0.04097, allocations: 324.1 kB / 271.4 MB, free: 3.164 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002025/0.04117, allocations: 376.9 kB / 271.8 MB, free: 2.793 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001993/0.04137, allocations: 196.5 kB / 272 MB, free: 2.59 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001469/0.04152, allocations: 0.5391 MB / 272.5 MB, free: 2.039 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004034/0.04192, allocations: 270.5 kB / 272.8 MB, free: 1.777 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004182/0.04234, allocations: 372.4 kB / 273.1 MB, free: 1.387 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006185/0.04296, allocations: 0.5418 MB / 273.7 MB, free: 0.8242 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.04296, allocations: 0 / 273.7 MB, free: 0.8242 MB / 250.7 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.001367/0.04433, allocations: 1.03 MB / 274.7 MB, free: 15.77 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.397e-05/0.04434, allocations: 12 kB / 274.7 MB, free: 15.76 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.1e-06/0.04435, allocations: 0 / 274.7 MB, free: 15.76 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006362/0.04498, allocations: 0.5376 MB / 275.3 MB, free: 15.21 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003936/0.04538, allocations: 199.7 kB / 275.5 MB, free: 15.02 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002445/0.04782, allocations: 4.03 MB / 279.5 MB, free: 10.8 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003718/0.04819, allocations: 115.9 kB / 279.6 MB, free: 10.69 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.908e-05/0.04824, allocations: 43.92 kB / 279.6 MB, free: 10.64 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,7), (1,5), (1,7)} Notification: Performance of prepare postOptimizeDAE: time 0.000201/0.04844, allocations: 212.5 kB / 279.9 MB, free: 10.43 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001237/0.04857, allocations: 107.5 kB / 280 MB, free: 10.32 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000107/0.04867, allocations: 102.9 kB / 280.1 MB, free: 10.22 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.733e-06/0.04868, allocations: 11.94 kB / 280.1 MB, free: 10.21 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.12e-06/0.04869, allocations: 4 kB / 280.1 MB, free: 10.2 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.888e-06/0.0487, allocations: 3.984 kB / 280.1 MB, free: 10.2 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002402/0.0511, allocations: 1.897 MB / 282 MB, free: 8.207 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.12e-06/0.0511, allocations: 7.938 kB / 282 MB, free: 8.199 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003928/0.0515, allocations: 168 kB / 282.1 MB, free: 8.035 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005934/0.05209, allocations: 0.5455 MB / 282.7 MB, free: 7.477 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.329e-05/0.05214, allocations: 35.97 kB / 282.7 MB, free: 7.441 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00225/0.05439, allocations: 3.806 MB / 286.5 MB, free: 3.449 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.05439, allocations: 4 kB / 286.5 MB, free: 3.445 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001707/0.0561, allocations: 1.393 MB / 287.9 MB, free: 1.992 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002161/0.05632, allocations: 163.4 kB / 288.1 MB, free: 1.832 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.962e-05/0.0564, allocations: 28 kB / 288.1 MB, free: 1.805 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006098/0.05701, allocations: 135.8 kB / 288.3 MB, free: 1.672 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004774/0.05748, allocations: 364.3 kB / 288.6 MB, free: 1.316 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.037e-05/0.05753, allocations: 39.97 kB / 288.6 MB, free: 1.277 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001568/0.05769, allocations: 267.1 kB / 288.9 MB, free: 1.016 MB / 266.7 MB Notification: Performance of sort global known variables: time 7.1e-08/0.05769, allocations: 0 / 288.9 MB, free: 1.016 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.000455/0.05815, allocations: 251.9 kB / 289.2 MB, free: 0.7695 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 (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.0002013/0.05835, allocations: 181 kB / 289.3 MB, free: 0.582 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.001111/0.05946, allocations: 0.9032 MB / 290.2 MB, free: 15.66 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.953e-06/0.05946, allocations: 0 / 290.2 MB, free: 15.66 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005877/0.06005, allocations: 0.6068 MB / 290.8 MB, free: 15.03 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004741/0.06052, allocations: 160.8 kB / 291 MB, free: 14.88 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002137/0.06266, allocations: 1.69 MB / 292.7 MB, free: 13.11 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.832e-05/0.06276, allocations: 161.1 kB / 292.8 MB, free: 12.94 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0001851/0.06294, allocations: 77.33 kB / 292.9 MB, free: 12.86 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001357/0.06308, allocations: 72.47 kB / 293 MB, free: 12.79 MB / 282.7 MB Notification: Performance of SimCode: time 6.61e-07/0.06308, allocations: 4 kB / 293 MB, free: 12.79 MB / 282.7 MB Notification: Performance of Templates: time 0.01595/0.07903, allocations: 15.85 MB / 308.8 MB, free: 12.95 MB / 298.7 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=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe 2>&1) [Timeout 240] 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","",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.3059725400526077]