Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_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: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3,fileNamePrefix="Modelica_3_2_2_Modelica_Mechanics_Rotational_Examples_LossyGearDemo3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.105/2.105, allocations: 194.9 MB / 211.1 MB, free: 8.422 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004337/0.0004339, allocations: 8 kB / 264 MB, free: 3.348 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3153/0.3157, allocations: 44.52 MB / 308.6 MB, free: 12.76 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.003541/0.3193, allocations: 1.844 MB / 310.4 MB, free: 10.9 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002378/0.3218, allocations: 0.9222 MB / 311.3 MB, free: 9.973 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002481/0.3221, allocations: 4 kB / 311.3 MB, free: 9.969 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001638/0.3222, allocations: 35.77 kB / 311.4 MB, free: 9.934 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006554/0.3229, allocations: 119.7 kB / 311.5 MB, free: 9.816 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005114/0.3234, allocations: 143.7 kB / 311.6 MB, free: 9.676 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.000527/0.324, allocations: 251.5 kB / 311.9 MB, free: 9.43 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001973/0.3242, allocations: 56.7 kB / 311.9 MB, free: 9.375 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003071/0.3245, allocations: 159.5 kB / 312.1 MB, free: 9.219 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003968/0.325, allocations: 191.4 kB / 312.3 MB, free: 9.031 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 7.753e-05/0.3251, allocations: 19.94 kB / 312.3 MB, free: 9.012 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003023/0.3254, allocations: 75.94 kB / 312.4 MB, free: 8.938 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000165/0.3255, allocations: 83.77 kB / 312.4 MB, free: 8.855 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001213/0.3257, allocations: 77.52 kB / 312.5 MB, free: 8.773 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005822/0.3263, allocations: 316.2 kB / 312.8 MB, free: 8.465 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.3263, allocations: 0 / 312.8 MB, free: 8.465 MB / 250.7 MB Notification: Performance of FrontEnd: time 2.305e-06/0.3263, allocations: 0 / 312.8 MB, free: 8.465 MB / 250.7 MB Notification: Performance of Transformations before backend: time 7.635e-06/0.3263, allocations: 4 kB / 312.8 MB, free: 8.461 MB / 250.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.001694/0.328, allocations: 0.5808 MB / 313.4 MB, free: 7.832 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.594e-05/0.3281, allocations: 12.03 kB / 313.4 MB, free: 7.82 MB / 250.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001399/0.3283, allocations: 62.53 kB / 313.5 MB, free: 7.75 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004864/0.3288, allocations: 51.61 kB / 313.5 MB, free: 7.699 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006791/0.3295, allocations: 294.5 kB / 313.8 MB, free: 7.371 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001838/0.3297, allocations: 87.95 kB / 313.9 MB, free: 7.273 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.474e-05/0.3298, allocations: 24 kB / 313.9 MB, free: 7.25 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001184/0.331, allocations: 381.2 kB / 314.3 MB, free: 6.855 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.206e-05/0.331, allocations: 3.984 kB / 314.3 MB, free: 6.852 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.85e-05/0.3311, allocations: 12 kB / 314.3 MB, free: 6.84 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.436e-05/0.3311, allocations: 8 kB / 314.3 MB, free: 6.832 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001558/0.3327, allocations: 425.9 kB / 314.7 MB, free: 6.418 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003444/0.3362, allocations: 1.249 MB / 316 MB, free: 5.098 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001192/0.3374, allocations: 363 kB / 316.3 MB, free: 4.734 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.452e-05/0.3375, allocations: 4 kB / 316.4 MB, free: 4.73 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.557e-05/0.3375, allocations: 38.56 kB / 316.4 MB, free: 4.684 MB / 250.7 MB Notification: Performance of pre-optimization done (n=43): time 3.396e-06/0.3376, allocations: 0 / 316.4 MB, free: 4.684 MB / 250.7 MB Notification: Performance of matching and sorting (n=45): time 0.00871/0.3463, allocations: 1.94 MB / 318.3 MB, free: 2.629 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.826e-05/0.3464, allocations: 84.86 kB / 318.4 MB, free: 2.527 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004986/0.3469, allocations: 243.2 kB / 318.6 MB, free: 2.277 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 8.793e-05/0.347, allocations: 33.7 kB / 318.7 MB, free: 2.238 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001351/0.3472, allocations: 136.7 kB / 318.8 MB, free: 2.102 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002101/0.3474, allocations: 146 kB / 319 MB, free: 1.957 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.694e-05/0.3475, allocations: 19.92 kB / 319 MB, free: 1.938 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001689/0.3476, allocations: 326.8 kB / 319.3 MB, free: 1.609 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007114/0.3484, allocations: 180.8 kB / 319.5 MB, free: 1.434 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007643/0.3492, allocations: 229.8 kB / 319.7 MB, free: 1.188 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006768/0.3499, allocations: 160.8 kB / 319.9 MB, free: 1.035 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.859e-06/0.3499, allocations: 0 / 319.9 MB, free: 1.035 MB / 250.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.00209/0.352, allocations: 0.5668 MB / 320.4 MB, free: 468 kB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.904e-05/0.3521, allocations: 4 kB / 320.4 MB, free: 464 kB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.038e-05/0.3521, allocations: 0 / 320.4 MB, free: 464 kB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001271/0.3534, allocations: 252.7 kB / 320.7 MB, free: 208 kB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004785/0.3539, allocations: 55.91 kB / 320.7 MB, free: 152 kB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006723/0.3606, allocations: 2.704 MB / 323.4 MB, free: 13.31 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005338/0.3612, allocations: 36 kB / 323.5 MB, free: 13.28 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.709e-05/0.3613, allocations: 12 kB / 323.5 MB, free: 13.27 MB / 266.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.0002932/0.3616, allocations: 157.8 kB / 323.6 MB, free: 13.1 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001129/0.3617, allocations: 27.66 kB / 323.7 MB, free: 13.07 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000148/0.3619, allocations: 46.94 kB / 323.7 MB, free: 13.03 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.935e-06/0.3619, allocations: 8 kB / 323.7 MB, free: 13.02 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.742e-06/0.3619, allocations: 3.984 kB / 323.7 MB, free: 13.02 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.454e-06/0.3619, allocations: 0 / 323.7 MB, free: 13.02 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003293/0.3652, allocations: 1.097 MB / 324.8 MB, free: 11.86 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.123e-06/0.3653, allocations: 0 / 324.8 MB, free: 11.86 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004633/0.3658, allocations: 47.91 kB / 324.9 MB, free: 11.81 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001203/0.367, allocations: 237.3 kB / 325.1 MB, free: 11.58 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.579e-05/0.3671, allocations: 15.98 kB / 325.1 MB, free: 11.56 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006311/0.3734, allocations: 2.653 MB / 327.8 MB, free: 8.777 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.649e-06/0.3735, allocations: 3.953 kB / 327.8 MB, free: 8.773 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002744/0.3762, allocations: 0.8214 MB / 328.6 MB, free: 7.93 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002954/0.3766, allocations: 144.8 kB / 328.7 MB, free: 7.77 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.974e-05/0.3767, allocations: 12 kB / 328.7 MB, free: 7.758 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004613/0.3772, allocations: 27.97 kB / 328.8 MB, free: 7.73 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002743/0.3774, allocations: 67.94 kB / 328.8 MB, free: 7.664 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.486e-05/0.3775, allocations: 19.94 kB / 328.9 MB, free: 7.645 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0003538/0.3779, allocations: 175.4 kB / 329 MB, free: 7.473 MB / 266.7 MB Notification: Performance of sort global known variables: time 2.524e-06/0.3779, allocations: 0 / 329 MB, free: 7.473 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.000882/0.3788, allocations: 147.9 kB / 329.2 MB, free: 7.328 MB / 266.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.00355/0.3824, allocations: 1.429 MB / 330.6 MB, free: 5.871 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.002198/0.3846, allocations: 0.6291 MB / 331.2 MB, free: 5.227 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 6.883e-06/0.3847, allocations: 4.25 kB / 331.2 MB, free: 5.223 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001281/0.3859, allocations: 437.2 kB / 331.7 MB, free: 4.781 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000446/0.3864, allocations: 26.17 kB / 331.7 MB, free: 4.758 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006453/0.3929, allocations: 2.142 MB / 333.8 MB, free: 2.562 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005371/0.3935, allocations: 0.7842 MB / 334.6 MB, free: 1.754 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0003772/0.3939, allocations: 62.95 kB / 334.7 MB, free: 1.691 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002348/0.3941, allocations: 79.39 kB / 334.7 MB, free: 1.613 MB / 266.7 MB Notification: Performance of SimCode: time 1.302e-06/0.3941, allocations: 0 / 334.7 MB, free: 1.613 MB / 266.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05036/0.4445, allocations: 8.816 MB / 343.6 MB, free: 8.832 MB / 282.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0004229/0.445, allocations: 212.7 kB / 343.8 MB, free: 8.59 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.894/3.339, allocations: 0 / 343.8 MB, free: 8.59 MB / 282.7 MB "" 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