Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_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_Modelica.Mechanics.Translational.Examples.HeatLosses") Notification: Performance of loadModel(Modelica): time 2.399/2.399, allocations: 194.8 MB / 211.7 MB, free: 2.887 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003508/0.0003511, allocations: 11.98 kB / 264.5 MB, free: 12.91 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.102/0.1023, allocations: 44.5 MB / 309 MB, free: 352 kB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4615/0.5639, allocations: 79.05 MB / 388.1 MB, free: 15.52 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003497/0.5643, allocations: 78.8 kB / 388.2 MB, free: 15.52 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1086/0.6729, allocations: 14.75 MB / 402.9 MB, free: 12.99 MB / 314.7 MB Notification: Performance of FrontEnd: time 3.316e-06/0.673, allocations: 0 / 402.9 MB, free: 12.99 MB / 314.7 MB Notification: Performance of Transformations before backend: time 5.586e-05/0.6731, allocations: 11.75 kB / 402.9 MB, free: 12.99 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.007459/0.6806, allocations: 1.134 MB / 404.1 MB, free: 12.24 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.596e-05/0.6806, allocations: 11.62 kB / 404.1 MB, free: 12.24 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005227/0.6812, allocations: 89.25 kB / 404.2 MB, free: 12.2 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009289/0.6821, allocations: 413.2 kB / 404.6 MB, free: 11.88 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.667e-05/0.6822, allocations: 54.53 kB / 404.6 MB, free: 11.88 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001953/0.6824, allocations: 70.98 kB / 404.7 MB, free: 11.87 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002626/0.6851, allocations: 0.7895 MB / 405.5 MB, free: 11.63 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5e-05/0.6852, allocations: 11.73 kB / 405.5 MB, free: 11.62 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001277/0.6853, allocations: 25.31 kB / 405.5 MB, free: 11.62 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.419e-05/0.6853, allocations: 15.5 kB / 405.5 MB, free: 11.62 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003231/0.6886, allocations: 0.8595 MB / 406.4 MB, free: 11.45 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00705/0.6957, allocations: 2.435 MB / 408.8 MB, free: 10.16 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002153/0.6979, allocations: 0.6999 MB / 409.5 MB, free: 10.04 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001697/0.6981, allocations: 20.27 kB / 409.5 MB, free: 10.04 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002214/0.7003, allocations: 0.5551 MB / 410.1 MB, free: 9.844 MB / 314.7 MB Notification: Performance of pre-optimization done (n=89): time 6.603e-06/0.7004, allocations: 0 / 410.1 MB, free: 9.844 MB / 314.7 MB Notification: Performance of matching and sorting (n=109): time 0.02016/0.7206, allocations: 4.417 MB / 414.5 MB, free: 8.223 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.289e-05/0.7207, allocations: 68.02 kB / 414.6 MB, free: 8.152 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005257/0.7212, allocations: 363 kB / 414.9 MB, free: 7.996 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000286/0.7215, allocations: 58 kB / 415 MB, free: 7.961 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001884/0.7217, allocations: 264.1 kB / 415.3 MB, free: 7.785 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000405/0.7221, allocations: 372.2 kB / 415.6 MB, free: 7.52 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.637e-05/0.7222, allocations: 20.69 kB / 415.6 MB, free: 7.52 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001241/0.7224, allocations: 379.4 kB / 416 MB, free: 7.184 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001702/0.7241, allocations: 426.3 kB / 416.4 MB, free: 7.121 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001758/0.7259, allocations: 0.5161 MB / 416.9 MB, free: 6.984 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001549/0.7275, allocations: 369.9 kB / 417.3 MB, free: 6.949 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.293e-06/0.7275, allocations: 3.875 kB / 417.3 MB, free: 6.949 MB / 314.7 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.005156/0.7327, allocations: 1.313 MB / 418.6 MB, free: 6.656 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.225e-05/0.7328, allocations: 7.812 kB / 418.6 MB, free: 6.656 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.542e-05/0.7328, allocations: 11.86 kB / 418.6 MB, free: 6.648 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00167/0.7345, allocations: 0.5509 MB / 419.2 MB, free: 6.488 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001596/0.7362, allocations: 208.4 kB / 419.4 MB, free: 6.445 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005815/0.742, allocations: 3.246 MB / 422.6 MB, free: 3.863 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002384/0.7445, allocations: 236.4 kB / 422.9 MB, free: 3.793 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002057/0.7447, allocations: 37.33 kB / 422.9 MB, free: 3.789 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.0005906/0.7453, allocations: 218.8 kB / 423.1 MB, free: 3.664 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002181/0.7455, allocations: 69.03 kB / 423.2 MB, free: 3.633 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004874/0.7504, allocations: 1.339 MB / 424.5 MB, free: 3.266 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.635e-05/0.7505, allocations: 7.75 kB / 424.5 MB, free: 3.266 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.482e-06/0.7505, allocations: 4 kB / 424.5 MB, free: 3.262 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.326e-05/0.7505, allocations: 11.67 kB / 424.5 MB, free: 3.254 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007756/0.7583, allocations: 2.497 MB / 427 MB, free: 2.191 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.672e-05/0.7584, allocations: 0 / 427 MB, free: 2.191 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001649/0.7601, allocations: 191.1 kB / 427.2 MB, free: 2.152 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001617/0.7617, allocations: 0.5244 MB / 427.8 MB, free: 1.992 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002879/0.7621, allocations: 36.48 kB / 427.8 MB, free: 1.98 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005257/0.7673, allocations: 3.078 MB / 430.9 MB, free: 15.49 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.328e-05/0.7674, allocations: 7.812 kB / 430.9 MB, free: 15.49 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007237/0.7746, allocations: 1.82 MB / 432.7 MB, free: 14.97 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008311/0.7755, allocations: 232.5 kB / 432.9 MB, free: 14.8 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002666/0.7758, allocations: 34.14 kB / 433 MB, free: 14.8 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002494/0.7783, allocations: 254.3 kB / 433.2 MB, free: 14.72 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00183/0.7802, allocations: 432.9 kB / 433.6 MB, free: 14.5 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003159/0.7806, allocations: 46.89 kB / 433.7 MB, free: 14.49 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0004836/0.7811, allocations: 254.8 kB / 433.9 MB, free: 14.37 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.51e-07/0.7811, allocations: 3.938 kB / 433.9 MB, free: 14.36 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001371/0.7825, allocations: 252 kB / 434.2 MB, free: 14.36 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.0005327/0.783, allocations: 168.7 kB / 434.3 MB, free: 14.25 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.004979/0.788, allocations: 1.228 MB / 435.6 MB, free: 13.89 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.056e-05/0.7881, allocations: 3.875 kB / 435.6 MB, free: 13.89 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004671/0.7928, allocations: 0.7902 MB / 436.4 MB, free: 13.64 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001747/0.7946, allocations: 109 kB / 436.5 MB, free: 13.58 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01022/0.8049, allocations: 2.416 MB / 438.9 MB, free: 11.34 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009237/0.8058, allocations: 0.9478 MB / 439.8 MB, free: 10.36 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0008988/0.8068, allocations: 81.3 kB / 439.9 MB, free: 10.27 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004938/0.8073, allocations: 51.42 kB / 440 MB, free: 10.22 MB / 330.7 MB Notification: Performance of SimCode: time 1.473e-06/0.8073, allocations: 0 / 440 MB, free: 10.22 MB / 330.7 MB Notification: Performance of Templates: time 0.04142/0.8487, allocations: 14.94 MB / 454.9 MB, free: 11.31 MB / 346.7 MB