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.First.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.First,fileNamePrefix="Modelica_3_2_2_Modelica_Mechanics_Rotational_Examples_First",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.118/2.118, allocations: 194.9 MB / 211.1 MB, free: 7.5 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003577/0.0003578, allocations: 8 kB / 264.1 MB, free: 2.426 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3923/0.3927, allocations: 44.51 MB / 308.6 MB, free: 12.64 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.First): time 0.00348/0.3963, allocations: 1.839 MB / 310.4 MB, free: 10.79 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.00156/0.3979, allocations: 0.5895 MB / 311 MB, free: 10.2 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002135/0.3982, allocations: 7.938 kB / 311 MB, free: 10.19 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001067/0.3983, allocations: 23.84 kB / 311 MB, free: 10.17 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003076/0.3986, allocations: 79.75 kB / 311.1 MB, free: 10.09 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000263/0.3989, allocations: 39.95 kB / 311.1 MB, free: 10.05 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004597/0.3994, allocations: 191.6 kB / 311.3 MB, free: 9.863 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002502/0.3996, allocations: 77.31 kB / 311.4 MB, free: 9.785 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002525/0.3999, allocations: 91.64 kB / 311.5 MB, free: 9.695 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002154/0.4001, allocations: 91.55 kB / 311.6 MB, free: 9.605 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 4.15e-05/0.4002, allocations: 12 kB / 311.6 MB, free: 9.594 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.683e-05/0.4003, allocations: 12 kB / 311.6 MB, free: 9.582 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 5.654e-05/0.4003, allocations: 39.83 kB / 311.6 MB, free: 9.543 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 8.556e-05/0.4004, allocations: 73.58 kB / 311.7 MB, free: 9.465 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003208/0.4008, allocations: 184.4 kB / 311.9 MB, free: 9.285 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.4008, allocations: 0 / 311.9 MB, free: 9.285 MB / 250.7 MB Notification: Performance of FrontEnd: time 2.405e-06/0.4008, allocations: 4 kB / 311.9 MB, free: 9.281 MB / 250.7 MB Notification: Performance of Transformations before backend: time 6.782e-06/0.4008, allocations: 0 / 311.9 MB, free: 9.281 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: 54 * Number of variables: 54 Notification: Performance of Generate backend data structure: time 0.001036/0.4019, allocations: 494.9 kB / 312.4 MB, free: 8.75 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.422e-05/0.4019, allocations: 12.03 kB / 312.4 MB, free: 8.738 MB / 250.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000102/0.402, allocations: 58.55 kB / 312.4 MB, free: 8.672 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.962e-05/0.4022, allocations: 35.56 kB / 312.5 MB, free: 8.637 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004359/0.4026, allocations: 239.3 kB / 312.7 MB, free: 8.363 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.712e-05/0.4026, allocations: 16.44 kB / 312.7 MB, free: 8.348 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.076e-05/0.4027, allocations: 20 kB / 312.8 MB, free: 8.328 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005898/0.4033, allocations: 191.3 kB / 312.9 MB, free: 8.133 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.323e-05/0.4034, allocations: 0 / 312.9 MB, free: 8.133 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.474e-05/0.4034, allocations: 12 kB / 312.9 MB, free: 8.121 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.097e-05/0.4034, allocations: 8 kB / 313 MB, free: 8.113 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004792/0.4039, allocations: 145.6 kB / 313.1 MB, free: 7.973 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001685/0.4056, allocations: 0.6346 MB / 313.7 MB, free: 7.285 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005199/0.4062, allocations: 178.4 kB / 313.9 MB, free: 7.102 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.31e-05/0.4063, allocations: 11.98 kB / 313.9 MB, free: 7.09 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.053e-05/0.4064, allocations: 46.48 kB / 314 MB, free: 7.035 MB / 250.7 MB Notification: Performance of pre-optimization done (n=24): time 3.206e-06/0.4064, allocations: 0 / 314 MB, free: 7.035 MB / 250.7 MB Notification: Performance of matching and sorting (n=32): time 0.003161/0.4095, allocations: 1.058 MB / 315 MB, free: 5.887 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.745e-05/0.4096, allocations: 51.41 kB / 315.1 MB, free: 5.824 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002788/0.4099, allocations: 187.1 kB / 315.3 MB, free: 5.633 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 4.183e-05/0.41, allocations: 29.7 kB / 315.3 MB, free: 5.598 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001267/0.4101, allocations: 144.6 kB / 315.4 MB, free: 5.453 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001563/0.4103, allocations: 110.5 kB / 315.5 MB, free: 5.344 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.39e-05/0.4103, allocations: 4 kB / 315.5 MB, free: 5.34 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001741/0.4105, allocations: 330.8 kB / 315.9 MB, free: 5.008 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002839/0.4108, allocations: 71.97 kB / 315.9 MB, free: 4.938 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002977/0.4111, allocations: 106.8 kB / 316 MB, free: 4.824 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003076/0.4114, allocations: 85.41 kB / 316.1 MB, free: 4.742 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.896e-06/0.4115, allocations: 0 / 316.1 MB, free: 4.742 MB / 250.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0009185/0.4124, allocations: 295 kB / 316.4 MB, free: 4.445 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.623e-05/0.4125, allocations: 15.98 kB / 316.4 MB, free: 4.43 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.194e-05/0.4125, allocations: 4 kB / 316.4 MB, free: 4.426 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000282/0.4128, allocations: 36.84 kB / 316.5 MB, free: 4.387 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004679/0.4133, allocations: 59.91 kB / 316.5 MB, free: 4.328 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002335/0.4156, allocations: 1.581 MB / 318.1 MB, free: 2.609 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002649/0.4159, allocations: 11.95 kB / 318.1 MB, free: 2.598 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.149e-05/0.416, allocations: 12 kB / 318.1 MB, free: 2.586 MB / 250.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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (32): * Single equations (assignments): 31 * 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: 1 {(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000227/0.4162, allocations: 141.8 kB / 318.3 MB, free: 2.438 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.805e-05/0.4163, allocations: 23.72 kB / 318.3 MB, free: 2.414 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.979e-05/0.4164, allocations: 30.64 kB / 318.3 MB, free: 2.387 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.506e-06/0.4164, allocations: 4 kB / 318.3 MB, free: 2.383 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.498e-06/0.4164, allocations: 0 / 318.3 MB, free: 2.383 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.154e-06/0.4165, allocations: 0 / 318.3 MB, free: 2.383 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00194/0.4184, allocations: 0.7896 MB / 319.1 MB, free: 1.52 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.422e-06/0.4185, allocations: 4 kB / 319.1 MB, free: 1.516 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005373/0.419, allocations: 63.98 kB / 319.2 MB, free: 1.453 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002318/0.4193, allocations: 36.84 kB / 319.2 MB, free: 1.414 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.255e-05/0.4193, allocations: 4 kB / 319.2 MB, free: 1.41 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001783/0.4211, allocations: 1.39 MB / 320.6 MB, free: 15.89 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.61e-06/0.4212, allocations: 256 / 320.6 MB, free: 15.89 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001269/0.4225, allocations: 494.8 kB / 321.1 MB, free: 15.38 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001173/0.4226, allocations: 92.92 kB / 321.2 MB, free: 15.27 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.445e-05/0.4227, allocations: 12 kB / 321.2 MB, free: 15.25 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002395/0.4229, allocations: 11.95 kB / 321.2 MB, free: 15.24 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000102/0.4231, allocations: 24.02 kB / 321.2 MB, free: 15.22 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.154e-05/0.4231, allocations: 11.98 kB / 321.2 MB, free: 15.21 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001722/0.4233, allocations: 135.4 kB / 321.4 MB, free: 15.07 MB / 266.7 MB Notification: Performance of sort global known variables: time 3.21e-07/0.4233, allocations: 3.938 kB / 321.4 MB, free: 15.07 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0005394/0.4238, allocations: 68 kB / 321.4 MB, free: 15 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (inertia3.phi,inertia3.w,damper.phi_rel,damper.w_rel) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (29): * Single equations (assignments): 28 * 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: 1 {(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001646/0.4255, allocations: 1.025 MB / 322.5 MB, free: 13.94 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.001077/0.4266, allocations: 346.4 kB / 322.8 MB, free: 13.59 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 5.431e-06/0.4267, allocations: 0 / 322.8 MB, free: 13.59 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006194/0.4273, allocations: 238.8 kB / 323 MB, free: 13.34 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005565/0.4279, allocations: 44.17 kB / 323.1 MB, free: 13.3 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004409/0.4323, allocations: 1.681 MB / 324.8 MB, free: 11.55 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004603/0.4329, allocations: 0.76 MB / 325.5 MB, free: 10.76 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001814/0.4331, allocations: 26.27 kB / 325.5 MB, free: 10.73 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001763/0.4333, allocations: 75.41 kB / 325.6 MB, free: 10.66 MB / 266.7 MB Notification: Performance of SimCode: time 1.603e-06/0.4333, allocations: 4 kB / 325.6 MB, free: 10.66 MB / 266.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03724/0.4705, allocations: 4.676 MB / 330.3 MB, free: 6.023 MB / 266.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003688/0.471, allocations: 190.5 kB / 330.5 MB, free: 5.785 MB / 266.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.689/3.16, allocations: 0 / 330.5 MB, free: 5.785 MB / 266.7 MB "" Variables in the reference:time,damper.phi_rel,damper.w_rel,inertia3.phi,inertia3.w Variables in the result:Jload,Jmotor,amplitude,damper.a_rel,damper.d,damper.flange_a.phi,damper.flange_a.tau,damper.flange_b.phi,damper.flange_b.tau,damper.lossPower,damper.phi_nominal,damper.phi_rel,damper.stateSelect,damper.tau,damper.useHeatPort,damper.w_rel,damping,der(damper.phi_rel),der(damper.w_rel),der(der(idealGear.phi_a)),der(der(idealGear.phi_b)),der(idealGear.phi_a),der(idealGear.phi_b),der(inertia1.phi),der(inertia1.w),der(inertia2.phi),der(inertia2.w),der(inertia3.phi),der(inertia3.w),fixed.flange.phi,fixed.flange.tau,fixed.phi0,freqHz,idealGear.flange_a.phi,idealGear.flange_a.tau,idealGear.flange_b.phi,idealGear.flange_b.tau,idealGear.phi_a,idealGear.phi_b,idealGear.phi_support,idealGear.ratio,idealGear.support.phi,idealGear.support.tau,idealGear.useSupport,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,inertia3.J,inertia3.a,inertia3.flange_a.phi,inertia3.flange_a.tau,inertia3.flange_b.phi,inertia3.flange_b.tau,inertia3.phi,inertia3.stateSelect,inertia3.w,ratio,sine.amplitude,sine.freqHz,sine.offset,sine.phase,sine.startTime,sine.y,spring.c,spring.flange_a.phi,spring.flange_a.tau,spring.flange_b.phi,spring.flange_b.tau,spring.phi_rel,spring.phi_rel0,spring.tau,time,torque.flange.phi,torque.flange.tau,torque.phi_support,torque.support.phi,torque.support.tau,torque.tau,torque.useSupport