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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.Translational.Examples.HeatLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,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=4000,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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001309/0.001309, allocations: 109.4 kB / 17.73 MB, free: 5.363 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001432/0.001432, allocations: 188.1 kB / 18.66 MB, free: 4.441 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.472/1.472, allocations: 205.1 MB / 224.5 MB, free: 12.25 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.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.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001709/0.001709, allocations: 44.41 kB / 328.5 MB, free: 3.32 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1174/0.1191, allocations: 46.62 MB / 375.1 MB, free: 4.586 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.HeatLosses): time 0.006225/0.1253, allocations: 4.303 MB / 379.4 MB, free: 256 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.2444/0.3697, allocations: 1.331 MB / 380.8 MB, free: 9.676 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005133/0.3703, allocations: 15.78 kB / 380.8 MB, free: 9.676 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004242/0.3708, allocations: 119.7 kB / 380.9 MB, free: 9.676 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005114/0.3713, allocations: 228.4 kB / 381.1 MB, free: 9.574 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001357/0.3727, allocations: 427 kB / 381.5 MB, free: 9.551 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001587/0.3743, allocations: 1.143 MB / 382.7 MB, free: 9.355 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005689/0.3749, allocations: 264.3 kB / 382.9 MB, free: 9.309 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008982/0.3758, allocations: 491.5 kB / 383.4 MB, free: 9.234 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006861/0.3765, allocations: 0.5165 MB / 383.9 MB, free: 9.02 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001612/0.3766, allocations: 95.03 kB / 384 MB, free: 9.016 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003455/0.377, allocations: 148.5 kB / 384.2 MB, free: 9 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002474/0.3772, allocations: 220.6 kB / 384.4 MB, free: 8.871 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000426/0.3777, allocations: 449.5 kB / 384.8 MB, free: 8.613 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001354/0.379, allocations: 1.054 MB / 385.9 MB, free: 8.242 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.3791, allocations: 0 / 385.9 MB, free: 8.242 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.313e-06/0.3791, allocations: 1.125 kB / 385.9 MB, free: 8.242 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.46e-05/0.3791, allocations: 0 / 385.9 MB, free: 8.242 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.003533/0.3826, allocations: 1.295 MB / 387.2 MB, free: 7.492 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.696e-05/0.3827, allocations: 8.594 kB / 387.2 MB, free: 7.492 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002736/0.383, allocations: 86.09 kB / 387.3 MB, free: 7.453 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007965/0.3838, allocations: 447.8 kB / 387.7 MB, free: 7.113 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.636e-05/0.3838, allocations: 55.72 kB / 387.8 MB, free: 7.09 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001636/0.384, allocations: 70.44 kB / 387.8 MB, free: 7.066 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00191/0.3859, allocations: 0.8131 MB / 388.7 MB, free: 6.762 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.302e-05/0.386, allocations: 5.5 kB / 388.7 MB, free: 6.758 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.324e-05/0.3861, allocations: 26.84 kB / 388.7 MB, free: 6.738 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.752e-05/0.3861, allocations: 16 kB / 388.7 MB, free: 6.738 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002209/0.3883, allocations: 0.8701 MB / 389.6 MB, free: 6.477 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004696/0.393, allocations: 2.375 MB / 391.9 MB, free: 5.156 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001559/0.3946, allocations: 0.7146 MB / 392.7 MB, free: 4.871 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000969/0.3956, allocations: 469.4 kB / 393.1 MB, free: 4.695 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.942e-05/0.3957, allocations: 8.969 kB / 393.1 MB, free: 4.695 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001249/0.3969, allocations: 0.556 MB / 393.7 MB, free: 4.48 MB / 318.1 MB Notification: Performance of pre-optimization done (n=86): time 3.146e-06/0.3969, allocations: 0 / 393.7 MB, free: 4.48 MB / 318.1 MB Notification: Performance of matching and sorting (n=106): time 0.0117/0.4086, allocations: 4.23 MB / 397.9 MB, free: 2.52 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.051e-05/0.4087, allocations: 63.41 kB / 398 MB, free: 2.457 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005731/0.4093, allocations: 393.9 kB / 398.4 MB, free: 2.25 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 9.333e-05/0.4094, allocations: 53.95 kB / 398.4 MB, free: 2.199 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002022/0.4096, allocations: 268.4 kB / 398.7 MB, free: 1.957 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002802/0.4099, allocations: 358.7 kB / 399 MB, free: 1.652 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003747/0.4103, allocations: 191.5 kB / 399.2 MB, free: 1.531 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001445/0.4104, allocations: 368 kB / 399.6 MB, free: 1.176 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001105/0.4115, allocations: 441.8 kB / 400 MB, free: 0.9688 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001147/0.4127, allocations: 0.5282 MB / 400.5 MB, free: 0.6719 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001891/0.4146, allocations: 0.7838 MB / 401.3 MB, free: 272 kB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.158e-06/0.4146, allocations: 0 / 401.3 MB, free: 272 kB / 318.1 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.003499/0.4181, allocations: 1.354 MB / 402.7 MB, free: 15.59 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.822e-05/0.4182, allocations: 9.25 kB / 402.7 MB, free: 15.59 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.205e-05/0.4182, allocations: 2.75 kB / 402.7 MB, free: 15.59 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001438/0.4196, allocations: 0.6547 MB / 403.3 MB, free: 15.28 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009267/0.4206, allocations: 206.3 kB / 403.5 MB, free: 15.22 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004459/0.4251, allocations: 3.429 MB / 407 MB, free: 12.13 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001338/0.4264, allocations: 181 kB / 407.1 MB, free: 12.04 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001006/0.4265, allocations: 36.7 kB / 407.2 MB, free: 12.03 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.0005243/0.4271, allocations: 232.6 kB / 407.4 MB, free: 11.83 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001672/0.4272, allocations: 70.97 kB / 407.5 MB, free: 11.8 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002373/0.4275, allocations: 105.8 kB / 407.6 MB, free: 11.7 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.194e-05/0.4275, allocations: 10.62 kB / 407.6 MB, free: 11.7 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.945e-05/0.4275, allocations: 1.094 kB / 407.6 MB, free: 11.7 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.278e-06/0.4275, allocations: 3.984 kB / 407.6 MB, free: 11.7 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004938/0.4325, allocations: 2.499 MB / 410.1 MB, free: 10.04 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.661e-06/0.4325, allocations: 0 / 410.1 MB, free: 10.04 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007869/0.4333, allocations: 179.8 kB / 410.3 MB, free: 9.988 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001139/0.4345, allocations: 0.6168 MB / 410.9 MB, free: 9.688 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001/0.4346, allocations: 38.08 kB / 410.9 MB, free: 9.66 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003934/0.4385, allocations: 3.217 MB / 414.1 MB, free: 6.738 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.867e-06/0.4385, allocations: 5.312 kB / 414.1 MB, free: 6.734 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004234/0.4428, allocations: 1.853 MB / 416 MB, free: 5.023 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000545/0.4433, allocations: 224.2 kB / 416.2 MB, free: 4.785 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001476/0.4435, allocations: 32 kB / 416.2 MB, free: 4.754 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001338/0.4448, allocations: 207.7 kB / 416.4 MB, free: 4.551 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009448/0.4458, allocations: 376.4 kB / 416.8 MB, free: 4.184 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001018/0.4459, allocations: 43.95 kB / 416.9 MB, free: 4.141 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003785/0.4463, allocations: 263.2 kB / 417.1 MB, free: 3.883 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4463, allocations: 0 / 417.1 MB, free: 3.883 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.00111/0.4474, allocations: 256 kB / 417.4 MB, free: 3.633 MB / 334.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.0004162/0.4478, allocations: 167.5 kB / 417.5 MB, free: 3.461 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.003007/0.4509, allocations: 1.204 MB / 418.7 MB, free: 2.246 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.969e-06/0.4509, allocations: 0 / 418.7 MB, free: 2.246 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00171/0.4526, allocations: 0.782 MB / 419.5 MB, free: 1.449 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009094/0.4535, allocations: 135.8 kB / 419.6 MB, free: 1.328 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004242/0.4578, allocations: 1.949 MB / 421.6 MB, free: 15.34 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004901/0.4583, allocations: 0.9322 MB / 422.5 MB, free: 14.38 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004042/0.4587, allocations: 81.44 kB / 422.6 MB, free: 14.29 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001969/0.4589, allocations: 59.42 kB / 422.7 MB, free: 14.23 MB / 350.1 MB Notification: Performance of SimCode: time 6.61e-07/0.4589, allocations: 0 / 422.7 MB, free: 14.23 MB / 350.1 MB Notification: Performance of Templates: time 0.03031/0.4892, allocations: 17.74 MB / 440.4 MB, free: 12.48 MB / 366.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.HeatLosses.makefile (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) 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) Reference file matches