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.LossyGearDemo3.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.LossyGearDemo3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3") Notification: Performance of loadModel(Modelica): time 1.701/1.701, allocations: 171.1 MB / 187.3 MB, free: 1.059 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003607/0.0003608, allocations: 8 kB / 233.8 MB, free: 3.074 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08335/0.08374, allocations: 38.77 MB / 272.5 MB, free: 12.23 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3429/0.4267, allocations: 70.46 MB / 343 MB, free: 3.586 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002808/0.4271, allocations: 77.41 kB / 343.1 MB, free: 3.547 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04458/0.4717, allocations: 9.34 MB / 352.4 MB, free: 11.64 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.044e-06/0.4717, allocations: 0 / 352.4 MB, free: 11.64 MB / 282.7 MB Notification: Performance of Transformations before backend: time 2.554e-05/0.4718, allocations: 7.984 kB / 352.4 MB, free: 11.63 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.001496/0.4733, allocations: 0.5788 MB / 353 MB, free: 11.02 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.517e-05/0.4733, allocations: 12.03 kB / 353 MB, free: 11.01 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004413/0.4738, allocations: 43.61 kB / 353.1 MB, free: 10.97 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005667/0.4744, allocations: 281 kB / 353.3 MB, free: 10.68 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000165/0.4746, allocations: 94.34 kB / 353.4 MB, free: 10.58 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.761e-05/0.4747, allocations: 30.41 kB / 353.5 MB, free: 10.56 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001107/0.4758, allocations: 371.3 kB / 353.8 MB, free: 10.28 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.568e-05/0.4758, allocations: 4 kB / 353.8 MB, free: 10.27 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.354e-05/0.4759, allocations: 11.12 kB / 353.8 MB, free: 10.27 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.371e-05/0.4759, allocations: 15.94 kB / 353.8 MB, free: 10.25 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001449/0.4774, allocations: 420.2 kB / 354.3 MB, free: 9.941 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002765/0.4802, allocations: 1.166 MB / 355.4 MB, free: 8.934 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001093/0.4813, allocations: 328.8 kB / 355.7 MB, free: 8.695 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.807e-05/0.4814, allocations: 14.88 kB / 355.8 MB, free: 8.684 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.66e-05/0.4814, allocations: 33.81 kB / 355.8 MB, free: 8.645 MB / 282.7 MB Notification: Performance of pre-optimization done (n=43): time 3.065e-06/0.4814, allocations: 0 / 355.8 MB, free: 8.645 MB / 282.7 MB Notification: Performance of matching and sorting (n=45): time 0.008156/0.4896, allocations: 1.887 MB / 357.7 MB, free: 7.016 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.207e-05/0.4897, allocations: 84.86 kB / 357.8 MB, free: 6.914 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004304/0.4902, allocations: 208.9 kB / 358 MB, free: 6.73 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 6.523e-05/0.4902, allocations: 35.83 kB / 358 MB, free: 6.695 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001349/0.4904, allocations: 201.1 kB / 358.2 MB, free: 6.512 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001776/0.4906, allocations: 150.3 kB / 358.3 MB, free: 6.383 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.921e-05/0.4906, allocations: 10.94 kB / 358.4 MB, free: 6.379 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001419/0.4908, allocations: 324.8 kB / 358.7 MB, free: 6.059 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006578/0.4914, allocations: 165.5 kB / 358.8 MB, free: 5.949 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000774/0.4922, allocations: 234 kB / 359.1 MB, free: 5.762 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006205/0.4929, allocations: 159.4 kB / 359.2 MB, free: 5.664 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.136e-06/0.4929, allocations: 0 / 359.2 MB, free: 5.664 MB / 282.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001888/0.4948, allocations: 0.5394 MB / 359.8 MB, free: 5.27 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.849e-05/0.4948, allocations: 12.08 kB / 359.8 MB, free: 5.258 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.748e-06/0.4949, allocations: 0 / 359.8 MB, free: 5.258 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001221/0.4961, allocations: 233.2 kB / 360 MB, free: 5.078 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004668/0.4966, allocations: 51.03 kB / 360 MB, free: 5.031 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006037/0.5026, allocations: 2.705 MB / 362.8 MB, free: 2.773 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005178/0.5032, allocations: 38.3 kB / 362.8 MB, free: 2.742 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.351e-05/0.5033, allocations: 15.31 kB / 362.8 MB, free: 2.73 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 7 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,$PRE.gear.mode,gear.mode,gear.ideal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (27): * Single equations (assignments): 26 * 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 24} Notification: Performance of prepare postOptimizeDAE: time 0.0003045/0.5036, allocations: 154.3 kB / 363 MB, free: 2.59 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.991e-05/0.5037, allocations: 27.16 kB / 363 MB, free: 2.566 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001186/0.5039, allocations: 44.03 kB / 363 MB, free: 2.551 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.979e-06/0.5039, allocations: 12 kB / 363 MB, free: 2.539 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.339e-06/0.5039, allocations: 0 / 363 MB, free: 2.539 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.011e-06/0.5039, allocations: 0 / 363 MB, free: 2.539 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002966/0.5069, allocations: 1.071 MB / 364.1 MB, free: 1.688 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.783e-06/0.5069, allocations: 0 / 364.1 MB, free: 1.688 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004344/0.5074, allocations: 47.95 kB / 364.2 MB, free: 1.641 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001096/0.5085, allocations: 223.7 kB / 364.4 MB, free: 1.469 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.12e-05/0.5086, allocations: 14.17 kB / 364.4 MB, free: 1.461 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005785/0.5143, allocations: 2.653 MB / 367 MB, free: 15.24 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-06/0.5144, allocations: 0 / 367 MB, free: 15.24 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002588/0.517, allocations: 0.8012 MB / 367.8 MB, free: 14.65 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002612/0.5173, allocations: 149.3 kB / 368 MB, free: 14.5 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.671e-05/0.5174, allocations: 14.94 kB / 368 MB, free: 14.5 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004581/0.5179, allocations: 27.91 kB / 368 MB, free: 14.47 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002398/0.5181, allocations: 66.12 kB / 368.1 MB, free: 14.42 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.211e-05/0.5182, allocations: 15.05 kB / 368.1 MB, free: 14.41 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0003065/0.5185, allocations: 163.4 kB / 368.3 MB, free: 14.27 MB / 298.7 MB Notification: Performance of sort global known variables: time 3.91e-07/0.5185, allocations: 0 / 368.3 MB, free: 14.27 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0009069/0.5195, allocations: 145.1 kB / 368.4 MB, free: 14.14 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (Inertia2.phi,Inertia2.w) * Number of discrete variables: 5 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,gear.mode) * Number of discrete states: 1 (gear.mode) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 20 * 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 23} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003477/0.5198, allocations: 146.7 kB / 368.6 MB, free: 14 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001994/0.5218, allocations: 0.6078 MB / 369.2 MB, free: 13.52 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.126e-06/0.5219, allocations: 3.938 kB / 369.2 MB, free: 13.51 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001167/0.523, allocations: 429.7 kB / 369.6 MB, free: 13.16 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004849/0.5235, allocations: 33.75 kB / 369.6 MB, free: 13.14 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002129/0.5257, allocations: 0.849 MB / 370.5 MB, free: 12.33 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004481/0.5262, allocations: 0.7836 MB / 371.2 MB, free: 11.53 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002488/0.5264, allocations: 34.84 kB / 371.3 MB, free: 11.5 MB / 298.7 MB Notification: Performance of SimCode: time 1.052e-06/0.5264, allocations: 0 / 371.3 MB, free: 11.5 MB / 298.7 MB Notification: Performance of Templates: time 0.01218/0.5386, allocations: 5.024 MB / 376.3 MB, free: 6.492 MB / 298.7 MB "Error: Could not read variable gear.Backward in file Modelica_3.2.1_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat. Warning: Get data of variable gear.Backward from file Modelica_3.2.1_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat failed! Error: Could not read variable gear.Forward in file Modelica_3.2.1_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat. Warning: Get data of variable gear.Forward from file Modelica_3.2.1_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat failed! Error: Could not read variable gear.Free in file Modelica_3.2.1_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat. Warning: Get data of variable gear.Free from file Modelica_3.2.1_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat failed! Error: Could not read variable gear.Stuck in file Modelica_3.2.1_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat. Warning: Get data of variable gear.Stuck from file Modelica_3.2.1_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat failed! Error: Could not read variable gear.Unknown in file Modelica_3.2.1_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat. Warning: Get data of variable gear.Unknown from file Modelica_3.2.1_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat failed! Error: Could not read variable gear.der(w_a) in file Modelica_3.2.1_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat. Warning: Get data of variable gear.der(w_a) from file Modelica_3.2.1_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat failed! Error: Could not read variable gear.eta_mf1_0 in file Modelica_3.2.1_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat. Warning: Get data of variable gear.eta_mf1_0 from file Modelica_3.2.1_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat failed! Error: Could not read variable gear.eta_mf2_0 in file Modelica_3.2.1_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat. Warning: Get data of variable gear.eta_mf2_0 from file Modelica_3.2.1_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat failed! Error: Could not read variable gear.phi_support in file Modelica_3.2.1_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat. Warning: Get data of variable gear.phi_support from file Modelica_3.2.1_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat failed! Error: Could not read variable gear.tau_bf1_0 in file Modelica_3.2.1_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat. Warning: Get data of variable gear.tau_bf1_0 from file Modelica_3.2.1_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat failed! Error: Could not read variable gear.tau_bf2_0 in file Modelica_3.2.1_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat. Warning: Get data of variable gear.tau_bf2_0 from file Modelica_3.2.1_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat failed! Error: Could not read variable gear.tau_bf_a_0 in file Modelica_3.2.1_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat. Warning: Get data of variable gear.tau_bf_a_0 from file Modelica_3.2.1_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat failed! Error: Could not read variable gear.unitAngularAcceleration in file Modelica_3.2.1_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat. Warning: Get data of variable gear.unitAngularAcceleration from file Modelica_3.2.1_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat failed! Error: Could not read variable gear.unitTorque in file Modelica_3.2.1_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat. Warning: Get data of variable gear.unitTorque from file Modelica_3.2.1_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat failed! Error: Could not read variable torque1.phi_support in file Modelica_3.2.1_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat. Warning: Get data of variable torque1.phi_support from file Modelica_3.2.1_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat failed! Error: Could not read variable torque2.phi_support in file Modelica_3.2.1_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat. Warning: Get data of variable torque2.phi_support from file Modelica_3.2.1_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat failed! " Variables in the reference:time,Inertia2.phi,Inertia2.w,gear.mode Variables in the result:Inertia1.J,Inertia1.a,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,gear.a_a,der(gear.phi_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.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,step.height,step.offset,step.startTime,step.y,step1.height,step1.offset,step1.startTime,step1.y,time,torque1.flange.phi,torque1.flange.tau,torque1.tau,torque2.flange.phi,torque2.flange.tau,torque2.tau