Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.788/1.788, allocations: 194.9 MB / 211.7 MB, free: 2.977 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003626/0.0003628, allocations: 8 kB / 263.9 MB, free: 13.56 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07828/0.07867, allocations: 44.52 MB / 308.5 MB, free: 0.9766 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3278/0.4065, allocations: 79.06 MB / 387.5 MB, free: 18.78 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002016/0.4068, allocations: 68.52 kB / 387.6 MB, free: 18.78 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05812/0.4649, allocations: 14.73 MB / 402.3 MB, free: 17.07 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.555e-06/0.465, allocations: 0 / 402.3 MB, free: 17.07 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.732e-05/0.465, allocations: 14.12 kB / 402.3 MB, free: 17.07 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.002678/0.4677, allocations: 1.129 MB / 403.5 MB, free: 16.32 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.872e-05/0.4678, allocations: 7.812 kB / 403.5 MB, free: 16.32 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002872/0.4681, allocations: 89.41 kB / 403.5 MB, free: 16.28 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006643/0.4687, allocations: 419.8 kB / 404 MB, free: 15.95 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.26e-05/0.4688, allocations: 50.94 kB / 404 MB, free: 15.95 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001571/0.469, allocations: 66.62 kB / 404.1 MB, free: 15.95 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002135/0.4711, allocations: 0.7987 MB / 404.9 MB, free: 15.7 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.255e-05/0.4712, allocations: 7.781 kB / 404.9 MB, free: 15.7 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001139/0.4713, allocations: 25.22 kB / 404.9 MB, free: 15.7 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.934e-05/0.4714, allocations: 27.23 kB / 404.9 MB, free: 15.69 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002448/0.4738, allocations: 0.852 MB / 405.8 MB, free: 15.52 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005505/0.4793, allocations: 2.445 MB / 408.2 MB, free: 14.23 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00181/0.4812, allocations: 0.7004 MB / 408.9 MB, free: 14.11 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001018/0.4813, allocations: 8.656 kB / 408.9 MB, free: 14.11 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0014/0.4827, allocations: 0.5611 MB / 409.5 MB, free: 13.91 MB / 314.7 MB Notification: Performance of pre-optimization done (n=89): time 4.774e-06/0.4828, allocations: 0 / 409.5 MB, free: 13.91 MB / 314.7 MB Notification: Performance of matching and sorting (n=109): time 0.0146/0.4974, allocations: 4.422 MB / 413.9 MB, free: 12.29 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.224e-05/0.4974, allocations: 64.03 kB / 414 MB, free: 12.22 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004206/0.4979, allocations: 324.9 kB / 414.3 MB, free: 12.07 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001404/0.498, allocations: 58.56 kB / 414.4 MB, free: 12.03 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001464/0.4982, allocations: 301 kB / 414.6 MB, free: 11.8 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002884/0.4985, allocations: 373.3 kB / 415 MB, free: 11.54 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.256e-05/0.4986, allocations: 22.06 kB / 415 MB, free: 11.54 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 8.554e-05/0.4987, allocations: 353.2 kB / 415.4 MB, free: 11.21 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001332/0.5, allocations: 426.6 kB / 415.8 MB, free: 11.15 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001403/0.5015, allocations: 0.5169 MB / 416.3 MB, free: 11.02 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001174/0.5027, allocations: 372.7 kB / 416.7 MB, free: 10.97 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.886e-06/0.5027, allocations: 0 / 416.7 MB, free: 10.97 MB / 314.7 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.00413/0.5068, allocations: 1.295 MB / 418 MB, free: 10.69 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.345e-05/0.5069, allocations: 3.75 kB / 418 MB, free: 10.69 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.313e-05/0.5069, allocations: 3.844 kB / 418 MB, free: 10.69 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001351/0.5083, allocations: 0.5562 MB / 418.5 MB, free: 10.53 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001064/0.5094, allocations: 202.2 kB / 418.7 MB, free: 10.49 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00454/0.5139, allocations: 3.247 MB / 422 MB, free: 7.91 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001638/0.5156, allocations: 233.6 kB / 422.2 MB, free: 7.84 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001324/0.5158, allocations: 38.58 kB / 422.2 MB, free: 7.836 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.0005225/0.5163, allocations: 224.4 kB / 422.5 MB, free: 7.707 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001584/0.5165, allocations: 66.53 kB / 422.5 MB, free: 7.676 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00375/0.5202, allocations: 1.343 MB / 423.9 MB, free: 7.305 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.194e-05/0.5203, allocations: 11.03 kB / 423.9 MB, free: 7.305 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.407e-06/0.5203, allocations: 3.984 kB / 423.9 MB, free: 7.301 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.605e-05/0.5203, allocations: 11.91 kB / 423.9 MB, free: 7.289 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006059/0.5264, allocations: 2.486 MB / 426.4 MB, free: 6.242 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.58e-06/0.5264, allocations: 3.938 kB / 426.4 MB, free: 6.238 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00111/0.5275, allocations: 184.6 kB / 426.6 MB, free: 6.199 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001267/0.5288, allocations: 0.5315 MB / 427.1 MB, free: 6.035 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001209/0.529, allocations: 38.61 kB / 427.1 MB, free: 6.023 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003727/0.5327, allocations: 3.073 MB / 430.2 MB, free: 3.543 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.88e-06/0.5327, allocations: 4.062 kB / 430.2 MB, free: 3.539 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005306/0.5381, allocations: 1.924 MB / 432.1 MB, free: 2.879 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005418/0.5387, allocations: 228.3 kB / 432.4 MB, free: 2.715 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002004/0.5389, allocations: 29.12 kB / 432.4 MB, free: 2.715 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00158/0.5405, allocations: 247.9 kB / 432.6 MB, free: 2.641 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001118/0.5416, allocations: 433.2 kB / 433.1 MB, free: 2.418 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001237/0.5417, allocations: 50.14 kB / 433.1 MB, free: 2.402 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0003353/0.5421, allocations: 257.6 kB / 433.4 MB, free: 2.281 MB / 314.7 MB Notification: Performance of sort global known variables: time 7.78e-07/0.5421, allocations: 3.938 kB / 433.4 MB, free: 2.277 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001051/0.5432, allocations: 246.2 kB / 433.6 MB, free: 2.273 MB / 314.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.0003316/0.5435, allocations: 181.1 kB / 433.8 MB, free: 2.156 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.003129/0.5467, allocations: 1.225 MB / 435 MB, free: 17.81 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.918e-06/0.5467, allocations: 4.062 kB / 435 MB, free: 17.81 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001907/0.5486, allocations: 0.7439 MB / 435.8 MB, free: 17.58 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008471/0.5495, allocations: 96.86 kB / 435.8 MB, free: 17.55 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004756/0.5542, allocations: 2.453 MB / 438.3 MB, free: 15.99 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006641/0.5549, allocations: 0.9444 MB / 439.2 MB, free: 15.18 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003401/0.5553, allocations: 68.03 kB / 439.3 MB, free: 15.16 MB / 330.7 MB Notification: Performance of SimCode: time 1.604e-06/0.5553, allocations: 0 / 439.3 MB, free: 15.16 MB / 330.7 MB Notification: Performance of Templates: time 0.02751/0.5828, allocations: 16.68 MB / 456 MB, free: 14.81 MB / 346.7 MB