Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/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.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.703/1.703, allocations: 171.2 MB / 187.3 MB, free: 1.129 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003573/0.0003574, allocations: 8 kB / 233.8 MB, free: 3.07 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08038/0.08076, allocations: 38.76 MB / 272.5 MB, free: 12.23 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3492/0.43, allocations: 68.17 MB / 340.7 MB, free: 5.816 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003009/0.4304, allocations: 82.27 kB / 340.8 MB, free: 5.773 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01867/0.4491, allocations: 4.112 MB / 344.9 MB, free: 2.328 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.194e-06/0.4491, allocations: 4 kB / 344.9 MB, free: 2.324 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.985e-05/0.4492, allocations: 8 kB / 344.9 MB, free: 2.316 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.001058/0.4502, allocations: 0.5104 MB / 345.4 MB, free: 1.773 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.771e-05/0.4503, allocations: 12.03 kB / 345.4 MB, free: 1.762 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.451e-05/0.4504, allocations: 23.72 kB / 345.5 MB, free: 1.738 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003498/0.4508, allocations: 229.2 kB / 345.7 MB, free: 1.484 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.958e-05/0.4508, allocations: 15.25 kB / 345.7 MB, free: 1.477 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.272e-05/0.4509, allocations: 38.23 kB / 345.7 MB, free: 1.449 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006998/0.4516, allocations: 218.6 kB / 345.9 MB, free: 1.289 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.935e-05/0.4516, allocations: 11.2 kB / 346 MB, free: 1.281 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.54e-05/0.4517, allocations: 11.44 kB / 346 MB, free: 1.277 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.033e-05/0.4517, allocations: 4 kB / 346 MB, free: 1.273 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006672/0.4524, allocations: 186.7 kB / 346.2 MB, free: 1.141 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001787/0.4542, allocations: 0.7581 MB / 346.9 MB, free: 484 kB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007414/0.455, allocations: 227.5 kB / 347.1 MB, free: 312 kB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.158e-05/0.455, allocations: 4 kB / 347.1 MB, free: 308 kB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.677e-05/0.4551, allocations: 41.77 kB / 347.2 MB, free: 260 kB / 266.7 MB Notification: Performance of pre-optimization done (n=26): time 2.375e-06/0.4551, allocations: 0 / 347.2 MB, free: 260 kB / 266.7 MB Notification: Performance of matching and sorting (n=28): time 0.002829/0.4579, allocations: 0.9955 MB / 348.2 MB, free: 15.35 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.787e-05/0.458, allocations: 55.41 kB / 348.2 MB, free: 15.29 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002159/0.4582, allocations: 151.5 kB / 348.4 MB, free: 15.14 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 2.825e-05/0.4583, allocations: 29.52 kB / 348.4 MB, free: 15.11 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001364/0.4584, allocations: 212.5 kB / 348.6 MB, free: 14.91 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001065/0.4586, allocations: 103.6 kB / 348.7 MB, free: 14.82 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.202e-05/0.4586, allocations: 7.562 kB / 348.7 MB, free: 14.82 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001413/0.4587, allocations: 323.3 kB / 349 MB, free: 14.5 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000322/0.4591, allocations: 80.58 kB / 349.1 MB, free: 14.44 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003553/0.4594, allocations: 116.5 kB / 349.2 MB, free: 14.34 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003572/0.4598, allocations: 98.22 kB / 349.3 MB, free: 14.28 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.026e-06/0.4598, allocations: 0 / 349.3 MB, free: 14.28 MB / 282.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0008561/0.4607, allocations: 262.2 kB / 349.6 MB, free: 14.08 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.774e-05/0.4607, allocations: 9.094 kB / 349.6 MB, free: 14.07 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.167e-06/0.4608, allocations: 0 / 349.6 MB, free: 14.07 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.262e-05/0.4608, allocations: 4 kB / 349.6 MB, free: 14.07 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005716/0.4614, allocations: 79.98 kB / 349.7 MB, free: 13.99 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.095e-05/0.4614, allocations: 0 / 349.7 MB, free: 13.99 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002532/0.4617, allocations: 18.17 kB / 349.7 MB, free: 13.98 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.89e-05/0.4617, allocations: 8 kB / 349.7 MB, free: 13.97 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.0002109/0.4619, allocations: 138.7 kB / 349.8 MB, free: 13.84 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.483e-05/0.462, allocations: 19.77 kB / 349.9 MB, free: 13.82 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.267e-05/0.4621, allocations: 32.94 kB / 349.9 MB, free: 13.81 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.989e-06/0.4621, allocations: 3.938 kB / 349.9 MB, free: 13.81 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.766e-06/0.4621, allocations: 8 kB / 349.9 MB, free: 13.8 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.123e-06/0.4622, allocations: 3.984 kB / 349.9 MB, free: 13.8 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001568/0.4637, allocations: 0.6599 MB / 350.6 MB, free: 13.2 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.985e-06/0.4638, allocations: 4 kB / 350.6 MB, free: 13.19 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006529/0.4644, allocations: 75.64 kB / 350.6 MB, free: 13.12 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.253e-05/0.4645, allocations: 4 kB / 350.6 MB, free: 13.12 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.467e-05/0.4645, allocations: 7.75 kB / 350.7 MB, free: 13.11 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.937e-06/0.4645, allocations: 4.062 kB / 350.7 MB, free: 13.11 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.565e-06/0.4645, allocations: 4 kB / 350.7 MB, free: 13.11 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001197/0.4657, allocations: 462.1 kB / 351.1 MB, free: 12.72 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.628e-05/0.4659, allocations: 92.61 kB / 351.2 MB, free: 12.61 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.3e-05/0.4659, allocations: 7.688 kB / 351.2 MB, free: 12.61 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002467/0.4662, allocations: 15.92 kB / 351.2 MB, free: 12.6 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.352e-05/0.4663, allocations: 15.97 kB / 351.2 MB, free: 12.58 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.157e-05/0.4663, allocations: 15.56 kB / 351.3 MB, free: 12.57 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001366/0.4665, allocations: 118.3 kB / 351.4 MB, free: 12.46 MB / 282.7 MB Notification: Performance of sort global known variables: time 4.3e-07/0.4665, allocations: 0 / 351.4 MB, free: 12.46 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0004357/0.4669, allocations: 61.06 kB / 351.4 MB, free: 12.41 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.0001706/0.4671, allocations: 110.6 kB / 351.5 MB, free: 12.3 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0007672/0.4679, allocations: 220.1 kB / 351.8 MB, free: 12.13 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/0.4679, allocations: 0 / 351.8 MB, free: 12.13 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000356/0.4683, allocations: 107.7 kB / 351.9 MB, free: 12.05 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005393/0.4688, allocations: 34.88 kB / 351.9 MB, free: 12.03 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002285/0.4711, allocations: 1.021 MB / 352.9 MB, free: 11.02 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000417/0.4716, allocations: 0.7563 MB / 353.7 MB, free: 10.23 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000121/0.4717, allocations: 19.44 kB / 353.7 MB, free: 10.21 MB / 282.7 MB Notification: Performance of SimCode: time 1.173e-06/0.4717, allocations: 0 / 353.7 MB, free: 10.21 MB / 282.7 MB Notification: Performance of Templates: time 0.009054/0.4808, allocations: 2.691 MB / 356.4 MB, free: 7.555 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