Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Running command: translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|Inertia2.phi|Inertia2.w|bearingFriction.mode|bearingFriction.startBackward|bearingFriction.startForward|gear.mode",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2") Notification: Performance of loadModel(Modelica): time 1.838/1.838, allocations: 194.9 MB / 211.7 MB, free: 2.988 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003587/0.000359, allocations: 8 kB / 263.9 MB, free: 13.6 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1021/0.1025, allocations: 44.5 MB / 308.4 MB, free: 1.027 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2): time 0.005626/0.1082, allocations: 2.155 MB / 310.5 MB, free: 14.85 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.004009/0.1123, allocations: 1.082 MB / 311.6 MB, free: 13.77 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003377/0.1127, allocations: 7.938 kB / 311.6 MB, free: 13.76 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002772/0.113, allocations: 55.67 kB / 311.7 MB, free: 13.7 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001063/0.114, allocations: 167.5 kB / 311.8 MB, free: 13.54 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009516/0.115, allocations: 191.7 kB / 312 MB, free: 13.35 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001048/0.1161, allocations: 403.6 kB / 312.4 MB, free: 12.96 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003952/0.1165, allocations: 98 kB / 312.5 MB, free: 12.86 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007445/0.1173, allocations: 251.2 kB / 312.7 MB, free: 12.61 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008125/0.1181, allocations: 295 kB / 313 MB, free: 12.32 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001619/0.1183, allocations: 31.98 kB / 313.1 MB, free: 12.29 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004498/0.1188, allocations: 99.81 kB / 313.2 MB, free: 12.2 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003062/0.1191, allocations: 115.7 kB / 313.3 MB, free: 12.08 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002231/0.1194, allocations: 97.45 kB / 313.4 MB, free: 11.98 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001177/0.1206, allocations: 471.1 kB / 313.8 MB, free: 11.52 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.848e-06/0.1206, allocations: 0 / 313.8 MB, free: 11.52 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.926e-06/0.1207, allocations: 0 / 313.8 MB, free: 11.52 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.128e-05/0.1207, allocations: 0 / 313.8 MB, free: 11.52 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: 98 * Number of variables: 98 Notification: Performance of Generate backend data structure: time 0.003141/0.1238, allocations: 0.7213 MB / 314.5 MB, free: 10.75 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.909e-05/0.1239, allocations: 16.02 kB / 314.6 MB, free: 10.73 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007801/0.1247, allocations: 63.42 kB / 314.6 MB, free: 10.67 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00123/0.126, allocations: 357.2 kB / 315 MB, free: 10.28 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002871/0.1263, allocations: 92.39 kB / 315.1 MB, free: 10.18 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002189/0.1266, allocations: 43.91 kB / 315.1 MB, free: 10.13 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002727/0.1293, allocations: 0.5644 MB / 315.7 MB, free: 9.559 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.762e-05/0.1294, allocations: 0 / 315.7 MB, free: 9.559 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001583/0.1296, allocations: 16 kB / 315.7 MB, free: 9.543 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.617e-05/0.1296, allocations: 8 kB / 315.7 MB, free: 9.535 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00397/0.1336, allocations: 0.6558 MB / 316.4 MB, free: 8.875 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003276/0.1369, allocations: 1.318 MB / 317.7 MB, free: 7.5 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001564/0.1385, allocations: 0.5563 MB / 318.2 MB, free: 6.934 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.459e-05/0.1386, allocations: 8.562 kB / 318.2 MB, free: 6.926 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.861e-05/0.1386, allocations: 39.12 kB / 318.3 MB, free: 6.879 MB / 266.7 MB Notification: Performance of pre-optimization done (n=61): time 3.796e-06/0.1387, allocations: 0 / 318.3 MB, free: 6.879 MB / 266.7 MB Notification: Performance of matching and sorting (n=69): time 0.009276/0.1479, allocations: 2.939 MB / 321.2 MB, free: 3.816 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.703e-05/0.1481, allocations: 81.67 kB / 321.3 MB, free: 3.719 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005642/0.1486, allocations: 338.9 kB / 321.6 MB, free: 3.375 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 9.89e-05/0.1488, allocations: 49.69 kB / 321.7 MB, free: 3.32 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001754/0.1489, allocations: 223.9 kB / 321.9 MB, free: 3.102 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002664/0.1492, allocations: 232.7 kB / 322.1 MB, free: 2.871 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.75e-05/0.1493, allocations: 12 kB / 322.1 MB, free: 2.859 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001838/0.1495, allocations: 334.8 kB / 322.5 MB, free: 2.523 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008706/0.1504, allocations: 289.2 kB / 322.7 MB, free: 2.242 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009366/0.1513, allocations: 362.5 kB / 323.1 MB, free: 1.875 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008101/0.1522, allocations: 263.2 kB / 323.3 MB, free: 1.617 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.656e-06/0.1522, allocations: 4.031 kB / 323.4 MB, free: 1.613 MB / 266.7 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.005655/0.1578, allocations: 0.8969 MB / 324.2 MB, free: 0.707 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.662e-05/0.158, allocations: 7.984 kB / 324.3 MB, free: 0.6992 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.15e-05/0.158, allocations: 4 kB / 324.3 MB, free: 0.6953 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003105/0.1611, allocations: 469.9 kB / 324.7 MB, free: 240 kB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001148/0.1623, allocations: 83.88 kB / 324.8 MB, free: 156 kB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004141/0.1665, allocations: 1.083 MB / 325.9 MB, free: 15.04 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001376/0.1679, allocations: 83.98 kB / 326 MB, free: 14.96 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001749/0.1681, allocations: 20.06 kB / 326 MB, free: 14.94 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 15 (bearingFriction.free,gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,$PRE.gear.mode,gear.mode,$PRE.bearingFriction.startForward,bearingFriction.startForward,$PRE.bearingFriction.startBackward,bearingFriction.startBackward,bearingFriction.locked,$PRE.bearingFriction.mode,bearingFriction.mode,gear.ideal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 45 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 32} Notification: Performance of prepare postOptimizeDAE: time 0.0007006/0.1688, allocations: 177.8 kB / 326.2 MB, free: 14.76 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003089/0.1692, allocations: 39.53 kB / 326.2 MB, free: 14.72 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003414/0.1695, allocations: 75.72 kB / 326.3 MB, free: 14.64 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.139e-05/0.1696, allocations: 4 kB / 326.3 MB, free: 14.64 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.734e-05/0.1696, allocations: 4 kB / 326.3 MB, free: 14.63 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.136e-05/0.1697, allocations: 3.984 kB / 326.3 MB, free: 14.63 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03439/0.2041, allocations: 1.785 MB / 328.1 MB, free: 12.78 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.23e-05/0.2042, allocations: 0 / 328.1 MB, free: 12.78 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001074/0.2053, allocations: 83.91 kB / 328.2 MB, free: 12.7 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002862/0.2082, allocations: 444.5 kB / 328.6 MB, free: 12.26 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001511/0.2084, allocations: 15.98 kB / 328.6 MB, free: 12.24 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01358/0.222, allocations: 1.048 MB / 329.6 MB, free: 11.17 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.07e-06/0.222, allocations: 0 / 329.6 MB, free: 11.17 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006888/0.2289, allocations: 1.309 MB / 331 MB, free: 9.836 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.007359/0.2363, allocations: 192.5 kB / 331.1 MB, free: 9.629 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002598/0.2366, allocations: 16 kB / 331.2 MB, free: 9.613 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001186/0.2378, allocations: 71.94 kB / 331.2 MB, free: 9.543 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004964/0.2384, allocations: 96.36 kB / 331.3 MB, free: 9.449 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001498/0.2385, allocations: 27.97 kB / 331.4 MB, free: 9.422 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0007606/0.2393, allocations: 241.9 kB / 331.6 MB, free: 9.188 MB / 282.7 MB Notification: Performance of sort global known variables: time 1.169e-06/0.2393, allocations: 0 / 331.6 MB, free: 9.188 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.001407/0.2408, allocations: 148 kB / 331.7 MB, free: 9.043 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (Inertia2.phi,Inertia2.w) * Number of discrete variables: 9 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,gear.mode,bearingFriction.startForward,bearingFriction.startBackward,bearingFriction.locked,bearingFriction.mode) * Number of discrete states: 4 (bearingFriction.mode,bearingFriction.startBackward,bearingFriction.startForward,gear.mode) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (39): * Single equations (assignments): 38 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 29} Notification: Performance of Backend phase and start with SimCode phase: time 0.0006108/0.2414, allocations: 159.4 kB / 331.9 MB, free: 8.879 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.004078/0.2455, allocations: 0.7197 MB / 332.6 MB, free: 8.156 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 9.703e-06/0.2456, allocations: 4.062 kB / 332.6 MB, free: 8.152 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00226/0.2479, allocations: 388.1 kB / 333 MB, free: 7.773 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009033/0.2488, allocations: 46 kB / 333 MB, free: 7.723 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006771/0.2556, allocations: 1.394 MB / 334.4 MB, free: 6.289 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009511/0.2566, allocations: 0.829 MB / 335.3 MB, free: 5.43 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004375/0.2571, allocations: 39.41 kB / 335.3 MB, free: 5.395 MB / 282.7 MB Notification: Performance of SimCode: time 2.361e-06/0.2571, allocations: 0 / 335.3 MB, free: 5.395 MB / 282.7 MB Notification: Performance of Templates: time 0.02013/0.2772, allocations: 6.926 MB / 342.2 MB, free: 14.47 MB / 298.7 MB "Error: Could not read variable bearingFriction.Backward in file Modelica_3.2.2_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.mat. Warning: Get data of variable bearingFriction.Backward from file Modelica_3.2.2_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.mat failed! Error: Could not read variable bearingFriction.Forward in file Modelica_3.2.2_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.mat. Warning: Get data of variable bearingFriction.Forward from file Modelica_3.2.2_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.mat failed! Error: Could not read variable bearingFriction.Free in file Modelica_3.2.2_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.mat. Warning: Get data of variable bearingFriction.Free from file Modelica_3.2.2_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.mat failed! Error: Could not read variable bearingFriction.Stuck in file Modelica_3.2.2_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.mat. Warning: Get data of variable bearingFriction.Stuck from file Modelica_3.2.2_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.mat failed! Error: Could not read variable bearingFriction.Unknown in file Modelica_3.2.2_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.mat. Warning: Get data of variable bearingFriction.Unknown from file Modelica_3.2.2_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.mat failed! Error: Could not read variable gear.Backward in file Modelica_3.2.2_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.mat. Warning: Get data of variable gear.Backward from file Modelica_3.2.2_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.mat failed! Error: Could not read variable gear.Forward in file Modelica_3.2.2_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.mat. Warning: Get data of variable gear.Forward from file Modelica_3.2.2_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.mat failed! Error: Could not read variable gear.Free in file Modelica_3.2.2_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.mat. Warning: Get data of variable gear.Free from file Modelica_3.2.2_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.mat failed! Error: Could not read variable gear.Stuck in file Modelica_3.2.2_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.mat. Warning: Get data of variable gear.Stuck from file Modelica_3.2.2_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.mat failed! Error: Could not read variable gear.Unknown in file Modelica_3.2.2_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.mat. Warning: Get data of variable gear.Unknown from file Modelica_3.2.2_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.mat failed! Error: Could not read variable gear.eta_mf1_0 in file Modelica_3.2.2_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.mat. Warning: Get data of variable gear.eta_mf1_0 from file Modelica_3.2.2_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.mat failed! Error: Could not read variable gear.eta_mf2_0 in file Modelica_3.2.2_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.mat. Warning: Get data of variable gear.eta_mf2_0 from file Modelica_3.2.2_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.mat failed! Error: Could not read variable gear.flange_b.der(phi) in file Modelica_3.2.2_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.mat. Warning: Get data of variable gear.flange_b.der(phi) from file Modelica_3.2.2_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.mat failed! Error: Could not read variable gear.tau_bf1_0 in file Modelica_3.2.2_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.mat. Warning: Get data of variable gear.tau_bf1_0 from file Modelica_3.2.2_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.mat failed! Error: Could not read variable gear.tau_bf2_0 in file Modelica_3.2.2_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.mat. Warning: Get data of variable gear.tau_bf2_0 from file Modelica_3.2.2_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.mat failed! Error: Could not read variable gear.tau_bf_a_0 in file Modelica_3.2.2_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.mat. Warning: Get data of variable gear.tau_bf_a_0 from file Modelica_3.2.2_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.mat failed! Error: Could not read variable gear.unitAngularAcceleration in file Modelica_3.2.2_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.mat. Warning: Get data of variable gear.unitAngularAcceleration from file Modelica_3.2.2_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.mat failed! Error: Could not read variable gear.unitTorque in file Modelica_3.2.2_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.mat. Warning: Get data of variable gear.unitTorque from file Modelica_3.2.2_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.mat failed! " Variables in the reference:time,Inertia2.phi,Inertia2.w,bearingFriction.mode,bearingFriction.startBackward,bearingFriction.startForward,gear.mode Variables in the result:DriveSine.amplitude,DriveSine.freqHz,DriveSine.offset,DriveSine.phase,DriveSine.startTime,DriveSine.y,Inertia1.J,Inertia1.a,der(Inertia1.phi),der(Inertia1.w),Inertia1.flange_a.phi,Inertia1.flange_a.tau,Inertia1.flange_b.phi,Inertia1.flange_b.tau,Inertia1.phi,Inertia1.w,Inertia2.J,Inertia2.a,der(Inertia2.phi),der(Inertia2.w),Inertia2.flange_a.phi,Inertia2.flange_a.tau,Inertia2.flange_b.phi,Inertia2.flange_b.tau,Inertia2.phi,Inertia2.w,PowerLoss,bearingFriction.a,bearingFriction.a_relfric,der(bearingFriction.phi),der(bearingFriction.w),bearingFriction.flange_a.phi,bearingFriction.flange_a.tau,bearingFriction.flange_b.phi,bearingFriction.flange_b.tau,bearingFriction.free,bearingFriction.locked,bearingFriction.lossPower,bearingFriction.mode,bearingFriction.peak,bearingFriction.phi,bearingFriction.sa,bearingFriction.startBackward,bearingFriction.startForward,bearingFriction.support.phi,bearingFriction.support.tau,bearingFriction.tau,bearingFriction.tau0,bearingFriction.tau0_max,bearingFriction.tau_pos[1,1],bearingFriction.tau_pos[1,2],bearingFriction.tau_pos[2,1],bearingFriction.tau_pos[2,2],bearingFriction.w,bearingFriction.w_relfric,bearingFriction.w_small,fixed.flange.phi,fixed.flange.tau,fixed.phi0,gear.a_a,der(gear.der(phi_b)),der(gear.phi_a),der(gear.phi_b),der(gear.w_a),gear.eta_mf1,gear.eta_mf2,gear.flange_a.phi,gear.flange_a.tau,gear.flange_b.phi,gear.flange_b.tau,gear.ideal,gear.interpolation_result[1,1],gear.interpolation_result[1,2],gear.interpolation_result[1,3],gear.interpolation_result[1,4],gear.locked,gear.lossPower,gear.lossTable[1,1],gear.lossTable[1,2],gear.lossTable[1,3],gear.lossTable[1,4],gear.lossTable[1,5],gear.mode,gear.phi_a,gear.phi_b,gear.quadrant1,gear.quadrant1_p,gear.quadrant2,gear.quadrant2_p,gear.quadrant3,gear.quadrant3_m,gear.quadrant4,gear.quadrant4_m,gear.ratio,gear.sa,gear.startBackward,gear.startForward,gear.support.phi,gear.support.tau,gear.tauLoss,gear.tauLossMax,gear.tauLossMax_p,gear.tauLossMin,gear.tauLossMin_m,gear.tau_aPos,gear.tau_bf1,gear.tau_bf2,gear.tau_bf_a,gear.tau_eta,gear.tau_etaPos,gear.tau_eta_m,gear.tau_eta_p,gear.w_a,load.duration,load.height,load.offset,load.startTime,load.y,time,torque1.flange.phi,torque1.flange.tau,torque1.support.phi,torque1.support.tau,torque1.tau,torque2.flange.phi,torque2.flange.tau,torque2.support.phi,torque2.support.tau,torque2.tau