Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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 2.022/2.022, allocations: 194.8 MB / 212.3 MB, free: 3.008 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000534/0.0005345, allocations: 12 kB / 264.5 MB, free: 13.62 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1072/0.1077, allocations: 44.5 MB / 309 MB, free: 1.055 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.432/0.5398, allocations: 75.78 MB / 384.7 MB, free: 14.84 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000283/0.5401, allocations: 74.27 kB / 384.8 MB, free: 14.84 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04225/0.5824, allocations: 9.335 MB / 394.2 MB, free: 13.95 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.565e-06/0.5824, allocations: 0 / 394.2 MB, free: 13.95 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.084e-05/0.5825, allocations: 7.812 kB / 394.2 MB, free: 13.95 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.00137/0.5838, allocations: 0.5805 MB / 394.7 MB, free: 13.51 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.163e-05/0.5839, allocations: 11.62 kB / 394.8 MB, free: 13.51 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004369/0.5843, allocations: 47.44 kB / 394.8 MB, free: 13.5 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005088/0.5849, allocations: 282.4 kB / 395.1 MB, free: 13.27 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001413/0.585, allocations: 85.36 kB / 395.2 MB, free: 13.21 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.769e-05/0.5851, allocations: 29.7 kB / 395.2 MB, free: 13.2 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001015/0.5861, allocations: 375.2 kB / 395.6 MB, free: 13.12 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.303e-05/0.5862, allocations: 3.562 kB / 395.6 MB, free: 13.12 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.26e-05/0.5863, allocations: 14.41 kB / 395.6 MB, free: 13.12 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.053e-05/0.5863, allocations: 3.594 kB / 395.6 MB, free: 13.12 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001297/0.5876, allocations: 419 kB / 396 MB, free: 13.11 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002578/0.5902, allocations: 1.167 MB / 397.1 MB, free: 12.56 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001012/0.5912, allocations: 342.7 kB / 397.5 MB, free: 12.52 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.531e-05/0.5913, allocations: 3.875 kB / 397.5 MB, free: 12.52 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.151e-05/0.5914, allocations: 36.88 kB / 397.5 MB, free: 12.48 MB / 314.7 MB Notification: Performance of pre-optimization done (n=43): time 3.396e-06/0.5914, allocations: 0 / 397.5 MB, free: 12.48 MB / 314.7 MB Notification: Performance of matching and sorting (n=45): time 0.007626/0.599, allocations: 1.876 MB / 399.4 MB, free: 11.83 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.49e-05/0.5991, allocations: 84.73 kB / 399.5 MB, free: 11.73 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003728/0.5995, allocations: 221.5 kB / 399.7 MB, free: 11.62 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 5.494e-05/0.5996, allocations: 36.39 kB / 399.7 MB, free: 11.59 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.977e-05/0.5997, allocations: 201.2 kB / 399.9 MB, free: 11.41 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001319/0.5998, allocations: 147.7 kB / 400.1 MB, free: 11.32 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.784e-05/0.5999, allocations: 10.75 kB / 400.1 MB, free: 11.32 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.152e-05/0.5999, allocations: 325.6 kB / 400.4 MB, free: 11.01 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005802/0.6005, allocations: 163.8 kB / 400.6 MB, free: 11.01 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006228/0.6012, allocations: 231.3 kB / 400.8 MB, free: 10.95 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005898/0.6018, allocations: 154 kB / 400.9 MB, free: 10.95 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.777e-06/0.6018, allocations: 7.969 kB / 400.9 MB, free: 10.94 MB / 314.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.00169/0.6035, allocations: 0.5397 MB / 401.5 MB, free: 10.87 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.228e-05/0.6035, allocations: 3.562 kB / 401.5 MB, free: 10.87 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.043e-05/0.6036, allocations: 3.875 kB / 401.5 MB, free: 10.87 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001107/0.6047, allocations: 238.3 kB / 401.7 MB, free: 10.85 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004223/0.6051, allocations: 53.45 kB / 401.8 MB, free: 10.85 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005435/0.6106, allocations: 2.704 MB / 404.5 MB, free: 9.43 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005226/0.6111, allocations: 36.92 kB / 404.5 MB, free: 9.426 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.569e-05/0.6112, allocations: 17.84 kB / 404.5 MB, free: 9.426 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.0002584/0.6115, allocations: 147.1 kB / 404.7 MB, free: 9.312 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.485e-05/0.6116, allocations: 28.44 kB / 404.7 MB, free: 9.297 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001219/0.6117, allocations: 43.22 kB / 404.8 MB, free: 9.289 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.338e-06/0.6118, allocations: 7.797 kB / 404.8 MB, free: 9.285 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.45e-06/0.6118, allocations: 7.641 kB / 404.8 MB, free: 9.281 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.751e-06/0.6118, allocations: 4 kB / 404.8 MB, free: 9.277 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002687/0.6145, allocations: 1.063 MB / 405.8 MB, free: 8.961 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.111e-06/0.6145, allocations: 3.953 kB / 405.8 MB, free: 8.957 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004105/0.615, allocations: 57.83 kB / 405.9 MB, free: 8.949 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001018/0.616, allocations: 225.6 kB / 406.1 MB, free: 8.93 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.986e-05/0.616, allocations: 14.89 kB / 406.1 MB, free: 8.93 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005143/0.6212, allocations: 2.653 MB / 408.8 MB, free: 7.527 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.455e-06/0.6213, allocations: 0 / 408.8 MB, free: 7.527 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002361/0.6236, allocations: 0.789 MB / 409.6 MB, free: 7.359 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002136/0.6239, allocations: 141.9 kB / 409.7 MB, free: 7.254 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.371e-05/0.624, allocations: 10.34 kB / 409.7 MB, free: 7.254 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004382/0.6244, allocations: 31.59 kB / 409.7 MB, free: 7.25 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002204/0.6247, allocations: 73.58 kB / 409.8 MB, free: 7.25 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.266e-05/0.6247, allocations: 14.42 kB / 409.8 MB, free: 7.25 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0002624/0.625, allocations: 157 kB / 410 MB, free: 7.172 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.523e-06/0.625, allocations: 0 / 410 MB, free: 7.172 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0008499/0.6259, allocations: 146.2 kB / 410.1 MB, free: 7.16 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.0002808/0.6262, allocations: 153.9 kB / 410.3 MB, free: 7.059 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001784/0.628, allocations: 0.6115 MB / 410.9 MB, free: 6.855 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.396e-06/0.628, allocations: 3.938 kB / 410.9 MB, free: 6.852 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000999/0.629, allocations: 421.7 kB / 411.3 MB, free: 6.664 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000412/0.6294, allocations: 32.05 kB / 411.3 MB, free: 6.652 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001763/0.6312, allocations: 0.8458 MB / 412.2 MB, free: 6.086 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002621/0.6315, allocations: 0.7926 MB / 413 MB, free: 5.344 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002033/0.6317, allocations: 30.66 kB / 413 MB, free: 5.328 MB / 314.7 MB Notification: Performance of SimCode: time 1.213e-06/0.6317, allocations: 0 / 413 MB, free: 5.328 MB / 314.7 MB Notification: Performance of Templates: time 0.009918/0.6416, allocations: 5.026 MB / 418 MB, free: 2.809 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