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/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.587/1.587, allocations: 171.3 MB / 179.2 MB, free: 7.594 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.04e-05/2.062e-05, allocations: 8 kB / 222.5 MB, free: 8.707 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06983/0.06988, allocations: 38.77 MB / 261.3 MB, free: 1.855 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.319/0.3889, allocations: 73 MB / 334.3 MB, free: 15.35 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000192/0.3891, allocations: 66.16 kB / 334.3 MB, free: 15.32 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06181/0.451, allocations: 14.55 MB / 348.9 MB, free: 2.906 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.239e-06/0.451, allocations: 4 kB / 348.9 MB, free: 2.902 MB / 282.7 MB Notification: Performance of Transformations before backend: time 3.585e-05/0.4511, allocations: 16 kB / 348.9 MB, free: 2.887 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.003117/0.4542, allocations: 1.087 MB / 350 MB, free: 1.801 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.72e-05/0.4543, allocations: 12.03 kB / 350 MB, free: 1.789 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003678/0.4547, allocations: 91.27 kB / 350.1 MB, free: 1.699 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008407/0.4555, allocations: 410.7 kB / 350.5 MB, free: 1.312 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.626e-05/0.4556, allocations: 24 kB / 350.5 MB, free: 1.289 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001576/0.4558, allocations: 44 kB / 350.6 MB, free: 1.246 MB / 282.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001866/0.4576, allocations: 0.7169 MB / 351.3 MB, free: 0.7656 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001616/0.4593, allocations: 0.6499 MB / 351.9 MB, free: 300 kB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.274e-05/0.4593, allocations: 3.906 kB / 351.9 MB, free: 296 kB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001061/0.4595, allocations: 4 kB / 351.9 MB, free: 292 kB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.379e-05/0.4595, allocations: 19.94 kB / 352 MB, free: 272 kB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005924/0.4654, allocations: 2.325 MB / 354.3 MB, free: 14.3 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001348/0.4668, allocations: 0.6032 MB / 354.9 MB, free: 13.92 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008434/0.4677, allocations: 392.7 kB / 355.3 MB, free: 13.58 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.325e-05/0.4678, allocations: 12.77 kB / 355.3 MB, free: 13.57 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001118/0.4689, allocations: 480.4 kB / 355.8 MB, free: 13.08 MB / 298.7 MB Notification: Performance of pre-optimization done (n=86): time 4.518e-06/0.4689, allocations: 0 / 355.8 MB, free: 13.08 MB / 298.7 MB Notification: Performance of matching and sorting (n=106): time 0.008081/0.477, allocations: 2.74 MB / 358.5 MB, free: 10.26 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.912e-05/0.4771, allocations: 64.72 kB / 358.6 MB, free: 10.18 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005162/0.4777, allocations: 305.2 kB / 358.9 MB, free: 9.883 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001685/0.4778, allocations: 41.69 kB / 358.9 MB, free: 9.836 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002738/0.4781, allocations: 311.4 kB / 359.2 MB, free: 9.527 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004182/0.4786, allocations: 351 kB / 359.5 MB, free: 9.18 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.587e-05/0.4786, allocations: 0 / 359.5 MB, free: 9.18 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0002218/0.4789, allocations: 350.8 kB / 359.9 MB, free: 8.828 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008965/0.4798, allocations: 354.6 kB / 360.2 MB, free: 8.48 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001006/0.4808, allocations: 452.8 kB / 360.7 MB, free: 8.023 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009691/0.4818, allocations: 310.3 kB / 361 MB, free: 7.723 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.142e-06/0.4818, allocations: 0 / 361 MB, free: 7.723 MB / 298.7 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.003752/0.4856, allocations: 1.234 MB / 362.2 MB, free: 6.473 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.88e-05/0.4856, allocations: 8 kB / 362.2 MB, free: 6.465 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.055e-05/0.4857, allocations: 0 / 362.2 MB, free: 6.465 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00164/0.4873, allocations: 0.666 MB / 362.9 MB, free: 5.789 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001133/0.4885, allocations: 207.6 kB / 363.1 MB, free: 5.586 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005729/0.4942, allocations: 3.31 MB / 366.4 MB, free: 2.109 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001604/0.4959, allocations: 211.9 kB / 366.6 MB, free: 1.902 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002519/0.4962, allocations: 51.94 kB / 366.7 MB, free: 1.852 MB / 298.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: supportFriction.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic f = f(a_relfric)" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: massWithStopAndFriction.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic f = f(a_relfric)" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: brake.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic f = f(a_relfric)" type: Real 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 () * 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.0004059/0.4966, allocations: 140.1 kB / 366.8 MB, free: 1.707 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002065/0.4968, allocations: 67.25 kB / 366.9 MB, free: 1.641 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000262/0.4971, allocations: 86.95 kB / 366.9 MB, free: 1.551 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.503e-05/0.4971, allocations: 12 kB / 367 MB, free: 1.539 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.581e-06/0.4971, allocations: 0 / 367 MB, free: 1.539 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.685e-05/0.4971, allocations: 11.97 kB / 367 MB, free: 1.527 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005997/0.5031, allocations: 2.333 MB / 369.3 MB, free: 15.1 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.199e-06/0.5032, allocations: 0 / 369.3 MB, free: 15.1 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001104/0.5043, allocations: 184 kB / 369.5 MB, free: 14.92 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001558/0.5059, allocations: 0.6347 MB / 370.1 MB, free: 14.27 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001583/0.5061, allocations: 23.97 kB / 370.1 MB, free: 14.25 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005/0.5111, allocations: 3.099 MB / 373.2 MB, free: 10.98 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.157e-06/0.5111, allocations: 8.016 kB / 373.2 MB, free: 10.98 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004581/0.5157, allocations: 1.803 MB / 375.1 MB, free: 9.086 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006364/0.5164, allocations: 232.2 kB / 375.3 MB, free: 8.84 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001825/0.5166, allocations: 12 kB / 375.3 MB, free: 8.828 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001517/0.5181, allocations: 239.8 kB / 375.5 MB, free: 8.594 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001326/0.5195, allocations: 428.5 kB / 375.9 MB, free: 8.176 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001977/0.5197, allocations: 47.95 kB / 376 MB, free: 8.129 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0003926/0.5201, allocations: 235 kB / 376.2 MB, free: 7.898 MB / 314.7 MB Notification: Performance of sort global known variables: time 8.94e-07/0.5201, allocations: 0 / 376.2 MB, free: 7.898 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001177/0.5213, allocations: 208 kB / 376.4 MB, free: 7.695 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) * 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.0003906/0.5217, allocations: 160.7 kB / 376.6 MB, free: 7.531 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002455/0.5242, allocations: 0.9996 MB / 377.6 MB, free: 6.52 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 7.965e-06/0.5242, allocations: 4 kB / 377.6 MB, free: 6.516 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001597/0.5258, allocations: 0.6274 MB / 378.2 MB, free: 5.883 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008895/0.5267, allocations: 91.47 kB / 378.3 MB, free: 5.793 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00535/0.5321, allocations: 1.744 MB / 380 MB, free: 3.988 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007986/0.533, allocations: 0.9517 MB / 381 MB, free: 3.008 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003894/0.5334, allocations: 63.41 kB / 381.1 MB, free: 2.945 MB / 314.7 MB Notification: Performance of SimCode: time 1.795e-06/0.5334, allocations: 0 / 381.1 MB, free: 2.945 MB / 314.7 MB Notification: Performance of Templates: time 0.02823/0.5616, allocations: 16.21 MB / 397.3 MB, free: 2.688 MB / 330.7 MB