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.001066/0.001066, allocations: 104.1 kB / 17.58 MB, free: 5.555 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.001192/0.001192, allocations: 192.1 kB / 18.51 MB, free: 4.637 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.49/1.49, allocations: 205.1 MB / 224.4 MB, free: 12.31 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.001264/0.001264, allocations: 52.2 kB / 280.6 MB, free: 3.172 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.102/0.1033, allocations: 46.63 MB / 327.3 MB, free: 4.469 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.HeatLosses): time 0.005293/0.1086, allocations: 4.296 MB / 331.6 MB, free: 136 kB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.0024/0.1111, allocations: 1.341 MB / 332.9 MB, free: 14.79 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002465/0.1113, allocations: 8 kB / 332.9 MB, free: 14.78 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003181/0.1117, allocations: 118.8 kB / 333 MB, free: 14.66 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003905/0.1121, allocations: 229.9 kB / 333.3 MB, free: 14.44 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009619/0.1131, allocations: 435.1 kB / 333.7 MB, free: 14.01 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009814/0.114, allocations: 1.131 MB / 334.8 MB, free: 12.88 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003724/0.1144, allocations: 257.9 kB / 335.1 MB, free: 12.61 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005487/0.115, allocations: 478.6 kB / 335.5 MB, free: 12.14 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005269/0.1155, allocations: 0.5177 MB / 336.1 MB, free: 11.62 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001368/0.1157, allocations: 92 kB / 336.1 MB, free: 11.54 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002718/0.1159, allocations: 143.9 kB / 336.3 MB, free: 11.39 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002361/0.1162, allocations: 231.2 kB / 336.5 MB, free: 11.17 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003947/0.1166, allocations: 442 kB / 336.9 MB, free: 10.73 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009909/0.1176, allocations: 1.055 MB / 338 MB, free: 9.676 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.079e-06/0.1176, allocations: 0 / 338 MB, free: 9.676 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.122e-06/0.1176, allocations: 0 / 338 MB, free: 9.676 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.529e-05/0.1176, allocations: 0 / 338 MB, free: 9.676 MB / 286.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.003073/0.1207, allocations: 1.279 MB / 339.3 MB, free: 8.348 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.612e-05/0.1208, allocations: 12.03 kB / 339.3 MB, free: 8.336 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002609/0.121, allocations: 91.91 kB / 339.4 MB, free: 8.246 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005557/0.1216, allocations: 441.6 kB / 339.8 MB, free: 7.773 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.614e-05/0.1217, allocations: 54.31 kB / 339.9 MB, free: 7.719 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001252/0.1218, allocations: 72.38 kB / 339.9 MB, free: 7.648 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001578/0.1234, allocations: 0.8077 MB / 340.7 MB, free: 6.836 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.515e-05/0.1234, allocations: 3.906 kB / 340.7 MB, free: 6.832 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.315e-05/0.1235, allocations: 35.98 kB / 340.8 MB, free: 6.797 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.018e-05/0.1236, allocations: 16 kB / 340.8 MB, free: 6.781 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001945/0.1255, allocations: 0.8666 MB / 341.7 MB, free: 5.914 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004268/0.1298, allocations: 2.388 MB / 344.1 MB, free: 3.395 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001454/0.1313, allocations: 0.7188 MB / 344.8 MB, free: 2.664 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000939/0.1322, allocations: 472.3 kB / 345.2 MB, free: 2.199 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.602e-05/0.1323, allocations: 13 kB / 345.2 MB, free: 2.188 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001144/0.1334, allocations: 0.5439 MB / 345.8 MB, free: 1.629 MB / 286.1 MB Notification: Performance of pre-optimization done (n=86): time 3.526e-06/0.1335, allocations: 0 / 345.8 MB, free: 1.629 MB / 286.1 MB Notification: Performance of matching and sorting (n=106): time 0.0108/0.1443, allocations: 4.228 MB / 350 MB, free: 13.28 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.557e-05/0.1443, allocations: 64.41 kB / 350.1 MB, free: 13.2 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004002/0.1447, allocations: 389.9 kB / 350.5 MB, free: 12.81 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 8.802e-05/0.1448, allocations: 53.7 kB / 350.5 MB, free: 12.75 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001879/0.145, allocations: 272.9 kB / 350.8 MB, free: 12.48 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002624/0.1453, allocations: 355 kB / 351.1 MB, free: 12.13 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002966/0.1456, allocations: 186.8 kB / 351.3 MB, free: 11.94 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000161/0.1458, allocations: 374.8 kB / 351.7 MB, free: 11.57 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009459/0.1467, allocations: 442.3 kB / 352.1 MB, free: 11.13 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001001/0.1478, allocations: 0.5306 MB / 352.6 MB, free: 10.59 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001652/0.1494, allocations: 0.7792 MB / 353.4 MB, free: 9.793 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.216e-06/0.1494, allocations: 3.938 kB / 353.4 MB, free: 9.789 MB / 302.1 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.003037/0.1525, allocations: 1.346 MB / 354.8 MB, free: 8.426 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.925e-05/0.1525, allocations: 8 kB / 354.8 MB, free: 8.418 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.183e-05/0.1525, allocations: 4 kB / 354.8 MB, free: 8.414 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001118/0.1537, allocations: 0.6504 MB / 355.4 MB, free: 7.754 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007893/0.1545, allocations: 207.7 kB / 355.6 MB, free: 7.551 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004661/0.1591, allocations: 3.431 MB / 359.1 MB, free: 3.922 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001223/0.1604, allocations: 171.8 kB / 359.2 MB, free: 3.754 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001393/0.1605, allocations: 43.98 kB / 359.3 MB, free: 3.711 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.0004258/0.161, allocations: 233.5 kB / 359.5 MB, free: 3.473 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001392/0.1611, allocations: 71.16 kB / 359.6 MB, free: 3.402 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001914/0.1613, allocations: 107 kB / 359.7 MB, free: 3.297 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.498e-06/0.1613, allocations: 11.94 kB / 359.7 MB, free: 3.285 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.134e-06/0.1613, allocations: 0 / 359.7 MB, free: 3.285 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.125e-05/0.1614, allocations: 3.984 kB / 359.7 MB, free: 3.281 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004721/0.1661, allocations: 2.526 MB / 362.2 MB, free: 0.6484 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.694e-06/0.1661, allocations: 4 kB / 362.2 MB, free: 0.6445 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007849/0.1669, allocations: 175.8 kB / 362.4 MB, free: 484 kB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001022/0.1679, allocations: 0.6232 MB / 363 MB, free: 15.84 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.269e-05/0.168, allocations: 35.95 kB / 363.1 MB, free: 15.8 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003521/0.1715, allocations: 3.222 MB / 366.3 MB, free: 12.39 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.248e-06/0.1716, allocations: 8.219 kB / 366.3 MB, free: 12.38 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003799/0.1754, allocations: 1.832 MB / 368.1 MB, free: 10.5 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003692/0.1758, allocations: 236.1 kB / 368.3 MB, free: 10.25 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001369/0.1759, allocations: 36.19 kB / 368.4 MB, free: 10.21 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00133/0.1772, allocations: 207.7 kB / 368.6 MB, free: 10.01 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008282/0.1781, allocations: 380.3 kB / 369 MB, free: 9.641 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.229e-05/0.1782, allocations: 55.89 kB / 369 MB, free: 9.586 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.000345/0.1785, allocations: 267.2 kB / 369.3 MB, free: 9.324 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1785, allocations: 0 / 369.3 MB, free: 9.324 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0008769/0.1794, allocations: 244 kB / 369.5 MB, free: 9.086 MB / 318.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.000306/0.1797, allocations: 168.9 kB / 369.7 MB, free: 8.914 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.003069/0.1828, allocations: 1.223 MB / 370.9 MB, free: 7.68 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.777e-06/0.1828, allocations: 0 / 370.9 MB, free: 7.68 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001538/0.1844, allocations: 0.7858 MB / 371.7 MB, free: 6.879 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008282/0.1852, allocations: 126.2 kB / 371.8 MB, free: 6.762 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003833/0.1891, allocations: 1.956 MB / 373.8 MB, free: 4.754 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004669/0.1895, allocations: 0.9361 MB / 374.7 MB, free: 3.789 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0003687/0.1899, allocations: 77.45 kB / 374.8 MB, free: 3.711 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001782/0.1901, allocations: 67.34 kB / 374.8 MB, free: 3.648 MB / 318.1 MB Notification: Performance of SimCode: time 5.91e-07/0.1901, allocations: 0 / 374.8 MB, free: 3.648 MB / 318.1 MB Notification: Performance of Templates: time 0.1701/0.3602, allocations: 17.53 MB / 392.4 MB, free: 48.68 MB / 318.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