Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Rotational.TestSpeed.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) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Rotational.TestSpeed,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Rotational_TestSpeed",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.289/2.289, allocations: 234.9 MB / 250.5 MB, free: 9.559 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004374/0.0004375, allocations: 8 kB / 314.4 MB, free: 9.52 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3323/0.3328, allocations: 54.86 MB / 369.3 MB, free: 10.72 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestSpeed): time 0.003538/0.3364, allocations: 2.074 MB / 371.3 MB, free: 8.625 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001501/0.3379, allocations: 0.6598 MB / 372 MB, free: 7.961 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001606/0.3381, allocations: 7.938 kB / 372 MB, free: 7.953 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 7.909e-05/0.3382, allocations: 31.77 kB / 372 MB, free: 7.922 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003147/0.3385, allocations: 103.7 kB / 372.1 MB, free: 7.82 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002742/0.3388, allocations: 59.92 kB / 372.2 MB, free: 7.762 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004364/0.3393, allocations: 243.5 kB / 372.4 MB, free: 7.523 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001892/0.3395, allocations: 61.58 kB / 372.5 MB, free: 7.465 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002005/0.3397, allocations: 103.6 kB / 372.6 MB, free: 7.363 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002189/0.3399, allocations: 119.4 kB / 372.7 MB, free: 7.246 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.492e-05/0.34, allocations: 12 kB / 372.7 MB, free: 7.234 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.1e-05/0.34, allocations: 12 kB / 372.7 MB, free: 7.223 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 7.715e-05/0.3401, allocations: 43.83 kB / 372.8 MB, free: 7.18 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 8.965e-05/0.3402, allocations: 81.5 kB / 372.9 MB, free: 7.094 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003097/0.3405, allocations: 208.3 kB / 373.1 MB, free: 6.891 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.314e-06/0.3406, allocations: 0 / 373.1 MB, free: 6.891 MB / 298.7 MB Notification: Performance of FrontEnd: time 3.617e-06/0.3406, allocations: 8 kB / 373.1 MB, free: 6.883 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.761e-06/0.3406, allocations: 0 / 373.1 MB, free: 6.883 MB / 298.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.001162/0.3418, allocations: 0.5417 MB / 373.6 MB, free: 6.293 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.323e-05/0.3418, allocations: 8.031 kB / 373.6 MB, free: 6.285 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.247e-05/0.3419, allocations: 58.55 kB / 373.7 MB, free: 6.219 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.432e-05/0.342, allocations: 31.62 kB / 373.7 MB, free: 6.188 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003749/0.3424, allocations: 254.3 kB / 374 MB, free: 5.898 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.917e-05/0.3424, allocations: 20.56 kB / 374 MB, free: 5.879 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.88e-05/0.3425, allocations: 24 kB / 374 MB, free: 5.855 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007497/0.3433, allocations: 293.9 kB / 374.3 MB, free: 5.543 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.746e-05/0.3433, allocations: 11.89 kB / 374.3 MB, free: 5.531 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.52e-05/0.3434, allocations: 12 kB / 374.3 MB, free: 5.52 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.311e-05/0.3434, allocations: 8 kB / 374.3 MB, free: 5.512 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007543/0.3442, allocations: 191.8 kB / 374.5 MB, free: 5.324 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002431/0.3466, allocations: 1.333 MB / 375.8 MB, free: 3.883 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006786/0.3473, allocations: 250.4 kB / 376.1 MB, free: 3.602 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.457e-05/0.3474, allocations: 8 kB / 376.1 MB, free: 3.594 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.971e-05/0.3474, allocations: 38.69 kB / 376.1 MB, free: 3.547 MB / 298.7 MB Notification: Performance of pre-optimization done (n=26): time 3.306e-06/0.3474, allocations: 0 / 376.1 MB, free: 3.547 MB / 298.7 MB Notification: Performance of matching and sorting (n=32): time 0.004105/0.3515, allocations: 1.63 MB / 377.8 MB, free: 1.707 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.786e-05/0.3516, allocations: 132.5 kB / 377.9 MB, free: 1.547 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002928/0.3519, allocations: 225 kB / 378.1 MB, free: 1.32 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.316e-05/0.352, allocations: 29.7 kB / 378.1 MB, free: 1.285 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001571/0.3522, allocations: 238.7 kB / 378.4 MB, free: 1.051 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001222/0.3523, allocations: 118.3 kB / 378.5 MB, free: 0.9336 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.236e-05/0.3523, allocations: 8 kB / 378.5 MB, free: 0.9258 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001276/0.3525, allocations: 326.8 kB / 378.8 MB, free: 0.5977 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004629/0.3529, allocations: 108.8 kB / 378.9 MB, free: 500 kB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005629/0.3535, allocations: 245.4 kB / 379.2 MB, free: 196 kB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005343/0.3541, allocations: 145.1 kB / 379.3 MB, free: 52 kB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.536e-06/0.3541, allocations: 0 / 379.3 MB, free: 52 kB / 298.7 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.001329/0.3554, allocations: 405.1 kB / 379.7 MB, free: 15.65 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.153e-05/0.3555, allocations: 4 kB / 379.7 MB, free: 15.64 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.129e-05/0.3555, allocations: 8 kB / 379.7 MB, free: 15.64 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.419e-05/0.3555, allocations: 7.953 kB / 379.7 MB, free: 15.63 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007236/0.3563, allocations: 111.9 kB / 379.8 MB, free: 15.52 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.442e-05/0.3563, allocations: 8.25 kB / 379.8 MB, free: 15.51 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003994/0.3567, allocations: 43.83 kB / 379.9 MB, free: 15.47 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.154e-05/0.3568, allocations: 19.98 kB / 379.9 MB, free: 15.45 MB / 314.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.0002132/0.357, allocations: 149.7 kB / 380 MB, free: 15.29 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001296/0.3571, allocations: 27.72 kB / 380.1 MB, free: 15.27 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.434e-05/0.3572, allocations: 30.22 kB / 380.1 MB, free: 15.24 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.999e-06/0.3572, allocations: 11.95 kB / 380.1 MB, free: 15.23 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.087e-06/0.3573, allocations: 4 kB / 380.1 MB, free: 15.22 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.141e-06/0.3573, allocations: 0 / 380.1 MB, free: 15.22 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002304/0.3596, allocations: 1.013 MB / 381.1 MB, free: 14.14 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.376e-06/0.3596, allocations: 4.438 kB / 381.1 MB, free: 14.14 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000752/0.3604, allocations: 87.94 kB / 381.2 MB, free: 14.05 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.019e-05/0.3604, allocations: 3.984 kB / 381.2 MB, free: 14.05 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.512e-05/0.3605, allocations: 12 kB / 381.2 MB, free: 14.04 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.875e-06/0.3605, allocations: 4 kB / 381.2 MB, free: 14.04 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.955e-06/0.3605, allocations: 0 / 381.2 MB, free: 14.04 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001715/0.3622, allocations: 0.7718 MB / 382 MB, free: 13.24 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000103/0.3623, allocations: 108.7 kB / 382.1 MB, free: 13.11 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.466e-05/0.3624, allocations: 8.062 kB / 382.1 MB, free: 13.11 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004552/0.3629, allocations: 23.98 kB / 382.1 MB, free: 13.08 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.898e-05/0.363, allocations: 23.97 kB / 382.2 MB, free: 13.06 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.416e-05/0.363, allocations: 15.98 kB / 382.2 MB, free: 13.04 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.000197/0.3633, allocations: 156.4 kB / 382.3 MB, free: 12.89 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.3633, allocations: 4 kB / 382.3 MB, free: 12.89 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0006469/0.3639, allocations: 67.95 kB / 382.4 MB, free: 12.82 MB / 314.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.001976/0.3659, allocations: 1.298 MB / 383.7 MB, free: 11.48 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001128/0.3671, allocations: 296.2 kB / 384 MB, free: 11.2 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.976e-06/0.3671, allocations: 0 / 384 MB, free: 11.2 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005225/0.3676, allocations: 144.1 kB / 384.1 MB, free: 11.05 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006476/0.3683, allocations: 37.06 kB / 384.2 MB, free: 11.02 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005124/0.3734, allocations: 2.218 MB / 386.4 MB, free: 8.66 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004264/0.3739, allocations: 0.7839 MB / 387.2 MB, free: 7.852 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002668/0.3742, allocations: 99.39 kB / 387.3 MB, free: 7.754 MB / 314.7 MB Notification: Performance of SimCode: time 1.162e-06/0.3742, allocations: 0 / 387.3 MB, free: 7.754 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.46/2.834, allocations: 4.44 MB / 391.7 MB, free: 3.316 MB / 314.7 MB "" 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