Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Mechanics.Translational.Examples.HeatLosses.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/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.2_cpp_Modelica.Mechanics.Translational.Examples.HeatLosses") Notification: Performance of loadModel(Modelica): time 1.917/1.917, allocations: 194.8 MB / 211.7 MB, free: 2.988 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003761/0.0003764, allocations: 12 kB / 263.8 MB, free: 13.61 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08042/0.08082, allocations: 44.51 MB / 308.4 MB, free: 1.027 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.HeatLosses): time 0.005171/0.08604, allocations: 3.448 MB / 311.8 MB, free: 13.55 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.003179/0.08927, allocations: 1.307 MB / 313.1 MB, free: 12.24 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005364/0.08985, allocations: 15.94 kB / 313.1 MB, free: 12.23 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000242/0.09012, allocations: 71.38 kB / 313.2 MB, free: 12.16 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006921/0.09083, allocations: 247.3 kB / 313.4 MB, free: 11.91 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001249/0.09209, allocations: 331.3 kB / 313.8 MB, free: 11.59 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001294/0.09341, allocations: 0.6923 MB / 314.5 MB, free: 10.89 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000424/0.09385, allocations: 191.1 kB / 314.6 MB, free: 10.69 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006905/0.09456, allocations: 414.7 kB / 315 MB, free: 10.29 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006873/0.09526, allocations: 462.3 kB / 315.5 MB, free: 9.832 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001437/0.09542, allocations: 48 kB / 315.5 MB, free: 9.785 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003198/0.09576, allocations: 87.95 kB / 315.6 MB, free: 9.699 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002329/0.096, allocations: 171.4 kB / 315.8 MB, free: 9.531 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002169/0.09624, allocations: 161.3 kB / 316 MB, free: 9.367 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001072/0.09732, allocations: 0.7365 MB / 316.7 MB, free: 8.629 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.402e-06/0.09735, allocations: 4 kB / 316.7 MB, free: 8.625 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.188e-06/0.09736, allocations: 3.938 kB / 316.7 MB, free: 8.621 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.177e-05/0.09738, allocations: 0 / 316.7 MB, free: 8.621 MB / 266.7 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.003577/0.101, allocations: 1.217 MB / 317.9 MB, free: 7.355 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.327e-05/0.101, allocations: 8.031 kB / 317.9 MB, free: 7.348 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000337/0.1014, allocations: 94.91 kB / 318 MB, free: 7.254 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008302/0.1022, allocations: 432.6 kB / 318.4 MB, free: 6.793 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.723e-05/0.1023, allocations: 58 kB / 318.5 MB, free: 6.734 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001744/0.1025, allocations: 67.91 kB / 318.6 MB, free: 6.668 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002309/0.1048, allocations: 0.8115 MB / 319.4 MB, free: 5.848 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.589e-05/0.1049, allocations: 11.94 kB / 319.4 MB, free: 5.836 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001138/0.105, allocations: 24 kB / 319.4 MB, free: 5.812 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.42e-05/0.1051, allocations: 19.95 kB / 319.4 MB, free: 5.793 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002883/0.108, allocations: 0.8939 MB / 320.3 MB, free: 4.902 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006313/0.1143, allocations: 2.463 MB / 322.8 MB, free: 2.309 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00214/0.1165, allocations: 0.7269 MB / 323.5 MB, free: 1.574 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001048/0.1167, allocations: 9 kB / 323.5 MB, free: 1.566 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001694/0.1184, allocations: 0.5711 MB / 324.1 MB, free: 0.9844 MB / 266.7 MB Notification: Performance of pre-optimization done (n=86): time 4.948e-06/0.1184, allocations: 0 / 324.1 MB, free: 0.9844 MB / 266.7 MB Notification: Performance of matching and sorting (n=106): time 0.015/0.1334, allocations: 4.469 MB / 328.6 MB, free: 12.38 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.805e-05/0.1335, allocations: 64.41 kB / 328.6 MB, free: 12.31 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006612/0.1342, allocations: 389.9 kB / 329 MB, free: 11.92 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001841/0.1344, allocations: 61.62 kB / 329.1 MB, free: 11.86 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002745/0.1347, allocations: 311.5 kB / 329.4 MB, free: 11.55 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000476/0.1352, allocations: 362.9 kB / 329.7 MB, free: 11.19 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.956e-05/0.1353, allocations: 24 kB / 329.7 MB, free: 11.16 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0002134/0.1355, allocations: 350.8 kB / 330.1 MB, free: 10.81 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001432/0.137, allocations: 446.4 kB / 330.5 MB, free: 10.38 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001515/0.1385, allocations: 0.5462 MB / 331.1 MB, free: 9.812 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001263/0.1398, allocations: 390.3 kB / 331.5 MB, free: 9.434 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.285e-06/0.1398, allocations: 0 / 331.5 MB, free: 9.434 MB / 282.7 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.004361/0.1442, allocations: 1.346 MB / 332.8 MB, free: 8.07 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.83e-05/0.1442, allocations: 4 kB / 332.8 MB, free: 8.066 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.237e-05/0.1443, allocations: 4 kB / 332.8 MB, free: 8.062 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00171/0.146, allocations: 0.6504 MB / 333.5 MB, free: 7.402 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001129/0.1472, allocations: 211.7 kB / 333.7 MB, free: 7.195 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005832/0.153, allocations: 3.307 MB / 337 MB, free: 3.695 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001508/0.1546, allocations: 243.9 kB / 337.2 MB, free: 3.457 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001372/0.1547, allocations: 35.98 kB / 337.2 MB, free: 3.422 MB / 282.7 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,$whenCondition1,elastoGap.contact,$PRE.supportFriction.startForward,supportFriction.startForward,$PRE.supportFriction.startBackward,supportFriction.startBackward,supportFriction.locked,$PRE.supportFriction.mode,supportFriction.mode,brake.free,$PRE.brake.startForward,brake.startForward,$PRE.brake.startBackward,brake.startBackward,brake.locked,$PRE.brake.mode,brake.mode,massWithStopAndFriction.free,$PRE.massWithStopAndFriction.startForward,massWithStopAndFriction.startForward,$PRE.massWithStopAndFriction.startBackward,massWithStopAndFriction.startBackward,massWithStopAndFriction.locked,$PRE.massWithStopAndFriction.mode,massWithStopAndFriction.mode,massWithStopAndFriction.stopped) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 7,1 5,1 7} Notification: Performance of prepare postOptimizeDAE: time 0.0005384/0.1553, allocations: 221.6 kB / 337.5 MB, free: 3.199 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001886/0.1555, allocations: 75.16 kB / 337.5 MB, free: 3.125 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002456/0.1558, allocations: 103.2 kB / 337.6 MB, free: 3.02 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.401e-05/0.1558, allocations: 15.92 kB / 337.7 MB, free: 3.004 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.202e-05/0.1558, allocations: 3.984 kB / 337.7 MB, free: 3 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.71e-05/0.1558, allocations: 7.984 kB / 337.7 MB, free: 2.992 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006673/0.1625, allocations: 2.554 MB / 340.2 MB, free: 340 kB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.025e-06/0.1626, allocations: 0 / 340.2 MB, free: 340 kB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00112/0.1637, allocations: 184 kB / 340.4 MB, free: 156 kB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001628/0.1654, allocations: 0.6231 MB / 341 MB, free: 15.52 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001638/0.1655, allocations: 39.95 kB / 341.1 MB, free: 15.48 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00518/0.1707, allocations: 3.139 MB / 344.2 MB, free: 12.16 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.84e-06/0.1708, allocations: 3.938 kB / 344.2 MB, free: 12.15 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005687/0.1765, allocations: 1.88 MB / 346.1 MB, free: 10.23 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006113/0.1771, allocations: 232.2 kB / 346.3 MB, free: 9.98 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001957/0.1774, allocations: 32 kB / 346.3 MB, free: 9.949 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001686/0.1791, allocations: 283.7 kB / 346.6 MB, free: 9.672 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001332/0.1804, allocations: 424.1 kB / 347 MB, free: 9.258 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001493/0.1806, allocations: 47.95 kB / 347.1 MB, free: 9.211 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.000447/0.1811, allocations: 259.2 kB / 347.3 MB, free: 8.953 MB / 298.7 MB Notification: Performance of sort global known variables: time 7.88e-07/0.1811, allocations: 0 / 347.3 MB, free: 8.953 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.001152/0.1822, allocations: 248 kB / 347.6 MB, free: 8.711 MB / 298.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 6,1 6,1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.0004006/0.1827, allocations: 176.8 kB / 347.7 MB, free: 8.527 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.003653/0.1863, allocations: 1.215 MB / 349 MB, free: 7.301 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 8.77e-06/0.1864, allocations: 4.312 kB / 349 MB, free: 7.297 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00217/0.1886, allocations: 0.7387 MB / 349.7 MB, free: 6.547 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008901/0.1895, allocations: 105.4 kB / 349.8 MB, free: 6.445 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005671/0.1952, allocations: 2.402 MB / 352.2 MB, free: 3.992 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007668/0.196, allocations: 0.9478 MB / 353.2 MB, free: 3.02 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003853/0.1964, allocations: 67.41 kB / 353.2 MB, free: 2.953 MB / 298.7 MB Notification: Performance of SimCode: time 1.855e-06/0.1964, allocations: 0 / 353.2 MB, free: 2.953 MB / 298.7 MB Notification: Performance of Templates: time 0.02826/0.2247, allocations: 16.64 MB / 369.9 MB, free: 2.281 MB / 314.7 MB