Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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.707/1.707, allocations: 171.2 MB / 187.3 MB, free: 1.129 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005062/0.0005064, allocations: 15.98 kB / 233.8 MB, free: 3.078 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08532/0.08585, allocations: 38.77 MB / 272.5 MB, free: 12.23 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3551/0.441, allocations: 73.73 MB / 346.3 MB, free: 308 kB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002813/0.4414, allocations: 82.98 kB / 346.4 MB, free: 264 kB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07567/0.5171, allocations: 14.69 MB / 361 MB, free: 3.547 MB / 282.7 MB Notification: Performance of FrontEnd: time 3.476e-06/0.5171, allocations: 0 / 361 MB, free: 3.547 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.664e-05/0.5172, allocations: 16 kB / 361.1 MB, free: 3.531 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.004964/0.5222, allocations: 1.135 MB / 362.2 MB, free: 2.391 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.355e-05/0.5222, allocations: 12.03 kB / 362.2 MB, free: 2.379 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005224/0.5228, allocations: 91.02 kB / 362.3 MB, free: 2.289 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001051/0.5238, allocations: 426.1 kB / 362.7 MB, free: 1.887 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.956e-05/0.524, allocations: 54.94 kB / 362.8 MB, free: 1.855 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000235/0.5242, allocations: 68.69 kB / 362.8 MB, free: 1.812 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003161/0.5274, allocations: 0.809 MB / 363.6 MB, free: 1.23 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.77e-05/0.5275, allocations: 7.906 kB / 363.6 MB, free: 1.223 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001343/0.5276, allocations: 31.06 kB / 363.7 MB, free: 1.215 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.975e-05/0.5277, allocations: 16 kB / 363.7 MB, free: 1.199 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003787/0.5315, allocations: 0.9022 MB / 364.6 MB, free: 0.5391 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008167/0.5397, allocations: 2.445 MB / 367 MB, free: 14.49 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002687/0.5424, allocations: 0.7277 MB / 367.8 MB, free: 13.98 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001657/0.5427, allocations: 12.98 kB / 367.8 MB, free: 13.97 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002147/0.5448, allocations: 0.5638 MB / 368.3 MB, free: 13.55 MB / 298.7 MB Notification: Performance of pre-optimization done (n=86): time 4.769e-06/0.5449, allocations: 0 / 368.3 MB, free: 13.55 MB / 298.7 MB Notification: Performance of matching and sorting (n=106): time 0.02161/0.5665, allocations: 4.57 MB / 372.9 MB, free: 9.723 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.861e-05/0.5666, allocations: 64.41 kB / 373 MB, free: 9.648 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007213/0.5673, allocations: 386.6 kB / 373.4 MB, free: 9.336 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003136/0.5677, allocations: 52.58 kB / 373.4 MB, free: 9.297 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002675/0.5679, allocations: 321.4 kB / 373.7 MB, free: 9.031 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005242/0.5685, allocations: 355.4 kB / 374.1 MB, free: 8.73 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001049/0.5686, allocations: 32.67 kB / 374.1 MB, free: 8.715 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001752/0.5688, allocations: 348 kB / 374.4 MB, free: 8.383 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00192/0.5707, allocations: 446.2 kB / 374.9 MB, free: 8.094 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002012/0.5728, allocations: 0.5425 MB / 375.4 MB, free: 7.695 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001815/0.5746, allocations: 391.1 kB / 375.8 MB, free: 7.449 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.13e-05/0.5747, allocations: 4 kB / 375.8 MB, free: 7.445 MB / 298.7 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.006339/0.5811, allocations: 1.458 MB / 377.3 MB, free: 6.34 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.464e-05/0.5811, allocations: 13.09 kB / 377.3 MB, free: 6.328 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.502e-05/0.5812, allocations: 0 / 377.3 MB, free: 6.328 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002148/0.5833, allocations: 0.6803 MB / 378 MB, free: 5.785 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00171/0.5851, allocations: 216.4 kB / 378.2 MB, free: 5.582 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006765/0.5919, allocations: 3.294 MB / 381.5 MB, free: 2.457 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002511/0.5944, allocations: 237 kB / 381.7 MB, free: 2.242 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002177/0.5947, allocations: 45.55 kB / 381.7 MB, free: 2.207 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.0006615/0.5954, allocations: 226.8 kB / 382 MB, free: 2.035 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002541/0.5957, allocations: 71.16 kB / 382 MB, free: 1.965 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003055/0.596, allocations: 110.5 kB / 382.1 MB, free: 1.93 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.717e-05/0.596, allocations: 12 kB / 382.1 MB, free: 1.918 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.829e-06/0.596, allocations: 0 / 382.1 MB, free: 1.918 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.621e-05/0.5961, allocations: 3.984 kB / 382.1 MB, free: 1.914 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008997/0.6051, allocations: 2.64 MB / 384.8 MB, free: 15.17 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.099e-05/0.6051, allocations: 4 kB / 384.8 MB, free: 15.17 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001686/0.6068, allocations: 188 kB / 385 MB, free: 14.98 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002034/0.6089, allocations: 0.6465 MB / 385.6 MB, free: 14.33 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002569/0.6092, allocations: 35.95 kB / 385.7 MB, free: 14.29 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006085/0.6153, allocations: 3.136 MB / 388.8 MB, free: 10.97 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.727e-06/0.6154, allocations: 4.031 kB / 388.8 MB, free: 10.96 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007882/0.6232, allocations: 1.993 MB / 390.8 MB, free: 8.926 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008208/0.6241, allocations: 232.1 kB / 391 MB, free: 8.68 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002903/0.6244, allocations: 32 kB / 391 MB, free: 8.648 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002566/0.627, allocations: 251.8 kB / 391.3 MB, free: 8.402 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00179/0.6289, allocations: 428.1 kB / 391.7 MB, free: 7.984 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000238/0.6291, allocations: 47.95 kB / 391.8 MB, free: 7.938 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0005481/0.6297, allocations: 263.1 kB / 392 MB, free: 7.676 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.81e-07/0.6297, allocations: 4 kB / 392 MB, free: 7.672 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001527/0.6312, allocations: 248 kB / 392.3 MB, free: 7.43 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.0005425/0.6318, allocations: 172.5 kB / 392.4 MB, free: 7.254 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.004817/0.6367, allocations: 1.192 MB / 393.6 MB, free: 6.051 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.031e-05/0.6367, allocations: 4 kB / 393.6 MB, free: 6.047 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002813/0.6396, allocations: 0.7273 MB / 394.4 MB, free: 5.312 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001264/0.6409, allocations: 113.8 kB / 394.5 MB, free: 5.199 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007669/0.6486, allocations: 2.45 MB / 396.9 MB, free: 2.691 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007065/0.6493, allocations: 0.9478 MB / 397.9 MB, free: 1.719 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005281/0.6499, allocations: 59.42 kB / 397.9 MB, free: 1.66 MB / 314.7 MB Notification: Performance of SimCode: time 1.522e-06/0.6499, allocations: 0 / 397.9 MB, free: 1.66 MB / 314.7 MB Notification: Performance of Templates: time 0.03492/0.6848, allocations: 16.31 MB / 414.2 MB, free: 1.312 MB / 330.7 MB