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.626/1.626, allocations: 171.2 MB / 186.7 MB, free: 1.117 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003485/0.0003487, allocations: 8 kB / 233.2 MB, free: 0.9688 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06961/0.06998, allocations: 38.77 MB / 271.9 MB, free: 10.11 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.ElasticBearing): time 0.002883/0.0729, allocations: 1.896 MB / 273.8 MB, free: 8.191 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.001104/0.07405, allocations: 0.5773 MB / 274.4 MB, free: 7.613 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001344/0.07421, allocations: 7.938 kB / 274.4 MB, free: 7.605 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 6.665e-05/0.07429, allocations: 27.77 kB / 274.4 MB, free: 7.578 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002426/0.07454, allocations: 91.8 kB / 274.5 MB, free: 7.488 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001667/0.07472, allocations: 35.97 kB / 274.6 MB, free: 7.453 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003367/0.07507, allocations: 207.5 kB / 274.8 MB, free: 7.25 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001997/0.07529, allocations: 89.64 kB / 274.8 MB, free: 7.164 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001517/0.07545, allocations: 95.69 kB / 274.9 MB, free: 7.07 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001686/0.07564, allocations: 111.5 kB / 275 MB, free: 6.961 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 4.143e-05/0.07569, allocations: 16 kB / 275.1 MB, free: 6.945 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.679e-05/0.07575, allocations: 12 kB / 275.1 MB, free: 6.934 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 5.643e-05/0.07582, allocations: 39.84 kB / 275.1 MB, free: 6.895 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 7.766e-05/0.07591, allocations: 73.52 kB / 275.2 MB, free: 6.816 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002942/0.07621, allocations: 207.7 kB / 275.4 MB, free: 6.613 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.54e-06/0.07623, allocations: 0 / 275.4 MB, free: 6.613 MB / 234.7 MB Notification: Performance of FrontEnd: time 2.115e-06/0.07625, allocations: 0 / 275.4 MB, free: 6.613 MB / 234.7 MB Notification: Performance of Transformations before backend: time 6.575e-06/0.07626, allocations: 0 / 275.4 MB, free: 6.613 MB / 234.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.0008636/0.07713, allocations: 0.5045 MB / 275.9 MB, free: 6.059 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.578e-05/0.07718, allocations: 8.031 kB / 275.9 MB, free: 6.051 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.224e-05/0.07726, allocations: 27.72 kB / 275.9 MB, free: 6.023 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003557/0.07763, allocations: 242.3 kB / 276.2 MB, free: 5.75 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.996e-05/0.07768, allocations: 20.52 kB / 276.2 MB, free: 5.73 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.543e-05/0.07775, allocations: 32 kB / 276.2 MB, free: 5.699 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005825/0.07835, allocations: 224.9 kB / 276.4 MB, free: 5.473 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.711e-05/0.07839, allocations: 7.906 kB / 276.4 MB, free: 5.465 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.888e-05/0.07843, allocations: 15.94 kB / 276.5 MB, free: 5.449 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.089e-05/0.07845, allocations: 8 kB / 276.5 MB, free: 5.441 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005734/0.07904, allocations: 182.1 kB / 276.6 MB, free: 5.266 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001602/0.08066, allocations: 0.7695 MB / 277.4 MB, free: 4.438 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006264/0.08131, allocations: 222.7 kB / 277.6 MB, free: 4.211 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.296e-05/0.08135, allocations: 4 kB / 277.6 MB, free: 4.207 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.344e-05/0.08139, allocations: 30.56 kB / 277.7 MB, free: 4.168 MB / 234.7 MB Notification: Performance of pre-optimization done (n=26): time 3.129e-06/0.08141, allocations: 0 / 277.7 MB, free: 4.168 MB / 234.7 MB Notification: Performance of matching and sorting (n=28): time 0.002337/0.08375, allocations: 0.9942 MB / 278.7 MB, free: 3.086 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.304e-05/0.08383, allocations: 51.41 kB / 278.7 MB, free: 3.023 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001959/0.08404, allocations: 154.7 kB / 278.9 MB, free: 2.859 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 3.393e-05/0.08408, allocations: 29.7 kB / 278.9 MB, free: 2.824 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001395/0.08423, allocations: 207 kB / 279.1 MB, free: 2.621 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001144/0.08436, allocations: 110.5 kB / 279.2 MB, free: 2.512 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.493e-05/0.08439, allocations: 4 kB / 279.2 MB, free: 2.508 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.000176/0.08458, allocations: 326.8 kB / 279.5 MB, free: 2.18 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002562/0.08484, allocations: 83.89 kB / 279.6 MB, free: 2.098 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002892/0.08515, allocations: 119.4 kB / 279.7 MB, free: 1.969 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002828/0.08545, allocations: 95.98 kB / 279.8 MB, free: 1.875 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.404e-06/0.08546, allocations: 0 / 279.8 MB, free: 1.875 MB / 234.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0007037/0.08618, allocations: 261.4 kB / 280.1 MB, free: 1.613 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.161e-05/0.08621, allocations: 7.953 kB / 280.1 MB, free: 1.605 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.383e-06/0.08623, allocations: 0 / 280.1 MB, free: 1.605 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.58e-05/0.08626, allocations: 4 kB / 280.1 MB, free: 1.602 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003756/0.08664, allocations: 79.98 kB / 280.2 MB, free: 1.523 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.071e-05/0.08667, allocations: 4 kB / 280.2 MB, free: 1.52 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001726/0.08685, allocations: 15.98 kB / 280.2 MB, free: 1.504 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.685e-05/0.08689, allocations: 12 kB / 280.2 MB, free: 1.492 MB / 234.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.0001911/0.08709, allocations: 134.2 kB / 280.3 MB, free: 1.352 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.341e-05/0.08718, allocations: 19.81 kB / 280.3 MB, free: 1.332 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.359e-05/0.08726, allocations: 30.5 kB / 280.4 MB, free: 1.301 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.707e-06/0.08729, allocations: 8 kB / 280.4 MB, free: 1.293 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.002e-05/0.0873, allocations: 4 kB / 280.4 MB, free: 1.289 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.007e-06/0.08732, allocations: 0 / 280.4 MB, free: 1.289 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001397/0.08872, allocations: 0.6714 MB / 281.1 MB, free: 0.5547 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.37e-06/0.08875, allocations: 0 / 281.1 MB, free: 0.5547 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000435/0.08919, allocations: 67.95 kB / 281.1 MB, free: 500 kB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.281e-06/0.08922, allocations: 4 kB / 281.1 MB, free: 496 kB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.588e-05/0.08925, allocations: 8 kB / 281.1 MB, free: 488 kB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.792e-06/0.08927, allocations: 3.938 kB / 281.1 MB, free: 484 kB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.776e-06/0.08929, allocations: 3.938 kB / 281.1 MB, free: 480 kB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1708/0.2601, allocations: 461.7 kB / 281.6 MB, free: 15.31 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.952e-05/0.2602, allocations: 92.31 kB / 281.7 MB, free: 15.22 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.693e-05/0.2603, allocations: 7.453 kB / 281.7 MB, free: 15.22 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002338/0.2605, allocations: 14.77 kB / 281.7 MB, free: 15.22 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.36e-05/0.2606, allocations: 16.62 kB / 281.7 MB, free: 15.22 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.22e-05/0.2607, allocations: 8.391 kB / 281.7 MB, free: 15.22 MB / 234.7 MB Notification: Performance of sorting global known variables: time 0.0001201/0.2608, allocations: 119.2 kB / 281.8 MB, free: 15.14 MB / 234.7 MB Notification: Performance of sort global known variables: time 7.53e-07/0.2608, allocations: 0 / 281.8 MB, free: 15.14 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.000439/0.2613, allocations: 60.06 kB / 281.9 MB, free: 15.14 MB / 234.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.0001206/0.2614, allocations: 109.8 kB / 282 MB, free: 15.06 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.0006488/0.262, allocations: 204 kB / 282.2 MB, free: 15.06 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 3.056e-06/0.2621, allocations: 2.562 kB / 282.2 MB, free: 15.06 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002893/0.2624, allocations: 117.7 kB / 282.3 MB, free: 15.06 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004024/0.2628, allocations: 31.62 kB / 282.4 MB, free: 15.06 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001695/0.2645, allocations: 1.03 MB / 283.4 MB, free: 14.44 MB / 234.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002353/0.2648, allocations: 0.7536 MB / 284.1 MB, free: 13.74 MB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.378e-05/0.2649, allocations: 21.8 kB / 284.2 MB, free: 13.73 MB / 234.7 MB Notification: Performance of SimCode: time 1.536e-06/0.2649, allocations: 4.625 kB / 284.2 MB, free: 13.73 MB / 234.7 MB Notification: Performance of Templates: time 0.006279/0.2712, allocations: 2.666 MB / 286.8 MB, free: 13.52 MB / 234.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.phi),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,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