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.544/1.544, allocations: 171.2 MB / 186.7 MB, free: 1.039 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003504/0.0003506, allocations: 8 kB / 233.2 MB, free: 3.059 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06824/0.06861, allocations: 38.78 MB / 271.9 MB, free: 12.2 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.HeatLosses): time 0.005041/0.0737, allocations: 3.444 MB / 275.4 MB, free: 8.719 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.002978/0.07672, allocations: 1.314 MB / 276.7 MB, free: 7.402 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003648/0.07712, allocations: 15.88 kB / 276.7 MB, free: 7.387 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002193/0.07736, allocations: 79.38 kB / 276.8 MB, free: 7.309 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005763/0.07795, allocations: 247.3 kB / 277 MB, free: 7.066 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001122/0.07908, allocations: 327.4 kB / 277.3 MB, free: 6.746 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.001021/0.08012, allocations: 0.6922 MB / 278 MB, free: 6.055 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004062/0.08054, allocations: 199.1 kB / 278.2 MB, free: 5.844 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006378/0.0812, allocations: 410.6 kB / 278.6 MB, free: 5.441 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006363/0.08185, allocations: 446.4 kB / 279.1 MB, free: 5.004 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001347/0.082, allocations: 48 kB / 279.1 MB, free: 4.957 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000395/0.08241, allocations: 143.8 kB / 279.3 MB, free: 4.816 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002184/0.08264, allocations: 167.4 kB / 279.4 MB, free: 4.652 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002062/0.08286, allocations: 157.3 kB / 279.6 MB, free: 4.492 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001034/0.08391, allocations: 0.7443 MB / 280.3 MB, free: 3.746 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.712e-06/0.08393, allocations: 0 / 280.3 MB, free: 3.746 MB / 234.7 MB Notification: Performance of FrontEnd: time 5.734e-06/0.08395, allocations: 0 / 280.3 MB, free: 3.746 MB / 234.7 MB Notification: Performance of Transformations before backend: time 1.642e-05/0.08397, allocations: 3.938 kB / 280.3 MB, free: 3.742 MB / 234.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.003406/0.08739, allocations: 1.23 MB / 281.5 MB, free: 2.465 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.964e-05/0.08744, allocations: 8.031 kB / 281.6 MB, free: 2.457 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002916/0.08775, allocations: 86.97 kB / 281.6 MB, free: 2.371 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007858/0.08855, allocations: 428.6 kB / 282.1 MB, free: 1.91 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.361e-05/0.08865, allocations: 58 kB / 282.1 MB, free: 1.852 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001747/0.08883, allocations: 67.91 kB / 282.2 MB, free: 1.785 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002267/0.09111, allocations: 0.8037 MB / 283 MB, free: 0.9727 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.267e-05/0.09118, allocations: 7.984 kB / 283 MB, free: 0.9648 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001113/0.09131, allocations: 24 kB / 283 MB, free: 0.9414 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.09e-05/0.09134, allocations: 16 kB / 283 MB, free: 0.9258 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002708/0.09406, allocations: 0.8783 MB / 283.9 MB, free: 52 kB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00586/0.09995, allocations: 2.435 MB / 286.3 MB, free: 13.49 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002013/0.102, allocations: 0.7264 MB / 287.1 MB, free: 12.75 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.814e-05/0.1021, allocations: 16.98 kB / 287.1 MB, free: 12.74 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001608/0.1037, allocations: 0.5517 MB / 287.6 MB, free: 12.18 MB / 250.7 MB Notification: Performance of pre-optimization done (n=86): time 4.821e-06/0.1038, allocations: 0 / 287.6 MB, free: 12.18 MB / 250.7 MB Notification: Performance of matching and sorting (n=106): time 0.01479/0.1186, allocations: 4.575 MB / 292.2 MB, free: 7.469 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.85e-05/0.1187, allocations: 68.34 kB / 292.3 MB, free: 7.391 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000618/0.1193, allocations: 393.9 kB / 292.7 MB, free: 7 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001538/0.1195, allocations: 57.69 kB / 292.7 MB, free: 6.938 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002567/0.1197, allocations: 315.4 kB / 293 MB, free: 6.625 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004055/0.1202, allocations: 355 kB / 293.4 MB, free: 6.273 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.449e-05/0.1203, allocations: 23.94 kB / 293.4 MB, free: 6.25 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.000197/0.1205, allocations: 354.8 kB / 293.7 MB, free: 5.895 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001348/0.1218, allocations: 438.4 kB / 294.2 MB, free: 5.465 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001473/0.1233, allocations: 0.5345 MB / 294.7 MB, free: 4.91 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001193/0.1245, allocations: 382.4 kB / 295.1 MB, free: 4.543 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.626e-06/0.1246, allocations: 4 kB / 295.1 MB, free: 4.539 MB / 250.7 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.004514/0.1291, allocations: 1.483 MB / 296.6 MB, free: 3.039 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.956e-05/0.1291, allocations: 15.22 kB / 296.6 MB, free: 3.027 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.32e-05/0.1292, allocations: 3.984 kB / 296.6 MB, free: 3.023 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001435/0.1306, allocations: 0.5334 MB / 297.1 MB, free: 2.48 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001105/0.1317, allocations: 215.7 kB / 297.3 MB, free: 2.27 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1792/0.311, allocations: 3.268 MB / 300.6 MB, free: 29.18 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001461/0.3125, allocations: 240.7 kB / 300.8 MB, free: 29.18 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001104/0.3126, allocations: 37.52 kB / 300.9 MB, free: 29.18 MB / 250.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.0004786/0.3131, allocations: 222.2 kB / 301.1 MB, free: 29.07 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001641/0.3133, allocations: 72.86 kB / 301.2 MB, free: 29.07 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002341/0.3136, allocations: 107.6 kB / 301.3 MB, free: 29.05 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.395e-05/0.3136, allocations: 9.625 kB / 301.3 MB, free: 29.05 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.685e-06/0.3136, allocations: 1.375 kB / 301.3 MB, free: 29.05 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.755e-05/0.3136, allocations: 7.969 kB / 301.3 MB, free: 29.05 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006712/0.3204, allocations: 2.675 MB / 304 MB, free: 28.25 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.305e-05/0.3204, allocations: 1.5 kB / 304 MB, free: 28.25 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00112/0.3215, allocations: 184.2 kB / 304.1 MB, free: 28.23 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001301/0.3229, allocations: 0.505 MB / 304.6 MB, free: 28.07 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000135/0.323, allocations: 35.41 kB / 304.7 MB, free: 28.05 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004128/0.3272, allocations: 3.121 MB / 307.8 MB, free: 25.44 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.919e-06/0.3272, allocations: 8.594 kB / 307.8 MB, free: 25.44 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005486/0.3327, allocations: 2.004 MB / 309.8 MB, free: 24.61 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005043/0.3332, allocations: 231.9 kB / 310 MB, free: 24.47 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000179/0.3334, allocations: 32.33 kB / 310.1 MB, free: 24.45 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001577/0.335, allocations: 272 kB / 310.3 MB, free: 24.42 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001267/0.3363, allocations: 430.8 kB / 310.8 MB, free: 24.36 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001153/0.3365, allocations: 45.95 kB / 310.8 MB, free: 24.35 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0003835/0.3369, allocations: 266.2 kB / 311.1 MB, free: 24.21 MB / 250.7 MB Notification: Performance of sort global known variables: time 8.56e-07/0.3369, allocations: 3.453 kB / 311.1 MB, free: 24.21 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.001043/0.3379, allocations: 240.4 kB / 311.3 MB, free: 24.18 MB / 250.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.0003251/0.3383, allocations: 161.8 kB / 311.5 MB, free: 24.06 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.003187/0.3415, allocations: 1.197 MB / 312.7 MB, free: 23.59 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 5.27e-06/0.3415, allocations: 1.312 kB / 312.7 MB, free: 23.59 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001945/0.3435, allocations: 0.7359 MB / 313.4 MB, free: 23.27 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008359/0.3443, allocations: 110.5 kB / 313.5 MB, free: 23.22 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004717/0.3491, allocations: 2.413 MB / 315.9 MB, free: 21.79 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004268/0.3495, allocations: 0.9496 MB / 316.9 MB, free: 20.99 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003414/0.3499, allocations: 64.75 kB / 316.9 MB, free: 20.97 MB / 250.7 MB Notification: Performance of SimCode: time 1.683e-06/0.3499, allocations: 4 kB / 316.9 MB, free: 20.96 MB / 250.7 MB Notification: Performance of Templates: time 0.02021/0.3701, allocations: 16.29 MB / 333.2 MB, free: 6.199 MB / 250.7 MB