Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.Rotational.TestSpeed.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) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Rotational.TestSpeed,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Rotational_TestSpeed",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.068/2.068, allocations: 209.3 MB / 224.8 MB, free: 0.6133 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004263/0.0004264, allocations: 8 kB / 282.6 MB, free: 9.617 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3392/0.3397, allocations: 48.7 MB / 331.3 MB, free: 6.488 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestSpeed): time 0.003287/0.343, allocations: 2.069 MB / 333.3 MB, free: 5.281 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001566/0.3447, allocations: 0.65 MB / 334 MB, free: 4.82 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001738/0.3449, allocations: 4.719 kB / 334 MB, free: 4.82 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 7.982e-05/0.345, allocations: 28.66 kB / 334 MB, free: 4.805 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000306/0.3453, allocations: 101.9 kB / 334.1 MB, free: 4.73 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000279/0.3456, allocations: 69.03 kB / 334.2 MB, free: 4.691 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004049/0.346, allocations: 231 kB / 334.4 MB, free: 4.57 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001963/0.3462, allocations: 79.89 kB / 334.5 MB, free: 4.531 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002077/0.3464, allocations: 108 kB / 334.6 MB, free: 4.484 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000203/0.3466, allocations: 116.8 kB / 334.7 MB, free: 4.43 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 4.345e-05/0.3467, allocations: 12.03 kB / 334.7 MB, free: 4.43 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.398e-05/0.3468, allocations: 11.84 kB / 334.7 MB, free: 4.43 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 5.383e-05/0.3468, allocations: 49.53 kB / 334.8 MB, free: 4.398 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 7.049e-05/0.3469, allocations: 77.14 kB / 334.9 MB, free: 4.344 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003195/0.3473, allocations: 217 kB / 335.1 MB, free: 4.289 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.045e-06/0.3473, allocations: 1.375 kB / 335.1 MB, free: 4.289 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.104e-06/0.3473, allocations: 0 / 335.1 MB, free: 4.289 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.258e-05/0.3473, allocations: 0 / 335.1 MB, free: 4.289 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.001117/0.3484, allocations: 0.542 MB / 335.6 MB, free: 3.832 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.887e-05/0.3485, allocations: 9.719 kB / 335.6 MB, free: 3.832 MB / 266.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.473e-05/0.3486, allocations: 55.59 kB / 335.7 MB, free: 3.781 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.059e-05/0.3487, allocations: 37.45 kB / 335.7 MB, free: 3.762 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003516/0.349, allocations: 263.9 kB / 336 MB, free: 3.512 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.86e-05/0.3491, allocations: 17.44 kB / 336 MB, free: 3.5 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.595e-05/0.3491, allocations: 29.62 kB / 336 MB, free: 3.488 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007313/0.3499, allocations: 287 kB / 336.3 MB, free: 3.328 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.87e-05/0.3499, allocations: 10.91 kB / 336.3 MB, free: 3.32 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.359e-05/0.35, allocations: 11.53 kB / 336.3 MB, free: 3.312 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.159e-05/0.35, allocations: 5.625 kB / 336.3 MB, free: 3.312 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007413/0.3507, allocations: 200.4 kB / 336.5 MB, free: 3.262 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002245/0.353, allocations: 1.327 MB / 337.8 MB, free: 2.148 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006512/0.3537, allocations: 272.2 kB / 338.1 MB, free: 1.953 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.599e-05/0.3537, allocations: 2.312 kB / 338.1 MB, free: 1.953 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.903e-05/0.3538, allocations: 42.12 kB / 338.1 MB, free: 1.906 MB / 266.7 MB Notification: Performance of pre-optimization done (n=26): time 3.025e-06/0.3538, allocations: 3.938 kB / 338.2 MB, free: 1.902 MB / 266.7 MB Notification: Performance of matching and sorting (n=32): time 0.003835/0.3576, allocations: 1.623 MB / 339.8 MB, free: 0.5 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.173e-05/0.3577, allocations: 136.4 kB / 339.9 MB, free: 348 kB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002808/0.358, allocations: 227.2 kB / 340.1 MB, free: 176 kB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.994e-05/0.3581, allocations: 31.23 kB / 340.2 MB, free: 140 kB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001542/0.3582, allocations: 232.9 kB / 340.4 MB, free: 15.92 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001261/0.3584, allocations: 111 kB / 340.5 MB, free: 15.82 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.588e-05/0.3584, allocations: 9.594 kB / 340.5 MB, free: 15.81 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001444/0.3586, allocations: 335 kB / 340.8 MB, free: 15.48 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004691/0.359, allocations: 110.3 kB / 340.9 MB, free: 15.44 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005795/0.3596, allocations: 246.2 kB / 341.2 MB, free: 15.21 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005529/0.3602, allocations: 143.4 kB / 341.3 MB, free: 15.15 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.422e-06/0.3602, allocations: 0 / 341.3 MB, free: 15.15 MB / 282.7 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.001329/0.3616, allocations: 406.9 kB / 341.7 MB, free: 14.95 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.41e-05/0.3616, allocations: 7.062 kB / 341.7 MB, free: 14.95 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.297e-05/0.3616, allocations: 4.125 kB / 341.7 MB, free: 14.95 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.954e-05/0.3617, allocations: 11.17 kB / 341.7 MB, free: 14.95 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007187/0.3624, allocations: 113.4 kB / 341.9 MB, free: 14.92 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.725e-05/0.3624, allocations: 7 kB / 341.9 MB, free: 14.92 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000415/0.3629, allocations: 31.42 kB / 341.9 MB, free: 14.91 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.116e-05/0.3629, allocations: 17.84 kB / 341.9 MB, free: 14.9 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * 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 (48): * Single equations (assignments): 48 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002431/0.3632, allocations: 155.9 kB / 342.1 MB, free: 14.75 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001348/0.3633, allocations: 33.8 kB / 342.1 MB, free: 14.73 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001308/0.3635, allocations: 32.19 kB / 342.1 MB, free: 14.71 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.02e-05/0.3635, allocations: 8.047 kB / 342.1 MB, free: 14.71 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.257e-05/0.3635, allocations: 5.391 kB / 342.1 MB, free: 14.7 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.694e-06/0.3635, allocations: 1.438 kB / 342.1 MB, free: 14.7 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002363/0.3659, allocations: 1.011 MB / 343.1 MB, free: 13.88 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.693e-06/0.3659, allocations: 2.406 kB / 343.2 MB, free: 13.88 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007184/0.3667, allocations: 91.44 kB / 343.2 MB, free: 13.85 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.548e-06/0.3667, allocations: 2.312 kB / 343.2 MB, free: 13.85 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.908e-05/0.3667, allocations: 11.27 kB / 343.3 MB, free: 13.84 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.205e-06/0.3668, allocations: 4.156 kB / 343.3 MB, free: 13.84 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.727e-06/0.3668, allocations: 1.219 kB / 343.3 MB, free: 13.84 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001768/0.3685, allocations: 0.7647 MB / 344 MB, free: 13.29 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001966/0.3688, allocations: 116 kB / 344.1 MB, free: 13.16 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.153e-05/0.3689, allocations: 11.48 kB / 344.1 MB, free: 13.16 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004674/0.3693, allocations: 26.78 kB / 344.2 MB, free: 13.14 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.975e-05/0.3695, allocations: 27.81 kB / 344.2 MB, free: 13.13 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.638e-05/0.3695, allocations: 9.094 kB / 344.2 MB, free: 13.13 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0002056/0.3697, allocations: 157.2 kB / 344.4 MB, free: 13.02 MB / 282.7 MB Notification: Performance of sort global known variables: time 4.41e-07/0.3697, allocations: 3.938 kB / 344.4 MB, free: 13.01 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0006763/0.3704, allocations: 66.69 kB / 344.4 MB, free: 13 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 6 (speed4.s,speed3.s,speed3.v,speed1.phi,speed1.w,speed2.phi) * 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 (32): * Single equations (assignments): 32 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002058/0.3725, allocations: 1.321 MB / 345.8 MB, free: 11.9 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001174/0.3737, allocations: 298.8 kB / 346 MB, free: 11.79 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 4.127e-06/0.3737, allocations: 192 / 346 MB, free: 11.79 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005387/0.3743, allocations: 144.9 kB / 346.2 MB, free: 11.73 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000742/0.375, allocations: 38.11 kB / 346.2 MB, free: 11.71 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005461/0.3805, allocations: 2.229 MB / 348.5 MB, free: 10.03 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000473/0.381, allocations: 0.7767 MB / 349.2 MB, free: 9.293 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002636/0.3813, allocations: 97.98 kB / 349.3 MB, free: 9.215 MB / 282.7 MB Notification: Performance of SimCode: time 1.042e-06/0.3813, allocations: 4 kB / 349.3 MB, free: 9.211 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.328/2.71, allocations: 4.444 MB / 353.8 MB, free: 6.934 MB / 282.7 MB "Error: Could not read variable sine2.pi in file ModelicaTest_3.2.1_cpp_ModelicaTest.Rotational.TestSpeed_res.mat. Warning: Get data of variable sine2.pi from file ModelicaTest_3.2.1_cpp_ModelicaTest.Rotational.TestSpeed_res.mat failed! Error: Could not read variable sine4.pi in file ModelicaTest_3.2.1_cpp_ModelicaTest.Rotational.TestSpeed_res.mat. Warning: Get data of variable sine4.pi from file ModelicaTest_3.2.1_cpp_ModelicaTest.Rotational.TestSpeed_res.mat failed! " Variables in the reference:time,speed1.phi,speed1.w,speed2.phi,speed3.s,speed3.v,speed4.s Variables in the result:der(inertia2.w),der(mass1.s),der(mass1.v),der(mass2.s),der(mass2.v),der(speed1.phi),der(speed1.w),der(speed2.phi),der(speed3.s),der(speed3.v),der(speed4.s),der(speed4.v),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,mass1.L,mass1.a,mass1.flange_a.f,mass1.flange_a.s,mass1.flange_b.f,mass1.flange_b.s,mass1.m,mass1.s,mass1.stateSelect,mass1.v,mass2.L,mass2.a,mass2.flange_a.f,mass2.flange_a.s,mass2.flange_b.f,mass2.flange_b.s,mass2.m,mass2.s,mass2.stateSelect,mass2.v,sine2.amplitude,sine2.freqHz,sine2.offset,sine2.phase,sine2.startTime,sine2.y,sine4.amplitude,sine4.freqHz,sine4.offset,sine4.phase,sine4.startTime,sine4.y,speed1.a,speed1.exact,speed1.f_crit,speed1.flange.phi,speed1.flange.tau,speed1.phi,speed1.phi_support,speed1.useSupport,speed1.w,speed1.w_crit,speed1.w_ref,speed2.a,speed2.exact,speed2.f_crit,speed2.flange.phi,speed2.flange.tau,speed2.phi,speed2.phi_support,speed2.useSupport,speed2.w,speed2.w_crit,speed2.w_ref,speed3.a,speed3.exact,speed3.f_crit,speed3.flange.f,speed3.flange.s,speed3.s,speed3.s_support,speed3.useSupport,speed3.v,speed3.v_ref,speed3.w_crit,speed4.a,speed4.exact,speed4.f_crit,speed4.flange.f,speed4.flange.s,speed4.s,speed4.s_support,speed4.useSupport,speed4.v,speed4.v_ref,speed4.w_crit,step.height,step.offset,step.startTime,step.y,step1.height,step1.offset,step1.startTime,step1.y,time