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.574/1.574, allocations: 171.2 MB / 184.3 MB, free: 11.95 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.465e-05/2.491e-05, allocations: 0 / 228.8 MB, free: 15.33 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2075/0.2075, allocations: 38.77 MB / 267.6 MB, free: 9.43 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1103/0.3179, allocations: 73.66 MB / 341.2 MB, free: 15.66 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002554/0.3182, allocations: 67.97 kB / 341.3 MB, free: 15.59 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06515/0.3833, allocations: 14.66 MB / 356 MB, free: 0.8398 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.164e-06/0.3834, allocations: 0 / 356 MB, free: 0.8398 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.06e-05/0.3834, allocations: 16 kB / 356 MB, free: 0.8242 MB / 298.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.1826/0.566, allocations: 1.075 MB / 357.1 MB, free: 74.55 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.867e-05/0.5661, allocations: 9.812 kB / 357.1 MB, free: 74.55 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004906/0.5666, allocations: 90.83 kB / 357.2 MB, free: 74.5 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000907/0.5675, allocations: 410.8 kB / 357.6 MB, free: 74.29 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001016/0.5677, allocations: 54.56 kB / 357.6 MB, free: 74.29 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002318/0.5679, allocations: 76.5 kB / 357.7 MB, free: 74.29 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002172/0.5701, allocations: 0.7422 MB / 358.4 MB, free: 74.23 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.5e-05/0.5702, allocations: 3.375 kB / 358.4 MB, free: 74.23 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001205/0.5703, allocations: 27.53 kB / 358.5 MB, free: 74.23 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.083e-05/0.5704, allocations: 16.19 kB / 358.5 MB, free: 74.23 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001975/0.5723, allocations: 0.7574 MB / 359.2 MB, free: 74.22 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00607/0.5784, allocations: 2.439 MB / 361.7 MB, free: 73.49 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001441/0.5799, allocations: 0.6426 MB / 362.3 MB, free: 73.46 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008461/0.5808, allocations: 418.9 kB / 362.7 MB, free: 73.45 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.094e-05/0.5809, allocations: 13.28 kB / 362.7 MB, free: 73.45 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001078/0.582, allocations: 0.4935 MB / 363.2 MB, free: 73.29 MB / 298.7 MB Notification: Performance of pre-optimization done (n=86): time 4.748e-06/0.582, allocations: 0 / 363.2 MB, free: 73.29 MB / 298.7 MB Notification: Performance of matching and sorting (n=106): time 0.008868/0.5909, allocations: 3.1 MB / 366.3 MB, free: 71.94 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.324e-05/0.591, allocations: 63.5 kB / 366.4 MB, free: 71.88 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000474/0.5915, allocations: 332.7 kB / 366.7 MB, free: 71.71 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001408/0.5916, allocations: 57.2 kB / 366.8 MB, free: 71.66 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001487/0.5918, allocations: 313.3 kB / 367.1 MB, free: 71.39 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002816/0.5921, allocations: 353 kB / 367.4 MB, free: 71.12 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.562e-05/0.5922, allocations: 27.03 kB / 367.5 MB, free: 71.11 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.379e-05/0.5923, allocations: 356.9 kB / 367.8 MB, free: 70.77 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000858/0.5932, allocations: 375.5 kB / 368.2 MB, free: 70.62 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009205/0.5941, allocations: 475.2 kB / 368.6 MB, free: 70.41 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007816/0.5949, allocations: 329.3 kB / 369 MB, free: 70.29 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.314e-06/0.5949, allocations: 3.969 kB / 369 MB, free: 70.29 MB / 298.7 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.003538/0.5985, allocations: 1.318 MB / 370.3 MB, free: 69.82 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.454e-05/0.5985, allocations: 10.25 kB / 370.3 MB, free: 69.82 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.065e-05/0.5986, allocations: 0 / 370.3 MB, free: 69.82 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001423/0.6, allocations: 0.6602 MB / 371 MB, free: 69.65 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00116/0.6012, allocations: 206.5 kB / 371.2 MB, free: 69.63 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004455/0.6057, allocations: 3.294 MB / 374.4 MB, free: 66.89 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002343/0.608, allocations: 238.6 kB / 374.7 MB, free: 66.75 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002775/0.6084, allocations: 39.98 kB / 374.7 MB, free: 66.71 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 () * 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.0004592/0.6089, allocations: 171.8 kB / 374.9 MB, free: 66.54 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003199/0.6092, allocations: 75.36 kB / 375 MB, free: 66.47 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002395/0.6095, allocations: 104 kB / 375.1 MB, free: 66.37 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.168e-05/0.6095, allocations: 14.78 kB / 375.1 MB, free: 66.36 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.147e-06/0.6095, allocations: 1.125 kB / 375.1 MB, free: 66.36 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.285e-05/0.6095, allocations: 6.75 kB / 375.1 MB, free: 66.36 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005501/0.615, allocations: 2.51 MB / 377.6 MB, free: 64.18 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.061e-05/0.6151, allocations: 4 kB / 377.6 MB, free: 64.18 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001056/0.6162, allocations: 191.8 kB / 377.8 MB, free: 64.02 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001328/0.6175, allocations: 0.6281 MB / 378.4 MB, free: 63.5 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001341/0.6177, allocations: 34.12 kB / 378.4 MB, free: 63.48 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003746/0.6214, allocations: 3.115 MB / 381.6 MB, free: 60.34 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.065e-06/0.6215, allocations: 6.141 kB / 381.6 MB, free: 60.34 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003972/0.6255, allocations: 1.855 MB / 383.4 MB, free: 58.53 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005299/0.626, allocations: 234.9 kB / 383.7 MB, free: 58.32 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002063/0.6263, allocations: 32 kB / 383.7 MB, free: 58.29 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001503/0.6278, allocations: 255 kB / 383.9 MB, free: 58.11 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001393/0.6292, allocations: 428.2 kB / 384.4 MB, free: 57.9 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000163/0.6294, allocations: 57.2 kB / 384.4 MB, free: 57.86 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0003731/0.6298, allocations: 257.9 kB / 384.7 MB, free: 57.62 MB / 298.7 MB Notification: Performance of sort global known variables: time 7.85e-07/0.6298, allocations: 0 / 384.7 MB, free: 57.62 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.001112/0.6309, allocations: 246.6 kB / 384.9 MB, free: 57.38 MB / 298.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.0003283/0.6313, allocations: 175 kB / 385.1 MB, free: 57.21 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.002302/0.6336, allocations: 1.059 MB / 386.1 MB, free: 56.19 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 5.822e-06/0.6336, allocations: 320 / 386.1 MB, free: 56.19 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001463/0.6351, allocations: 0.6679 MB / 386.8 MB, free: 55.53 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000868/0.636, allocations: 97.08 kB / 386.9 MB, free: 55.46 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004714/0.6407, allocations: 1.805 MB / 388.7 MB, free: 53.81 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004412/0.6412, allocations: 0.9509 MB / 389.7 MB, free: 52.93 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003473/0.6416, allocations: 69.09 kB / 389.7 MB, free: 52.87 MB / 298.7 MB Notification: Performance of SimCode: time 1.754e-06/0.6416, allocations: 0 / 389.7 MB, free: 52.87 MB / 298.7 MB Notification: Performance of Templates: time 0.021/0.6626, allocations: 16.31 MB / 406 MB, free: 37.04 MB / 298.7 MB