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.698/1.698, allocations: 171.1 MB / 186.7 MB, free: 1.121 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000351/0.0003512, allocations: 8 kB / 233.2 MB, free: 0.9258 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07031/0.07069, allocations: 38.78 MB / 272 MB, free: 10.07 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2789/0.3496, allocations: 70.46 MB / 342.5 MB, free: 12.58 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002387/0.3499, allocations: 78.36 kB / 342.5 MB, free: 12.51 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04052/0.3904, allocations: 9.341 MB / 351.9 MB, free: 3.152 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.333e-06/0.3905, allocations: 4 kB / 351.9 MB, free: 3.148 MB / 282.7 MB Notification: Performance of Transformations before backend: time 2.016e-05/0.3905, allocations: 4 kB / 351.9 MB, free: 3.145 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.00124/0.3918, allocations: 0.5807 MB / 352.5 MB, free: 2.516 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.138e-05/0.3918, allocations: 12.03 kB / 352.5 MB, free: 2.504 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003768/0.3922, allocations: 43.61 kB / 352.5 MB, free: 2.461 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005226/0.3928, allocations: 282.5 kB / 352.8 MB, free: 2.145 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001619/0.3929, allocations: 87.91 kB / 352.9 MB, free: 2.047 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.738e-05/0.393, allocations: 31.91 kB / 352.9 MB, free: 2.016 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009662/0.394, allocations: 377.2 kB / 353.3 MB, free: 1.629 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.112e-05/0.394, allocations: 0 / 353.3 MB, free: 1.629 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.498e-05/0.3941, allocations: 12 kB / 353.3 MB, free: 1.617 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.033e-05/0.3941, allocations: 7.938 kB / 353.3 MB, free: 1.609 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001206/0.3954, allocations: 417.9 kB / 353.7 MB, free: 1.199 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002555/0.3979, allocations: 1.175 MB / 354.9 MB, free: 15.95 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009311/0.3989, allocations: 334.2 kB / 355.2 MB, free: 15.62 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.881e-05/0.399, allocations: 8 kB / 355.2 MB, free: 15.61 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.263e-05/0.399, allocations: 38.56 kB / 355.3 MB, free: 15.56 MB / 298.7 MB Notification: Performance of pre-optimization done (n=43): time 3.438e-06/0.399, allocations: 0 / 355.3 MB, free: 15.56 MB / 298.7 MB Notification: Performance of matching and sorting (n=45): time 0.006468/0.4055, allocations: 1.879 MB / 357.1 MB, free: 13.57 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.319e-05/0.4056, allocations: 84.86 kB / 357.2 MB, free: 13.47 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003551/0.406, allocations: 189.6 kB / 357.4 MB, free: 13.28 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 6.148e-05/0.4061, allocations: 33.7 kB / 357.4 MB, free: 13.24 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001468/0.4062, allocations: 203 kB / 357.6 MB, free: 13.04 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001761/0.4064, allocations: 154 kB / 357.8 MB, free: 12.89 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.411e-05/0.4065, allocations: 8 kB / 357.8 MB, free: 12.88 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.000177/0.4066, allocations: 326.8 kB / 358.1 MB, free: 12.55 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005365/0.4072, allocations: 168.8 kB / 358.3 MB, free: 12.39 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005917/0.4078, allocations: 229.7 kB / 358.5 MB, free: 12.14 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005359/0.4084, allocations: 156.8 kB / 358.7 MB, free: 11.99 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.484e-06/0.4084, allocations: 3.938 kB / 358.7 MB, free: 11.99 MB / 298.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001637/0.41, allocations: 0.5396 MB / 359.2 MB, free: 11.44 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.376e-05/0.4101, allocations: 8 kB / 359.2 MB, free: 11.43 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.076e-05/0.4101, allocations: 3.953 kB / 359.2 MB, free: 11.43 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001006/0.4111, allocations: 240.8 kB / 359.5 MB, free: 11.19 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000342/0.4115, allocations: 55.91 kB / 359.5 MB, free: 11.13 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005593/0.4171, allocations: 2.692 MB / 362.2 MB, free: 8.305 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003992/0.4175, allocations: 32 kB / 362.2 MB, free: 8.273 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.766e-05/0.4176, allocations: 24.02 kB / 362.3 MB, free: 8.25 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 () * 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.0003023/0.4179, allocations: 153.8 kB / 362.4 MB, free: 8.09 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001122/0.4181, allocations: 27.72 kB / 362.4 MB, free: 8.062 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000114/0.4182, allocations: 42.98 kB / 362.5 MB, free: 8.023 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.931e-06/0.4182, allocations: 4 kB / 362.5 MB, free: 8.02 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.119e-06/0.4182, allocations: 0 / 362.5 MB, free: 8.02 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.373e-06/0.4182, allocations: 0 / 362.5 MB, free: 8.02 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00276/0.421, allocations: 1.07 MB / 363.5 MB, free: 6.891 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.383e-06/0.4211, allocations: 4 kB / 363.6 MB, free: 6.887 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00033/0.4214, allocations: 51.89 kB / 363.6 MB, free: 6.836 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009243/0.4223, allocations: 232.9 kB / 363.8 MB, free: 6.605 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.838e-05/0.4224, allocations: 7.984 kB / 363.8 MB, free: 6.598 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00535/0.4278, allocations: 2.655 MB / 366.5 MB, free: 3.805 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.112e-06/0.4278, allocations: 0 / 366.5 MB, free: 3.805 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00227/0.4301, allocations: 0.798 MB / 367.3 MB, free: 2.988 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002646/0.4304, allocations: 140.7 kB / 367.4 MB, free: 2.832 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.652e-05/0.4305, allocations: 12 kB / 367.4 MB, free: 2.82 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003544/0.4309, allocations: 32.03 kB / 367.5 MB, free: 2.789 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002195/0.4311, allocations: 67.88 kB / 367.5 MB, free: 2.723 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.696e-05/0.4312, allocations: 15.98 kB / 367.6 MB, free: 2.707 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002723/0.4315, allocations: 160.3 kB / 367.7 MB, free: 2.551 MB / 298.7 MB Notification: Performance of sort global known variables: time 8.41e-07/0.4315, allocations: 0 / 367.7 MB, free: 2.551 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0008621/0.4323, allocations: 143.9 kB / 367.9 MB, free: 2.41 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.0003128/0.4327, allocations: 151.2 kB / 368 MB, free: 2.254 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001709/0.4344, allocations: 0.6062 MB / 368.6 MB, free: 1.633 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 4.229e-06/0.4344, allocations: 8 kB / 368.6 MB, free: 1.625 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001012/0.4355, allocations: 421.5 kB / 369 MB, free: 1.199 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003961/0.4359, allocations: 39.14 kB / 369.1 MB, free: 1.164 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001853/0.4377, allocations: 0.8483 MB / 369.9 MB, free: 292 kB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005506/0.4383, allocations: 0.7842 MB / 370.7 MB, free: 15.47 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001809/0.4385, allocations: 35.41 kB / 370.7 MB, free: 15.44 MB / 314.7 MB Notification: Performance of SimCode: time 5.799e-06/0.4385, allocations: 0 / 370.7 MB, free: 15.44 MB / 314.7 MB Notification: Performance of Templates: time 0.01067/0.4492, allocations: 5.029 MB / 375.8 MB, free: 10.41 MB / 314.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