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.FirstGrounded.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.FirstGrounded,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Mechanics_Rotational_Examples_FirstGrounded",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.564/1.564, allocations: 171.2 MB / 186.7 MB, free: 1.129 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003418/0.000342, allocations: 12 kB / 233.2 MB, free: 2.977 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07554/0.07592, allocations: 38.76 MB / 272 MB, free: 12.13 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.FirstGrounded): time 0.003004/0.07898, allocations: 1.842 MB / 273.9 MB, free: 10.26 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.001137/0.08013, allocations: 0.5811 MB / 274.4 MB, free: 9.68 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001147/0.08027, allocations: 4 kB / 274.4 MB, free: 9.676 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 6.651e-05/0.08035, allocations: 27.77 kB / 274.5 MB, free: 9.648 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002498/0.08061, allocations: 79.75 kB / 274.5 MB, free: 9.57 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002004/0.08082, allocations: 39.95 kB / 274.6 MB, free: 9.531 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003175/0.08115, allocations: 175.6 kB / 274.8 MB, free: 9.359 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001943/0.08136, allocations: 88.52 kB / 274.8 MB, free: 9.27 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001701/0.08155, allocations: 91.64 kB / 274.9 MB, free: 9.18 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000164/0.08172, allocations: 87.56 kB / 275 MB, free: 9.094 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 3.192e-05/0.08177, allocations: 8 kB / 275 MB, free: 9.086 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.401e-05/0.08183, allocations: 12 kB / 275 MB, free: 9.074 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 4.671e-05/0.08189, allocations: 39.83 kB / 275.1 MB, free: 9.035 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 7.39e-05/0.08197, allocations: 65.58 kB / 275.1 MB, free: 8.965 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002471/0.08223, allocations: 175.8 kB / 275.3 MB, free: 8.793 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.144e-06/0.08225, allocations: 0 / 275.3 MB, free: 8.793 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.783e-06/0.08226, allocations: 0 / 275.3 MB, free: 8.793 MB / 234.7 MB Notification: Performance of Transformations before backend: time 4.819e-06/0.08227, allocations: 0 / 275.3 MB, free: 8.793 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: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.000816/0.08309, allocations: 486.9 kB / 275.8 MB, free: 8.27 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.234e-05/0.08315, allocations: 12.03 kB / 275.8 MB, free: 8.258 MB / 234.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.438e-05/0.08322, allocations: 50.55 kB / 275.8 MB, free: 8.199 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.026e-05/0.08329, allocations: 27.72 kB / 275.9 MB, free: 8.172 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003011/0.0836, allocations: 239.3 kB / 276.1 MB, free: 7.898 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.216e-05/0.08364, allocations: 12.44 kB / 276.1 MB, free: 7.887 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.402e-05/0.0837, allocations: 23.91 kB / 276.1 MB, free: 7.863 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005074/0.08422, allocations: 209.9 kB / 276.3 MB, free: 7.645 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.884e-05/0.08425, allocations: 0 / 276.3 MB, free: 7.645 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.735e-05/0.08429, allocations: 8 kB / 276.4 MB, free: 7.637 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.223e-05/0.08431, allocations: 12 kB / 276.4 MB, free: 7.625 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004142/0.08473, allocations: 129.6 kB / 276.5 MB, free: 7.5 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001381/0.08613, allocations: 0.7171 MB / 277.2 MB, free: 6.727 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003799/0.08653, allocations: 139.6 kB / 277.3 MB, free: 6.582 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.541e-05/0.08657, allocations: 8 kB / 277.4 MB, free: 6.574 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.897e-05/0.08661, allocations: 34.56 kB / 277.4 MB, free: 6.531 MB / 234.7 MB Notification: Performance of pre-optimization done (n=20): time 1.804e-06/0.08662, allocations: 3.938 kB / 277.4 MB, free: 6.527 MB / 234.7 MB Notification: Performance of matching and sorting (n=24): time 0.002174/0.0888, allocations: 0.8952 MB / 278.3 MB, free: 5.547 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.458e-05/0.08885, allocations: 55.27 kB / 278.3 MB, free: 5.48 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002121/0.08907, allocations: 179.4 kB / 278.5 MB, free: 5.289 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 2.486e-05/0.08911, allocations: 29.7 kB / 278.5 MB, free: 5.254 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001117/0.08923, allocations: 210.6 kB / 278.8 MB, free: 5.047 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.492e-05/0.08933, allocations: 90.73 kB / 278.8 MB, free: 4.957 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.655e-05/0.08935, allocations: 8 kB / 278.8 MB, free: 4.949 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.0001127/0.08948, allocations: 318.8 kB / 279.2 MB, free: 4.629 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001996/0.08968, allocations: 59.95 kB / 279.2 MB, free: 4.57 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002411/0.08994, allocations: 104.2 kB / 279.3 MB, free: 4.453 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002318/0.09019, allocations: 75.94 kB / 279.4 MB, free: 4.379 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.0902, allocations: 0 / 279.4 MB, free: 4.379 MB / 234.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0006832/0.09089, allocations: 242.1 kB / 279.6 MB, free: 4.133 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.939e-05/0.09093, allocations: 8 kB / 279.6 MB, free: 4.125 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.442e-06/0.09094, allocations: 3.938 kB / 279.6 MB, free: 4.121 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002194/0.09117, allocations: 36.78 kB / 279.7 MB, free: 4.082 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003611/0.09155, allocations: 55.91 kB / 279.7 MB, free: 4.027 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001467/0.09303, allocations: 1.378 MB / 281.1 MB, free: 2.516 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001842/0.09323, allocations: 12.02 kB / 281.1 MB, free: 2.504 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.549e-05/0.09327, allocations: 12 kB / 281.1 MB, free: 2.492 MB / 234.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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (28): * Single equations (assignments): 27 * 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 prepare postOptimizeDAE: time 0.0001619/0.09344, allocations: 134.1 kB / 281.3 MB, free: 2.352 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.708e-05/0.0935, allocations: 19.81 kB / 281.3 MB, free: 2.332 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.418e-05/0.09358, allocations: 29.86 kB / 281.3 MB, free: 2.305 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.363e-06/0.0936, allocations: 3.953 kB / 281.3 MB, free: 2.301 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.965e-06/0.09361, allocations: 4 kB / 281.3 MB, free: 2.297 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.789e-06/0.09362, allocations: 0 / 281.3 MB, free: 2.297 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001275/0.09491, allocations: 0.6445 MB / 282 MB, free: 1.582 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.446e-06/0.09493, allocations: 0 / 282 MB, free: 1.582 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003925/0.09533, allocations: 47.91 kB / 282 MB, free: 1.535 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001755/0.09552, allocations: 36.91 kB / 282 MB, free: 1.496 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.366e-05/0.09556, allocations: 11.98 kB / 282.1 MB, free: 1.484 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001413/0.09698, allocations: 1.394 MB / 283.5 MB, free: 15.95 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.499e-06/0.097, allocations: 3.953 kB / 283.5 MB, free: 15.95 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008536/0.09787, allocations: 406.2 kB / 283.9 MB, free: 15.53 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001052/0.09799, allocations: 108.8 kB / 284 MB, free: 15.4 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.3e-05/0.09804, allocations: 8 kB / 284 MB, free: 15.39 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001944/0.09825, allocations: 8 kB / 284 MB, free: 15.39 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.538e-05/0.09833, allocations: 19.91 kB / 284 MB, free: 15.37 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.873e-05/0.09836, allocations: 4 kB / 284 MB, free: 15.36 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0001383/0.0985, allocations: 137.1 kB / 284.1 MB, free: 15.23 MB / 250.7 MB Notification: Performance of sort global known variables: time 3.4e-07/0.09852, allocations: 4 kB / 284.1 MB, free: 15.23 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0004332/0.09896, allocations: 56 kB / 284.2 MB, free: 15.17 MB / 250.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 (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: 1 {(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001133/0.1001, allocations: 0.9495 MB / 285.1 MB, free: 14.19 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0007329/0.1009, allocations: 286.7 kB / 285.4 MB, free: 13.89 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 5.02e-06/0.1009, allocations: 4.062 kB / 285.4 MB, free: 13.89 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004629/0.1013, allocations: 225.6 kB / 285.6 MB, free: 13.66 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004316/0.1018, allocations: 35.91 kB / 285.7 MB, free: 13.62 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003259/0.1051, allocations: 1.56 MB / 287.2 MB, free: 12 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003316/0.1054, allocations: 0.7558 MB / 288 MB, free: 11.21 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001494/0.1056, allocations: 71.34 kB / 288.1 MB, free: 11.14 MB / 250.7 MB Notification: Performance of SimCode: time 6.61e-07/0.1056, allocations: 0 / 288.1 MB, free: 11.14 MB / 250.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.757/2.862, allocations: 4.304 MB / 292.4 MB, free: 6.832 MB / 250.7 MB "Error: Could not read variable sine.pi in file Modelica_3.2.1_cpp_Modelica.Mechanics.Rotational.Examples.FirstGrounded_res.mat. Warning: Get data of variable sine.pi from file Modelica_3.2.1_cpp_Modelica.Mechanics.Rotational.Examples.FirstGrounded_res.mat failed! " 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(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.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.tau,torque.useSupport