Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Mechanics.Rotational.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.Rotational.Examples.HeatLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|clutch.phi_rel|clutch.w_rel|damper.phi_rel|damper.w_rel|elastoBacklash.phi_rel|elastoBacklash.w_rel|inertia5.phi|inertia5.w|oneWayClutch.phi_rel|oneWayClutch.w_rel|springDamper.phi_rel|springDamper.w_rel|bearingFriction.mode|bearingFriction.startBackward|bearingFriction.startForward|brake.mode|brake.startBackward|brake.startForward|clutch.mode|clutch.startBackward|clutch.startForward|lossyGear.mode|oneWayClutch.startForward|oneWayClutch.stuck",fileNamePrefix="Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.HeatLosses") Notification: Performance of loadModel(Modelica): time 1.906/1.906, allocations: 194.9 MB / 211.7 MB, free: 2.996 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.00035/0.0003501, allocations: 12 kB / 264.6 MB, free: 12.94 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08917/0.08955, allocations: 44.5 MB / 309.1 MB, free: 372 kB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.HeatLosses): time 0.006776/0.09638, allocations: 3.968 MB / 313 MB, free: 12.37 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.00636/0.1028, allocations: 1.733 MB / 314.8 MB, free: 10.63 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009427/0.1038, allocations: 15.94 kB / 314.8 MB, free: 10.62 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000522/0.1044, allocations: 123.2 kB / 314.9 MB, free: 10.5 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002626/0.107, allocations: 406.8 kB / 315.3 MB, free: 10.1 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0024/0.1094, allocations: 407.2 kB / 315.7 MB, free: 9.699 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.003141/0.1126, allocations: 0.9941 MB / 316.7 MB, free: 8.703 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000686/0.1134, allocations: 249.6 kB / 316.9 MB, free: 8.445 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001377/0.1148, allocations: 0.588 MB / 317.5 MB, free: 7.855 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001364/0.1161, allocations: 0.6774 MB / 318.2 MB, free: 7.176 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002754/0.1164, allocations: 72 kB / 318.3 MB, free: 7.105 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005983/0.117, allocations: 135.9 kB / 318.4 MB, free: 6.973 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004083/0.1175, allocations: 259.1 kB / 318.6 MB, free: 6.719 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003283/0.1178, allocations: 217.1 kB / 318.9 MB, free: 6.5 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001721/0.1195, allocations: 1.06 MB / 319.9 MB, free: 5.438 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.556e-06/0.1196, allocations: 0 / 319.9 MB, free: 5.438 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.645e-06/0.1196, allocations: 0 / 319.9 MB, free: 5.438 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.642e-05/0.1196, allocations: 0 / 319.9 MB, free: 5.438 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 243 * Number of variables: 243 Notification: Performance of Generate backend data structure: time 0.005296/0.1249, allocations: 1.387 MB / 321.3 MB, free: 3.996 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.168e-05/0.125, allocations: 8.031 kB / 321.3 MB, free: 3.988 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007782/0.1258, allocations: 134.7 kB / 321.4 MB, free: 3.855 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002048/0.1279, allocations: 0.5802 MB / 322 MB, free: 3.234 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008358/0.1287, allocations: 203 kB / 322.2 MB, free: 3.02 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004962/0.1292, allocations: 99.91 kB / 322.3 MB, free: 2.922 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005935/0.1352, allocations: 1.255 MB / 323.6 MB, free: 1.648 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.19e-05/0.1353, allocations: 15.83 kB / 323.6 MB, free: 1.633 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002628/0.1356, allocations: 40 kB / 323.6 MB, free: 1.594 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.522e-05/0.1357, allocations: 24 kB / 323.7 MB, free: 1.57 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007317/0.143, allocations: 1.37 MB / 325 MB, free: 204 kB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01554/0.1586, allocations: 3.738 MB / 328.8 MB, free: 12.29 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005292/0.1639, allocations: 1.068 MB / 329.8 MB, free: 11.21 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002191/0.1642, allocations: 17.3 kB / 329.8 MB, free: 11.2 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.74e-05/0.1643, allocations: 55.81 kB / 329.9 MB, free: 11.14 MB / 282.7 MB Notification: Performance of pre-optimization done (n=129): time 6.582e-06/0.1643, allocations: 3.938 kB / 329.9 MB, free: 11.13 MB / 282.7 MB Notification: Performance of matching and sorting (n=141): time 0.02977/0.1941, allocations: 5.872 MB / 335.8 MB, free: 5.105 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.157e-05/0.1942, allocations: 98.42 kB / 335.9 MB, free: 4.992 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001151/0.1954, allocations: 0.5847 MB / 336.5 MB, free: 4.402 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002811/0.1957, allocations: 61.7 kB / 336.5 MB, free: 4.336 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003387/0.1961, allocations: 341.2 kB / 336.9 MB, free: 3.996 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006459/0.1967, allocations: 477.3 kB / 337.3 MB, free: 3.523 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001416/0.1969, allocations: 31.98 kB / 337.4 MB, free: 3.492 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0002182/0.1971, allocations: 390.8 kB / 337.7 MB, free: 3.102 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002104/0.1992, allocations: 0.5818 MB / 338.3 MB, free: 2.52 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002318/0.2016, allocations: 0.7153 MB / 339 MB, free: 1.781 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002016/0.2036, allocations: 0.5253 MB / 339.6 MB, free: 1.258 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.382e-06/0.2036, allocations: 0 / 339.6 MB, free: 1.258 MB / 282.7 MB Notification: Performance of matching and sorting (n=179) (initialization): time 0.006745/0.2104, allocations: 1.861 MB / 341.4 MB, free: 15.38 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.774e-05/0.2105, allocations: 4 kB / 341.4 MB, free: 15.38 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.258e-05/0.2105, allocations: 0 / 341.4 MB, free: 15.38 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003295/0.2138, allocations: 0.958 MB / 342.4 MB, free: 14.41 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002137/0.216, allocations: 255.7 kB / 342.6 MB, free: 14.16 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004116/0.2201, allocations: 2.005 MB / 344.6 MB, free: 12.11 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002363/0.2225, allocations: 219.9 kB / 344.8 MB, free: 11.89 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002539/0.2228, allocations: 47.98 kB / 344.9 MB, free: 11.84 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 37 (bearingFriction.free,$PRE.bearingFriction.startForward,bearingFriction.startForward,$PRE.bearingFriction.startBackward,bearingFriction.startBackward,bearingFriction.locked,$PRE.bearingFriction.mode,bearingFriction.mode,lossyGear.tau_aPos,lossyGear.startForward,lossyGear.startBackward,lossyGear.locked,$PRE.lossyGear.mode,lossyGear.mode,clutch.free,$PRE.clutch.startForward,clutch.startForward,$PRE.clutch.startBackward,clutch.startBackward,clutch.locked,$PRE.clutch.mode,clutch.mode,$PRE.oneWayClutch.startForward,oneWayClutch.startForward,oneWayClutch.locked,$PRE.oneWayClutch.stuck,oneWayClutch.stuck,oneWayClutch.free,brake.free,$PRE.brake.startForward,brake.startForward,$PRE.brake.startBackward,brake.startBackward,brake.locked,$PRE.brake.mode,brake.mode,lossyGear.ideal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (129): * Single equations (assignments): 127 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {4 40,1 7} Notification: Performance of prepare postOptimizeDAE: time 0.0007868/0.2236, allocations: 269.7 kB / 345.2 MB, free: 11.57 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003216/0.224, allocations: 94.88 kB / 345.2 MB, free: 11.48 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004052/0.2244, allocations: 129.2 kB / 345.4 MB, free: 11.35 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.672e-05/0.2244, allocations: 7.938 kB / 345.4 MB, free: 11.34 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.866e-06/0.2244, allocations: 0 / 345.4 MB, free: 11.34 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000824/0.2253, allocations: 299.8 kB / 345.7 MB, free: 11.03 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003853/0.2257, allocations: 40 kB / 345.7 MB, free: 10.99 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002624/0.2283, allocations: 251.8 kB / 346 MB, free: 10.74 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008/0.2292, allocations: 220.8 kB / 346.2 MB, free: 10.53 MB / 298.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.01019/0.2394, allocations: 1.997 MB / 348.2 MB, free: 8.516 MB / 298.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.008133/0.2476, allocations: 2.313 MB / 350.5 MB, free: 6.184 MB / 298.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.002582/0.2502, allocations: 0.6583 MB / 351.1 MB, free: 5.527 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.001392/0.2516, allocations: 414.8 kB / 351.6 MB, free: 5.121 MB / 298.7 MB Notification: Performance of Backend: time 1.132e-06/0.2517, allocations: 4 kB / 351.6 MB, free: 5.117 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.006815/0.2585, allocations: 1.063 MB / 352.6 MB, free: 4.043 MB / 298.7 MB Notification: Performance of SimCode: time 0.008072/0.2666, allocations: 3.412 MB / 356 MB, free: 0.5781 MB / 298.7 MB Notification: Performance of Templates: time 0.2808/0.5475, allocations: 19.51 MB / 375.5 MB, free: 64.43 MB / 314.7 MB