Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Mechanics_Rotational_Examples_LossyGearDemo3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.617/1.617, allocations: 171.1 MB / 186.7 MB, free: 1.047 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004755/0.0004758, allocations: 12 kB / 233.3 MB, free: 2.957 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07617/0.07668, allocations: 38.76 MB / 272 MB, free: 12.12 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.002993/0.07973, allocations: 1.851 MB / 273.9 MB, free: 10.24 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.001997/0.08176, allocations: 0.8985 MB / 274.8 MB, free: 9.34 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001438/0.08194, allocations: 3.938 kB / 274.8 MB, free: 9.336 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001384/0.08209, allocations: 31.77 kB / 274.8 MB, free: 9.305 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005522/0.08265, allocations: 135.6 kB / 274.9 MB, free: 9.172 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004323/0.0831, allocations: 131.8 kB / 275.1 MB, free: 9.043 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004416/0.08355, allocations: 259.5 kB / 275.3 MB, free: 8.789 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001721/0.08374, allocations: 60.64 kB / 275.4 MB, free: 8.73 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002478/0.084, allocations: 159.5 kB / 275.5 MB, free: 8.574 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003316/0.08435, allocations: 183.4 kB / 275.7 MB, free: 8.395 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 6.804e-05/0.08443, allocations: 20 kB / 275.7 MB, free: 8.375 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002578/0.0847, allocations: 83.88 kB / 275.8 MB, free: 8.293 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001396/0.08485, allocations: 71.78 kB / 275.9 MB, free: 8.223 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 8.645e-05/0.08495, allocations: 77.58 kB / 276 MB, free: 8.141 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004967/0.08546, allocations: 323.4 kB / 276.3 MB, free: 7.824 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.726e-06/0.08547, allocations: 0 / 276.3 MB, free: 7.824 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.904e-06/0.08549, allocations: 3.938 kB / 276.3 MB, free: 7.82 MB / 234.7 MB Notification: Performance of Transformations before backend: time 1.079e-05/0.08551, allocations: 0 / 276.3 MB, free: 7.82 MB / 234.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.001484/0.087, allocations: 0.577 MB / 276.9 MB, free: 7.191 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.535e-05/0.08706, allocations: 8.031 kB / 276.9 MB, free: 7.184 MB / 234.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001041/0.08717, allocations: 70.53 kB / 276.9 MB, free: 7.105 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004131/0.0876, allocations: 43.61 kB / 277 MB, free: 7.062 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005673/0.08818, allocations: 310.4 kB / 277.3 MB, free: 6.719 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001529/0.08835, allocations: 83.97 kB / 277.4 MB, free: 6.625 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.737e-05/0.08845, allocations: 35.98 kB / 277.4 MB, free: 6.59 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001053/0.08951, allocations: 369.3 kB / 277.8 MB, free: 6.211 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.212e-05/0.08955, allocations: 0 / 277.8 MB, free: 6.211 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.216e-05/0.08961, allocations: 15.94 kB / 277.8 MB, free: 6.195 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.141e-05/0.08963, allocations: 4 kB / 277.8 MB, free: 6.191 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001473/0.09112, allocations: 429.9 kB / 278.2 MB, free: 5.773 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003066/0.0942, allocations: 1.253 MB / 279.4 MB, free: 4.449 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001125/0.09535, allocations: 359 kB / 279.8 MB, free: 4.09 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.328e-05/0.09542, allocations: 8.156 kB / 279.8 MB, free: 4.082 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.719e-05/0.09547, allocations: 42.55 kB / 279.8 MB, free: 4.031 MB / 234.7 MB Notification: Performance of pre-optimization done (n=43): time 2.845e-06/0.09548, allocations: 0 / 279.8 MB, free: 4.031 MB / 234.7 MB Notification: Performance of matching and sorting (n=45): time 0.007898/0.1034, allocations: 1.938 MB / 281.8 MB, free: 1.98 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.763e-05/0.1035, allocations: 84.86 kB / 281.9 MB, free: 1.879 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004225/0.1039, allocations: 246.2 kB / 282.1 MB, free: 1.629 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 5.614e-05/0.104, allocations: 37.7 kB / 282.1 MB, free: 1.586 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001177/0.1041, allocations: 191.1 kB / 282.3 MB, free: 1.398 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001641/0.1043, allocations: 149.8 kB / 282.5 MB, free: 1.25 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.783e-05/0.1043, allocations: 12 kB / 282.5 MB, free: 1.238 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.0001247/0.1045, allocations: 330.8 kB / 282.8 MB, free: 0.9062 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006263/0.1051, allocations: 172.7 kB / 283 MB, free: 0.7383 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006939/0.1058, allocations: 233.9 kB / 283.2 MB, free: 500 kB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006179/0.1065, allocations: 164.7 kB / 283.4 MB, free: 340 kB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.374e-06/0.1065, allocations: 0 / 283.4 MB, free: 340 kB / 234.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001856/0.1083, allocations: 0.5552 MB / 283.9 MB, free: 15.77 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.129e-05/0.1084, allocations: 8 kB / 283.9 MB, free: 15.76 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.015e-05/0.1084, allocations: 3.984 kB / 283.9 MB, free: 15.75 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001179/0.1096, allocations: 244.8 kB / 284.2 MB, free: 15.51 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004266/0.11, allocations: 55.91 kB / 284.2 MB, free: 15.46 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005859/0.1159, allocations: 2.709 MB / 286.9 MB, free: 12.62 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004722/0.1164, allocations: 23.98 kB / 287 MB, free: 12.59 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.856e-05/0.1165, allocations: 24.05 kB / 287 MB, free: 12.57 MB / 250.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.0002507/0.1168, allocations: 149.8 kB / 287.1 MB, free: 12.41 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.518e-05/0.1169, allocations: 27.72 kB / 287.2 MB, free: 12.39 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001282/0.117, allocations: 42.98 kB / 287.2 MB, free: 12.34 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.025e-06/0.117, allocations: 11.92 kB / 287.2 MB, free: 12.33 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.537e-06/0.117, allocations: 0 / 287.2 MB, free: 12.33 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.678e-06/0.1171, allocations: 7.938 kB / 287.2 MB, free: 12.32 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002963/0.12, allocations: 1.097 MB / 288.3 MB, free: 11.17 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.418e-06/0.1201, allocations: 0 / 288.3 MB, free: 11.17 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004169/0.1205, allocations: 47.89 kB / 288.4 MB, free: 11.12 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001092/0.1216, allocations: 240.9 kB / 288.6 MB, free: 10.88 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.548e-05/0.1217, allocations: 8 kB / 288.6 MB, free: 10.88 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005636/0.1273, allocations: 2.646 MB / 291.3 MB, free: 8.098 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.963e-06/0.1273, allocations: 0 / 291.3 MB, free: 8.098 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00252/0.1299, allocations: 0.8372 MB / 292.1 MB, free: 7.242 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002243/0.1301, allocations: 136.8 kB / 292.2 MB, free: 7.09 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.494e-05/0.1302, allocations: 15.98 kB / 292.2 MB, free: 7.074 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004807/0.1307, allocations: 36.05 kB / 292.3 MB, free: 7.039 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002283/0.131, allocations: 67.86 kB / 292.3 MB, free: 6.973 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.047e-05/0.131, allocations: 16 kB / 292.4 MB, free: 6.957 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0003139/0.1313, allocations: 180.2 kB / 292.5 MB, free: 6.781 MB / 250.7 MB Notification: Performance of sort global known variables: time 5.11e-07/0.1314, allocations: 0 / 292.5 MB, free: 6.781 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0008003/0.1322, allocations: 136 kB / 292.7 MB, free: 6.648 MB / 250.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.003176/0.1354, allocations: 1.429 MB / 294.1 MB, free: 5.184 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.001948/0.1373, allocations: 0.6252 MB / 294.7 MB, free: 4.543 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 2.875e-06/0.1374, allocations: 0 / 294.7 MB, free: 4.543 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00117/0.1385, allocations: 433.1 kB / 295.1 MB, free: 4.105 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004217/0.139, allocations: 33.2 kB / 295.2 MB, free: 4.074 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005743/0.1447, allocations: 2.168 MB / 297.3 MB, free: 1.836 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004157/0.1452, allocations: 0.7919 MB / 298.1 MB, free: 1.02 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002673/0.1455, allocations: 87.39 kB / 298.2 MB, free: 0.9336 MB / 250.7 MB Notification: Performance of SimCode: time 1.022e-06/0.1455, allocations: 0 / 298.2 MB, free: 0.9336 MB / 250.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.091/3.236, allocations: 6.11 MB / 304.3 MB, free: 29.35 MB / 250.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,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,Inertia2.flange_a.phi,Inertia2.flange_a.tau,Inertia2.flange_b.phi,Inertia2.flange_b.tau,Inertia2.phi,Inertia2.stateSelect,Inertia2.w,der(Inertia1.w),der(Inertia2.phi),der(Inertia2.w),der(gear.phi_a),gear.a_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