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.LossyGearDemo3.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.LossyGearDemo3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3") Notification: Performance of loadModel(Modelica): time 1.793/1.793, allocations: 194.9 MB / 211.7 MB, free: 2.977 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000755/0.0007551, allocations: 8 kB / 263.9 MB, free: 13.56 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1166/0.1174, allocations: 44.5 MB / 308.4 MB, free: 0.9883 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3347/0.4522, allocations: 75.78 MB / 384.2 MB, free: 18.43 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002274/0.4524, allocations: 76.66 kB / 384.3 MB, free: 18.43 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03645/0.4889, allocations: 9.331 MB / 393.6 MB, free: 17.54 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.463e-06/0.4889, allocations: 0 / 393.6 MB, free: 17.54 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.832e-05/0.489, allocations: 7.719 kB / 393.6 MB, free: 17.54 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: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.0009946/0.49, allocations: 0.575 MB / 394.2 MB, free: 17.1 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.533e-05/0.49, allocations: 11.75 kB / 394.2 MB, free: 17.1 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003512/0.4904, allocations: 49.03 kB / 394.3 MB, free: 17.09 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004045/0.4908, allocations: 283.4 kB / 394.6 MB, free: 16.86 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001184/0.4909, allocations: 87.61 kB / 394.6 MB, free: 16.79 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.887e-05/0.491, allocations: 26.69 kB / 394.7 MB, free: 16.79 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008012/0.4918, allocations: 372.1 kB / 395 MB, free: 16.71 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.251e-05/0.4919, allocations: 0 / 395 MB, free: 16.71 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.919e-05/0.4919, allocations: 18.5 kB / 395 MB, free: 16.71 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.224e-06/0.492, allocations: 3.875 kB / 395 MB, free: 16.71 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001092/0.4931, allocations: 416.4 kB / 395.5 MB, free: 16.71 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002069/0.4952, allocations: 1.173 MB / 396.6 MB, free: 16.16 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008131/0.496, allocations: 333.5 kB / 397 MB, free: 16.12 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.748e-05/0.496, allocations: 7.688 kB / 397 MB, free: 16.12 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.924e-05/0.4961, allocations: 38.22 kB / 397 MB, free: 16.08 MB / 314.7 MB Notification: Performance of pre-optimization done (n=43): time 2.664e-06/0.4961, allocations: 0 / 397 MB, free: 16.08 MB / 314.7 MB Notification: Performance of matching and sorting (n=45): time 0.005588/0.5017, allocations: 1.874 MB / 398.9 MB, free: 15.43 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.727e-05/0.5018, allocations: 92.73 kB / 399 MB, free: 15.32 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003147/0.5021, allocations: 196.7 kB / 399.2 MB, free: 15.22 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.788e-05/0.5022, allocations: 33.14 kB / 399.2 MB, free: 15.19 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.867e-05/0.5022, allocations: 200.7 kB / 399.4 MB, free: 15.02 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001099/0.5024, allocations: 147.7 kB / 399.5 MB, free: 14.93 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.29e-05/0.5024, allocations: 14.69 kB / 399.5 MB, free: 14.92 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.173e-05/0.5025, allocations: 328.8 kB / 399.9 MB, free: 14.61 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004538/0.503, allocations: 167.6 kB / 400 MB, free: 14.61 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004801/0.5034, allocations: 220.2 kB / 400.2 MB, free: 14.55 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004409/0.5039, allocations: 164.5 kB / 400.4 MB, free: 14.54 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.511e-06/0.5039, allocations: 0 / 400.4 MB, free: 14.54 MB / 314.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001347/0.5053, allocations: 0.5367 MB / 400.9 MB, free: 14.47 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.173e-05/0.5053, allocations: 11.47 kB / 400.9 MB, free: 14.47 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.681e-06/0.5053, allocations: 0 / 400.9 MB, free: 14.47 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001084/0.5064, allocations: 234.7 kB / 401.2 MB, free: 14.45 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000312/0.5068, allocations: 53.77 kB / 401.2 MB, free: 14.45 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004382/0.5112, allocations: 2.709 MB / 403.9 MB, free: 13.04 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000393/0.5116, allocations: 29.97 kB / 404 MB, free: 13.04 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.454e-05/0.5117, allocations: 19.16 kB / 404 MB, free: 13.04 MB / 314.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.0002257/0.5119, allocations: 150.7 kB / 404.1 MB, free: 12.92 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.085e-05/0.512, allocations: 30.91 kB / 404.2 MB, free: 12.91 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.924e-05/0.5121, allocations: 46.7 kB / 404.2 MB, free: 12.89 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.784e-06/0.5122, allocations: 3.75 kB / 404.2 MB, free: 12.89 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.357e-06/0.5122, allocations: 7.953 kB / 404.2 MB, free: 12.89 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.72e-06/0.5122, allocations: 3.781 kB / 404.2 MB, free: 12.89 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00233/0.5145, allocations: 1.064 MB / 405.3 MB, free: 12.56 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.784e-06/0.5146, allocations: 3.609 kB / 405.3 MB, free: 12.56 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002939/0.5149, allocations: 50.16 kB / 405.3 MB, free: 12.56 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007945/0.5157, allocations: 233.5 kB / 405.6 MB, free: 12.54 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.564e-05/0.5157, allocations: 14.8 kB / 405.6 MB, free: 12.54 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004275/0.52, allocations: 2.655 MB / 408.2 MB, free: 11.13 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.786e-06/0.5201, allocations: 0 / 408.2 MB, free: 11.13 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002022/0.5221, allocations: 0.7914 MB / 409 MB, free: 10.96 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001992/0.5223, allocations: 137.8 kB / 409.2 MB, free: 10.86 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.393e-05/0.5224, allocations: 11.12 kB / 409.2 MB, free: 10.86 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003321/0.5228, allocations: 34.44 kB / 409.2 MB, free: 10.86 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001924/0.523, allocations: 64.3 kB / 409.3 MB, free: 10.86 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.707e-05/0.523, allocations: 14.89 kB / 409.3 MB, free: 10.86 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0002085/0.5233, allocations: 154.6 kB / 409.4 MB, free: 10.78 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.372e-06/0.5233, allocations: 4.062 kB / 409.4 MB, free: 10.78 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0008311/0.5241, allocations: 148.8 kB / 409.6 MB, free: 10.77 MB / 314.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.0002539/0.5244, allocations: 141.5 kB / 409.7 MB, free: 10.66 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001451/0.5258, allocations: 0.6138 MB / 410.3 MB, free: 10.5 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.591e-06/0.5259, allocations: 3.938 kB / 410.3 MB, free: 10.5 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000845/0.5267, allocations: 426.9 kB / 410.8 MB, free: 10.35 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003768/0.5271, allocations: 24.3 kB / 410.8 MB, free: 10.35 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001479/0.5286, allocations: 0.8565 MB / 411.6 MB, free: 9.863 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002468/0.5289, allocations: 0.7889 MB / 412.4 MB, free: 9.16 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001789/0.5291, allocations: 31.53 kB / 412.5 MB, free: 9.152 MB / 314.7 MB Notification: Performance of SimCode: time 1.531e-06/0.5291, allocations: 0 / 412.5 MB, free: 9.152 MB / 314.7 MB Notification: Performance of Templates: time 0.00859/0.5377, allocations: 5.034 MB / 417.5 MB, free: 6.961 MB / 314.7 MB "Error: Could not read variable gear.Backward in file Modelica_3.2.2_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat. Warning: Get data of variable gear.Backward from file Modelica_3.2.2_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat failed! Error: Could not read variable gear.Forward in file Modelica_3.2.2_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat. Warning: Get data of variable gear.Forward from file Modelica_3.2.2_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat failed! Error: Could not read variable gear.Free in file Modelica_3.2.2_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat. Warning: Get data of variable gear.Free from file Modelica_3.2.2_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat failed! Error: Could not read variable gear.Stuck in file Modelica_3.2.2_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat. Warning: Get data of variable gear.Stuck from file Modelica_3.2.2_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat failed! Error: Could not read variable gear.Unknown in file Modelica_3.2.2_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat. Warning: Get data of variable gear.Unknown from file Modelica_3.2.2_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat failed! Error: Could not read variable gear.der(w_a) in file Modelica_3.2.2_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat. Warning: Get data of variable gear.der(w_a) from file Modelica_3.2.2_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat failed! Error: Could not read variable gear.eta_mf1_0 in file Modelica_3.2.2_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat. Warning: Get data of variable gear.eta_mf1_0 from file Modelica_3.2.2_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat failed! Error: Could not read variable gear.eta_mf2_0 in file Modelica_3.2.2_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat. Warning: Get data of variable gear.eta_mf2_0 from file Modelica_3.2.2_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat failed! Error: Could not read variable gear.phi_support in file Modelica_3.2.2_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat. Warning: Get data of variable gear.phi_support from file Modelica_3.2.2_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat failed! Error: Could not read variable gear.tau_bf1_0 in file Modelica_3.2.2_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat. Warning: Get data of variable gear.tau_bf1_0 from file Modelica_3.2.2_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat failed! Error: Could not read variable gear.tau_bf2_0 in file Modelica_3.2.2_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat. Warning: Get data of variable gear.tau_bf2_0 from file Modelica_3.2.2_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat failed! Error: Could not read variable gear.tau_bf_a_0 in file Modelica_3.2.2_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat. Warning: Get data of variable gear.tau_bf_a_0 from file Modelica_3.2.2_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat failed! Error: Could not read variable gear.unitAngularAcceleration in file Modelica_3.2.2_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat. Warning: Get data of variable gear.unitAngularAcceleration from file Modelica_3.2.2_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat failed! Error: Could not read variable gear.unitTorque in file Modelica_3.2.2_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat. Warning: Get data of variable gear.unitTorque from file Modelica_3.2.2_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat failed! Error: Could not read variable torque1.phi_support in file Modelica_3.2.2_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat. Warning: Get data of variable torque1.phi_support from file Modelica_3.2.2_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat failed! Error: Could not read variable torque2.phi_support in file Modelica_3.2.2_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat. Warning: Get data of variable torque2.phi_support from file Modelica_3.2.2_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