Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4.0.0_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_4.0.0_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.001048/0.001049, allocations: 106.7 kB / 16.62 MB, free: 6.809 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.001148/0.001148, allocations: 193.8 kB / 17.55 MB, free: 5.953 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.335/1.335, allocations: 222.9 MB / 241.2 MB, free: 13.7 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001796/0.001796, allocations: 46.94 kB / 300.1 MB, free: 5.961 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1081/0.1099, allocations: 49.44 MB / 349.6 MB, free: 4.516 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.HeatLosses): time 0.005453/0.1154, allocations: 4.333 MB / 353.9 MB, free: 156 kB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002707/0.1182, allocations: 1.368 MB / 355.3 MB, free: 14.78 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005515/0.1187, allocations: 11.94 kB / 355.3 MB, free: 14.77 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003969/0.1192, allocations: 83.31 kB / 355.4 MB, free: 14.69 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005806/0.1198, allocations: 198.5 kB / 355.6 MB, free: 14.49 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001105/0.1209, allocations: 391.1 kB / 355.9 MB, free: 14.11 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001293/0.1222, allocations: 1.123 MB / 357.1 MB, free: 12.98 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003845/0.1226, allocations: 257.7 kB / 357.3 MB, free: 12.72 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005449/0.1232, allocations: 482.4 kB / 357.8 MB, free: 12.25 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005029/0.1237, allocations: 0.5215 MB / 358.3 MB, free: 11.72 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001265/0.1238, allocations: 99.94 kB / 358.4 MB, free: 11.62 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002503/0.1241, allocations: 144 kB / 358.5 MB, free: 11.48 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001947/0.1243, allocations: 219.3 kB / 358.8 MB, free: 11.27 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003566/0.1246, allocations: 450 kB / 359.2 MB, free: 10.83 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008854/0.1255, allocations: 1.051 MB / 360.2 MB, free: 9.773 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.029e-06/0.1255, allocations: 4 kB / 360.3 MB, free: 9.77 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.1255, allocations: 0 / 360.3 MB, free: 9.77 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.045e-05/0.1256, allocations: 0 / 360.3 MB, free: 9.77 MB / 302.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.003094/0.1287, allocations: 1.279 MB / 361.5 MB, free: 8.441 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.014e-05/0.1287, allocations: 15.97 kB / 361.5 MB, free: 8.426 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002167/0.1289, allocations: 91.92 kB / 361.6 MB, free: 8.336 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005193/0.1295, allocations: 433.6 kB / 362.1 MB, free: 7.871 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.562e-05/0.1295, allocations: 54.38 kB / 362.1 MB, free: 7.816 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001384/0.1297, allocations: 76.27 kB / 362.2 MB, free: 7.742 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001657/0.1313, allocations: 0.8116 MB / 363 MB, free: 6.926 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.767e-05/0.1314, allocations: 4 kB / 363 MB, free: 6.922 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.667e-05/0.1315, allocations: 28 kB / 363 MB, free: 6.895 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.426e-05/0.1315, allocations: 16 kB / 363 MB, free: 6.879 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001947/0.1334, allocations: 0.8705 MB / 363.9 MB, free: 6.008 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004099/0.1375, allocations: 2.388 MB / 366.3 MB, free: 3.492 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001456/0.139, allocations: 0.7191 MB / 367 MB, free: 2.766 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009296/0.14, allocations: 468.2 kB / 367.5 MB, free: 2.309 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.386e-05/0.1401, allocations: 13 kB / 367.5 MB, free: 2.297 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001205/0.1413, allocations: 0.5478 MB / 368 MB, free: 1.73 MB / 302.1 MB Notification: Performance of pre-optimization done (n=86): time 2.755e-06/0.1413, allocations: 7.938 kB / 368 MB, free: 1.723 MB / 302.1 MB Notification: Performance of matching and sorting (n=106): time 0.1562/0.2974, allocations: 4.204 MB / 372.3 MB, free: 25.24 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.22e-05/0.2975, allocations: 67.44 kB / 372.3 MB, free: 25.18 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004428/0.298, allocations: 390.6 kB / 372.7 MB, free: 24.98 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 9.258e-05/0.2981, allocations: 53.31 kB / 372.8 MB, free: 24.93 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000155/0.2982, allocations: 275.4 kB / 373 MB, free: 24.71 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002667/0.2985, allocations: 357.5 kB / 373.4 MB, free: 24.45 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000373/0.2989, allocations: 186.2 kB / 373.6 MB, free: 24.36 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.662e-05/0.299, allocations: 373.3 kB / 373.9 MB, free: 24.02 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009791/0.3, allocations: 438.3 kB / 374.3 MB, free: 23.87 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001016/0.301, allocations: 0.5296 MB / 374.9 MB, free: 23.64 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001685/0.3027, allocations: 0.7816 MB / 375.7 MB, free: 23.31 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.976e-06/0.3027, allocations: 0 / 375.7 MB, free: 23.31 MB / 302.1 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.003228/0.306, allocations: 1.356 MB / 377 MB, free: 22.8 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.015e-05/0.306, allocations: 7.734 kB / 377 MB, free: 22.8 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.969e-06/0.306, allocations: 1.406 kB / 377 MB, free: 22.8 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00116/0.3072, allocations: 0.6494 MB / 377.7 MB, free: 22.61 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008136/0.308, allocations: 200.4 kB / 377.9 MB, free: 22.59 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003704/0.3117, allocations: 3.439 MB / 381.3 MB, free: 19.66 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001199/0.3129, allocations: 177.8 kB / 381.5 MB, free: 19.63 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.374e-05/0.313, allocations: 43.67 kB / 381.5 MB, free: 19.62 MB / 302.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.0003533/0.3134, allocations: 230.1 kB / 381.7 MB, free: 19.43 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001271/0.3135, allocations: 69.69 kB / 381.8 MB, free: 19.39 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002012/0.3137, allocations: 105 kB / 381.9 MB, free: 19.31 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.997e-06/0.3137, allocations: 13.23 kB / 381.9 MB, free: 19.31 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.292e-05/0.3138, allocations: 1.188 kB / 381.9 MB, free: 19.31 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.142e-05/0.3138, allocations: 4.734 kB / 381.9 MB, free: 19.31 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004366/0.3181, allocations: 2.512 MB / 384.4 MB, free: 18.08 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.843e-06/0.3182, allocations: 5.953 kB / 384.5 MB, free: 18.07 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008126/0.319, allocations: 180.2 kB / 384.6 MB, free: 18.05 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001112/0.3201, allocations: 0.6135 MB / 385.2 MB, free: 17.86 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.938e-05/0.3202, allocations: 39.7 kB / 385.3 MB, free: 17.84 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003056/0.3233, allocations: 3.22 MB / 388.5 MB, free: 15.08 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.016e-06/0.3233, allocations: 2.75 kB / 388.5 MB, free: 15.08 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003801/0.3271, allocations: 1.844 MB / 390.3 MB, free: 14.24 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004134/0.3275, allocations: 244.1 kB / 390.6 MB, free: 14.06 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001707/0.3277, allocations: 29.66 kB / 390.6 MB, free: 14.05 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001369/0.3291, allocations: 207.6 kB / 390.8 MB, free: 14.02 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008714/0.33, allocations: 377.8 kB / 391.2 MB, free: 13.93 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.688e-05/0.3301, allocations: 46.19 kB / 391.2 MB, free: 13.92 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002455/0.3303, allocations: 271.5 kB / 391.5 MB, free: 13.79 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3303, allocations: 0 / 391.5 MB, free: 13.79 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008591/0.3312, allocations: 244 kB / 391.7 MB, free: 13.75 MB / 302.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.0002834/0.3315, allocations: 162.6 kB / 391.9 MB, free: 13.64 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002933/0.3344, allocations: 1.227 MB / 393.1 MB, free: 13.12 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.749e-06/0.3344, allocations: 0 / 393.1 MB, free: 13.12 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001543/0.336, allocations: 0.7802 MB / 393.9 MB, free: 12.7 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008456/0.3368, allocations: 135.2 kB / 394 MB, free: 12.61 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003669/0.3405, allocations: 2.287 MB / 396.3 MB, free: 11.01 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003068/0.3408, allocations: 0.9287 MB / 397.3 MB, free: 10.21 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003672/0.3412, allocations: 85.25 kB / 397.3 MB, free: 10.17 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001863/0.3414, allocations: 63 kB / 397.4 MB, free: 10.15 MB / 302.1 MB Notification: Performance of SimCode: time 5.61e-07/0.3414, allocations: 0 / 397.4 MB, free: 10.15 MB / 302.1 MB Notification: Performance of Templates: time 0.02243/0.3639, allocations: 17.05 MB / 414.4 MB, free: 9.391 MB / 318.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.HeatLosses.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.HeatLosses.sim & ./Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.HeatLosses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.HeatLosses_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/HeatLosses/HeatLosses.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.HeatLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches