Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.826/1.826, allocations: 171.2 MB / 184.3 MB, free: 11.95 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.421e-05/2.435e-05, allocations: 4 kB / 228.8 MB, free: 15.33 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.206/0.2061, allocations: 38.77 MB / 267.6 MB, free: 9.441 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1052/0.3113, allocations: 70.38 MB / 338 MB, free: 2.961 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002375/0.3116, allocations: 75.95 kB / 338 MB, free: 2.887 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04185/0.3535, allocations: 9.313 MB / 347.4 MB, free: 9.543 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.189e-06/0.3535, allocations: 0 / 347.4 MB, free: 9.543 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.187e-05/0.3535, allocations: 4 kB / 347.4 MB, free: 9.539 MB / 298.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.001145/0.3547, allocations: 0.5606 MB / 347.9 MB, free: 8.934 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.317e-05/0.3548, allocations: 8.031 kB / 347.9 MB, free: 8.926 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003845/0.3552, allocations: 51.61 kB / 348 MB, free: 8.875 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004855/0.3557, allocations: 286.4 kB / 348.3 MB, free: 8.555 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001561/0.3558, allocations: 83.95 kB / 348.3 MB, free: 8.461 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.622e-05/0.3559, allocations: 35.95 kB / 348.4 MB, free: 8.426 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007866/0.3567, allocations: 349.4 kB / 348.7 MB, free: 8.066 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.309e-05/0.3568, allocations: 4 kB / 348.7 MB, free: 8.062 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.97e-05/0.3568, allocations: 8 kB / 348.7 MB, free: 8.055 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.2e-05/0.3569, allocations: 8 kB / 348.7 MB, free: 8.047 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008989/0.3578, allocations: 378 kB / 349.1 MB, free: 7.676 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002508/0.3603, allocations: 1.167 MB / 350.3 MB, free: 6.438 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007382/0.3611, allocations: 307.7 kB / 350.6 MB, free: 6.125 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003864/0.3615, allocations: 164.8 kB / 350.7 MB, free: 5.961 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.404e-05/0.3615, allocations: 4 kB / 350.7 MB, free: 5.957 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.523e-05/0.3616, allocations: 42.44 kB / 350.8 MB, free: 5.906 MB / 298.7 MB Notification: Performance of pre-optimization done (n=43): time 5.802e-06/0.3616, allocations: 7.922 kB / 350.8 MB, free: 5.898 MB / 298.7 MB Notification: Performance of matching and sorting (n=45): time 0.003346/0.3649, allocations: 1.323 MB / 352.1 MB, free: 4.48 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.14e-05/0.3651, allocations: 88.84 kB / 352.2 MB, free: 4.375 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003089/0.3654, allocations: 189.6 kB / 352.4 MB, free: 4.184 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 5.92e-05/0.3655, allocations: 37.7 kB / 352.4 MB, free: 4.141 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000141/0.3656, allocations: 203 kB / 352.6 MB, free: 3.941 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001798/0.3658, allocations: 145.9 kB / 352.8 MB, free: 3.797 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.735e-05/0.3659, allocations: 12 kB / 352.8 MB, free: 3.785 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.000176/0.366, allocations: 330.8 kB / 353.1 MB, free: 3.453 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003715/0.3664, allocations: 140.9 kB / 353.2 MB, free: 3.316 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000438/0.3669, allocations: 201.9 kB / 353.4 MB, free: 3.098 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003614/0.3673, allocations: 141.7 kB / 353.6 MB, free: 2.961 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.778e-06/0.3673, allocations: 0 / 353.6 MB, free: 2.961 MB / 298.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001285/0.3686, allocations: 0.5012 MB / 354.1 MB, free: 2.453 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.264e-05/0.3686, allocations: 5.094 kB / 354.1 MB, free: 2.449 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.018e-05/0.3686, allocations: 4 kB / 354.1 MB, free: 2.445 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009933/0.3696, allocations: 244.7 kB / 354.3 MB, free: 2.203 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003427/0.37, allocations: 47.97 kB / 354.4 MB, free: 2.156 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1828/0.5528, allocations: 2.619 MB / 357 MB, free: 79.57 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004159/0.5533, allocations: 30.61 kB / 357 MB, free: 79.57 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.261e-05/0.5534, allocations: 25.02 kB / 357 MB, free: 79.57 MB / 298.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 () * 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.0001539/0.5536, allocations: 127.9 kB / 357.2 MB, free: 79.47 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001206/0.5537, allocations: 25.77 kB / 357.2 MB, free: 79.47 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001041/0.5538, allocations: 42.83 kB / 357.2 MB, free: 79.46 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.862e-06/0.5538, allocations: 4.781 kB / 357.2 MB, free: 79.46 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.319e-06/0.5539, allocations: 6.797 kB / 357.2 MB, free: 79.46 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.473e-06/0.5539, allocations: 2.016 kB / 357.2 MB, free: 79.46 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002469/0.5564, allocations: 1.024 MB / 358.3 MB, free: 79.16 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.916e-06/0.5564, allocations: 3.375 kB / 358.3 MB, free: 79.16 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000394/0.5568, allocations: 47.75 kB / 358.3 MB, free: 79.16 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009593/0.5578, allocations: 223.8 kB / 358.5 MB, free: 79.15 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.304e-05/0.5579, allocations: 17.97 kB / 358.5 MB, free: 79.15 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004631/0.5625, allocations: 2.583 MB / 361.1 MB, free: 77.8 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.821e-06/0.5626, allocations: 3.5 kB / 361.1 MB, free: 77.8 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001568/0.5642, allocations: 0.739 MB / 361.9 MB, free: 77.44 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002357/0.5644, allocations: 141.8 kB / 362 MB, free: 77.32 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.399e-05/0.5645, allocations: 11.88 kB / 362 MB, free: 77.31 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000415/0.565, allocations: 29.84 kB / 362.1 MB, free: 77.3 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000216/0.5652, allocations: 70.22 kB / 362.1 MB, free: 77.3 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.045e-05/0.5653, allocations: 15.62 kB / 362.1 MB, free: 77.29 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001868/0.5655, allocations: 156.1 kB / 362.3 MB, free: 77.2 MB / 298.7 MB Notification: Performance of sort global known variables: time 8.25e-07/0.5655, allocations: 1.875 kB / 362.3 MB, free: 77.2 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0008556/0.5664, allocations: 141.8 kB / 362.4 MB, free: 77.18 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) * 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.000283/0.5667, allocations: 147.2 kB / 362.6 MB, free: 77.08 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001293/0.568, allocations: 0.5713 MB / 363.1 MB, free: 76.79 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 4.79e-06/0.568, allocations: 2.469 kB / 363.1 MB, free: 76.79 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007546/0.5688, allocations: 404.3 kB / 363.5 MB, free: 76.56 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004131/0.5692, allocations: 32.34 kB / 363.6 MB, free: 76.55 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001231/0.5705, allocations: 0.55 MB / 364.1 MB, free: 76.27 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002424/0.5707, allocations: 0.7836 MB / 364.9 MB, free: 75.57 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001704/0.5709, allocations: 41.33 kB / 364.9 MB, free: 75.55 MB / 298.7 MB Notification: Performance of SimCode: time 1.822e-06/0.5709, allocations: 1.875 kB / 364.9 MB, free: 75.55 MB / 298.7 MB Notification: Performance of Templates: time 0.008317/0.5793, allocations: 5.017 MB / 370 MB, free: 73.72 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