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.Directions.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.Directions,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Rotational_ForUsersGuide_Directions",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.322/2.322, allocations: 234.9 MB / 250.5 MB, free: 9.551 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004316/0.0004319, allocations: 12 kB / 314.4 MB, free: 9.516 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3675/0.368, allocations: 54.87 MB / 369.3 MB, free: 10.71 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions): time 0.003878/0.3719, allocations: 2.21 MB / 371.5 MB, free: 8.48 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001719/0.3737, allocations: 0.7337 MB / 372.2 MB, free: 7.742 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002305/0.374, allocations: 11.94 kB / 372.2 MB, free: 7.73 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001012/0.3741, allocations: 39.69 kB / 372.3 MB, free: 7.691 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000396/0.3745, allocations: 131.6 kB / 372.4 MB, free: 7.562 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003451/0.3749, allocations: 71.91 kB / 372.5 MB, free: 7.492 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005661/0.3754, allocations: 307.8 kB / 372.8 MB, free: 7.191 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000314/0.3758, allocations: 133.4 kB / 372.9 MB, free: 7.062 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002681/0.3761, allocations: 139.4 kB / 373 MB, free: 6.926 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002889/0.3764, allocations: 163.3 kB / 373.2 MB, free: 6.766 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.933e-05/0.3764, allocations: 20 kB / 373.2 MB, free: 6.746 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.605e-05/0.3765, allocations: 20 kB / 373.2 MB, free: 6.727 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 8.132e-05/0.3766, allocations: 63.69 kB / 373.3 MB, free: 6.664 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001109/0.3767, allocations: 101.5 kB / 373.4 MB, free: 6.559 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004547/0.3772, allocations: 316 kB / 373.7 MB, free: 6.25 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.745e-06/0.3772, allocations: 0 / 373.7 MB, free: 6.25 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.773e-06/0.3772, allocations: 0 / 373.7 MB, free: 6.25 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.983e-06/0.3772, allocations: 0 / 373.7 MB, free: 6.25 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: 96 * Number of variables: 96 Notification: Performance of Generate backend data structure: time 0.001269/0.3785, allocations: 0.6033 MB / 374.3 MB, free: 5.598 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.728e-05/0.3786, allocations: 12.03 kB / 374.3 MB, free: 5.586 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001371/0.3787, allocations: 74.53 kB / 374.4 MB, free: 5.504 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001035/0.3788, allocations: 43.44 kB / 374.4 MB, free: 5.461 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004262/0.3793, allocations: 283.4 kB / 374.7 MB, free: 5.141 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.838e-05/0.3793, allocations: 29 kB / 374.7 MB, free: 5.113 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.838e-05/0.3794, allocations: 47.91 kB / 374.8 MB, free: 5.066 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009938/0.3805, allocations: 381 kB / 375.2 MB, free: 4.676 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.503e-05/0.3805, allocations: 7.984 kB / 375.2 MB, free: 4.668 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.286e-05/0.3806, allocations: 23.94 kB / 375.2 MB, free: 4.645 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.435e-05/0.3806, allocations: 12 kB / 375.2 MB, free: 4.633 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008771/0.3815, allocations: 251.8 kB / 375.4 MB, free: 4.387 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002523/0.384, allocations: 1.12 MB / 376.6 MB, free: 3.207 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008875/0.3849, allocations: 355.5 kB / 376.9 MB, free: 2.832 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.569e-05/0.385, allocations: 7.938 kB / 376.9 MB, free: 2.824 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.417e-05/0.385, allocations: 34.56 kB / 376.9 MB, free: 2.781 MB / 298.7 MB Notification: Performance of pre-optimization done (n=39): time 2.855e-06/0.3851, allocations: 0 / 376.9 MB, free: 2.781 MB / 298.7 MB Notification: Performance of matching and sorting (n=57): time 0.006091/0.3912, allocations: 2.472 MB / 379.4 MB, free: 40 kB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.694e-05/0.3913, allocations: 114.8 kB / 379.5 MB, free: 15.9 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003562/0.3917, allocations: 238.6 kB / 379.8 MB, free: 15.66 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 5.333e-05/0.3917, allocations: 37.7 kB / 379.8 MB, free: 15.62 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001529/0.3919, allocations: 231.1 kB / 380 MB, free: 15.39 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002118/0.3921, allocations: 205 kB / 380.2 MB, free: 15.19 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.302e-05/0.3922, allocations: 12 kB / 380.2 MB, free: 15.18 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001369/0.3923, allocations: 326.8 kB / 380.6 MB, free: 14.85 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004651/0.3928, allocations: 137 kB / 380.7 MB, free: 14.71 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005519/0.3934, allocations: 239.8 kB / 380.9 MB, free: 14.45 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005554/0.3939, allocations: 159.9 kB / 381.1 MB, free: 14.29 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.957e-06/0.3939, allocations: 4 kB / 381.1 MB, free: 14.29 MB / 314.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001731/0.3957, allocations: 0.5503 MB / 381.6 MB, free: 13.72 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.848e-05/0.3957, allocations: 8 kB / 381.6 MB, free: 13.71 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.303e-05/0.3958, allocations: 4.109 kB / 381.6 MB, free: 13.71 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006052/0.3964, allocations: 122.5 kB / 381.8 MB, free: 13.58 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007202/0.3971, allocations: 107.9 kB / 381.9 MB, free: 13.47 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00584/0.403, allocations: 4.7 MB / 386.6 MB, free: 8.363 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004409/0.4035, allocations: 23.98 kB / 386.6 MB, free: 8.34 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.792e-05/0.4035, allocations: 16 kB / 386.6 MB, free: 8.324 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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 (51): * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 5,(1,100.0%) 5,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002988/0.4038, allocations: 177.6 kB / 386.8 MB, free: 8.141 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001405/0.404, allocations: 47.55 kB / 386.8 MB, free: 8.094 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001238/0.4041, allocations: 46.25 kB / 386.9 MB, free: 8.051 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.15e-05/0.4042, allocations: 8 kB / 386.9 MB, free: 8.043 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.862e-05/0.4042, allocations: 4 kB / 386.9 MB, free: 8.039 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.458e-06/0.4042, allocations: 3.984 kB / 386.9 MB, free: 8.035 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003379/0.4076, allocations: 1.34 MB / 388.2 MB, free: 6.621 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.424e-06/0.4076, allocations: 0 / 388.2 MB, free: 6.621 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008373/0.4085, allocations: 104 kB / 388.3 MB, free: 6.52 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004917/0.409, allocations: 90.52 kB / 388.4 MB, free: 6.422 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.053e-05/0.4091, allocations: 12 kB / 388.4 MB, free: 6.41 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004887/0.414, allocations: 4.143 MB / 392.6 MB, free: 1.863 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.841e-06/0.414, allocations: 7.969 kB / 392.6 MB, free: 1.855 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002324/0.4164, allocations: 0.9389 MB / 393.5 MB, free: 0.8828 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001527/0.4166, allocations: 100.7 kB / 393.6 MB, free: 0.7656 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.007e-05/0.4167, allocations: 12.06 kB / 393.6 MB, free: 0.7539 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004229/0.4171, allocations: 23.98 kB / 393.7 MB, free: 0.7305 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001627/0.4173, allocations: 51.73 kB / 393.7 MB, free: 0.6797 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.012e-05/0.4173, allocations: 16 kB / 393.7 MB, free: 0.6641 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0002382/0.4176, allocations: 174 kB / 393.9 MB, free: 0.4922 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.21e-07/0.4176, allocations: 0 / 393.9 MB, free: 0.4922 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0009439/0.4185, allocations: 120 kB / 394 MB, free: 384 kB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 6 (J5.phi,J5.w,J3.phi,J3.w,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 (48): * Single equations (assignments): 45 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002653/0.4212, allocations: 1.482 MB / 395.5 MB, free: 14.85 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.00203/0.4233, allocations: 0.7731 MB / 396.3 MB, free: 14.04 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 7.484e-06/0.4233, allocations: 4 kB / 396.3 MB, free: 14.04 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001302/0.4247, allocations: 0.5765 MB / 396.8 MB, free: 13.42 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007902/0.4255, allocations: 57.41 kB / 396.9 MB, free: 13.37 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006788/0.4323, allocations: 2.719 MB / 399.6 MB, free: 10.53 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005244/0.4329, allocations: 0.828 MB / 400.5 MB, free: 9.676 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003172/0.4332, allocations: 135.4 kB / 400.6 MB, free: 9.543 MB / 330.7 MB Notification: Performance of SimCode: time 1.172e-06/0.4332, allocations: 0 / 400.6 MB, free: 9.543 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.908/3.342, allocations: 10.46 MB / 411 MB, free: 15.06 MB / 346.7 MB "" Variables in the reference:time,J2.phi,J2.w,J3.phi,J3.w,J5.phi,J5.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,J3.J,J3.a,J3.flange_a.phi,J3.flange_a.tau,J3.flange_b.phi,J3.flange_b.tau,J3.phi,J3.stateSelect,J3.w,J4.J,J4.a,J4.flange_a.phi,J4.flange_a.tau,J4.flange_b.phi,J4.flange_b.tau,J4.phi,J4.stateSelect,J4.w,J5.J,J5.a,J5.flange_a.phi,J5.flange_a.tau,J5.flange_b.phi,J5.flange_b.tau,J5.phi,J5.stateSelect,J5.w,J6.J,J6.a,J6.flange_a.phi,J6.flange_a.tau,J6.flange_b.phi,J6.flange_b.tau,J6.phi,J6.stateSelect,J6.w,der(J1.phi),der(J1.w),der(J2.phi),der(J2.w),der(J3.phi),der(J3.w),der(J4.phi),der(J4.w),der(J5.phi),der(J5.w),der(J6.phi),der(J6.w),der(der(gear.phi_a)),der(der(gear.phi_b)),der(der(gear1.phi_a)),der(der(gear1.phi_b)),der(der(gear2.phi_a)),der(der(gear2.phi_b)),der(gear.phi_a),der(gear.phi_b),der(gear1.phi_a),der(gear1.phi_b),der(gear2.phi_a),der(gear2.phi_b),fixed1.flange.phi,fixed1.flange.tau,fixed1.phi0,fixed2.flange.phi,fixed2.flange.tau,fixed2.phi0,fixed3.flange.phi,fixed3.flange.tau,fixed3.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,gear1.flange_a.phi,gear1.flange_a.tau,gear1.flange_b.phi,gear1.flange_b.tau,gear1.phi_a,gear1.phi_b,gear1.phi_support,gear1.ratio,gear1.support.phi,gear1.support.tau,gear1.useSupport,gear2.flange_a.phi,gear2.flange_a.tau,gear2.flange_b.phi,gear2.flange_b.tau,gear2.phi_a,gear2.phi_b,gear2.phi_support,gear2.ratio,gear2.support.phi,gear2.support.tau,gear2.useSupport,sine.amplitude,sine.freqHz,sine.offset,sine.phase,sine.startTime,sine.y,sine1.amplitude,sine1.freqHz,sine1.offset,sine1.phase,sine1.startTime,sine1.y,sine2.amplitude,sine2.freqHz,sine2.offset,sine2.phase,sine2.startTime,sine2.y,time,torque.flange.phi,torque.flange.tau,torque.phi_support,torque.support.phi,torque.support.tau,torque.tau,torque.useSupport,torque1.flange.phi,torque1.flange.tau,torque1.phi_support,torque1.support.phi,torque1.support.tau,torque1.tau,torque1.useSupport,torque2.flange.phi,torque2.flange.tau,torque2.phi_support,torque2.support.phi,torque2.support.tau,torque2.tau,torque2.useSupport