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.2_cpp_Modelica.Mechanics.Rotational.Examples.ElasticBearing") Notification: Performance of loadModel(Modelica): time 1.829/1.829, allocations: 194.9 MB / 208.4 MB, free: 3.16 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.564e-05/2.583e-05, allocations: 4 kB / 255.4 MB, free: 3.172 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07709/0.07714, allocations: 44.5 MB / 299.9 MB, free: 6.613 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3346/0.4118, allocations: 73.39 MB / 373.2 MB, free: 22.49 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003589/0.4122, allocations: 69.78 kB / 373.3 MB, free: 22.49 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02678/0.439, allocations: 4.046 MB / 377.4 MB, free: 21.9 MB / 314.7 MB Notification: Performance of FrontEnd: time 3.072e-06/0.4391, allocations: 1.031 kB / 377.4 MB, free: 21.9 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.845e-05/0.4391, allocations: 5.281 kB / 377.4 MB, free: 21.9 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: 63 * Number of variables: 63 Notification: Performance of Generate backend data structure: time 0.001224/0.4404, allocations: 496.7 kB / 377.9 MB, free: 21.5 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.419e-05/0.4405, allocations: 9.031 kB / 377.9 MB, free: 21.5 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001332/0.4406, allocations: 29.78 kB / 377.9 MB, free: 21.48 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004492/0.4411, allocations: 234 kB / 378.1 MB, free: 21.25 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.999e-05/0.4412, allocations: 19.56 kB / 378.1 MB, free: 21.25 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001165/0.4413, allocations: 27.62 kB / 378.2 MB, free: 21.25 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009006/0.4422, allocations: 200.1 kB / 378.4 MB, free: 21.22 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.143e-05/0.4423, allocations: 1.531 kB / 378.4 MB, free: 21.22 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.613e-05/0.4424, allocations: 12.28 kB / 378.4 MB, free: 21.22 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.799e-05/0.4424, allocations: 8.141 kB / 378.4 MB, free: 21.22 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007376/0.4432, allocations: 145 kB / 378.5 MB, free: 21.21 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00245/0.4456, allocations: 0.7641 MB / 379.3 MB, free: 20.85 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008913/0.4466, allocations: 196.5 kB / 379.5 MB, free: 20.82 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000401/0.447, allocations: 100.3 kB / 379.6 MB, free: 20.82 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.983e-05/0.4471, allocations: 3.125 kB / 379.6 MB, free: 20.82 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.949e-05/0.4471, allocations: 41.91 kB / 379.6 MB, free: 20.77 MB / 314.7 MB Notification: Performance of pre-optimization done (n=26): time 5.98e-06/0.4471, allocations: 1.203 kB / 379.6 MB, free: 20.77 MB / 314.7 MB Notification: Performance of matching and sorting (n=28): time 0.002735/0.4499, allocations: 0.8302 MB / 380.5 MB, free: 20.27 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.663e-05/0.45, allocations: 54.75 kB / 380.5 MB, free: 20.21 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002472/0.4503, allocations: 138.6 kB / 380.6 MB, free: 20.11 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.527e-05/0.4503, allocations: 30.61 kB / 380.7 MB, free: 20.08 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001061/0.4504, allocations: 206.6 kB / 380.9 MB, free: 19.9 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001305/0.4506, allocations: 106.5 kB / 381 MB, free: 19.84 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.804e-05/0.4506, allocations: 5.062 kB / 381 MB, free: 19.84 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 8.761e-05/0.4508, allocations: 323.3 kB / 381.3 MB, free: 19.52 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003133/0.4511, allocations: 63.69 kB / 381.4 MB, free: 19.52 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003608/0.4515, allocations: 97.31 kB / 381.5 MB, free: 19.48 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003721/0.4519, allocations: 74.73 kB / 381.5 MB, free: 19.48 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.227e-06/0.4519, allocations: 0 / 381.5 MB, free: 19.48 MB / 314.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0009502/0.4529, allocations: 224.6 kB / 381.7 MB, free: 19.43 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.191e-05/0.4529, allocations: 7.406 kB / 381.8 MB, free: 19.43 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.325e-05/0.453, allocations: 2.391 kB / 381.8 MB, free: 19.43 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.853e-05/0.453, allocations: 2.781 kB / 381.8 MB, free: 19.43 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008089/0.4538, allocations: 82.75 kB / 381.8 MB, free: 19.42 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.834e-05/0.4539, allocations: 1.469 kB / 381.8 MB, free: 19.42 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003757/0.4543, allocations: 15.56 kB / 381.9 MB, free: 19.42 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.827e-05/0.4543, allocations: 14.16 kB / 381.9 MB, free: 19.42 MB / 314.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.0001359/0.4545, allocations: 124.1 kB / 382 MB, free: 19.3 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001242/0.4546, allocations: 16.66 kB / 382 MB, free: 19.3 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001142/0.4548, allocations: 28.11 kB / 382 MB, free: 19.29 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.157e-05/0.4548, allocations: 7.438 kB / 382 MB, free: 19.29 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.091e-05/0.4548, allocations: 3.938 kB / 382 MB, free: 19.29 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.346e-05/0.4549, allocations: 3.422 kB / 382.1 MB, free: 19.29 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00199/0.4569, allocations: 0.624 MB / 382.7 MB, free: 18.95 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.744e-06/0.4569, allocations: 1.125 kB / 382.7 MB, free: 18.95 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009131/0.4579, allocations: 76.98 kB / 382.8 MB, free: 18.95 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.638e-05/0.4579, allocations: 1.781 kB / 382.8 MB, free: 18.95 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.43e-05/0.458, allocations: 5.656 kB / 382.8 MB, free: 18.95 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.633e-06/0.458, allocations: 6.188 kB / 382.8 MB, free: 18.95 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.525e-06/0.458, allocations: 1.031 kB / 382.8 MB, free: 18.95 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001218/0.4592, allocations: 427.1 kB / 383.2 MB, free: 18.74 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001033/0.4594, allocations: 96.52 kB / 383.3 MB, free: 18.64 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.84e-05/0.4595, allocations: 6.125 kB / 383.3 MB, free: 18.64 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004243/0.4599, allocations: 17.89 kB / 383.3 MB, free: 18.63 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000107/0.4601, allocations: 19.58 kB / 383.3 MB, free: 18.63 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.933e-05/0.4601, allocations: 4.656 kB / 383.3 MB, free: 18.63 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.000182/0.4603, allocations: 120.8 kB / 383.4 MB, free: 18.55 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.261e-06/0.4604, allocations: 3.938 kB / 383.4 MB, free: 18.55 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0009608/0.4613, allocations: 62.56 kB / 383.5 MB, free: 18.55 MB / 314.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.0002052/0.4616, allocations: 103.1 kB / 383.6 MB, free: 18.46 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0007716/0.4624, allocations: 171.3 kB / 383.8 MB, free: 18.45 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.339e-06/0.4624, allocations: 0 / 383.8 MB, free: 18.45 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003582/0.4628, allocations: 88.61 kB / 383.9 MB, free: 18.45 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007267/0.4635, allocations: 38.3 kB / 383.9 MB, free: 18.44 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002602/0.4661, allocations: 0.7275 MB / 384.6 MB, free: 17.96 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003587/0.4665, allocations: 0.7572 MB / 385.4 MB, free: 17.26 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001567/0.4667, allocations: 20.91 kB / 385.4 MB, free: 17.25 MB / 314.7 MB Notification: Performance of SimCode: time 2.328e-06/0.4667, allocations: 0 / 385.4 MB, free: 17.25 MB / 314.7 MB Notification: Performance of Templates: time 0.01004/0.4768, allocations: 2.662 MB / 388.1 MB, free: 17.04 MB / 314.7 MB "Error: Could not read variable springDamper.tau_c in file Modelica_3.2.2_cpp_Modelica.Mechanics.Rotational.Examples.ElasticBearing_res.mat. Warning: Get data of variable springDamper.tau_c from file Modelica_3.2.2_cpp_Modelica.Mechanics.Rotational.Examples.ElasticBearing_res.mat failed! Error: Could not read variable springDamper.tau_d in file Modelica_3.2.2_cpp_Modelica.Mechanics.Rotational.Examples.ElasticBearing_res.mat. Warning: Get data of variable springDamper.tau_d from file Modelica_3.2.2_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