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 2.434/2.434, allocations: 194.8 MB / 211.7 MB, free: 2.887 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000502/0.0005021, allocations: 8 kB / 264.5 MB, free: 12.92 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1073/0.1078, allocations: 44.51 MB / 309 MB, free: 356 kB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4518/0.5597, allocations: 83 MB / 392 MB, free: 15.36 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002821/0.5601, allocations: 84.06 kB / 392.1 MB, free: 15.36 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1008/0.6609, allocations: 22.94 MB / 415.1 MB, free: 9.043 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.825e-06/0.661, allocations: 3.938 kB / 415.1 MB, free: 9.039 MB / 314.7 MB Notification: Performance of Transformations before backend: time 5.318e-05/0.6611, allocations: 19.5 kB / 415.1 MB, free: 9.039 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: 243 * Number of variables: 243 Notification: Performance of Generate backend data structure: time 0.005205/0.6663, allocations: 1.358 MB / 416.4 MB, free: 8.168 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.532e-05/0.6663, allocations: 11.62 kB / 416.5 MB, free: 8.168 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009421/0.6673, allocations: 143.4 kB / 416.6 MB, free: 8.098 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001467/0.6688, allocations: 0.5381 MB / 417.1 MB, free: 7.723 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004787/0.6693, allocations: 197.9 kB / 417.3 MB, free: 7.609 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003742/0.6697, allocations: 106.9 kB / 417.4 MB, free: 7.605 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004083/0.6738, allocations: 1.216 MB / 418.6 MB, free: 7.234 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.073e-05/0.6739, allocations: 7.875 kB / 418.7 MB, free: 7.23 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001774/0.6741, allocations: 51.11 kB / 418.7 MB, free: 7.223 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.534e-05/0.6741, allocations: 27.03 kB / 418.7 MB, free: 7.219 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004439/0.6786, allocations: 1.285 MB / 420 MB, free: 6.965 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0103/0.6889, allocations: 3.692 MB / 423.7 MB, free: 5.098 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003064/0.692, allocations: 1.02 MB / 424.7 MB, free: 4.922 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001716/0.6922, allocations: 28.66 kB / 424.8 MB, free: 4.914 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.249e-05/0.6923, allocations: 53.12 kB / 424.8 MB, free: 4.871 MB / 314.7 MB Notification: Performance of pre-optimization done (n=135): time 4.869e-06/0.6923, allocations: 0 / 424.8 MB, free: 4.871 MB / 314.7 MB Notification: Performance of matching and sorting (n=147): time 0.02296/0.7153, allocations: 5.772 MB / 430.6 MB, free: 2.848 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.083e-05/0.7154, allocations: 93.23 kB / 430.7 MB, free: 2.754 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008883/0.7163, allocations: 0.4991 MB / 431.2 MB, free: 2.559 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003147/0.7166, allocations: 65.72 kB / 431.2 MB, free: 2.523 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002421/0.7169, allocations: 315.2 kB / 431.5 MB, free: 2.324 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005392/0.7174, allocations: 0.4888 MB / 432 MB, free: 1.973 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001645/0.7176, allocations: 30.97 kB / 432.1 MB, free: 1.973 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.000167/0.7178, allocations: 396.6 kB / 432.4 MB, free: 1.629 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002063/0.7199, allocations: 0.538 MB / 433 MB, free: 1.555 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002279/0.7222, allocations: 0.6707 MB / 433.7 MB, free: 1.148 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001861/0.7241, allocations: 488.3 kB / 434.1 MB, free: 0.8555 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.484e-06/0.7241, allocations: 0 / 434.1 MB, free: 0.8555 MB / 314.7 MB Notification: Performance of matching and sorting (n=179) (initialization): time 0.005962/0.7301, allocations: 1.702 MB / 435.8 MB, free: 15.65 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.458e-05/0.7302, allocations: 8 kB / 435.8 MB, free: 15.64 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.043e-05/0.7303, allocations: 12.08 kB / 435.9 MB, free: 15.63 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003079/0.7333, allocations: 0.8051 MB / 436.7 MB, free: 15.02 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002177/0.7356, allocations: 256.3 kB / 436.9 MB, free: 14.77 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004066/0.7397, allocations: 1.876 MB / 438.8 MB, free: 13.18 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002477/0.7422, allocations: 209.7 kB / 439 MB, free: 13 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003258/0.7426, allocations: 63.34 kB / 439.1 MB, free: 12.95 MB / 330.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 ($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,bearingFriction.free) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (129): * Single equations (assignments): 123 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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.0009066/0.7435, allocations: 264.3 kB / 439.3 MB, free: 12.7 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003788/0.7439, allocations: 90.88 kB / 439.4 MB, free: 12.61 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007203/0.7511, allocations: 1.937 MB / 441.3 MB, free: 10.64 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.659e-05/0.7512, allocations: 16 kB / 441.4 MB, free: 10.62 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.338e-06/0.7512, allocations: 0 / 441.4 MB, free: 10.62 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.127e-05/0.7512, allocations: 7.969 kB / 441.4 MB, free: 10.62 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01166/0.7629, allocations: 3.194 MB / 444.6 MB, free: 7.375 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.674e-05/0.763, allocations: 3.953 kB / 444.6 MB, free: 7.371 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002406/0.7654, allocations: 255.8 kB / 444.8 MB, free: 7.121 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003085/0.7685, allocations: 0.7547 MB / 445.6 MB, free: 6.359 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003984/0.769, allocations: 55.94 kB / 445.6 MB, free: 6.305 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003868/0.7729, allocations: 1.819 MB / 447.4 MB, free: 4.434 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.248e-06/0.7729, allocations: 0 / 447.4 MB, free: 4.434 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00953/0.7824, allocations: 2.435 MB / 449.9 MB, free: 1.961 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001138/0.7836, allocations: 300 kB / 450.2 MB, free: 1.648 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003993/0.7841, allocations: 43.94 kB / 450.2 MB, free: 1.605 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002413/0.7865, allocations: 215.8 kB / 450.4 MB, free: 1.395 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008954/0.7874, allocations: 232.8 kB / 450.6 MB, free: 1.168 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002347/0.7877, allocations: 63.94 kB / 450.7 MB, free: 1.105 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0008613/0.7886, allocations: 358.8 kB / 451.1 MB, free: 0.7539 MB / 330.7 MB Notification: Performance of sort global known variables: time 5.1e-07/0.7886, allocations: 0 / 451.1 MB, free: 0.7539 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.00184/0.7904, allocations: 320 kB / 451.4 MB, free: 452 kB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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 (lossyGear.mode,brake.mode,brake.startForward,clutch.mode,clutch.startForward,clutch.startBackward,oneWayClutch.stuck,oneWayClutch.startForward,brake.startBackward,bearingFriction.mode,bearingFriction.startForward,bearingFriction.startBackward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (96): * Single equations (assignments): 94 * 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.0005833/0.7911, allocations: 206.1 kB / 451.6 MB, free: 240 kB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.006066/0.7971, allocations: 1.543 MB / 453.1 MB, free: 14.67 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 7.464e-06/0.7972, allocations: 0 / 453.1 MB, free: 14.67 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003685/0.8009, allocations: 0.852 MB / 454 MB, free: 13.82 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001584/0.8025, allocations: 147.3 kB / 454.1 MB, free: 13.68 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01599/0.8186, allocations: 3.79 MB / 457.9 MB, free: 9.848 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008875/0.8195, allocations: 1.055 MB / 459 MB, free: 8.762 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.001082/0.8206, allocations: 131.2 kB / 459.1 MB, free: 8.629 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005012/0.8211, allocations: 75.39 kB / 459.2 MB, free: 8.555 MB / 346.7 MB Notification: Performance of SimCode: time 1.072e-06/0.8211, allocations: 0 / 459.2 MB, free: 8.555 MB / 346.7 MB Notification: Performance of Templates: time 0.05407/0.8752, allocations: 19.14 MB / 478.3 MB, free: 5.449 MB / 362.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