Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.HeatLosses.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/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.1_Modelica.Mechanics.Rotational.Examples.HeatLosses") Notification: Performance of loadModel(Modelica): time 1.601/1.601, allocations: 171.2 MB / 186.7 MB, free: 1.121 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000513/0.0005131, allocations: 8 kB / 233.9 MB, free: 2.395 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1043/0.1048, allocations: 38.77 MB / 272.6 MB, free: 11.54 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.HeatLosses): time 0.007011/0.1119, allocations: 3.97 MB / 276.6 MB, free: 7.543 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.004426/0.1163, allocations: 1.83 MB / 278.4 MB, free: 5.711 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004049/0.1168, allocations: 11.94 kB / 278.4 MB, free: 5.699 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003006/0.1171, allocations: 131.1 kB / 278.6 MB, free: 5.57 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001224/0.1183, allocations: 410.8 kB / 279 MB, free: 5.168 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00132/0.1197, allocations: 407.3 kB / 279.4 MB, free: 4.77 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.001594/0.1213, allocations: 0.9902 MB / 280.4 MB, free: 3.781 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005175/0.1218, allocations: 249.6 kB / 280.6 MB, free: 3.523 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001008/0.1228, allocations: 0.5802 MB / 281.2 MB, free: 2.941 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001107/0.124, allocations: 0.6656 MB / 281.8 MB, free: 2.273 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002174/0.1242, allocations: 64 kB / 281.9 MB, free: 2.211 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007046/0.1249, allocations: 235.7 kB / 282.1 MB, free: 1.98 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003659/0.1253, allocations: 247.2 kB / 282.4 MB, free: 1.738 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002776/0.1256, allocations: 213.1 kB / 282.6 MB, free: 1.523 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001614/0.1272, allocations: 1.079 MB / 283.7 MB, free: 452 kB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.126e-06/0.1272, allocations: 4 kB / 283.7 MB, free: 448 kB / 234.7 MB Notification: Performance of FrontEnd: time 2.285e-06/0.1272, allocations: 0 / 283.7 MB, free: 448 kB / 234.7 MB Notification: Performance of Transformations before backend: time 1.19e-05/0.1273, allocations: 0 / 283.7 MB, free: 448 kB / 234.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.00501/0.1323, allocations: 1.395 MB / 285.1 MB, free: 14.99 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.72e-05/0.1323, allocations: 12.02 kB / 285.1 MB, free: 14.98 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006756/0.133, allocations: 134.6 kB / 285.2 MB, free: 14.84 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001291/0.1343, allocations: 0.5685 MB / 285.8 MB, free: 14.23 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005011/0.1348, allocations: 199 kB / 286 MB, free: 14.02 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002852/0.1351, allocations: 103.9 kB / 286.1 MB, free: 13.92 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003738/0.1389, allocations: 1.236 MB / 287.3 MB, free: 12.67 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.29e-05/0.139, allocations: 15.91 kB / 287.3 MB, free: 12.65 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001684/0.1391, allocations: 39.98 kB / 287.4 MB, free: 12.61 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.939e-05/0.1392, allocations: 27.94 kB / 287.4 MB, free: 12.59 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004783/0.144, allocations: 1.335 MB / 288.7 MB, free: 11.25 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009881/0.1539, allocations: 3.71 MB / 292.4 MB, free: 7.375 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003533/0.1574, allocations: 1.061 MB / 293.5 MB, free: 6.309 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001409/0.1576, allocations: 17.3 kB / 293.5 MB, free: 6.293 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.732e-05/0.1577, allocations: 47.88 kB / 293.6 MB, free: 6.238 MB / 250.7 MB Notification: Performance of pre-optimization done (n=129): time 4.318e-06/0.1577, allocations: 4 kB / 293.6 MB, free: 6.234 MB / 250.7 MB Notification: Performance of matching and sorting (n=141): time 0.03141/0.1891, allocations: 5.786 MB / 299.4 MB, free: 292 kB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.549e-05/0.1892, allocations: 90.42 kB / 299.4 MB, free: 184 kB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.277/0.4662, allocations: 0.5873 MB / 300 MB, free: 31.19 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003917/0.4667, allocations: 64.16 kB / 300.1 MB, free: 31.16 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000435/0.4671, allocations: 335.3 kB / 300.4 MB, free: 31.07 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008704/0.468, allocations: 481.8 kB / 300.9 MB, free: 30.81 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001916/0.4682, allocations: 30.61 kB / 300.9 MB, free: 30.81 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.00026/0.4685, allocations: 397.9 kB / 301.3 MB, free: 30.5 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002615/0.4711, allocations: 0.572 MB / 301.9 MB, free: 30.49 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002892/0.4741, allocations: 0.6976 MB / 302.6 MB, free: 30.2 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002449/0.4766, allocations: 0.5078 MB / 303.1 MB, free: 30 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.47e-05/0.4767, allocations: 0.5 kB / 303.1 MB, free: 30 MB / 250.7 MB Notification: Performance of matching and sorting (n=179) (initialization): time 0.008942/0.4856, allocations: 2.058 MB / 305.1 MB, free: 29.31 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.589e-05/0.4857, allocations: 9.438 kB / 305.1 MB, free: 29.31 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.886e-05/0.4857, allocations: 2.016 kB / 305.2 MB, free: 29.31 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003413/0.4892, allocations: 0.7713 MB / 305.9 MB, free: 29.07 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002369/0.4916, allocations: 261.8 kB / 306.2 MB, free: 29.05 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00397/0.4956, allocations: 1.963 MB / 308.1 MB, free: 27.62 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002398/0.498, allocations: 205.9 kB / 308.3 MB, free: 27.59 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002979/0.4984, allocations: 55 kB / 308.4 MB, free: 27.58 MB / 250.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.0006984/0.4991, allocations: 268 kB / 308.7 MB, free: 27.37 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002957/0.4994, allocations: 91.98 kB / 308.7 MB, free: 27.32 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003554/0.4998, allocations: 138.4 kB / 308.9 MB, free: 27.21 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.923e-05/0.4998, allocations: 10.84 kB / 308.9 MB, free: 27.2 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.123e-06/0.4998, allocations: 0.5156 kB / 308.9 MB, free: 27.2 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007174/0.5005, allocations: 284.1 kB / 309.2 MB, free: 27.01 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003414/0.5009, allocations: 41.33 kB / 309.2 MB, free: 26.98 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002539/0.5035, allocations: 243.6 kB / 309.4 MB, free: 26.96 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00076/0.5043, allocations: 220.5 kB / 309.7 MB, free: 26.93 MB / 250.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.009193/0.5135, allocations: 1.98 MB / 311.6 MB, free: 26.3 MB / 250.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.006946/0.5205, allocations: 2.272 MB / 313.9 MB, free: 25.38 MB / 250.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.002074/0.5226, allocations: 0.6453 MB / 314.6 MB, free: 25.15 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0007359/0.5233, allocations: 417.9 kB / 315 MB, free: 24.98 MB / 250.7 MB Notification: Performance of Backend: time 5.71e-07/0.5234, allocations: 0 / 315 MB, free: 24.98 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.003574/0.5269, allocations: 1.073 MB / 316 MB, free: 24.54 MB / 250.7 MB Notification: Performance of SimCode: time 0.005184/0.5322, allocations: 3.405 MB / 319.4 MB, free: 21.34 MB / 250.7 MB Notification: Performance of Templates: time 0.04115/0.5733, allocations: 18.62 MB / 338.1 MB, free: 2.754 MB / 250.7 MB