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.0009248/0.0009248, allocations: 84.98 kB / 23 MB, free: 1.504 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.0009535/0.0009535, allocations: 171.6 kB / 26.39 MB, free: 8.156 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.8984/0.8984, allocations: 158.6 MB / 188.3 MB, free: 2.82 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.212e-06/1.212e-06, allocations: 3.938 kB / 252.2 MB, free: 7.355 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.668e-05/1.789e-05, allocations: 6.25 kB / 252.2 MB, free: 7.348 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.HeatLosses): time 0.00391/0.003928, allocations: 4.176 MB / 256.4 MB, free: 3.137 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.002199/0.006127, allocations: 1.333 MB / 257.8 MB, free: 1.801 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002194/0.006346, allocations: 11.94 kB / 257.8 MB, free: 1.789 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002742/0.006621, allocations: 114.8 kB / 257.9 MB, free: 1.676 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003006/0.006921, allocations: 245.7 kB / 258.1 MB, free: 1.434 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007347/0.007656, allocations: 439.1 kB / 258.5 MB, free: 1.004 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008111/0.008467, allocations: 1.17 MB / 259.7 MB, free: 15.83 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002737/0.008741, allocations: 170.1 kB / 259.9 MB, free: 15.65 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006179/0.009359, allocations: 0.6706 MB / 260.6 MB, free: 14.98 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003767/0.009735, allocations: 434.9 kB / 261 MB, free: 14.55 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001005/0.009836, allocations: 92 kB / 261.1 MB, free: 14.46 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001888/0.01002, allocations: 151.9 kB / 261.2 MB, free: 14.31 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001557/0.01018, allocations: 227.2 kB / 261.4 MB, free: 14.09 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002301/0.01041, allocations: 331.3 kB / 261.8 MB, free: 13.77 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006963/0.01111, allocations: 0.8176 MB / 262.6 MB, free: 12.95 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.216e-06/0.01111, allocations: 0 / 262.6 MB, free: 12.95 MB / 250.7 MB Notification: Performance of FrontEnd: time 6.72e-07/0.01111, allocations: 0 / 262.6 MB, free: 12.95 MB / 250.7 MB Notification: Performance of Transformations before backend: time 9.017e-06/0.01112, allocations: 0 / 262.6 MB, free: 12.95 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.001636/0.01276, allocations: 1.384 MB / 264 MB, free: 11.51 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.838e-05/0.01279, allocations: 11.98 kB / 264 MB, free: 11.5 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002348/0.01303, allocations: 148.3 kB / 264.1 MB, free: 11.36 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004007/0.01343, allocations: 390.2 kB / 264.5 MB, free: 10.95 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.742e-05/0.01347, allocations: 54.38 kB / 264.6 MB, free: 10.9 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.739e-05/0.01355, allocations: 68.33 kB / 264.6 MB, free: 10.83 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001035/0.01459, allocations: 0.5744 MB / 265.2 MB, free: 10.25 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.631e-05/0.01462, allocations: 16.12 kB / 265.2 MB, free: 10.23 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.245e-05/0.01467, allocations: 28.12 kB / 265.2 MB, free: 10.21 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.333e-05/0.01468, allocations: 16 kB / 265.3 MB, free: 10.19 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005468/0.01523, allocations: 421.5 kB / 265.7 MB, free: 9.777 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002074/0.0173, allocations: 1.671 MB / 267.3 MB, free: 8.051 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005429/0.01785, allocations: 454 kB / 267.8 MB, free: 7.594 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002443/0.01809, allocations: 219.2 kB / 268 MB, free: 7.379 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.104e-05/0.01814, allocations: 21 kB / 268 MB, free: 7.359 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003684/0.01851, allocations: 358.6 kB / 268.4 MB, free: 6.996 MB / 250.7 MB Notification: Performance of pre-optimization done (n=86): time 1.933e-06/0.01851, allocations: 0 / 268.4 MB, free: 6.996 MB / 250.7 MB Notification: Performance of matching and sorting (n=106): time 0.003806/0.02232, allocations: 2.504 MB / 270.9 MB, free: 4.449 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.97e-05/0.02235, allocations: 68.34 kB / 270.9 MB, free: 4.371 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002246/0.02257, allocations: 402.4 kB / 271.3 MB, free: 3.961 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 6.137e-05/0.02263, allocations: 57.69 kB / 271.4 MB, free: 3.898 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001499/0.02278, allocations: 328.1 kB / 271.7 MB, free: 3.57 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004581/0.02324, allocations: 380.8 kB / 272.1 MB, free: 3.195 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00021/0.02345, allocations: 192.5 kB / 272.3 MB, free: 2.996 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001417/0.02359, allocations: 0.5507 MB / 272.8 MB, free: 2.434 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002861/0.02388, allocations: 198.5 kB / 273 MB, free: 2.242 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003004/0.02418, allocations: 316.3 kB / 273.3 MB, free: 1.906 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004523/0.02463, allocations: 454.8 kB / 273.8 MB, free: 1.441 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.02463, allocations: 0 / 273.8 MB, free: 1.441 MB / 250.7 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.001126/0.02576, allocations: 0.8937 MB / 274.7 MB, free: 0.5273 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.739e-05/0.02578, allocations: 8 kB / 274.7 MB, free: 0.5195 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.116e-06/0.02579, allocations: 4 kB / 274.7 MB, free: 0.5156 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000625/0.02641, allocations: 0.5259 MB / 275.2 MB, free: 15.98 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003942/0.0268, allocations: 195.7 kB / 275.4 MB, free: 15.79 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002686/0.02949, allocations: 3.937 MB / 279.3 MB, free: 11.67 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003733/0.02986, allocations: 119.9 kB / 279.4 MB, free: 11.55 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.639e-05/0.02991, allocations: 27.98 kB / 279.5 MB, free: 11.53 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.0002011/0.03011, allocations: 220.4 kB / 279.7 MB, free: 11.3 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001168/0.03023, allocations: 99.58 kB / 279.8 MB, free: 11.21 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001044/0.03033, allocations: 106.9 kB / 279.9 MB, free: 11.1 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.905e-06/0.03034, allocations: 15.94 kB / 279.9 MB, free: 11.08 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.901e-06/0.03035, allocations: 4.125 kB / 279.9 MB, free: 11.08 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.925e-06/0.03035, allocations: 7.922 kB / 279.9 MB, free: 11.07 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002034/0.03239, allocations: 1.714 MB / 281.6 MB, free: 9.27 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.318e-06/0.03239, allocations: 4 kB / 281.6 MB, free: 9.266 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003857/0.03278, allocations: 168 kB / 281.8 MB, free: 9.102 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000569/0.03335, allocations: 0.5181 MB / 282.3 MB, free: 8.57 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.299e-05/0.0334, allocations: 31.97 kB / 282.3 MB, free: 8.539 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001997/0.0354, allocations: 3.728 MB / 286.1 MB, free: 4.633 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.888e-06/0.0354, allocations: 7.938 kB / 286.1 MB, free: 4.625 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001703/0.0371, allocations: 1.221 MB / 287.3 MB, free: 3.344 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002131/0.03732, allocations: 151.4 kB / 287.4 MB, free: 3.195 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.981e-05/0.0374, allocations: 32 kB / 287.5 MB, free: 3.164 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004234/0.03782, allocations: 139.8 kB / 287.6 MB, free: 3.027 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004731/0.03829, allocations: 368.2 kB / 288 MB, free: 2.668 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.023e-05/0.03834, allocations: 35.97 kB / 288 MB, free: 2.633 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001312/0.03847, allocations: 251 kB / 288.3 MB, free: 2.387 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.03847, allocations: 3.938 kB / 288.3 MB, free: 2.383 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0005143/0.03899, allocations: 247.9 kB / 288.5 MB, free: 2.141 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.0002252/0.03921, allocations: 169 kB / 288.7 MB, free: 1.965 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0008637/0.04008, allocations: 0.7859 MB / 289.5 MB, free: 1.16 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.04008, allocations: 0 / 289.5 MB, free: 1.16 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000522/0.0406, allocations: 0.5599 MB / 290 MB, free: 0.5781 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000523/0.04113, allocations: 177.5 kB / 290.2 MB, free: 416 kB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002256/0.04338, allocations: 1.667 MB / 291.9 MB, free: 14.67 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001078/0.04349, allocations: 165.1 kB / 292 MB, free: 14.49 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0002167/0.04371, allocations: 77.28 kB / 292.1 MB, free: 14.41 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002965/0.044, allocations: 218.1 kB / 292.3 MB, free: 14.2 MB / 282.7 MB Notification: Performance of SimCode: time 1.002e-06/0.044, allocations: 4 kB / 292.3 MB, free: 14.19 MB / 282.7 MB Notification: Performance of Templates: time 0.01933/0.06333, allocations: 17.56 MB / 309.9 MB, free: 12.63 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.2874953309074044]