Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Mechanics.Translational.Examples.HeatLosses.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/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.1_cpp_Modelica.Mechanics.Translational.Examples.HeatLosses") Notification: Performance of loadModel(Modelica): time 1.755/1.755, allocations: 171.1 MB / 186.7 MB, free: 1.043 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007388/0.0007389, allocations: 12 kB / 233.2 MB, free: 3.008 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1273/0.1281, allocations: 38.76 MB / 272 MB, free: 12.16 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2991/0.4272, allocations: 73.74 MB / 345.7 MB, free: 252 kB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002385/0.4275, allocations: 76.27 kB / 345.8 MB, free: 212 kB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06274/0.4903, allocations: 14.68 MB / 360.5 MB, free: 3.492 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.495e-06/0.4903, allocations: 0 / 360.5 MB, free: 3.492 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.066e-05/0.4904, allocations: 12 kB / 360.5 MB, free: 3.48 MB / 282.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.003266/0.4937, allocations: 1.138 MB / 361.6 MB, free: 2.34 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.724e-05/0.4937, allocations: 12.03 kB / 361.7 MB, free: 2.328 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003729/0.4941, allocations: 91.02 kB / 361.7 MB, free: 2.238 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008462/0.495, allocations: 427.8 kB / 362.2 MB, free: 1.832 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.821e-05/0.4951, allocations: 55.94 kB / 362.2 MB, free: 1.797 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001882/0.4953, allocations: 69 kB / 362.3 MB, free: 1.754 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00232/0.4976, allocations: 0.8162 MB / 363.1 MB, free: 1.172 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.869e-05/0.4977, allocations: 7.906 kB / 363.1 MB, free: 1.164 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001174/0.4978, allocations: 25.38 kB / 363.1 MB, free: 1.16 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.285e-05/0.4979, allocations: 19.98 kB / 363.2 MB, free: 1.141 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00288/0.5008, allocations: 0.8943 MB / 364.1 MB, free: 500 kB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006203/0.507, allocations: 2.436 MB / 366.5 MB, free: 14.44 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002015/0.5091, allocations: 0.7404 MB / 367.2 MB, free: 13.93 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.708e-05/0.5092, allocations: 9 kB / 367.2 MB, free: 13.92 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001612/0.5108, allocations: 0.5548 MB / 367.8 MB, free: 13.5 MB / 298.7 MB Notification: Performance of pre-optimization done (n=86): time 4.301e-06/0.5108, allocations: 0 / 367.8 MB, free: 13.5 MB / 298.7 MB Notification: Performance of matching and sorting (n=106): time 0.01561/0.5265, allocations: 4.57 MB / 372.4 MB, free: 9.676 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.808e-05/0.5266, allocations: 68.09 kB / 372.4 MB, free: 9.602 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005864/0.5272, allocations: 338.3 kB / 372.8 MB, free: 9.328 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002228/0.5274, allocations: 60.69 kB / 372.8 MB, free: 9.281 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000263/0.5277, allocations: 316.8 kB / 373.1 MB, free: 9.02 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004221/0.5281, allocations: 360.7 kB / 373.5 MB, free: 8.715 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.862e-05/0.5282, allocations: 19.38 kB / 373.5 MB, free: 8.711 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0002062/0.5284, allocations: 354.2 kB / 373.8 MB, free: 8.371 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001417/0.5299, allocations: 451.9 kB / 374.3 MB, free: 8.074 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001494/0.5314, allocations: 0.5314 MB / 374.8 MB, free: 7.688 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00127/0.5327, allocations: 398.3 kB / 375.2 MB, free: 7.434 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.988e-06/0.5327, allocations: 0 / 375.2 MB, free: 7.434 MB / 298.7 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.0047/0.5374, allocations: 1.455 MB / 376.7 MB, free: 6.332 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.274e-05/0.5375, allocations: 7.984 kB / 376.7 MB, free: 6.324 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.439e-05/0.5375, allocations: 8 kB / 376.7 MB, free: 6.316 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001724/0.5393, allocations: 0.674 MB / 377.4 MB, free: 5.777 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001181/0.5405, allocations: 213.1 kB / 377.6 MB, free: 5.578 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005806/0.5463, allocations: 3.305 MB / 380.9 MB, free: 2.441 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001588/0.5479, allocations: 232.3 kB / 381.1 MB, free: 2.23 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001504/0.5481, allocations: 42.8 kB / 381.1 MB, free: 2.199 MB / 298.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.0005838/0.5487, allocations: 228 kB / 381.4 MB, free: 2.027 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002087/0.5489, allocations: 71.16 kB / 381.4 MB, free: 1.957 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002475/0.5492, allocations: 99.94 kB / 381.5 MB, free: 1.906 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.706e-05/0.5492, allocations: 15.95 kB / 381.5 MB, free: 1.891 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.841e-06/0.5492, allocations: 0 / 381.5 MB, free: 1.891 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.749e-05/0.5493, allocations: 7.969 kB / 381.5 MB, free: 1.883 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007266/0.5565, allocations: 2.636 MB / 384.2 MB, free: 15.14 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.933e-05/0.5566, allocations: 7.953 kB / 384.2 MB, free: 15.13 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001186/0.5578, allocations: 187.9 kB / 384.4 MB, free: 14.95 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001725/0.5595, allocations: 0.6544 MB / 385 MB, free: 14.29 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002066/0.5598, allocations: 39.95 kB / 385.1 MB, free: 14.25 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005201/0.565, allocations: 3.132 MB / 388.2 MB, free: 10.93 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.84e-06/0.5651, allocations: 7.969 kB / 388.2 MB, free: 10.92 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006316/0.5714, allocations: 2.059 MB / 390.3 MB, free: 8.773 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007311/0.5722, allocations: 232.1 kB / 390.5 MB, free: 8.527 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002066/0.5724, allocations: 32.25 kB / 390.5 MB, free: 8.496 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001661/0.5741, allocations: 247.8 kB / 390.8 MB, free: 8.254 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001348/0.5754, allocations: 444 kB / 391.2 MB, free: 7.82 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001723/0.5756, allocations: 51.91 kB / 391.2 MB, free: 7.77 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0004805/0.5761, allocations: 263.1 kB / 391.5 MB, free: 7.508 MB / 314.7 MB Notification: Performance of sort global known variables: time 7.44e-07/0.5761, allocations: 0 / 391.5 MB, free: 7.508 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001261/0.5774, allocations: 244 kB / 391.7 MB, free: 7.27 MB / 314.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.000417/0.5779, allocations: 179.9 kB / 391.9 MB, free: 7.086 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.003709/0.5816, allocations: 1.188 MB / 393.1 MB, free: 5.891 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 6.297e-06/0.5816, allocations: 0 / 393.1 MB, free: 5.891 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002237/0.5839, allocations: 0.7351 MB / 393.8 MB, free: 5.148 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000935/0.5849, allocations: 109.1 kB / 394 MB, free: 5.043 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006097/0.591, allocations: 2.446 MB / 396.4 MB, free: 2.543 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007958/0.5918, allocations: 0.9478 MB / 397.3 MB, free: 1.57 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004074/0.5922, allocations: 67.41 kB / 397.4 MB, free: 1.504 MB / 314.7 MB Notification: Performance of SimCode: time 1.84e-06/0.5923, allocations: 0 / 397.4 MB, free: 1.504 MB / 314.7 MB Notification: Performance of Templates: time 0.02843/0.6207, allocations: 16.31 MB / 413.7 MB, free: 1.156 MB / 330.7 MB