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.LossyGearDemo2.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.LossyGearDemo2,fileNamePrefix="Modelica_3_2_2_Modelica_Mechanics_Rotational_Examples_LossyGearDemo2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.152/2.152, allocations: 194.9 MB / 211.1 MB, free: 8.559 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003797/0.0003801, allocations: 12 kB / 264 MB, free: 3.492 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4035/0.4039, allocations: 44.51 MB / 308.6 MB, free: 12.77 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2): time 0.004115/0.4081, allocations: 2.16 MB / 310.7 MB, free: 10.59 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.003067/0.4112, allocations: 1.078 MB / 311.8 MB, free: 9.508 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004105/0.4117, allocations: 7.938 kB / 311.8 MB, free: 9.5 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002334/0.4119, allocations: 55.67 kB / 311.9 MB, free: 9.445 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0009889/0.4129, allocations: 175.5 kB / 312 MB, free: 9.273 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008364/0.4138, allocations: 191.6 kB / 312.2 MB, free: 9.086 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.001041/0.4149, allocations: 403.6 kB / 312.6 MB, free: 8.691 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003324/0.4152, allocations: 94.02 kB / 312.7 MB, free: 8.598 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007087/0.416, allocations: 251.2 kB / 312.9 MB, free: 8.352 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006981/0.4167, allocations: 295 kB / 313.2 MB, free: 8.062 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001547/0.4169, allocations: 28 kB / 313.3 MB, free: 8.035 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003931/0.4173, allocations: 99.86 kB / 313.4 MB, free: 7.938 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002186/0.4175, allocations: 119.7 kB / 313.5 MB, free: 7.82 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001831/0.4177, allocations: 97.45 kB / 313.6 MB, free: 7.719 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009805/0.4187, allocations: 459.8 kB / 314 MB, free: 7.27 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.769e-06/0.4188, allocations: 4 kB / 314 MB, free: 7.266 MB / 250.7 MB Notification: Performance of FrontEnd: time 3.105e-06/0.4188, allocations: 0 / 314 MB, free: 7.266 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.588e-05/0.4188, allocations: 0 / 314 MB, free: 7.266 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: 98 * Number of variables: 98 Notification: Performance of Generate backend data structure: time 0.002561/0.4214, allocations: 0.7238 MB / 314.7 MB, free: 6.492 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.27e-05/0.4215, allocations: 16.02 kB / 314.8 MB, free: 6.477 MB / 250.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002566/0.4217, allocations: 86.47 kB / 314.8 MB, free: 6.383 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000533/0.4223, allocations: 63.42 kB / 314.9 MB, free: 6.32 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009436/0.4232, allocations: 353.3 kB / 315.3 MB, free: 5.934 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000231/0.4235, allocations: 100.4 kB / 315.4 MB, free: 5.824 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001805/0.4237, allocations: 47.89 kB / 315.4 MB, free: 5.777 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001962/0.4257, allocations: 0.5566 MB / 316 MB, free: 5.211 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.894e-05/0.4258, allocations: 7.938 kB / 316 MB, free: 5.203 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.497e-05/0.4259, allocations: 16 kB / 316 MB, free: 5.188 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.632e-05/0.4259, allocations: 12 kB / 316 MB, free: 5.176 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002594/0.4285, allocations: 0.6441 MB / 316.6 MB, free: 4.527 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004725/0.4333, allocations: 1.31 MB / 317.9 MB, free: 3.16 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00216/0.4355, allocations: 0.56 MB / 318.5 MB, free: 2.59 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.219e-05/0.4357, allocations: 4.562 kB / 318.5 MB, free: 2.586 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.411e-05/0.4357, allocations: 43.12 kB / 318.6 MB, free: 2.535 MB / 250.7 MB Notification: Performance of pre-optimization done (n=61): time 4.569e-06/0.4358, allocations: 0 / 318.6 MB, free: 2.535 MB / 250.7 MB Notification: Performance of matching and sorting (n=69): time 0.01344/0.4492, allocations: 2.947 MB / 321.5 MB, free: 15.46 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.529e-05/0.4493, allocations: 85.67 kB / 321.6 MB, free: 15.36 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008622/0.4502, allocations: 334.9 kB / 321.9 MB, free: 15.02 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002084/0.4505, allocations: 45.64 kB / 322 MB, free: 14.97 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001939/0.4507, allocations: 169.4 kB / 322.1 MB, free: 14.8 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003684/0.4511, allocations: 220.8 kB / 322.3 MB, free: 14.59 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.957e-05/0.4511, allocations: 16 kB / 322.4 MB, free: 14.57 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001953/0.4514, allocations: 346.8 kB / 322.7 MB, free: 14.22 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001186/0.4526, allocations: 305.1 kB / 323 MB, free: 13.93 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001324/0.4539, allocations: 346.5 kB / 323.3 MB, free: 13.57 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001206/0.4552, allocations: 275.1 kB / 323.6 MB, free: 13.3 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.863e-06/0.4553, allocations: 0 / 323.6 MB, free: 13.3 MB / 266.7 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.003726/0.459, allocations: 0.9084 MB / 324.5 MB, free: 12.39 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.355e-05/0.4591, allocations: 4 kB / 324.5 MB, free: 12.38 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.205e-05/0.4591, allocations: 0 / 324.5 MB, free: 12.38 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002063/0.4612, allocations: 481.8 kB / 325 MB, free: 11.91 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008022/0.462, allocations: 83.89 kB / 325.1 MB, free: 11.83 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002471/0.4645, allocations: 1.075 MB / 326.1 MB, free: 10.73 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001092/0.4657, allocations: 80.02 kB / 326.2 MB, free: 10.65 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000148/0.4659, allocations: 27.98 kB / 326.2 MB, free: 10.62 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 15 (bearingFriction.free,gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,$PRE.gear.mode,gear.mode,$PRE.bearingFriction.startForward,bearingFriction.startForward,$PRE.bearingFriction.startBackward,bearingFriction.startBackward,bearingFriction.locked,$PRE.bearingFriction.mode,bearingFriction.mode,gear.ideal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 45 * 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 32} Notification: Performance of prepare postOptimizeDAE: time 0.0004426/0.4664, allocations: 177.8 kB / 326.4 MB, free: 10.44 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001945/0.4666, allocations: 43.47 kB / 326.5 MB, free: 10.39 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002591/0.4668, allocations: 67.72 kB / 326.5 MB, free: 10.32 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.33e-05/0.4669, allocations: 8 kB / 326.5 MB, free: 10.32 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.353e-05/0.4669, allocations: 4.062 kB / 326.5 MB, free: 10.31 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.869e-06/0.4669, allocations: 0 / 326.5 MB, free: 10.31 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006641/0.4735, allocations: 1.793 MB / 328.3 MB, free: 8.453 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.359e-05/0.4736, allocations: 0 / 328.3 MB, free: 8.453 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000795/0.4744, allocations: 79.89 kB / 328.4 MB, free: 8.375 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001838/0.4763, allocations: 440.5 kB / 328.8 MB, free: 7.941 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001499/0.4765, allocations: 27.97 kB / 328.9 MB, free: 7.914 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002261/0.4788, allocations: 1.036 MB / 329.9 MB, free: 6.852 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.131e-06/0.4788, allocations: 0 / 329.9 MB, free: 6.852 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005102/0.484, allocations: 1.321 MB / 331.2 MB, free: 5.508 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005119/0.4845, allocations: 176.5 kB / 331.4 MB, free: 5.316 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001814/0.4847, allocations: 20 kB / 331.4 MB, free: 5.297 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009275/0.4857, allocations: 68 kB / 331.5 MB, free: 5.23 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003849/0.4861, allocations: 100.4 kB / 331.6 MB, free: 5.133 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.373e-05/0.4862, allocations: 23.98 kB / 331.6 MB, free: 5.109 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0005279/0.4868, allocations: 241.9 kB / 331.8 MB, free: 4.875 MB / 266.7 MB Notification: Performance of sort global known variables: time 4.81e-07/0.4868, allocations: 0 / 331.8 MB, free: 4.875 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0008462/0.4876, allocations: 152 kB / 332 MB, free: 4.727 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (Inertia2.phi,Inertia2.w) * Number of discrete variables: 9 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,gear.mode,bearingFriction.startForward,bearingFriction.startBackward,bearingFriction.locked,bearingFriction.mode) * Number of discrete states: 4 (bearingFriction.mode,bearingFriction.startBackward,bearingFriction.startForward,gear.mode) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (39): * Single equations (assignments): 38 * 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 29} Notification: Performance of Backend phase and start with SimCode phase: time 0.005614/0.4933, allocations: 1.909 MB / 333.9 MB, free: 2.781 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.003085/0.4964, allocations: 0.7197 MB / 334.6 MB, free: 2.062 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 7.544e-06/0.4965, allocations: 4 kB / 334.6 MB, free: 2.059 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001802/0.4983, allocations: 388.1 kB / 335 MB, free: 1.676 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006783/0.499, allocations: 48.73 kB / 335 MB, free: 1.625 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01276/0.5118, allocations: 3.43 MB / 338.5 MB, free: 14.14 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006058/0.5125, allocations: 0.8329 MB / 339.3 MB, free: 13.28 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0005215/0.513, allocations: 63.34 kB / 339.4 MB, free: 13.21 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000394/0.5135, allocations: 131.4 kB / 339.5 MB, free: 13.08 MB / 282.7 MB Notification: Performance of SimCode: time 1.413e-06/0.5135, allocations: 0 / 339.5 MB, free: 13.08 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05214/0.5656, allocations: 12.4 MB / 351.9 MB, free: 0.7109 MB / 282.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003508/0.5661, allocations: 216.8 kB / 352.1 MB, free: 476 kB / 282.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.997/3.563, allocations: 0 / 352.1 MB, free: 476 kB / 282.7 MB "" Variables in the reference:time,Inertia2.phi,Inertia2.w,bearingFriction.mode,bearingFriction.startBackward,bearingFriction.startForward,gear.mode Variables in the result:DriveSine.amplitude,DriveSine.freqHz,DriveSine.offset,DriveSine.phase,DriveSine.startTime,DriveSine.y,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,PowerLoss,bearingFriction.a,bearingFriction.a_relfric,bearingFriction.flange_a.phi,bearingFriction.flange_a.tau,bearingFriction.flange_b.phi,bearingFriction.flange_b.tau,bearingFriction.free,bearingFriction.locked,bearingFriction.lossPower,bearingFriction.mode,bearingFriction.peak,bearingFriction.phi,bearingFriction.phi_support,bearingFriction.sa,bearingFriction.startBackward,bearingFriction.startForward,bearingFriction.support.phi,bearingFriction.support.tau,bearingFriction.tau,bearingFriction.tau0,bearingFriction.tau0_max,bearingFriction.tau_pos[1,1],bearingFriction.tau_pos[1,2],bearingFriction.tau_pos[2,1],bearingFriction.tau_pos[2,2],bearingFriction.useHeatPort,bearingFriction.useSupport,bearingFriction.w,bearingFriction.w_relfric,bearingFriction.w_small,der(Inertia1.phi),der(Inertia1.w),der(Inertia2.phi),der(Inertia2.w),der(bearingFriction.phi),der(bearingFriction.w),der(der(gear.phi_b)),der(gear.phi_a),der(gear.phi_b),der(gear.w_a),fixed.flange.phi,fixed.flange.tau,fixed.phi0,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.support.phi,gear.support.tau,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,load.duration,load.height,load.offset,load.startTime,load.y,time,torque1.flange.phi,torque1.flange.tau,torque1.phi_support,torque1.support.phi,torque1.support.tau,torque1.tau,torque1.useSupport,torque2.flange.phi,torque2.flange.tau,torque2.phi_support,torque2.support.phi,torque2.support.tau,torque2.tau,torque2.useSupport