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.Rotational.Examples.ElasticBearing.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Running command: translateModel(Modelica.Mechanics.Rotational.Examples.ElasticBearing,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|load.phi|load.w|shaft.phi|shaft.w|springDamper.phi_rel|springDamper.w_rel",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Mechanics.Rotational.Examples.ElasticBearing") Notification: Performance of loadModel(Modelica): time 1.637/1.637, allocations: 171.3 MB / 179.2 MB, free: 7.594 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.964e-05/2.968e-05, allocations: 4 kB / 222.5 MB, free: 8.703 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06864/0.06869, allocations: 38.77 MB / 261.3 MB, free: 1.855 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2744/0.3432, allocations: 67.42 MB / 328.7 MB, free: 4.891 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002283/0.3434, allocations: 74.95 kB / 328.8 MB, free: 4.852 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01642/0.3599, allocations: 4.076 MB / 332.8 MB, free: 1.504 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.196e-06/0.3599, allocations: 3.938 kB / 332.9 MB, free: 1.5 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.146e-05/0.36, allocations: 15.98 kB / 332.9 MB, free: 1.484 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: 63 * Number of variables: 63 Notification: Performance of Generate backend data structure: time 0.0007996/0.3608, allocations: 492.6 kB / 333.3 MB, free: 0.9688 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.05e-05/0.3608, allocations: 8.031 kB / 333.4 MB, free: 0.9609 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.989e-05/0.3609, allocations: 27.72 kB / 333.4 MB, free: 0.9336 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003348/0.3613, allocations: 238.2 kB / 333.6 MB, free: 0.6758 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.215e-05/0.3613, allocations: 11.95 kB / 333.6 MB, free: 0.6641 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.709e-05/0.3614, allocations: 16 kB / 333.6 MB, free: 0.6484 MB / 266.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003574/0.3617, allocations: 131.7 kB / 333.8 MB, free: 0.5664 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004014/0.3622, allocations: 173.7 kB / 333.9 MB, free: 444 kB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.389e-05/0.3622, allocations: 3.906 kB / 333.9 MB, free: 440 kB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.421e-05/0.3622, allocations: 0 / 333.9 MB, free: 440 kB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.293e-05/0.3622, allocations: 8 kB / 334 MB, free: 432 kB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001444/0.3637, allocations: 0.6926 MB / 334.6 MB, free: 15.82 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004614/0.3642, allocations: 187.4 kB / 334.8 MB, free: 15.69 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000184/0.3644, allocations: 90.23 kB / 334.9 MB, free: 15.63 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.172e-05/0.3644, allocations: 7.922 kB / 334.9 MB, free: 15.62 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.495e-05/0.3645, allocations: 37.19 kB / 335 MB, free: 15.58 MB / 282.7 MB Notification: Performance of pre-optimization done (n=26): time 2.675e-06/0.3645, allocations: 0 / 335 MB, free: 15.58 MB / 282.7 MB Notification: Performance of matching and sorting (n=28): time 0.001506/0.366, allocations: 0.7744 MB / 335.7 MB, free: 14.82 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.631e-05/0.3661, allocations: 55.41 kB / 335.8 MB, free: 14.75 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001476/0.3662, allocations: 134 kB / 335.9 MB, free: 14.63 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 2.8e-05/0.3663, allocations: 25.7 kB / 335.9 MB, free: 14.6 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001357/0.3664, allocations: 197 kB / 336.1 MB, free: 14.41 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001026/0.3665, allocations: 107.5 kB / 336.2 MB, free: 14.32 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.123e-05/0.3666, allocations: 0 / 336.2 MB, free: 14.32 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001636/0.3667, allocations: 325.8 kB / 336.6 MB, free: 14 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001392/0.3669, allocations: 52.69 kB / 336.6 MB, free: 13.97 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001864/0.3671, allocations: 90.8 kB / 336.7 MB, free: 13.89 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001716/0.3673, allocations: 71.72 kB / 336.8 MB, free: 13.85 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.417e-06/0.3673, allocations: 0 / 336.8 MB, free: 13.85 MB / 282.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004487/0.3677, allocations: 203.4 kB / 337 MB, free: 13.69 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.826e-05/0.3678, allocations: 4 kB / 337 MB, free: 13.68 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.575e-06/0.3678, allocations: 4 kB / 337 MB, free: 13.68 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.924e-05/0.3678, allocations: 3.953 kB / 337 MB, free: 13.68 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003855/0.3682, allocations: 78.33 kB / 337.1 MB, free: 13.6 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.174e-06/0.3682, allocations: 4 kB / 337.1 MB, free: 13.6 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001656/0.3684, allocations: 16.08 kB / 337.1 MB, free: 13.58 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.737e-05/0.3685, allocations: 11.06 kB / 337.1 MB, free: 13.57 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (35): * Single equations (assignments): 35 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001101/0.3686, allocations: 108.9 kB / 337.2 MB, free: 13.46 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.373e-05/0.3687, allocations: 15.81 kB / 337.2 MB, free: 13.45 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.173e-05/0.3687, allocations: 24.72 kB / 337.2 MB, free: 13.43 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.495e-05/0.3688, allocations: 11.97 kB / 337.2 MB, free: 13.42 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.544e-06/0.3688, allocations: 3.953 kB / 337.3 MB, free: 13.42 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.088e-06/0.3688, allocations: 0 / 337.3 MB, free: 13.42 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001074/0.3699, allocations: 0.5538 MB / 337.8 MB, free: 12.91 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.579e-06/0.3699, allocations: 4 kB / 337.8 MB, free: 12.91 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000445/0.3704, allocations: 75.89 kB / 337.9 MB, free: 12.84 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.303e-05/0.3704, allocations: 7.953 kB / 337.9 MB, free: 12.83 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.198e-05/0.3704, allocations: 3.5 kB / 337.9 MB, free: 12.83 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.471e-06/0.3704, allocations: 8.062 kB / 337.9 MB, free: 12.82 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.974e-06/0.3705, allocations: 0 / 337.9 MB, free: 12.82 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006535/0.3711, allocations: 408.1 kB / 338.3 MB, free: 12.46 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.088e-05/0.3712, allocations: 92.92 kB / 338.4 MB, free: 12.35 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.482e-05/0.3713, allocations: 4 kB / 338.4 MB, free: 12.35 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001956/0.3715, allocations: 11.98 kB / 338.4 MB, free: 12.34 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.681e-05/0.3716, allocations: 18.97 kB / 338.4 MB, free: 12.32 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.933e-05/0.3716, allocations: 4 kB / 338.4 MB, free: 12.32 MB / 282.7 MB Notification: Performance of sorting global known variables: time 9.675e-05/0.3717, allocations: 103.7 kB / 338.5 MB, free: 12.22 MB / 282.7 MB Notification: Performance of sort global known variables: time 7.26e-07/0.3717, allocations: 0 / 338.5 MB, free: 12.22 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0004309/0.3721, allocations: 52 kB / 338.6 MB, free: 12.17 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 6 (shaft.phi,shaft.w,load.phi,load.w,springDamper.phi_rel,springDamper.w_rel) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (28): * Single equations (assignments): 28 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001581/0.3723, allocations: 110.2 kB / 338.7 MB, free: 12.06 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0003767/0.3727, allocations: 159.6 kB / 338.8 MB, free: 11.95 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.976e-06/0.3727, allocations: 0 / 338.8 MB, free: 11.95 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001763/0.3729, allocations: 89.36 kB / 338.9 MB, free: 11.89 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003697/0.3733, allocations: 23.12 kB / 339 MB, free: 11.87 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001531/0.3748, allocations: 0.7032 MB / 339.7 MB, free: 11.16 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004759/0.3753, allocations: 0.7559 MB / 340.4 MB, free: 10.38 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.57e-05/0.3754, allocations: 23.44 kB / 340.4 MB, free: 10.35 MB / 282.7 MB Notification: Performance of SimCode: time 1.461e-06/0.3755, allocations: 0 / 340.4 MB, free: 10.35 MB / 282.7 MB Notification: Performance of Templates: time 0.005705/0.3812, allocations: 2.631 MB / 343.1 MB, free: 7.754 MB / 282.7 MB "" Variables in the reference:time,load.phi,load.w,shaft.phi,shaft.w,springDamper.phi_rel,springDamper.w_rel Variables in the result:fixed.flange.phi,fixed.flange.tau,fixed.phi0,housing.J,housing.a,der(housing.w),housing.flange_a.phi,housing.flange_a.tau,housing.flange_b.phi,housing.flange_b.tau,housing.phi,housing.stateSelect,housing.w,idealGear.flange_a.phi,idealGear.flange_a.tau,idealGear.flange_b.phi,idealGear.flange_b.tau,idealGear.phi_a,idealGear.phi_b,idealGear.phi_support,idealGear.ratio,idealGear.support.phi,idealGear.support.tau,idealGear.useSupport,load.J,load.a,der(load.phi),der(load.w),load.flange_a.phi,load.flange_a.tau,load.flange_b.phi,load.flange_b.tau,load.phi,load.stateSelect,load.w,der(multiSensor.flange_a.phi),multiSensor.flange_a.phi,multiSensor.flange_a.tau,multiSensor.flange_b.phi,multiSensor.flange_b.tau,multiSensor.power,multiSensor.tau,multiSensor.w,ramp.duration,ramp.height,ramp.offset,ramp.startTime,ramp.y,shaft.J,shaft.a,der(shaft.phi),der(shaft.w),shaft.flange_a.phi,shaft.flange_a.tau,shaft.flange_b.phi,shaft.flange_b.tau,shaft.phi,shaft.stateSelect,shaft.w,spring.c,spring.flange_a.phi,spring.flange_a.tau,spring.flange_b.phi,spring.flange_b.tau,spring.phi_rel,spring.phi_rel0,spring.tau,springDamper.a_rel,springDamper.c,springDamper.d,der(springDamper.phi_rel),der(springDamper.w_rel),springDamper.flange_a.phi,springDamper.flange_a.tau,springDamper.flange_b.phi,springDamper.flange_b.tau,springDamper.lossPower,springDamper.phi_nominal,springDamper.phi_rel,springDamper.phi_rel0,springDamper.stateSelect,springDamper.tau,springDamper.tau_c,springDamper.tau_d,springDamper.useHeatPort,springDamper.w_rel,time,torque.flange.phi,torque.flange.tau,torque.phi_support,torque.support.phi,torque.support.tau,torque.tau,torque.useSupport