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.889/1.889, allocations: 171.1 MB / 186.7 MB, free: 1.039 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003467/0.0003468, allocations: 8 kB / 233.9 MB, free: 2.383 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08325/0.08363, allocations: 38.77 MB / 272.6 MB, free: 11.54 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4114/0.4951, allocations: 77.86 MB / 350.5 MB, free: 11.59 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002731/0.4955, allocations: 79.64 kB / 350.6 MB, free: 11.54 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1157/0.6112, allocations: 23.05 MB / 373.6 MB, free: 7.859 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.845e-06/0.6113, allocations: 0 / 373.6 MB, free: 7.859 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.799e-05/0.6114, allocations: 24 kB / 373.6 MB, free: 7.836 MB / 298.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.007527/0.6189, allocations: 1.372 MB / 375 MB, free: 6.48 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.414e-05/0.619, allocations: 12.03 kB / 375 MB, free: 6.469 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001283/0.6203, allocations: 138.6 kB / 375.1 MB, free: 6.332 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001983/0.6223, allocations: 0.5495 MB / 375.7 MB, free: 5.824 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006794/0.623, allocations: 197.4 kB / 375.9 MB, free: 5.645 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000465/0.6235, allocations: 102.3 kB / 376 MB, free: 5.578 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005682/0.6292, allocations: 1.253 MB / 377.2 MB, free: 4.676 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.349e-05/0.6293, allocations: 7.906 kB / 377.3 MB, free: 4.668 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002806/0.6296, allocations: 42.31 kB / 377.3 MB, free: 4.656 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.909e-05/0.6296, allocations: 20 kB / 377.3 MB, free: 4.637 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007488/0.6371, allocations: 1.366 MB / 378.7 MB, free: 3.621 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01666/0.6539, allocations: 3.694 MB / 382.4 MB, free: 0.5781 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005189/0.6591, allocations: 1.045 MB / 383.4 MB, free: 15.86 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002345/0.6594, allocations: 16.12 kB / 383.4 MB, free: 15.84 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.641e-05/0.6595, allocations: 46.88 kB / 383.5 MB, free: 15.8 MB / 314.7 MB Notification: Performance of pre-optimization done (n=129): time 6.051e-06/0.6595, allocations: 0 / 383.5 MB, free: 15.8 MB / 314.7 MB Notification: Performance of matching and sorting (n=141): time 0.03814/0.6977, allocations: 5.893 MB / 389.4 MB, free: 10.31 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001221/0.6978, allocations: 94.36 kB / 389.5 MB, free: 10.2 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001795/0.6997, allocations: 0.538 MB / 390 MB, free: 9.652 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005503/0.7003, allocations: 65.64 kB / 390.1 MB, free: 9.582 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000519/0.7008, allocations: 333.3 kB / 390.4 MB, free: 9.25 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001015/0.7019, allocations: 485.2 kB / 390.9 MB, free: 8.77 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002415/0.7021, allocations: 27.98 kB / 390.9 MB, free: 8.742 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0003613/0.7025, allocations: 394.8 kB / 391.3 MB, free: 8.348 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003283/0.7058, allocations: 0.5739 MB / 391.9 MB, free: 7.773 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00355/0.7094, allocations: 0.6997 MB / 392.6 MB, free: 7.047 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003065/0.7125, allocations: 0.5213 MB / 393.1 MB, free: 6.531 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.333e-05/0.7126, allocations: 0 / 393.1 MB, free: 6.531 MB / 314.7 MB Notification: Performance of matching and sorting (n=179) (initialization): time 0.01038/0.723, allocations: 1.943 MB / 395 MB, free: 4.574 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.847e-05/0.7231, allocations: 4 kB / 395 MB, free: 4.57 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.907e-05/0.7231, allocations: 4 kB / 395 MB, free: 4.566 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004903/0.728, allocations: 1.005 MB / 396 MB, free: 3.555 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002935/0.731, allocations: 263.6 kB / 396.3 MB, free: 3.297 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005838/0.7369, allocations: 1.986 MB / 398.3 MB, free: 1.258 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003179/0.7401, allocations: 207.9 kB / 398.5 MB, free: 1.055 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003334/0.7405, allocations: 63.97 kB / 398.5 MB, free: 0.9922 MB / 314.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.001094/0.7416, allocations: 261.6 kB / 398.8 MB, free: 0.7266 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004764/0.7421, allocations: 90.88 kB / 398.9 MB, free: 0.6367 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005463/0.7427, allocations: 141.2 kB / 399 MB, free: 0.4922 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.431e-05/0.7427, allocations: 12 kB / 399 MB, free: 492 kB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.3e-05/0.7427, allocations: 0 / 399 MB, free: 492 kB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.496e-05/0.7428, allocations: 7.969 kB / 399 MB, free: 484 kB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01592/0.7587, allocations: 3.316 MB / 402.4 MB, free: 13.08 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.491e-05/0.7588, allocations: 0 / 402.4 MB, free: 13.08 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003201/0.762, allocations: 255.8 kB / 402.6 MB, free: 12.83 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004619/0.7667, allocations: 0.9575 MB / 403.6 MB, free: 11.87 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004084/0.7671, allocations: 51.94 kB / 403.6 MB, free: 11.82 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005011/0.7722, allocations: 1.917 MB / 405.5 MB, free: 9.844 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.028e-06/0.7722, allocations: 0 / 405.5 MB, free: 9.844 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01077/0.783, allocations: 2.673 MB / 408.2 MB, free: 7.141 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001157/0.7842, allocations: 299.9 kB / 408.5 MB, free: 6.828 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004084/0.7846, allocations: 40.09 kB / 408.5 MB, free: 6.789 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002289/0.7869, allocations: 219.8 kB / 408.7 MB, free: 6.574 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008519/0.7878, allocations: 224.8 kB / 409 MB, free: 6.352 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002318/0.7881, allocations: 59.94 kB / 409 MB, free: 6.293 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.000888/0.789, allocations: 382.8 kB / 409.4 MB, free: 5.918 MB / 330.7 MB Notification: Performance of sort global known variables: time 7.41e-07/0.789, allocations: 0 / 409.4 MB, free: 5.918 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001714/0.7907, allocations: 339.9 kB / 409.7 MB, free: 5.586 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 12 (damper.phi_rel,damper.w_rel,springDamper.phi_rel,springDamper.w_rel,elastoBacklash.phi_rel,elastoBacklash.w_rel,inertia4.w,lossyGear.phi_a,clutch.phi_rel,clutch.w_rel,oneWayClutch.phi_rel,oneWayClutch.w_rel) * Number of discrete variables: 23 (bearingFriction.startForward,bearingFriction.startBackward,bearingFriction.locked,bearingFriction.mode,lossyGear.tau_aPos,lossyGear.startForward,lossyGear.startBackward,lossyGear.locked,lossyGear.mode,clutch.free,clutch.startForward,clutch.startBackward,clutch.locked,clutch.mode,oneWayClutch.startForward,oneWayClutch.locked,oneWayClutch.stuck,oneWayClutch.free,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode) * Number of discrete states: 12 (clutch.mode,clutch.startForward,brake.mode,brake.startForward,brake.startBackward,oneWayClutch.stuck,oneWayClutch.startForward,clutch.startBackward,lossyGear.mode,bearingFriction.mode,bearingFriction.startForward,bearingFriction.startBackward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (94): * Single equations (assignments): 92 * 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 {1 6,4 38} Notification: Performance of Backend phase and start with SimCode phase: time 0.000672/0.7914, allocations: 201.3 kB / 409.9 MB, free: 5.383 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.006158/0.7976, allocations: 1.48 MB / 411.4 MB, free: 3.91 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 6.743e-06/0.7977, allocations: 0 / 411.4 MB, free: 3.91 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003653/0.8013, allocations: 0.8481 MB / 412.3 MB, free: 3.062 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001575/0.803, allocations: 126.8 kB / 412.4 MB, free: 2.938 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01605/0.819, allocations: 3.78 MB / 416.2 MB, free: 15.12 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009123/0.82, allocations: 1.051 MB / 417.2 MB, free: 14.05 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.00108/0.8211, allocations: 139.2 kB / 417.3 MB, free: 13.91 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005461/0.8217, allocations: 83.39 kB / 417.4 MB, free: 13.82 MB / 346.7 MB Notification: Performance of SimCode: time 1.082e-06/0.8217, allocations: 0 / 417.4 MB, free: 13.82 MB / 346.7 MB Notification: Performance of Templates: time 0.3011/1.123, allocations: 18.85 MB / 436.3 MB, free: 105.8 MB / 346.7 MB "" Variables in the reference: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 Variables in the result:TAmbient.T,bearingFriction.mode,bearingFriction.peak,bearingFriction.startBackward,bearingFriction.startForward,bearingFriction.tau_pos[1,1],bearingFriction.tau_pos[1,2],bearingFriction.w_small,brake.cgeo,brake.fn_max,brake.mode,brake.mue_pos[1,1],brake.mue_pos[1,2],brake.peak,brake.startBackward,brake.startForward,brake.w_small,clutch.cgeo,clutch.fn_max,clutch.mode,clutch.mue_pos[1,1],clutch.mue_pos[1,2],clutch.peak,clutch.phi_nominal,clutch.phi_rel,clutch.startBackward,clutch.startForward,clutch.w_rel,clutch.w_small,const.k,const.y,convection.Gc,damper.d,damper.flange_a.phi,damper.phi_nominal,damper.phi_rel,damper.w_rel,elastoBacklash.b,elastoBacklash.bMax,elastoBacklash.bMin,elastoBacklash.c,elastoBacklash.d,elastoBacklash.phi_nominal,elastoBacklash.phi_rel,elastoBacklash.phi_rel0,elastoBacklash.w_rel,fixed.flange.phi,fixed.phi0,inertia1.J,inertia2.J,inertia3.J,inertia4.J,inertia5.J,inertia5.phi,inertia5.w,inertia6.J,lossyGear.eta_mf1_0,lossyGear.eta_mf2_0,lossyGear.lossTable[1,1],lossyGear.lossTable[1,2],lossyGear.lossTable[1,3],lossyGear.lossTable[1,4],lossyGear.lossTable[1,5],lossyGear.lossTable[2,1],lossyGear.lossTable[2,2],lossyGear.lossTable[2,3],lossyGear.lossTable[2,4],lossyGear.lossTable[2,5],lossyGear.mode,lossyGear.ratio,lossyGear.tau_bf1_0,lossyGear.tau_bf2_0,lossyGear.tau_bf_a_0,oneWayClutch.cgeo,oneWayClutch.fn_max,oneWayClutch.mue_pos[1,1],oneWayClutch.mue_pos[1,2],oneWayClutch.peak,oneWayClutch.peak2,oneWayClutch.phi_nominal,oneWayClutch.phi_rel,oneWayClutch.startForward,oneWayClutch.stuck,oneWayClutch.w_rel,oneWayClutch.w_small,sine.amplitude,sine.freqHz,sine.offset,sine.phase,sine.startTime,sine2.amplitude,sine2.freqHz,sine2.offset,sine2.phase,sine2.startTime,spring3.c,spring3.phi_rel0,springDamper.c,springDamper.d,springDamper.phi_nominal,springDamper.phi_rel,springDamper.phi_rel0,springDamper.w_rel,time