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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/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.582/1.582, allocations: 171.2 MB / 186.7 MB, free: 1.039 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003708/0.0003706, allocations: 12 kB / 233.2 MB, free: 3.012 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06779/0.06819, allocations: 38.77 MB / 272 MB, free: 12.17 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.282/0.3503, allocations: 68.17 MB / 340.2 MB, free: 5.723 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000226/0.3505, allocations: 72.91 kB / 340.3 MB, free: 5.688 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0166/0.3671, allocations: 4.117 MB / 344.4 MB, free: 2.242 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.274e-06/0.3672, allocations: 0 / 344.4 MB, free: 2.242 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.79e-05/0.3672, allocations: 4 kB / 344.4 MB, free: 2.238 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.0008807/0.3681, allocations: 0.5109 MB / 344.9 MB, free: 1.691 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.933e-05/0.3682, allocations: 8.031 kB / 344.9 MB, free: 1.684 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.427e-05/0.3682, allocations: 23.72 kB / 344.9 MB, free: 1.66 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003245/0.3686, allocations: 240.2 kB / 345.2 MB, free: 1.402 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.539e-05/0.3686, allocations: 15.5 kB / 345.2 MB, free: 1.395 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.352e-05/0.3687, allocations: 27.75 kB / 345.2 MB, free: 1.375 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005726/0.3693, allocations: 228.7 kB / 345.4 MB, free: 1.207 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.633e-05/0.3693, allocations: 3.906 kB / 345.4 MB, free: 1.203 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.495e-05/0.3694, allocations: 18.31 kB / 345.4 MB, free: 1.195 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.001e-05/0.3694, allocations: 7.938 kB / 345.4 MB, free: 1.188 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005506/0.3699, allocations: 192.2 kB / 345.6 MB, free: 1.047 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001468/0.3714, allocations: 0.7523 MB / 346.4 MB, free: 396 kB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006195/0.3721, allocations: 223.5 kB / 346.6 MB, free: 232 kB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.754e-05/0.3721, allocations: 0 / 346.6 MB, free: 232 kB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.663e-05/0.3722, allocations: 46.5 kB / 346.6 MB, free: 176 kB / 266.7 MB Notification: Performance of pre-optimization done (n=26): time 2.791e-06/0.3722, allocations: 0 / 346.6 MB, free: 176 kB / 266.7 MB Notification: Performance of matching and sorting (n=28): time 0.002362/0.3746, allocations: 0.9923 MB / 347.6 MB, free: 15.27 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.594e-05/0.3746, allocations: 59.39 kB / 347.7 MB, free: 15.2 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001837/0.3748, allocations: 138.9 kB / 347.8 MB, free: 15.07 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 2.893e-05/0.3749, allocations: 29.39 kB / 347.9 MB, free: 15.04 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001326/0.375, allocations: 207.8 kB / 348.1 MB, free: 14.84 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001026/0.3751, allocations: 100.5 kB / 348.2 MB, free: 14.76 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.301e-05/0.3752, allocations: 3.688 kB / 348.2 MB, free: 14.76 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001653/0.3753, allocations: 327.5 kB / 348.5 MB, free: 14.44 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002505/0.3756, allocations: 82.02 kB / 348.6 MB, free: 14.38 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002795/0.3759, allocations: 112.3 kB / 348.7 MB, free: 14.29 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002876/0.3762, allocations: 94.91 kB / 348.8 MB, free: 14.22 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.3762, allocations: 3.938 kB / 348.8 MB, free: 14.22 MB / 282.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0006643/0.3769, allocations: 263.4 kB / 349 MB, free: 14.02 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.179e-05/0.3769, allocations: 7.953 kB / 349 MB, free: 14.01 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.624e-06/0.3769, allocations: 0 / 349 MB, free: 14.01 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.787e-05/0.377, allocations: 4 kB / 349 MB, free: 14.01 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003978/0.3774, allocations: 79.7 kB / 349.1 MB, free: 13.93 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.06e-05/0.3774, allocations: 4 kB / 349.1 MB, free: 13.93 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001805/0.3776, allocations: 19.61 kB / 349.1 MB, free: 13.91 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.251e-05/0.3776, allocations: 7.984 kB / 349.2 MB, free: 13.91 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 () * Number of clocked 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.0001889/0.3778, allocations: 138.3 kB / 349.3 MB, free: 13.78 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.617e-05/0.3779, allocations: 19.19 kB / 349.3 MB, free: 13.76 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.36e-05/0.378, allocations: 28.2 kB / 349.3 MB, free: 13.75 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.976e-06/0.378, allocations: 7.984 kB / 349.3 MB, free: 13.74 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.937e-06/0.378, allocations: 0 / 349.3 MB, free: 13.74 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.05e-06/0.378, allocations: 3.984 kB / 349.3 MB, free: 13.74 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001361/0.3794, allocations: 0.6729 MB / 350 MB, free: 13.12 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.107e-06/0.3794, allocations: 64 / 350 MB, free: 13.12 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004725/0.3799, allocations: 79.02 kB / 350.1 MB, free: 13.05 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.445e-06/0.3799, allocations: 7.938 kB / 350.1 MB, free: 13.04 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.514e-05/0.38, allocations: 6.812 kB / 350.1 MB, free: 13.04 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.801e-06/0.38, allocations: 0 / 350.1 MB, free: 13.04 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.352e-06/0.38, allocations: 0 / 350.1 MB, free: 13.04 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009827/0.381, allocations: 489.8 kB / 350.6 MB, free: 12.62 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.367e-05/0.3811, allocations: 91.98 kB / 350.7 MB, free: 12.51 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.456e-05/0.3812, allocations: 7.25 kB / 350.7 MB, free: 12.51 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002021/0.3814, allocations: 14.8 kB / 350.7 MB, free: 12.5 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.568e-05/0.3814, allocations: 22.28 kB / 350.7 MB, free: 12.48 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.188e-05/0.3815, allocations: 11 kB / 350.7 MB, free: 12.47 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001298/0.3816, allocations: 123.4 kB / 350.9 MB, free: 12.36 MB / 282.7 MB Notification: Performance of sort global known variables: time 7.37e-07/0.3816, allocations: 0 / 350.9 MB, free: 12.36 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.000443/0.3821, allocations: 63.31 kB / 350.9 MB, free: 12.3 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 () * Number of clocked 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.0001535/0.3823, allocations: 106.4 kB / 351 MB, free: 12.2 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.000609/0.3829, allocations: 217.8 kB / 351.2 MB, free: 12.03 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.049e-06/0.3829, allocations: 0 / 351.2 MB, free: 12.03 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002852/0.3832, allocations: 109.8 kB / 351.3 MB, free: 11.95 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003902/0.3836, allocations: 33.14 kB / 351.4 MB, free: 11.93 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001926/0.3855, allocations: 1.016 MB / 352.4 MB, free: 10.91 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004619/0.386, allocations: 0.7602 MB / 353.1 MB, free: 10.12 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001086/0.3861, allocations: 19.44 kB / 353.2 MB, free: 10.11 MB / 282.7 MB Notification: Performance of SimCode: time 4.789e-06/0.3862, allocations: 0 / 353.2 MB, free: 10.11 MB / 282.7 MB Notification: Performance of Templates: time 0.005812/0.392, allocations: 2.692 MB / 355.9 MB, free: 7.453 MB / 282.7 MB "Error: Could not read variable springDamper.tau_c in file Modelica_3.2.1_cpp_Modelica.Mechanics.Rotational.Examples.ElasticBearing_res.mat. Warning: Get data of variable springDamper.tau_c from file Modelica_3.2.1_cpp_Modelica.Mechanics.Rotational.Examples.ElasticBearing_res.mat failed! Error: Could not read variable springDamper.tau_d in file Modelica_3.2.1_cpp_Modelica.Mechanics.Rotational.Examples.ElasticBearing_res.mat. Warning: Get data of variable springDamper.tau_d from file Modelica_3.2.1_cpp_Modelica.Mechanics.Rotational.Examples.ElasticBearing_res.mat failed! " 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.w,idealGear.flange_a.phi,idealGear.flange_a.tau,idealGear.flange_b.phi,idealGear.flange_b.tau,idealGear.phi_a,idealGear.phi_b,idealGear.ratio,idealGear.support.phi,idealGear.support.tau,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.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.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.tau,springDamper.w_rel,time,torque.flange.phi,torque.flange.tau,torque.support.phi,torque.support.tau,torque.tau