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.001093/0.001093, allocations: 108.4 kB / 18.34 MB, free: 4.73 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.001041/0.001042, allocations: 191 kB / 19.28 MB, free: 3.797 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.288/1.288, allocations: 205.1 MB / 225.2 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.001814/0.001814, allocations: 51.92 kB / 282.1 MB, free: 2.461 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09498/0.09682, allocations: 46.63 MB / 328.7 MB, free: 3.758 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.HeatLosses): time 0.005461/0.1023, allocations: 4.303 MB / 333 MB, free: 15.41 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002642/0.105, allocations: 1.334 MB / 334.3 MB, free: 14.08 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002999/0.1053, allocations: 11.94 kB / 334.4 MB, free: 14.07 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003308/0.1057, allocations: 118.8 kB / 334.5 MB, free: 13.95 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003736/0.1061, allocations: 226 kB / 334.7 MB, free: 13.73 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009374/0.107, allocations: 431.1 kB / 335.1 MB, free: 13.3 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009757/0.108, allocations: 1.139 MB / 336.3 MB, free: 12.16 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000381/0.1084, allocations: 273.6 kB / 336.5 MB, free: 11.88 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005746/0.109, allocations: 478.6 kB / 337 MB, free: 11.41 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005457/0.1095, allocations: 0.5137 MB / 337.5 MB, free: 10.9 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001214/0.1096, allocations: 92 kB / 337.6 MB, free: 10.81 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002495/0.1099, allocations: 151.9 kB / 337.7 MB, free: 10.66 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002202/0.1101, allocations: 227.2 kB / 338 MB, free: 10.44 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004066/0.1105, allocations: 442 kB / 338.4 MB, free: 10 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000913/0.1115, allocations: 1.059 MB / 339.5 MB, free: 8.941 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.917e-06/0.1115, allocations: 0 / 339.5 MB, free: 8.941 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.333e-06/0.1115, allocations: 0 / 339.5 MB, free: 8.941 MB / 286.1 MB Notification: Performance of Transformations before backend: time 9.478e-06/0.1115, allocations: 0 / 339.5 MB, free: 8.941 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.003053/0.1146, allocations: 1.287 MB / 340.7 MB, free: 7.605 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.505e-05/0.1146, allocations: 8.031 kB / 340.8 MB, free: 7.598 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002117/0.1148, allocations: 87.91 kB / 340.8 MB, free: 7.512 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006748/0.1155, allocations: 457.5 kB / 341.3 MB, free: 7.023 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.877e-05/0.1156, allocations: 54.38 kB / 341.3 MB, free: 6.969 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001291/0.1157, allocations: 68.38 kB / 341.4 MB, free: 6.902 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0016/0.1173, allocations: 0.8077 MB / 342.2 MB, free: 6.09 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.908e-05/0.1174, allocations: 7.906 kB / 342.2 MB, free: 6.082 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.784e-05/0.1174, allocations: 24 kB / 342.2 MB, free: 6.059 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.804e-05/0.1175, allocations: 16 kB / 342.3 MB, free: 6.043 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00202/0.1195, allocations: 0.8704 MB / 343.1 MB, free: 5.172 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004133/0.1236, allocations: 2.373 MB / 345.5 MB, free: 2.668 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001441/0.1251, allocations: 0.715 MB / 346.2 MB, free: 1.941 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009243/0.126, allocations: 468.3 kB / 346.7 MB, free: 1.48 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.641e-05/0.1261, allocations: 16.92 kB / 346.7 MB, free: 1.465 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001132/0.1273, allocations: 0.5555 MB / 347.2 MB, free: 0.8945 MB / 286.1 MB Notification: Performance of pre-optimization done (n=86): time 2.395e-06/0.1273, allocations: 0 / 347.2 MB, free: 0.8945 MB / 286.1 MB Notification: Performance of matching and sorting (n=106): time 0.01046/0.1377, allocations: 4.213 MB / 351.5 MB, free: 12.56 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.603e-05/0.1378, allocations: 68.41 kB / 351.5 MB, free: 12.48 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004025/0.1382, allocations: 385.9 kB / 351.9 MB, free: 12.09 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 9.7e-05/0.1383, allocations: 57.69 kB / 352 MB, free: 12.03 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001682/0.1385, allocations: 276.9 kB / 352.2 MB, free: 11.75 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002512/0.1388, allocations: 355 kB / 352.6 MB, free: 11.4 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003084/0.1391, allocations: 190.8 kB / 352.8 MB, free: 11.21 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001374/0.1392, allocations: 374.8 kB / 353.1 MB, free: 10.84 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009646/0.1402, allocations: 434.4 kB / 353.6 MB, free: 10.41 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001037/0.1412, allocations: 0.5383 MB / 354.1 MB, free: 9.855 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001659/0.1429, allocations: 0.7831 MB / 354.9 MB, free: 9.059 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.395e-06/0.1429, allocations: 0 / 354.9 MB, free: 9.059 MB / 302.1 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.003015/0.146, allocations: 1.35 MB / 356.2 MB, free: 7.691 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.799e-05/0.146, allocations: 4 kB / 356.2 MB, free: 7.688 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.265e-06/0.146, allocations: 0 / 356.2 MB, free: 7.688 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001174/0.1472, allocations: 0.6543 MB / 356.9 MB, free: 7.023 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008149/0.148, allocations: 211.5 kB / 357.1 MB, free: 6.816 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00412/0.1521, allocations: 3.427 MB / 360.5 MB, free: 3.191 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001122/0.1533, allocations: 175.9 kB / 360.7 MB, free: 3.02 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.804e-05/0.1534, allocations: 35.98 kB / 360.7 MB, free: 2.984 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.0003759/0.1538, allocations: 237.5 kB / 361 MB, free: 2.742 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001292/0.1539, allocations: 71.16 kB / 361 MB, free: 2.672 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002109/0.1541, allocations: 99.02 kB / 361.1 MB, free: 2.574 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.023e-05/0.1541, allocations: 12 kB / 361.1 MB, free: 2.562 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.006e-05/0.1542, allocations: 0 / 361.1 MB, free: 2.562 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.71e-05/0.1542, allocations: 7.969 kB / 361.1 MB, free: 2.555 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00452/0.1587, allocations: 2.506 MB / 363.6 MB, free: 15.94 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.13e-06/0.1587, allocations: 0 / 363.6 MB, free: 15.94 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000786/0.1595, allocations: 179.7 kB / 363.8 MB, free: 15.77 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001043/0.1606, allocations: 0.6115 MB / 364.4 MB, free: 15.14 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.929e-05/0.1607, allocations: 39.95 kB / 364.5 MB, free: 15.11 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00354/0.1642, allocations: 3.222 MB / 367.7 MB, free: 11.69 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.053e-06/0.1642, allocations: 192 / 367.7 MB, free: 11.69 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00382/0.1681, allocations: 1.856 MB / 369.6 MB, free: 9.785 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004239/0.1685, allocations: 232.1 kB / 369.8 MB, free: 9.539 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001421/0.1686, allocations: 32 kB / 369.8 MB, free: 9.508 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001232/0.1699, allocations: 211.7 kB / 370 MB, free: 9.301 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008885/0.1708, allocations: 376.4 kB / 370.4 MB, free: 8.93 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.588e-05/0.1709, allocations: 39.97 kB / 370.4 MB, free: 8.891 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002641/0.1711, allocations: 267.1 kB / 370.7 MB, free: 8.633 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.1712, allocations: 3.938 kB / 370.7 MB, free: 8.629 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0007641/0.1719, allocations: 248 kB / 370.9 MB, free: 8.387 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.0002666/0.1722, allocations: 168.8 kB / 371.1 MB, free: 8.215 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002469/0.1747, allocations: 1.184 MB / 372.3 MB, free: 7.02 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.869e-06/0.1747, allocations: 4 kB / 372.3 MB, free: 7.016 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001615/0.1763, allocations: 0.7781 MB / 373.1 MB, free: 6.223 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007906/0.1771, allocations: 130.6 kB / 373.2 MB, free: 6.102 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00373/0.1809, allocations: 1.948 MB / 375.1 MB, free: 4.102 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004842/0.1814, allocations: 0.9283 MB / 376.1 MB, free: 3.145 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0003306/0.1817, allocations: 85.44 kB / 376.1 MB, free: 3.059 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001882/0.1819, allocations: 67.41 kB / 376.2 MB, free: 2.996 MB / 318.1 MB Notification: Performance of SimCode: time 4e-07/0.1819, allocations: 0 / 376.2 MB, free: 2.996 MB / 318.1 MB Notification: Performance of Templates: time 0.1865/0.3684, allocations: 17.54 MB / 393.8 MB, free: 48.33 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 -s gbode -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