Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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.986/1.986, allocations: 194.8 MB / 212.3 MB, free: 3.008 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003675/0.0003675, allocations: 8 kB / 264.5 MB, free: 13.63 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1006/0.101, allocations: 44.5 MB / 309 MB, free: 1.07 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4076/0.5086, allocations: 79.06 MB / 388 MB, free: 14.81 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002771/0.5089, allocations: 75.16 kB / 388.1 MB, free: 14.81 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06914/0.5781, allocations: 14.74 MB / 402.8 MB, free: 12.58 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.474e-06/0.5782, allocations: 0 / 402.8 MB, free: 12.58 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.66e-05/0.5782, allocations: 11.72 kB / 402.8 MB, free: 12.58 MB / 314.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.004191/0.5824, allocations: 1.13 MB / 404 MB, free: 11.84 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.29e-05/0.5825, allocations: 7.75 kB / 404 MB, free: 11.84 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003453/0.5828, allocations: 85.81 kB / 404.1 MB, free: 11.79 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007442/0.5836, allocations: 417.9 kB / 404.5 MB, free: 11.47 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.804e-05/0.5837, allocations: 58.62 kB / 404.5 MB, free: 11.46 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001899/0.5839, allocations: 66.75 kB / 404.6 MB, free: 11.46 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002626/0.5865, allocations: 0.8039 MB / 405.4 MB, free: 11.21 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.997e-05/0.5866, allocations: 7.844 kB / 405.4 MB, free: 11.21 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001297/0.5868, allocations: 24.47 kB / 405.4 MB, free: 11.21 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.958e-05/0.5868, allocations: 19.44 kB / 405.5 MB, free: 11.21 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003318/0.5901, allocations: 0.8509 MB / 406.3 MB, free: 11.04 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007269/0.5974, allocations: 2.445 MB / 408.7 MB, free: 9.746 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00214/0.5996, allocations: 0.7014 MB / 409.5 MB, free: 9.629 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001502/0.5998, allocations: 16.56 kB / 409.5 MB, free: 9.625 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002022/0.6019, allocations: 0.5623 MB / 410 MB, free: 9.43 MB / 314.7 MB Notification: Performance of pre-optimization done (n=89): time 5.871e-06/0.6019, allocations: 0 / 410 MB, free: 9.43 MB / 314.7 MB Notification: Performance of matching and sorting (n=109): time 0.02057/0.6225, allocations: 4.418 MB / 414.4 MB, free: 7.809 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.516e-05/0.6226, allocations: 67.84 kB / 414.5 MB, free: 7.738 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005534/0.6232, allocations: 368.4 kB / 414.9 MB, free: 7.574 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003178/0.6235, allocations: 50.64 kB / 414.9 MB, free: 7.543 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001802/0.6237, allocations: 309.9 kB / 415.2 MB, free: 7.309 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004277/0.6241, allocations: 366.4 kB / 415.6 MB, free: 7.051 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.778e-05/0.6243, allocations: 26.73 kB / 415.6 MB, free: 7.047 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 9.528e-05/0.6244, allocations: 357.1 kB / 416 MB, free: 6.715 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00176/0.6261, allocations: 422.4 kB / 416.4 MB, free: 6.656 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001866/0.6281, allocations: 0.5196 MB / 416.9 MB, free: 6.523 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001602/0.6297, allocations: 375.3 kB / 417.3 MB, free: 6.484 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.332e-06/0.6297, allocations: 0 / 417.3 MB, free: 6.484 MB / 314.7 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.005235/0.635, allocations: 1.291 MB / 418.5 MB, free: 6.203 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.943e-05/0.6351, allocations: 7.688 kB / 418.6 MB, free: 6.203 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.919e-05/0.6351, allocations: 0 / 418.6 MB, free: 6.203 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001724/0.6368, allocations: 0.5583 MB / 419.1 MB, free: 6.043 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001557/0.6385, allocations: 207.4 kB / 419.3 MB, free: 5.996 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005637/0.6441, allocations: 3.242 MB / 422.6 MB, free: 3.418 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002371/0.6465, allocations: 240.7 kB / 422.8 MB, free: 3.344 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001777/0.6468, allocations: 38.45 kB / 422.8 MB, free: 3.34 MB / 314.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): 110 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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.0006305/0.6474, allocations: 219.3 kB / 423 MB, free: 3.211 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002295/0.6476, allocations: 66.41 kB / 423.1 MB, free: 3.18 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005091/0.6527, allocations: 1.34 MB / 424.4 MB, free: 2.816 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.992e-05/0.6528, allocations: 11.38 kB / 424.5 MB, free: 2.816 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.32e-06/0.6528, allocations: 3.938 kB / 424.5 MB, free: 2.812 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.756e-05/0.6529, allocations: 3.984 kB / 424.5 MB, free: 2.809 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007597/0.6605, allocations: 2.503 MB / 427 MB, free: 1.742 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.019e-05/0.6605, allocations: 4.031 kB / 427 MB, free: 1.738 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001514/0.6621, allocations: 189.4 kB / 427.2 MB, free: 1.699 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001489/0.6636, allocations: 0.5264 MB / 427.7 MB, free: 1.539 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001528/0.6637, allocations: 39.08 kB / 427.7 MB, free: 1.527 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005051/0.6688, allocations: 3.073 MB / 430.8 MB, free: 15.04 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.819e-06/0.6689, allocations: 3.219 kB / 430.8 MB, free: 15.04 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006606/0.6755, allocations: 1.827 MB / 432.6 MB, free: 14.52 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006407/0.6762, allocations: 228.2 kB / 432.9 MB, free: 14.35 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002422/0.6764, allocations: 35.3 kB / 432.9 MB, free: 14.35 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002395/0.6788, allocations: 252.8 kB / 433.1 MB, free: 14.27 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001639/0.6805, allocations: 429.4 kB / 433.6 MB, free: 14.05 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002025/0.6808, allocations: 52.36 kB / 433.6 MB, free: 14.04 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.000436/0.6812, allocations: 250.3 kB / 433.8 MB, free: 13.92 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.6812, allocations: 3.938 kB / 433.9 MB, free: 13.91 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001189/0.6824, allocations: 251.8 kB / 434.1 MB, free: 13.91 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * 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 (90): * Single equations (assignments): 87 * 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.0004283/0.6829, allocations: 172.4 kB / 434.3 MB, free: 13.8 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.004209/0.6871, allocations: 1.233 MB / 435.5 MB, free: 13.44 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 7.224e-06/0.6872, allocations: 3.781 kB / 435.5 MB, free: 13.44 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00249/0.6897, allocations: 0.7312 MB / 436.2 MB, free: 13.22 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001096/0.6908, allocations: 100.6 kB / 436.3 MB, free: 13.2 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00699/0.6978, allocations: 2.46 MB / 438.8 MB, free: 11.6 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005949/0.6984, allocations: 0.9494 MB / 439.7 MB, free: 10.78 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004564/0.6989, allocations: 61.19 kB / 439.8 MB, free: 10.76 MB / 330.7 MB Notification: Performance of SimCode: time 1.132e-06/0.6989, allocations: 0 / 439.8 MB, free: 10.76 MB / 330.7 MB Notification: Performance of Templates: time 0.0346/0.7335, allocations: 16.68 MB / 456.5 MB, free: 10.04 MB / 346.7 MB