Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.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.ForUsersGuide.SimpleDriveTrain,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.347/2.347, allocations: 234.9 MB / 250.5 MB, free: 10.53 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004448/0.0004449, allocations: 12 kB / 314.4 MB, free: 10.48 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3517/0.3522, allocations: 54.87 MB / 369.3 MB, free: 10.84 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain): time 0.002784/0.3551, allocations: 1.486 MB / 370.8 MB, free: 9.328 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001074/0.3562, allocations: 0.5002 MB / 371.3 MB, free: 8.824 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001011/0.3563, allocations: 4 kB / 371.3 MB, free: 8.82 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 5.095e-05/0.3564, allocations: 15.92 kB / 371.3 MB, free: 8.805 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001613/0.3565, allocations: 43.83 kB / 371.3 MB, free: 8.762 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001882/0.3567, allocations: 23.92 kB / 371.4 MB, free: 8.738 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002327/0.357, allocations: 107.8 kB / 371.5 MB, free: 8.633 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000162/0.3572, allocations: 45.75 kB / 371.5 MB, free: 8.582 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001222/0.3573, allocations: 51.78 kB / 371.6 MB, free: 8.531 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00013/0.3574, allocations: 55.77 kB / 371.6 MB, free: 8.477 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.525e-05/0.3575, allocations: 4 kB / 371.6 MB, free: 8.473 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.218e-05/0.3575, allocations: 8 kB / 371.6 MB, free: 8.465 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.208e-05/0.3576, allocations: 23.91 kB / 371.6 MB, free: 8.441 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.238e-05/0.3576, allocations: 45.64 kB / 371.7 MB, free: 8.391 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001842/0.3578, allocations: 112.7 kB / 371.8 MB, free: 8.281 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.136e-06/0.3578, allocations: 4 kB / 371.8 MB, free: 8.277 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.924e-06/0.3579, allocations: 0 / 371.8 MB, free: 8.277 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.58e-06/0.3579, allocations: 0 / 371.8 MB, free: 8.277 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: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.0006991/0.3586, allocations: 405.9 kB / 372.2 MB, free: 7.836 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.054e-05/0.3587, allocations: 8.031 kB / 372.2 MB, free: 7.828 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.138e-05/0.3587, allocations: 46.55 kB / 372.2 MB, free: 7.773 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.542e-05/0.3588, allocations: 19.81 kB / 372.3 MB, free: 7.754 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002546/0.3591, allocations: 206.8 kB / 372.5 MB, free: 7.512 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.877e-05/0.3591, allocations: 8 kB / 372.5 MB, free: 7.504 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.578e-05/0.3592, allocations: 20 kB / 372.5 MB, free: 7.484 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003738/0.3595, allocations: 121.6 kB / 372.6 MB, free: 7.359 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.395e-05/0.3596, allocations: 4 kB / 372.6 MB, free: 7.355 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.377e-05/0.3596, allocations: 7.953 kB / 372.6 MB, free: 7.348 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.008e-05/0.3596, allocations: 4 kB / 372.6 MB, free: 7.344 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002997/0.3599, allocations: 79.95 kB / 372.7 MB, free: 7.266 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009857/0.361, allocations: 484.2 kB / 373.2 MB, free: 6.742 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000335/0.3613, allocations: 114.5 kB / 373.3 MB, free: 6.621 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.955e-05/0.3613, allocations: 3.938 kB / 373.3 MB, free: 6.617 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.608e-05/0.3614, allocations: 42.56 kB / 373.3 MB, free: 6.566 MB / 298.7 MB Notification: Performance of pre-optimization done (n=13): time 2.225e-06/0.3614, allocations: 0 / 373.3 MB, free: 6.566 MB / 298.7 MB Notification: Performance of matching and sorting (n=19): time 0.00216/0.3636, allocations: 0.8206 MB / 374.2 MB, free: 5.652 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.205e-05/0.3636, allocations: 55.41 kB / 374.2 MB, free: 5.586 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001671/0.3638, allocations: 144.9 kB / 374.4 MB, free: 5.438 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.087e-05/0.3638, allocations: 25.7 kB / 374.4 MB, free: 5.406 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001022/0.3639, allocations: 178.7 kB / 374.6 MB, free: 5.23 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.562e-05/0.364, allocations: 70.94 kB / 374.6 MB, free: 5.16 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.231e-05/0.3641, allocations: 4 kB / 374.6 MB, free: 5.156 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001277/0.3642, allocations: 322.8 kB / 374.9 MB, free: 4.832 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001588/0.3644, allocations: 44.36 kB / 375 MB, free: 4.789 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000196/0.3646, allocations: 81.84 kB / 375.1 MB, free: 4.699 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001904/0.3648, allocations: 55.92 kB / 375.1 MB, free: 4.645 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/0.3648, allocations: 0 / 375.1 MB, free: 4.645 MB / 298.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0006036/0.3654, allocations: 210.2 kB / 375.3 MB, free: 4.43 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.132e-05/0.3654, allocations: 7.984 kB / 375.3 MB, free: 4.422 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.923e-06/0.3655, allocations: 0 / 375.3 MB, free: 4.422 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002356/0.3657, allocations: 40.84 kB / 375.4 MB, free: 4.379 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002849/0.366, allocations: 35.97 kB / 375.4 MB, free: 4.344 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001966/0.368, allocations: 1.581 MB / 377 MB, free: 2.629 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001371/0.3682, allocations: 12.06 kB / 377 MB, free: 2.617 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.119e-05/0.3682, allocations: 8 kB / 377 MB, free: 2.609 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * 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 (17): * Single equations (assignments): 16 * 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.0001555/0.3684, allocations: 125.8 kB / 377.1 MB, free: 2.477 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.648e-05/0.3684, allocations: 7.906 kB / 377.1 MB, free: 2.469 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.198e-05/0.3685, allocations: 25.17 kB / 377.2 MB, free: 2.445 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.076e-06/0.3685, allocations: 0 / 377.2 MB, free: 2.445 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.032e-05/0.3685, allocations: 4 kB / 377.2 MB, free: 2.441 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.568e-06/0.3685, allocations: 4 kB / 377.2 MB, free: 2.438 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001133/0.3697, allocations: 0.5525 MB / 377.7 MB, free: 1.824 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.917e-06/0.3697, allocations: 4.031 kB / 377.7 MB, free: 1.82 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000297/0.37, allocations: 35.92 kB / 377.8 MB, free: 1.785 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001879/0.3702, allocations: 36.83 kB / 377.8 MB, free: 1.746 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.903e-05/0.3702, allocations: 4 kB / 377.8 MB, free: 1.742 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001461/0.3717, allocations: 1.378 MB / 379.2 MB, free: 236 kB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.104e-06/0.3717, allocations: 0 / 379.2 MB, free: 236 kB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007968/0.3725, allocations: 349.3 kB / 379.5 MB, free: 15.87 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.321e-05/0.3726, allocations: 100.9 kB / 379.6 MB, free: 15.75 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.824e-05/0.3727, allocations: 3.938 kB / 379.6 MB, free: 15.75 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001514/0.3728, allocations: 8 kB / 379.6 MB, free: 15.74 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.888e-05/0.3729, allocations: 11.98 kB / 379.6 MB, free: 15.73 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.767e-05/0.3729, allocations: 8 kB / 379.7 MB, free: 15.72 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001061/0.373, allocations: 118 kB / 379.8 MB, free: 15.61 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.61e-07/0.3731, allocations: 0 / 379.8 MB, free: 15.61 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004757/0.3735, allocations: 36 kB / 379.8 MB, free: 15.57 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (J1.phi,J1.w) * 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 (16): * Single equations (assignments): 15 * 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.001087/0.3746, allocations: 0.8744 MB / 380.7 MB, free: 14.66 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0007311/0.3754, allocations: 270.4 kB / 380.9 MB, free: 14.38 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.075e-06/0.3754, allocations: 4.125 kB / 380.9 MB, free: 14.38 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004102/0.3758, allocations: 198.5 kB / 381.1 MB, free: 14.17 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003516/0.3762, allocations: 11.98 kB / 381.2 MB, free: 14.16 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002496/0.3787, allocations: 1.128 MB / 382.3 MB, free: 12.97 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000348/0.3791, allocations: 0.7243 MB / 383 MB, free: 12.22 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001242/0.3792, allocations: 43.42 kB / 383 MB, free: 12.18 MB / 314.7 MB Notification: Performance of SimCode: time 2.875e-06/0.3792, allocations: 4.109 kB / 383.1 MB, free: 12.17 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.66/3.04, allocations: 3.002 MB / 386.1 MB, free: 9.172 MB / 314.7 MB "" Variables in the reference:time,J2.phi,J2.w Variables in the result:J1.J,J1.a,J1.flange_a.phi,J1.flange_a.tau,J1.flange_b.phi,J1.flange_b.tau,J1.phi,J1.stateSelect,J1.w,J2.J,J2.a,J2.flange_a.phi,J2.flange_a.tau,J2.flange_b.phi,J2.flange_b.tau,J2.phi,J2.stateSelect,J2.w,der(J1.phi),der(J1.w),der(J2.phi),der(J2.w),der(der(gear.phi_a)),der(der(gear.phi_b)),der(gear.phi_a),der(gear.phi_b),fixed.flange.phi,fixed.flange.tau,fixed.phi0,gear.flange_a.phi,gear.flange_a.tau,gear.flange_b.phi,gear.flange_b.tau,gear.phi_a,gear.phi_b,gear.phi_support,gear.ratio,gear.support.phi,gear.support.tau,gear.useSupport,sine.amplitude,sine.freqHz,sine.offset,sine.phase,sine.startTime,sine.y,time,torque.flange.phi,torque.flange.tau,torque.phi_support,torque.support.phi,torque.support.tau,torque.tau,torque.useSupport