Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_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_Modelica.Mechanics.Translational.Examples.HeatLosses") Notification: Performance of loadModel(Modelica): time 1.937/1.937, allocations: 171.1 MB / 186.7 MB, free: 1.129 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004905/0.0004907, allocations: 8 kB / 233.8 MB, free: 2.402 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08832/0.08885, allocations: 38.77 MB / 272.6 MB, free: 11.55 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3657/0.4546, allocations: 73.74 MB / 346.4 MB, free: 15.67 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003994/0.4551, allocations: 74.39 kB / 346.4 MB, free: 15.63 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09281/0.5479, allocations: 14.69 MB / 361.1 MB, free: 2.918 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.973e-06/0.548, allocations: 0 / 361.1 MB, free: 2.918 MB / 282.7 MB Notification: Performance of Transformations before backend: time 3.72e-05/0.548, allocations: 12 kB / 361.1 MB, free: 2.906 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.004292/0.5523, allocations: 1.138 MB / 362.3 MB, free: 1.762 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.486e-05/0.5524, allocations: 16.03 kB / 362.3 MB, free: 1.746 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003389/0.5528, allocations: 87.02 kB / 362.4 MB, free: 1.66 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008555/0.5536, allocations: 426.4 kB / 362.8 MB, free: 1.258 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.641e-05/0.5537, allocations: 50.25 kB / 362.8 MB, free: 1.23 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002025/0.5539, allocations: 66.88 kB / 362.9 MB, free: 1.188 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002778/0.5567, allocations: 0.8154 MB / 363.7 MB, free: 0.6055 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.411e-05/0.5568, allocations: 7.906 kB / 363.7 MB, free: 0.5977 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001353/0.557, allocations: 31.48 kB / 363.8 MB, free: 0.5898 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.365e-05/0.557, allocations: 16 kB / 363.8 MB, free: 0.5742 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003689/0.5607, allocations: 0.899 MB / 364.7 MB, free: 15.91 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007578/0.5683, allocations: 2.437 MB / 367.1 MB, free: 13.87 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002519/0.5709, allocations: 0.7367 MB / 367.8 MB, free: 13.36 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001317/0.5711, allocations: 12.98 kB / 367.9 MB, free: 13.35 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001961/0.5731, allocations: 0.5585 MB / 368.4 MB, free: 12.93 MB / 298.7 MB Notification: Performance of pre-optimization done (n=86): time 3.947e-06/0.5731, allocations: 4 kB / 368.4 MB, free: 12.93 MB / 298.7 MB Notification: Performance of matching and sorting (n=106): time 0.02009/0.5932, allocations: 4.564 MB / 373 MB, free: 9.105 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.156e-05/0.5933, allocations: 60.41 kB / 373 MB, free: 9.035 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007083/0.594, allocations: 396.5 kB / 373.4 MB, free: 8.715 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002378/0.5943, allocations: 52.77 kB / 373.5 MB, free: 8.676 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002721/0.5946, allocations: 273.9 kB / 373.7 MB, free: 8.461 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004652/0.595, allocations: 361 kB / 374.1 MB, free: 8.156 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001042/0.5951, allocations: 24.42 kB / 374.1 MB, free: 8.148 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0002084/0.5954, allocations: 370.3 kB / 374.5 MB, free: 7.805 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002071/0.5975, allocations: 452.7 kB / 374.9 MB, free: 7.512 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002845/0.6004, allocations: 0.5316 MB / 375.5 MB, free: 7.121 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002409/0.6028, allocations: 395.6 kB / 375.8 MB, free: 6.871 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.268e-06/0.6029, allocations: 0 / 375.8 MB, free: 6.871 MB / 298.7 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.008468/0.6114, allocations: 1.487 MB / 377.3 MB, free: 5.738 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.906e-05/0.6115, allocations: 11.94 kB / 377.3 MB, free: 5.727 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.592e-05/0.6115, allocations: 0 / 377.3 MB, free: 5.727 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002975/0.6145, allocations: 0.6835 MB / 378 MB, free: 5.18 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002348/0.6169, allocations: 201.4 kB / 378.2 MB, free: 4.988 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009165/0.6261, allocations: 3.3 MB / 381.5 MB, free: 1.859 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003429/0.6296, allocations: 236.6 kB / 381.8 MB, free: 1.645 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003863/0.63, allocations: 41.98 kB / 381.8 MB, free: 1.613 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.0008585/0.6309, allocations: 226 kB / 382 MB, free: 1.445 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003577/0.6313, allocations: 71.16 kB / 382.1 MB, free: 1.375 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004449/0.6318, allocations: 109.5 kB / 382.2 MB, free: 1.312 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.217e-05/0.6318, allocations: 12 kB / 382.2 MB, free: 1.301 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.086e-05/0.6318, allocations: 0 / 382.2 MB, free: 1.301 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.959e-05/0.6319, allocations: 3.984 kB / 382.2 MB, free: 1.297 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01295/0.6448, allocations: 2.644 MB / 384.8 MB, free: 14.55 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.146e-05/0.6449, allocations: 4.219 kB / 384.9 MB, free: 14.54 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002295/0.6472, allocations: 187.7 kB / 385 MB, free: 14.36 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002787/0.6501, allocations: 0.6542 MB / 385.7 MB, free: 13.7 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003283/0.6505, allocations: 31.97 kB / 385.7 MB, free: 13.66 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008597/0.6591, allocations: 3.139 MB / 388.9 MB, free: 10.34 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.306e-05/0.6591, allocations: 7.938 kB / 388.9 MB, free: 10.33 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01199/0.6711, allocations: 1.981 MB / 390.8 MB, free: 8.301 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001247/0.6725, allocations: 232.1 kB / 391.1 MB, free: 8.055 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004366/0.673, allocations: 32 kB / 391.1 MB, free: 8.023 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003571/0.6766, allocations: 251.8 kB / 391.4 MB, free: 7.777 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002517/0.6791, allocations: 436 kB / 391.8 MB, free: 7.352 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002168/0.6794, allocations: 43.95 kB / 391.8 MB, free: 7.309 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0006504/0.68, allocations: 263.2 kB / 392.1 MB, free: 7.047 MB / 314.7 MB Notification: Performance of sort global known variables: time 5.21e-07/0.6801, allocations: 0 / 392.1 MB, free: 7.047 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.002001/0.6821, allocations: 252 kB / 392.3 MB, free: 6.801 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.0005797/0.6827, allocations: 172.6 kB / 392.5 MB, free: 6.625 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.005849/0.6886, allocations: 1.192 MB / 393.7 MB, free: 5.422 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 6.943e-06/0.6886, allocations: 0 / 393.7 MB, free: 5.422 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003049/0.6917, allocations: 0.7782 MB / 394.5 MB, free: 4.637 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001099/0.6928, allocations: 115.4 kB / 394.6 MB, free: 4.523 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007299/0.7001, allocations: 2.417 MB / 397 MB, free: 2.055 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007436/0.7009, allocations: 0.9439 MB / 397.9 MB, free: 1.086 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0007187/0.7017, allocations: 81.36 kB / 398 MB, free: 1.004 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003323/0.702, allocations: 59.41 kB / 398.1 MB, free: 0.9453 MB / 314.7 MB Notification: Performance of SimCode: time 1.573e-06/0.702, allocations: 0 / 398.1 MB, free: 0.9453 MB / 314.7 MB Notification: Performance of Templates: time 0.0393/0.7413, allocations: 14.62 MB / 412.7 MB, free: 2.336 MB / 330.7 MB