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.Directions2.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.Directions2,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Rotational_ForUsersGuide_Directions2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.424/2.424, allocations: 234.9 MB / 250.5 MB, free: 9.57 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005859/0.0005861, allocations: 12 kB / 314.4 MB, free: 9.52 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3705/0.3711, allocations: 54.86 MB / 369.3 MB, free: 10.74 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions2): time 0.003978/0.3752, allocations: 2.207 MB / 371.5 MB, free: 8.508 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001675/0.3769, allocations: 0.7143 MB / 372.2 MB, free: 7.789 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002082/0.3772, allocations: 7.938 kB / 372.2 MB, free: 7.781 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 9.497e-05/0.3773, allocations: 35.7 kB / 372.2 MB, free: 7.746 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003919/0.3777, allocations: 135.6 kB / 372.4 MB, free: 7.613 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003078/0.378, allocations: 59.94 kB / 372.4 MB, free: 7.555 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005354/0.3786, allocations: 307.4 kB / 372.7 MB, free: 7.254 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002666/0.3788, allocations: 112 kB / 372.8 MB, free: 7.145 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002659/0.3791, allocations: 139.5 kB / 373 MB, free: 7.008 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002865/0.3794, allocations: 159.3 kB / 373.1 MB, free: 6.852 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.653e-05/0.3795, allocations: 16 kB / 373.1 MB, free: 6.836 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.007e-05/0.3796, allocations: 20 kB / 373.2 MB, free: 6.816 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 8.57e-05/0.3797, allocations: 63.75 kB / 373.2 MB, free: 6.754 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001202/0.3798, allocations: 101.5 kB / 373.3 MB, free: 6.648 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000447/0.3803, allocations: 304.1 kB / 373.6 MB, free: 6.352 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.385e-06/0.3803, allocations: 0 / 373.6 MB, free: 6.352 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.094e-06/0.3803, allocations: 4 kB / 373.6 MB, free: 6.348 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.033e-06/0.3803, allocations: 0 / 373.6 MB, free: 6.348 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: 93 * Number of variables: 93 Notification: Performance of Generate backend data structure: time 0.001292/0.3816, allocations: 0.5771 MB / 374.2 MB, free: 5.723 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.111e-05/0.3817, allocations: 8.031 kB / 374.2 MB, free: 5.715 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001169/0.3818, allocations: 78.47 kB / 374.3 MB, free: 5.629 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.828e-05/0.3819, allocations: 51.44 kB / 374.3 MB, free: 5.578 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004231/0.3824, allocations: 267.3 kB / 374.6 MB, free: 5.277 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.29e-05/0.3824, allocations: 29 kB / 374.6 MB, free: 5.246 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.599e-05/0.3825, allocations: 39.91 kB / 374.7 MB, free: 5.207 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009626/0.3835, allocations: 402.1 kB / 375.1 MB, free: 4.781 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.784e-05/0.3836, allocations: 11.92 kB / 375.1 MB, free: 4.77 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.574e-05/0.3836, allocations: 12 kB / 375.1 MB, free: 4.758 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.883e-05/0.3836, allocations: 12 kB / 375.1 MB, free: 4.746 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007387/0.3844, allocations: 223.7 kB / 375.3 MB, free: 4.527 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003552/0.3879, allocations: 1.731 MB / 377 MB, free: 2.691 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006914/0.3887, allocations: 266.4 kB / 377.3 MB, free: 2.367 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.062e-05/0.3887, allocations: 3.938 kB / 377.3 MB, free: 2.363 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.411e-05/0.3888, allocations: 42.64 kB / 377.3 MB, free: 2.312 MB / 298.7 MB Notification: Performance of pre-optimization done (n=26): time 3.506e-06/0.3888, allocations: 4 kB / 377.4 MB, free: 2.309 MB / 298.7 MB Notification: Performance of matching and sorting (n=26): time 0.001101/0.3899, allocations: 285.7 kB / 377.6 MB, free: 2.023 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001414/0.3901, allocations: 214 kB / 377.8 MB, free: 1.766 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004088/0.3905, allocations: 278.8 kB / 378.1 MB, free: 1.484 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.922e-05/0.3905, allocations: 25.7 kB / 378.1 MB, free: 1.453 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002404/0.3908, allocations: 301.7 kB / 378.4 MB, free: 1.152 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001264/0.3909, allocations: 110.5 kB / 378.5 MB, free: 1.043 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.169e-05/0.391, allocations: 16 kB / 378.6 MB, free: 1.027 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001649/0.3912, allocations: 326.8 kB / 378.9 MB, free: 0.6992 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003442/0.3915, allocations: 105.2 kB / 379 MB, free: 0.5977 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006346/0.3922, allocations: 432.8 kB / 379.4 MB, free: 12 kB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005043/0.3927, allocations: 163.9 kB / 379.6 MB, free: 15.85 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.508e-06/0.3927, allocations: 4 kB / 379.6 MB, free: 15.85 MB / 314.7 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.001406/0.3941, allocations: 0.5211 MB / 380.1 MB, free: 15.32 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.883e-05/0.3942, allocations: 11.94 kB / 380.1 MB, free: 15.31 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.115e-05/0.3942, allocations: 12 kB / 380.1 MB, free: 15.3 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.932e-05/0.3942, allocations: 16 kB / 380.1 MB, free: 15.28 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008529/0.3951, allocations: 147.8 kB / 380.3 MB, free: 15.14 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.465e-05/0.3952, allocations: 23.92 kB / 380.3 MB, free: 15.11 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004765/0.3956, allocations: 67.33 kB / 380.4 MB, free: 15.05 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.49e-05/0.3957, allocations: 44.02 kB / 380.4 MB, free: 15 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 52 * 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 (71): * Single equations (assignments): 71 * 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.0002733/0.396, allocations: 177.5 kB / 380.6 MB, free: 14.82 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001956/0.3962, allocations: 31.62 kB / 380.6 MB, free: 14.79 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.625e-05/0.3963, allocations: 33.78 kB / 380.6 MB, free: 14.75 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.004e-05/0.3963, allocations: 4 kB / 380.6 MB, free: 14.75 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.097e-05/0.3964, allocations: 4 kB / 380.6 MB, free: 14.75 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.553e-06/0.3964, allocations: 0 / 380.6 MB, free: 14.75 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002031/0.3984, allocations: 0.6553 MB / 381.3 MB, free: 14.03 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.338e-06/0.3985, allocations: 4 kB / 381.3 MB, free: 14.02 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009301/0.3994, allocations: 87.89 kB / 381.4 MB, free: 13.94 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.223e-05/0.3994, allocations: 4 kB / 381.4 MB, free: 13.93 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.347e-05/0.3995, allocations: 12 kB / 381.4 MB, free: 13.92 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.428e-06/0.3995, allocations: 3.984 kB / 381.4 MB, free: 13.92 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.485e-06/0.3995, allocations: 7.953 kB / 381.4 MB, free: 13.91 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001165/0.4007, allocations: 0.8515 MB / 382.3 MB, free: 13.04 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001249/0.4008, allocations: 104.9 kB / 382.4 MB, free: 12.91 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.924e-05/0.4009, allocations: 8 kB / 382.4 MB, free: 12.91 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000509/0.4015, allocations: 23.97 kB / 382.4 MB, free: 12.88 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.147e-05/0.4016, allocations: 19.94 kB / 382.4 MB, free: 12.86 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.281e-05/0.4016, allocations: 16.17 kB / 382.4 MB, free: 12.85 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0002704/0.4019, allocations: 181.9 kB / 382.6 MB, free: 12.67 MB / 314.7 MB Notification: Performance of sort global known variables: time 3.81e-07/0.4019, allocations: 0 / 382.6 MB, free: 12.67 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0009858/0.4029, allocations: 103.8 kB / 382.7 MB, free: 12.57 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 18 (inertia2.phi,inertia2.w,inertia1.phi,inertia1.w,inertia5.phi,inertia5.w,inertia6.phi,inertia6.w,inertia3.phi,inertia3.w,inertia4.phi,inertia4.w,J6.phi,J6.w,J4.phi,J4.w,J2.phi,J2.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 (26): * Single equations (assignments): 26 * 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.001508/0.4044, allocations: 1.391 MB / 384.1 MB, free: 11.14 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0009677/0.4054, allocations: 297.5 kB / 384.4 MB, free: 10.85 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.118e-06/0.4054, allocations: 0 / 384.4 MB, free: 10.85 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002944/0.4057, allocations: 89.02 kB / 384.5 MB, free: 10.77 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009397/0.4067, allocations: 65.53 kB / 384.5 MB, free: 10.7 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007044/0.4137, allocations: 3.328 MB / 387.9 MB, free: 7.133 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005664/0.4144, allocations: 0.8069 MB / 388.7 MB, free: 6.297 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002663/0.4146, allocations: 123.4 kB / 388.8 MB, free: 6.18 MB / 314.7 MB Notification: Performance of SimCode: time 1.373e-06/0.4147, allocations: 0 / 388.8 MB, free: 6.18 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.338/2.752, allocations: 5.556 MB / 394.4 MB, free: 0.6211 MB / 314.7 MB "" Variables in the reference:time,J2.phi,J2.w,J4.phi,J4.w,J6.phi,J6.w,inertia1.phi,inertia1.w,inertia2.phi,inertia2.w,inertia3.phi,inertia3.w,inertia4.phi,inertia4.w,inertia5.phi,inertia5.w,inertia6.phi,inertia6.w Variables in the result: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,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,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(J2.phi),der(J2.w),der(J4.phi),der(J4.w),der(J6.phi),der(J6.w),der(inertia1.phi),der(inertia1.w),der(inertia2.phi),der(inertia2.w),der(inertia3.phi),der(inertia3.w),der(inertia4.phi),der(inertia4.w),der(inertia5.phi),der(inertia5.w),der(inertia6.phi),der(inertia6.w),fixed1.flange.phi,fixed1.flange.tau,fixed1.phi0,fixed2.flange.phi,fixed2.flange.tau,fixed2.phi0,idealPlanetary1.carrier.phi,idealPlanetary1.carrier.tau,idealPlanetary1.ratio,idealPlanetary1.ring.phi,idealPlanetary1.ring.tau,idealPlanetary1.sun.phi,idealPlanetary1.sun.tau,idealPlanetary2.carrier.phi,idealPlanetary2.carrier.tau,idealPlanetary2.ratio,idealPlanetary2.ring.phi,idealPlanetary2.ring.tau,idealPlanetary2.sun.phi,idealPlanetary2.sun.tau,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,inertia4.J,inertia4.a,inertia4.flange_a.phi,inertia4.flange_a.tau,inertia4.flange_b.phi,inertia4.flange_b.tau,inertia4.phi,inertia4.stateSelect,inertia4.w,inertia5.J,inertia5.a,inertia5.flange_a.phi,inertia5.flange_a.tau,inertia5.flange_b.phi,inertia5.flange_b.tau,inertia5.phi,inertia5.stateSelect,inertia5.w,inertia6.J,inertia6.a,inertia6.flange_a.phi,inertia6.flange_a.tau,inertia6.flange_b.phi,inertia6.flange_b.tau,inertia6.phi,inertia6.stateSelect,inertia6.w,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,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