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.001672/0.001672, allocations: 101.4 kB / 18.39 MB, free: 4.664 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.001839/0.001839, allocations: 189.1 kB / 19.33 MB, free: 3.738 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.912/1.912, allocations: 205.1 MB / 225.2 MB, free: 12.2 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.001387/0.001387, allocations: 48.36 kB / 329.2 MB, free: 3.297 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1021/0.1035, allocations: 46.62 MB / 375.8 MB, free: 4.566 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.HeatLosses): time 0.005424/0.109, allocations: 4.308 MB / 380.1 MB, free: 232 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.1875/0.2966, allocations: 1.326 MB / 381.4 MB, free: 9.676 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007522/0.2974, allocations: 12.44 kB / 381.5 MB, free: 9.676 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005258/0.2979, allocations: 120.9 kB / 381.6 MB, free: 9.676 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006774/0.2986, allocations: 226.6 kB / 381.8 MB, free: 9.566 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001353/0.3, allocations: 427.5 kB / 382.2 MB, free: 9.543 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001398/0.3014, allocations: 1.136 MB / 383.4 MB, free: 9.352 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004881/0.3019, allocations: 267.9 kB / 383.6 MB, free: 9.309 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008876/0.3028, allocations: 494.2 kB / 384.1 MB, free: 9.215 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007155/0.3035, allocations: 0.5135 MB / 384.6 MB, free: 9.004 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001706/0.3037, allocations: 96.34 kB / 384.7 MB, free: 9 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003603/0.3041, allocations: 151.3 kB / 384.9 MB, free: 8.98 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002329/0.3043, allocations: 222.2 kB / 385.1 MB, free: 8.852 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004501/0.3048, allocations: 444.2 kB / 385.5 MB, free: 8.598 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001326/0.3061, allocations: 1.067 MB / 386.6 MB, free: 8.215 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.932e-06/0.3061, allocations: 0 / 386.6 MB, free: 8.215 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.3061, allocations: 0 / 386.6 MB, free: 8.215 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.42e-05/0.3061, allocations: 1.312 kB / 386.6 MB, free: 8.215 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.003447/0.3096, allocations: 1.284 MB / 387.9 MB, free: 7.477 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.704e-05/0.3096, allocations: 9.531 kB / 387.9 MB, free: 7.477 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003014/0.31, allocations: 85.05 kB / 387.9 MB, free: 7.438 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007104/0.3107, allocations: 450.3 kB / 388.4 MB, free: 7.094 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.376e-05/0.3108, allocations: 55.16 kB / 388.4 MB, free: 7.07 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001561/0.3109, allocations: 73.19 kB / 388.5 MB, free: 7.043 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001796/0.3127, allocations: 0.8087 MB / 389.3 MB, free: 6.742 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.007e-05/0.3128, allocations: 7.5 kB / 389.3 MB, free: 6.738 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.586e-05/0.3129, allocations: 25.58 kB / 389.4 MB, free: 6.719 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.733e-05/0.3129, allocations: 16.44 kB / 389.4 MB, free: 6.719 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002049/0.3149, allocations: 0.8662 MB / 390.2 MB, free: 6.461 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004332/0.3193, allocations: 2.373 MB / 392.6 MB, free: 5.141 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001549/0.3208, allocations: 0.7198 MB / 393.3 MB, free: 4.852 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009676/0.3218, allocations: 466.5 kB / 393.8 MB, free: 4.676 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.427e-05/0.3219, allocations: 14.23 kB / 393.8 MB, free: 4.676 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001276/0.3232, allocations: 0.5496 MB / 394.3 MB, free: 4.465 MB / 318.1 MB Notification: Performance of pre-optimization done (n=86): time 3.156e-06/0.3232, allocations: 1.5 kB / 394.4 MB, free: 4.465 MB / 318.1 MB Notification: Performance of matching and sorting (n=106): time 0.0113/0.3345, allocations: 4.233 MB / 398.6 MB, free: 2.5 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.427e-05/0.3346, allocations: 62.34 kB / 398.6 MB, free: 2.438 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004949/0.3351, allocations: 393.8 kB / 399 MB, free: 2.234 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001094/0.3352, allocations: 55.48 kB / 399.1 MB, free: 2.184 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001648/0.3354, allocations: 272.3 kB / 399.3 MB, free: 1.938 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000229/0.3356, allocations: 356.7 kB / 399.7 MB, free: 1.637 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000327/0.336, allocations: 190.5 kB / 399.9 MB, free: 1.516 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 9.534e-05/0.3361, allocations: 372.9 kB / 400.2 MB, free: 1.156 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001036/0.3371, allocations: 441.7 kB / 400.7 MB, free: 0.9492 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00103/0.3382, allocations: 0.5231 MB / 401.2 MB, free: 0.6562 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001712/0.3399, allocations: 0.7867 MB / 402 MB, free: 252 kB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.619e-06/0.3399, allocations: 2.562 kB / 402 MB, free: 252 kB / 318.1 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.003181/0.3431, allocations: 1.354 MB / 403.3 MB, free: 15.57 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.151e-05/0.3431, allocations: 8.969 kB / 403.4 MB, free: 15.57 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.259e-05/0.3431, allocations: 2.812 kB / 403.4 MB, free: 15.57 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001242/0.3444, allocations: 0.6493 MB / 404 MB, free: 15.25 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008343/0.3452, allocations: 205.8 kB / 404.2 MB, free: 15.2 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004715/0.35, allocations: 3.433 MB / 407.6 MB, free: 12.1 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001401/0.3514, allocations: 180.7 kB / 407.8 MB, free: 12.02 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.597e-05/0.3515, allocations: 36.2 kB / 407.9 MB, free: 12 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.0005231/0.352, allocations: 224.1 kB / 408.1 MB, free: 11.81 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001624/0.3522, allocations: 70.06 kB / 408.1 MB, free: 11.78 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002321/0.3524, allocations: 115.1 kB / 408.3 MB, free: 11.67 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.283e-05/0.3524, allocations: 10.06 kB / 408.3 MB, free: 11.67 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.012e-05/0.3525, allocations: 1.125 kB / 408.3 MB, free: 11.67 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.161e-05/0.3525, allocations: 3.984 kB / 408.3 MB, free: 11.67 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00476/0.3572, allocations: 2.491 MB / 410.8 MB, free: 10.01 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.713e-06/0.3573, allocations: 2.781 kB / 410.8 MB, free: 10.01 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007889/0.3581, allocations: 183 kB / 410.9 MB, free: 9.965 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001043/0.3591, allocations: 0.6151 MB / 411.6 MB, free: 9.66 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.226e-05/0.3592, allocations: 37.11 kB / 411.6 MB, free: 9.633 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003804/0.363, allocations: 3.216 MB / 414.8 MB, free: 6.711 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.818e-06/0.363, allocations: 6.719 kB / 414.8 MB, free: 6.707 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004058/0.3671, allocations: 1.854 MB / 416.7 MB, free: 4.98 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005119/0.3676, allocations: 228.2 kB / 416.9 MB, free: 4.738 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001771/0.3678, allocations: 32 kB / 416.9 MB, free: 4.707 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00143/0.3693, allocations: 203.7 kB / 417.1 MB, free: 4.508 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009122/0.3702, allocations: 384.3 kB / 417.5 MB, free: 4.133 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001126/0.3703, allocations: 39.95 kB / 417.5 MB, free: 4.094 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003542/0.3707, allocations: 267.2 kB / 417.8 MB, free: 3.832 MB / 334.1 MB Notification: Performance of sort global known variables: time 4.51e-07/0.3707, allocations: 0 / 417.8 MB, free: 3.832 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001026/0.3717, allocations: 256 kB / 418 MB, free: 3.582 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.000395/0.3721, allocations: 164.7 kB / 418.2 MB, free: 3.41 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002967/0.3751, allocations: 1.2 MB / 419.4 MB, free: 2.203 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 5.009e-06/0.3751, allocations: 0 / 419.4 MB, free: 2.203 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001607/0.3767, allocations: 0.7312 MB / 420.1 MB, free: 1.457 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009923/0.3777, allocations: 140.2 kB / 420.3 MB, free: 1.328 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004545/0.3823, allocations: 1.971 MB / 422.2 MB, free: 15.31 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006205/0.3829, allocations: 0.9438 MB / 423.2 MB, free: 14.34 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002698/0.3832, allocations: 67.41 kB / 423.3 MB, free: 14.27 MB / 350.1 MB Notification: Performance of SimCode: time 5.51e-07/0.3832, allocations: 4 kB / 423.3 MB, free: 14.27 MB / 350.1 MB Notification: Performance of Templates: time 0.02364/0.4069, allocations: 17.53 MB / 440.8 MB, free: 12.68 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Translational/Examples/HeatLosses/HeatLosses.csv","/var/lib/jenkins1/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