Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions2.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.ForUsersGuide.Directions2,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Rotational_ForUsersGuide_Directions2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.054/2.054, allocations: 209.2 MB / 224.8 MB, free: 0.625 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005995/0.0005996, allocations: 12 kB / 282.6 MB, free: 9.602 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3519/0.3525, allocations: 48.7 MB / 331.3 MB, free: 6.5 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions2): time 0.003744/0.3563, allocations: 2.21 MB / 333.5 MB, free: 5.195 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.00189/0.3583, allocations: 0.702 MB / 334.2 MB, free: 4.691 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003198/0.3587, allocations: 7.125 kB / 334.2 MB, free: 4.691 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001136/0.3588, allocations: 35.64 kB / 334.2 MB, free: 4.676 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004517/0.3593, allocations: 135.4 kB / 334.4 MB, free: 4.578 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000375/0.3597, allocations: 62.12 kB / 334.4 MB, free: 4.543 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006916/0.3604, allocations: 310.2 kB / 334.7 MB, free: 4.375 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000295/0.3607, allocations: 111.7 kB / 334.8 MB, free: 4.312 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003691/0.3611, allocations: 137.9 kB / 335 MB, free: 4.254 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003158/0.3614, allocations: 154.3 kB / 335.1 MB, free: 4.184 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 6.358e-05/0.3615, allocations: 23.88 kB / 335.1 MB, free: 4.18 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.286e-05/0.3616, allocations: 19.66 kB / 335.2 MB, free: 4.18 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 8.227e-05/0.3617, allocations: 63.64 kB / 335.2 MB, free: 4.141 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001178/0.3618, allocations: 95.73 kB / 335.3 MB, free: 4.078 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005477/0.3624, allocations: 315.2 kB / 335.6 MB, free: 4.004 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.697e-06/0.3624, allocations: 0 / 335.6 MB, free: 4.004 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.344e-06/0.3624, allocations: 0 / 335.6 MB, free: 4.004 MB / 266.7 MB Notification: Performance of Transformations before backend: time 9.418e-06/0.3624, allocations: 0 / 335.6 MB, free: 4.004 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: 93 * Number of variables: 93 Notification: Performance of Generate backend data structure: time 0.001326/0.3637, allocations: 0.5878 MB / 336.2 MB, free: 3.52 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.719e-05/0.3638, allocations: 13.25 kB / 336.2 MB, free: 3.516 MB / 266.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001244/0.364, allocations: 74.81 kB / 336.3 MB, free: 3.453 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001183/0.3641, allocations: 42.14 kB / 336.3 MB, free: 3.434 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004296/0.3645, allocations: 269.4 kB / 336.6 MB, free: 3.18 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.203e-05/0.3646, allocations: 28.06 kB / 336.6 MB, free: 3.168 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001017/0.3647, allocations: 42.94 kB / 336.7 MB, free: 3.152 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001047/0.3657, allocations: 398.1 kB / 337.1 MB, free: 2.922 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.094e-05/0.3658, allocations: 12.36 kB / 337.1 MB, free: 2.914 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.728e-05/0.3659, allocations: 19.55 kB / 337.1 MB, free: 2.898 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.687e-05/0.3659, allocations: 10.19 kB / 337.1 MB, free: 2.898 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007971/0.3667, allocations: 231.2 kB / 337.3 MB, free: 2.816 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003401/0.3701, allocations: 1.727 MB / 339.1 MB, free: 1.266 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006471/0.3708, allocations: 263.9 kB / 339.3 MB, free: 1.031 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.102e-05/0.3709, allocations: 6.625 kB / 339.3 MB, free: 1.027 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.853e-05/0.3709, allocations: 43.25 kB / 339.4 MB, free: 0.9805 MB / 266.7 MB Notification: Performance of pre-optimization done (n=26): time 2.886e-06/0.3709, allocations: 0 / 339.4 MB, free: 0.9805 MB / 266.7 MB Notification: Performance of matching and sorting (n=26): time 0.001066/0.372, allocations: 275.4 kB / 339.6 MB, free: 0.8398 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.726e-05/0.3721, allocations: 217.7 kB / 339.8 MB, free: 0.582 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004326/0.3726, allocations: 281 kB / 340.1 MB, free: 388 kB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.068e-05/0.3726, allocations: 32.27 kB / 340.1 MB, free: 352 kB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001582/0.3728, allocations: 286.6 kB / 340.4 MB, free: 80 kB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000151/0.373, allocations: 123.7 kB / 340.5 MB, free: 15.96 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.006e-05/0.373, allocations: 10.78 kB / 340.6 MB, free: 15.96 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001747/0.3732, allocations: 336.6 kB / 340.9 MB, free: 15.62 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004054/0.3736, allocations: 100.2 kB / 341 MB, free: 15.58 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006403/0.3743, allocations: 432.1 kB / 341.4 MB, free: 15.08 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005203/0.3748, allocations: 168.9 kB / 341.6 MB, free: 15 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.047e-05/0.3748, allocations: 3.781 kB / 341.6 MB, free: 15 MB / 282.7 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.001547/0.3764, allocations: 0.5246 MB / 342.1 MB, free: 14.73 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.573e-05/0.3765, allocations: 8.938 kB / 342.1 MB, free: 14.73 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.341e-05/0.3765, allocations: 12.28 kB / 342.1 MB, free: 14.73 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.288e-05/0.3766, allocations: 16.31 kB / 342.1 MB, free: 14.73 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009365/0.3775, allocations: 151.8 kB / 342.3 MB, free: 14.69 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.966e-05/0.3776, allocations: 27.39 kB / 342.3 MB, free: 14.68 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005617/0.3782, allocations: 64.69 kB / 342.4 MB, free: 14.64 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.019e-05/0.3782, allocations: 31.22 kB / 342.4 MB, free: 14.64 MB / 282.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.0003143/0.3786, allocations: 176.9 kB / 342.6 MB, free: 14.48 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002202/0.3788, allocations: 40.25 kB / 342.6 MB, free: 14.45 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001102/0.3789, allocations: 38.42 kB / 342.7 MB, free: 14.42 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.578e-06/0.3789, allocations: 3.531 kB / 342.7 MB, free: 14.42 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.078e-05/0.379, allocations: 2.469 kB / 342.7 MB, free: 14.42 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.195e-06/0.379, allocations: 2.438 kB / 342.7 MB, free: 14.42 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002048/0.381, allocations: 0.6437 MB / 343.3 MB, free: 13.86 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.313e-06/0.3811, allocations: 3.125 kB / 343.3 MB, free: 13.86 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009212/0.382, allocations: 89.62 kB / 343.4 MB, free: 13.84 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.302e-05/0.3821, allocations: 3.219 kB / 343.4 MB, free: 13.84 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.842e-05/0.3821, allocations: 13.66 kB / 343.4 MB, free: 13.83 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.788e-06/0.3821, allocations: 8.031 kB / 343.4 MB, free: 13.83 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.589e-06/0.3821, allocations: 2.312 kB / 343.4 MB, free: 13.83 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001216/0.3834, allocations: 0.8438 MB / 344.3 MB, free: 13.11 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002112/0.3836, allocations: 122 kB / 344.4 MB, free: 12.98 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.899e-05/0.3837, allocations: 16.44 kB / 344.4 MB, free: 12.97 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005033/0.3842, allocations: 15.89 kB / 344.4 MB, free: 12.96 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.62e-05/0.3843, allocations: 21.84 kB / 344.4 MB, free: 12.95 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.652e-05/0.3843, allocations: 12.14 kB / 344.5 MB, free: 12.95 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.000269/0.3846, allocations: 183.9 kB / 344.6 MB, free: 12.82 MB / 282.7 MB Notification: Performance of sort global known variables: time 3.71e-07/0.3846, allocations: 0 / 344.6 MB, free: 12.82 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.001098/0.3857, allocations: 101.9 kB / 344.7 MB, free: 12.8 MB / 282.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.00173/0.3875, allocations: 1.401 MB / 346.1 MB, free: 11.53 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001004/0.3886, allocations: 291.9 kB / 346.4 MB, free: 11.41 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 7.274e-06/0.3886, allocations: 1.312 kB / 346.4 MB, free: 11.41 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003198/0.3889, allocations: 97.45 kB / 346.5 MB, free: 11.38 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001062/0.39, allocations: 73.06 kB / 346.6 MB, free: 11.33 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007714/0.3977, allocations: 3.348 MB / 349.9 MB, free: 8.574 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005711/0.3984, allocations: 0.8029 MB / 350.7 MB, free: 7.824 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002909/0.3987, allocations: 122.1 kB / 350.9 MB, free: 7.727 MB / 282.7 MB Notification: Performance of SimCode: time 1.443e-06/0.3987, allocations: 0 / 350.9 MB, free: 7.727 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.405/2.804, allocations: 5.555 MB / 356.4 MB, free: 4.367 MB / 282.7 MB "Error: Could not read variable sine1.pi in file ModelicaTest_3.2.1_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions2_res.mat. Warning: Get data of variable sine1.pi from file ModelicaTest_3.2.1_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions2_res.mat failed! Error: Could not read variable sine2.pi in file ModelicaTest_3.2.1_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions2_res.mat. Warning: Get data of variable sine2.pi from file ModelicaTest_3.2.1_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions2_res.mat failed! " 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