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/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.571/1.571, allocations: 171.3 MB / 179.2 MB, free: 7.496 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.361e-05/2.377e-05, allocations: 0 / 222.5 MB, free: 8.688 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08729/0.08735, allocations: 38.77 MB / 261.3 MB, free: 1.84 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.302/0.3893, allocations: 69.72 MB / 331 MB, free: 2.281 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002252/0.3896, allocations: 72.2 kB / 331.1 MB, free: 2.242 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03907/0.4287, allocations: 9.269 MB / 340.3 MB, free: 10.55 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.521e-06/0.4288, allocations: 0 / 340.3 MB, free: 10.55 MB / 282.7 MB Notification: Performance of Transformations before backend: time 2.204e-05/0.4288, allocations: 8 kB / 340.3 MB, free: 10.54 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.001112/0.4299, allocations: 0.5537 MB / 340.9 MB, free: 9.961 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.35e-05/0.43, allocations: 12.03 kB / 340.9 MB, free: 9.949 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003706/0.4304, allocations: 43.61 kB / 341 MB, free: 9.906 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004976/0.4309, allocations: 279.3 kB / 341.2 MB, free: 9.617 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001515/0.431, allocations: 78.64 kB / 341.3 MB, free: 9.531 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.714e-05/0.4311, allocations: 16 kB / 341.3 MB, free: 9.516 MB / 282.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008254/0.432, allocations: 366.9 kB / 341.7 MB, free: 9.254 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006816/0.4327, allocations: 317.8 kB / 342 MB, free: 9 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.184e-05/0.4327, allocations: 0 / 342 MB, free: 9 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.243e-05/0.4328, allocations: 0 / 342 MB, free: 9 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.576e-05/0.4328, allocations: 8 kB / 342 MB, free: 8.992 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002348/0.4351, allocations: 1.12 MB / 343.1 MB, free: 8.023 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006153/0.4358, allocations: 290.6 kB / 343.4 MB, free: 7.82 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003197/0.4361, allocations: 147.5 kB / 343.5 MB, free: 7.727 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.111e-05/0.4362, allocations: 10.7 kB / 343.6 MB, free: 7.719 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.033e-05/0.4362, allocations: 33.06 kB / 343.6 MB, free: 7.68 MB / 282.7 MB Notification: Performance of pre-optimization done (n=43): time 3.384e-06/0.4362, allocations: 0 / 343.6 MB, free: 7.68 MB / 282.7 MB Notification: Performance of matching and sorting (n=45): time 0.003322/0.4396, allocations: 1.232 MB / 344.8 MB, free: 6.578 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.145e-05/0.4397, allocations: 91.8 kB / 344.9 MB, free: 6.473 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000273/0.44, allocations: 187.4 kB / 345.1 MB, free: 6.309 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 5.639e-05/0.44, allocations: 29.64 kB / 345.1 MB, free: 6.273 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001445/0.4402, allocations: 201.5 kB / 345.3 MB, free: 6.09 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001554/0.4404, allocations: 139.4 kB / 345.5 MB, free: 5.969 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.9e-05/0.4404, allocations: 0 / 345.5 MB, free: 5.969 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001783/0.4406, allocations: 334 kB / 345.8 MB, free: 5.641 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003158/0.4409, allocations: 136.2 kB / 345.9 MB, free: 5.562 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003759/0.4413, allocations: 206 kB / 346.1 MB, free: 5.402 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004357/0.4418, allocations: 133.8 kB / 346.2 MB, free: 5.312 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.427e-06/0.4418, allocations: 0 / 346.2 MB, free: 5.312 MB / 282.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001243/0.443, allocations: 468.2 kB / 346.7 MB, free: 4.969 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.186e-05/0.4431, allocations: 8 kB / 346.7 MB, free: 4.961 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.121e-06/0.4431, allocations: 7.938 kB / 346.7 MB, free: 4.953 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009156/0.444, allocations: 237 kB / 347 MB, free: 4.773 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003167/0.4444, allocations: 47.97 kB / 347 MB, free: 4.727 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004615/0.449, allocations: 2.558 MB / 349.6 MB, free: 2.578 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003508/0.4494, allocations: 24.08 kB / 349.6 MB, free: 2.555 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.426e-05/0.4495, allocations: 23.86 kB / 349.6 MB, free: 2.535 MB / 282.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: gear.flange_a.tau:VARIABLE(flow=true unit = "N.m" ) "Cut torque in the flange" type: Real gear.sa:VARIABLE(unit = "1" ) "Path parameter for acceleration and torque loss" type: Real 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.0002232/0.4497, allocations: 120.8 kB / 349.7 MB, free: 2.41 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001026/0.4498, allocations: 31.58 kB / 349.8 MB, free: 2.379 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.22e-05/0.4499, allocations: 44.33 kB / 349.8 MB, free: 2.359 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.1e-05/0.45, allocations: 4 kB / 349.8 MB, free: 2.355 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.351e-06/0.45, allocations: 0 / 349.8 MB, free: 2.355 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.059e-06/0.45, allocations: 7.984 kB / 349.8 MB, free: 2.348 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002167/0.4522, allocations: 0.9301 MB / 350.7 MB, free: 1.605 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.284e-06/0.4522, allocations: 0 / 350.7 MB, free: 1.605 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003262/0.4525, allocations: 55.89 kB / 350.8 MB, free: 1.551 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008318/0.4534, allocations: 222.8 kB / 351 MB, free: 1.383 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.699e-05/0.4534, allocations: 7.984 kB / 351 MB, free: 1.375 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004559/0.458, allocations: 2.493 MB / 353.5 MB, free: 14.86 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.057e-06/0.4581, allocations: 3.984 kB / 353.5 MB, free: 14.86 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001647/0.4597, allocations: 0.7166 MB / 354.2 MB, free: 14.12 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002298/0.46, allocations: 140.8 kB / 354.4 MB, free: 13.97 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.136e-05/0.4601, allocations: 4 kB / 354.4 MB, free: 13.96 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003403/0.4604, allocations: 15.98 kB / 354.4 MB, free: 13.95 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002048/0.4606, allocations: 71.86 kB / 354.5 MB, free: 13.88 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.717e-05/0.4607, allocations: 19.98 kB / 354.5 MB, free: 13.86 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001924/0.4609, allocations: 152.4 kB / 354.6 MB, free: 13.71 MB / 298.7 MB Notification: Performance of sort global known variables: time 8.03e-07/0.4609, allocations: 0 / 354.6 MB, free: 13.71 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0008154/0.4617, allocations: 120 kB / 354.7 MB, free: 13.59 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.0002924/0.4621, allocations: 147 kB / 354.9 MB, free: 13.44 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001241/0.4633, allocations: 0.538 MB / 355.4 MB, free: 12.89 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.515e-06/0.4633, allocations: 0 / 355.4 MB, free: 12.89 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007426/0.4641, allocations: 368.2 kB / 355.8 MB, free: 12.52 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003469/0.4645, allocations: 23.42 kB / 355.8 MB, free: 12.5 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00129/0.4658, allocations: 0.537 MB / 356.3 MB, free: 11.94 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005133/0.4663, allocations: 0.78 MB / 357.1 MB, free: 11.13 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001709/0.4665, allocations: 39.41 kB / 357.2 MB, free: 11.09 MB / 298.7 MB Notification: Performance of SimCode: time 1.559e-06/0.4665, allocations: 0 / 357.2 MB, free: 11.09 MB / 298.7 MB Notification: Performance of Templates: time 0.01046/0.477, allocations: 5.023 MB / 362.2 MB, free: 6.059 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.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! " 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.stateSelect,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.stateSelect,Inertia2.w,gear.a_a,der(gear.phi_a),gear.eta_mf1,gear.eta_mf1_0,gear.eta_mf2,gear.eta_mf2_0,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.phi_support,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_bf1_0,gear.tau_bf2,gear.tau_bf2_0,gear.tau_bf_a,gear.tau_bf_a_0,gear.tau_eta,gear.tau_etaPos,gear.tau_eta_m,gear.tau_eta_p,gear.useHeatPort,gear.useSupport,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.phi_support,torque1.tau,torque1.useSupport,torque2.flange.phi,torque2.flange.tau,torque2.phi_support,torque2.tau,torque2.useSupport