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.0009403/0.0009403, allocations: 79.73 kB / 21.97 MB, free: 2.598 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.00101/0.00101, allocations: 167.8 kB / 25.33 MB, free: 9.047 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.9155/0.9155, allocations: 158.6 MB / 187.2 MB, free: 2.449 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.744e-06/1.744e-06, allocations: 0 / 251 MB, free: 3.59 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.228e-05/3.402e-05, allocations: 6.312 kB / 251 MB, free: 3.582 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.HeatLosses): time 0.006437/0.006471, allocations: 4.253 MB / 255.3 MB, free: 15.29 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.003215/0.009685, allocations: 1.329 MB / 256.6 MB, free: 13.96 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003752/0.01006, allocations: 11.94 kB / 256.6 MB, free: 13.95 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004035/0.01046, allocations: 114.8 kB / 256.7 MB, free: 13.84 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000593/0.01106, allocations: 245.7 kB / 257 MB, free: 13.59 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001338/0.0124, allocations: 443 kB / 257.4 MB, free: 13.16 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.001402/0.0138, allocations: 1.158 MB / 258.6 MB, free: 12 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003927/0.01419, allocations: 182.1 kB / 258.8 MB, free: 11.8 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001065/0.01525, allocations: 0.6667 MB / 259.4 MB, free: 11.14 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006639/0.01592, allocations: 430.9 kB / 259.8 MB, free: 10.71 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001961/0.01611, allocations: 92 kB / 259.9 MB, free: 10.62 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003217/0.01644, allocations: 155.9 kB / 260.1 MB, free: 10.47 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002279/0.01666, allocations: 227.2 kB / 260.3 MB, free: 10.25 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003902/0.01705, allocations: 331.3 kB / 260.6 MB, free: 9.926 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00119/0.01824, allocations: 0.8098 MB / 261.4 MB, free: 9.113 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.484e-06/0.01825, allocations: 4 kB / 261.4 MB, free: 9.109 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.663e-06/0.01825, allocations: 0 / 261.4 MB, free: 9.109 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.813e-05/0.01827, allocations: 0 / 261.4 MB, free: 9.109 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.00263/0.0209, allocations: 1.364 MB / 262.8 MB, free: 7.695 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.61e-05/0.02095, allocations: 11.98 kB / 262.8 MB, free: 7.684 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004041/0.02135, allocations: 148.3 kB / 263 MB, free: 7.539 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006734/0.02203, allocations: 394.2 kB / 263.3 MB, free: 7.129 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.098e-05/0.02209, allocations: 58.38 kB / 263.4 MB, free: 7.074 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001473/0.02223, allocations: 76.31 kB / 263.5 MB, free: 7 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001523/0.02376, allocations: 0.6447 MB / 264.1 MB, free: 6.348 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.132e-05/0.02379, allocations: 4.188 kB / 264.1 MB, free: 6.344 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.289e-05/0.02388, allocations: 36.11 kB / 264.2 MB, free: 6.309 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.119e-05/0.0239, allocations: 20 kB / 264.2 MB, free: 6.289 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001317/0.02522, allocations: 0.5152 MB / 264.7 MB, free: 5.77 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002305/0.02753, allocations: 1.748 MB / 266.4 MB, free: 3.957 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007617/0.02829, allocations: 0.5059 MB / 267 MB, free: 3.438 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003565/0.02864, allocations: 275.2 kB / 267.2 MB, free: 3.168 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.357e-05/0.0287, allocations: 13 kB / 267.2 MB, free: 3.156 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000511/0.02921, allocations: 422.6 kB / 267.6 MB, free: 2.73 MB / 250.7 MB Notification: Performance of pre-optimization done (n=86): time 2.414e-06/0.02921, allocations: 0 / 267.6 MB, free: 2.73 MB / 250.7 MB Notification: Performance of matching and sorting (n=106): time 0.004504/0.03371, allocations: 2.879 MB / 270.5 MB, free: 15.8 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.778e-05/0.03375, allocations: 68.34 kB / 270.6 MB, free: 15.72 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003115/0.03406, allocations: 414.7 kB / 271 MB, free: 15.3 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 6.705e-05/0.03413, allocations: 49.7 kB / 271 MB, free: 15.25 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001712/0.0343, allocations: 332 kB / 271.4 MB, free: 14.92 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002383/0.03454, allocations: 372.9 kB / 271.7 MB, free: 14.55 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002161/0.03476, allocations: 188.5 kB / 271.9 MB, free: 14.36 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001612/0.03492, allocations: 0.543 MB / 272.5 MB, free: 13.8 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004319/0.03535, allocations: 270.5 kB / 272.7 MB, free: 13.54 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004828/0.03583, allocations: 380.3 kB / 273.1 MB, free: 13.14 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007031/0.03654, allocations: 0.5341 MB / 273.6 MB, free: 12.59 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.116e-06/0.03654, allocations: 0 / 273.6 MB, free: 12.59 MB / 266.7 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.001546/0.03808, allocations: 1.034 MB / 274.7 MB, free: 11.53 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.289e-05/0.03811, allocations: 8 kB / 274.7 MB, free: 11.52 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.097e-05/0.03812, allocations: 0 / 274.7 MB, free: 11.52 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007026/0.03882, allocations: 0.5493 MB / 275.2 MB, free: 10.96 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004108/0.03923, allocations: 195.7 kB / 275.4 MB, free: 10.77 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002627/0.04186, allocations: 4.025 MB / 279.4 MB, free: 6.562 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003945/0.04225, allocations: 119.9 kB / 279.6 MB, free: 6.445 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.156e-05/0.0423, allocations: 35.98 kB / 279.6 MB, free: 6.41 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.0002025/0.04251, allocations: 224.4 kB / 279.8 MB, free: 6.184 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001146/0.04262, allocations: 103.5 kB / 279.9 MB, free: 6.082 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.121e-05/0.04271, allocations: 102.9 kB / 280 MB, free: 5.977 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.272e-06/0.04272, allocations: 12 kB / 280 MB, free: 5.965 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.664e-06/0.04273, allocations: 0 / 280 MB, free: 5.965 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.947e-06/0.04273, allocations: 8.016 kB / 280 MB, free: 5.957 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002325/0.04506, allocations: 1.901 MB / 281.9 MB, free: 3.961 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.983e-06/0.04507, allocations: 7.938 kB / 281.9 MB, free: 3.953 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003942/0.04546, allocations: 167.8 kB / 282.1 MB, free: 3.789 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006064/0.04607, allocations: 0.5418 MB / 282.6 MB, free: 3.234 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.436e-05/0.04613, allocations: 39.95 kB / 282.7 MB, free: 3.195 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002279/0.04841, allocations: 3.802 MB / 286.5 MB, free: 15.21 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.693e-06/0.04841, allocations: 8.031 kB / 286.5 MB, free: 15.2 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00174/0.05015, allocations: 1.389 MB / 287.9 MB, free: 13.75 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000217/0.05037, allocations: 159.4 kB / 288 MB, free: 13.59 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.013e-05/0.05045, allocations: 31.98 kB / 288.1 MB, free: 13.56 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004177/0.05087, allocations: 135.8 kB / 288.2 MB, free: 13.43 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004968/0.05136, allocations: 360.2 kB / 288.6 MB, free: 13.08 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.668e-05/0.05142, allocations: 47.95 kB / 288.6 MB, free: 13.03 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001706/0.05159, allocations: 263.1 kB / 288.9 MB, free: 12.77 MB / 282.7 MB Notification: Performance of sort global known variables: time 8e-08/0.05159, allocations: 4 kB / 288.9 MB, free: 12.77 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0005159/0.05211, allocations: 251.9 kB / 289.1 MB, free: 12.52 MB / 282.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.0002614/0.05237, allocations: 161 kB / 289.3 MB, free: 12.36 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001202/0.05357, allocations: 0.9186 MB / 290.2 MB, free: 11.42 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.367e-06/0.05357, allocations: 0 / 290.2 MB, free: 11.42 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006503/0.05422, allocations: 0.603 MB / 290.8 MB, free: 10.79 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000522/0.05475, allocations: 174.6 kB / 291 MB, free: 10.62 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002379/0.05712, allocations: 1.686 MB / 292.6 MB, free: 8.867 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001098/0.05723, allocations: 161.1 kB / 292.8 MB, free: 8.691 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0002077/0.05744, allocations: 77.33 kB / 292.9 MB, free: 8.613 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001511/0.05759, allocations: 68.48 kB / 292.9 MB, free: 8.547 MB / 282.7 MB Notification: Performance of SimCode: time 9.72e-07/0.05759, allocations: 0 / 292.9 MB, free: 8.547 MB / 282.7 MB Notification: Performance of Templates: time 0.1187/0.1763, allocations: 16.9 MB / 309.8 MB, free: 54.16 MB / 282.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.3681729761883616]