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.Directions.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.Directions,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Rotational_ForUsersGuide_Directions",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.873/1.873, allocations: 209.2 MB / 224.8 MB, free: 0.6172 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004527/0.0004529, allocations: 12 kB / 282.6 MB, free: 9.605 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3636/0.3641, allocations: 48.71 MB / 331.3 MB, free: 6.52 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions): time 0.00479/0.3689, allocations: 2.21 MB / 333.5 MB, free: 5.207 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002259/0.3713, allocations: 0.7179 MB / 334.2 MB, free: 4.691 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004159/0.3717, allocations: 6.625 kB / 334.2 MB, free: 4.691 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001528/0.3719, allocations: 40.77 kB / 334.2 MB, free: 4.672 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006164/0.3725, allocations: 132.4 kB / 334.4 MB, free: 4.574 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005021/0.3731, allocations: 69.86 kB / 334.4 MB, free: 4.535 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008644/0.374, allocations: 316.6 kB / 334.8 MB, free: 4.367 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004431/0.3744, allocations: 142.7 kB / 334.9 MB, free: 4.297 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003964/0.3748, allocations: 142 kB / 335 MB, free: 4.234 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003964/0.3753, allocations: 164.3 kB / 335.2 MB, free: 4.156 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 8.558e-05/0.3754, allocations: 19.38 kB / 335.2 MB, free: 4.156 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001182/0.3755, allocations: 19.12 kB / 335.2 MB, free: 4.156 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001229/0.3756, allocations: 62.41 kB / 335.3 MB, free: 4.117 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001497/0.3758, allocations: 95.77 kB / 335.4 MB, free: 4.055 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007048/0.3765, allocations: 325.5 kB / 335.7 MB, free: 3.98 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.116e-06/0.3765, allocations: 0 / 335.7 MB, free: 3.98 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.335e-06/0.3766, allocations: 0 / 335.7 MB, free: 3.98 MB / 266.7 MB Notification: Performance of Transformations before backend: time 9.547e-06/0.3766, allocations: 0 / 335.7 MB, free: 3.98 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: 96 * Number of variables: 96 Notification: Performance of Generate backend data structure: time 0.001639/0.3782, allocations: 0.6114 MB / 336.3 MB, free: 3.484 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.751e-05/0.3783, allocations: 10.03 kB / 336.3 MB, free: 3.484 MB / 266.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001509/0.3785, allocations: 75.81 kB / 336.4 MB, free: 3.422 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001459/0.3786, allocations: 41.59 kB / 336.4 MB, free: 3.402 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005673/0.3792, allocations: 297 kB / 336.7 MB, free: 3.129 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.041e-05/0.3793, allocations: 31.89 kB / 336.8 MB, free: 3.113 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001321/0.3794, allocations: 45.22 kB / 336.8 MB, free: 3.094 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001402/0.3808, allocations: 379.1 kB / 337.2 MB, free: 2.918 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.173e-05/0.3809, allocations: 2.078 kB / 337.2 MB, free: 2.918 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.653e-05/0.381, allocations: 19.66 kB / 337.2 MB, free: 2.902 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.911e-05/0.381, allocations: 9.344 kB / 337.2 MB, free: 2.902 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001178/0.3822, allocations: 256.6 kB / 337.5 MB, free: 2.793 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003274/0.3855, allocations: 1.124 MB / 338.6 MB, free: 1.875 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001201/0.3868, allocations: 364.8 kB / 338.9 MB, free: 1.664 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.583e-05/0.3869, allocations: 3.656 kB / 338.9 MB, free: 1.664 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.336e-05/0.3869, allocations: 41.3 kB / 339 MB, free: 1.617 MB / 266.7 MB Notification: Performance of pre-optimization done (n=39): time 4.799e-06/0.3869, allocations: 0 / 339 MB, free: 1.617 MB / 266.7 MB Notification: Performance of matching and sorting (n=57): time 0.008008/0.3949, allocations: 2.468 MB / 341.4 MB, free: 15.62 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001065/0.3951, allocations: 109.1 kB / 341.6 MB, free: 15.49 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005289/0.3956, allocations: 247.7 kB / 341.8 MB, free: 15.32 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 8.796e-05/0.3958, allocations: 31.86 kB / 341.8 MB, free: 15.28 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002194/0.396, allocations: 242.5 kB / 342.1 MB, free: 15.05 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002827/0.3963, allocations: 191.6 kB / 342.3 MB, free: 14.88 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.878e-05/0.3964, allocations: 10.34 kB / 342.3 MB, free: 14.88 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.000205/0.3966, allocations: 340.1 kB / 342.6 MB, free: 14.54 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006539/0.3972, allocations: 129.9 kB / 342.7 MB, free: 14.48 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007683/0.398, allocations: 234.1 kB / 342.9 MB, free: 14.31 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007769/0.3988, allocations: 170.8 kB / 343.1 MB, free: 14.23 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.09e-06/0.3988, allocations: 0 / 343.1 MB, free: 14.23 MB / 282.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.002453/0.4013, allocations: 0.5517 MB / 343.7 MB, free: 13.92 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.604e-05/0.4014, allocations: 6.625 kB / 343.7 MB, free: 13.92 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.023e-05/0.4014, allocations: 6.797 kB / 343.7 MB, free: 13.92 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008075/0.4023, allocations: 125.8 kB / 343.8 MB, free: 13.85 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009868/0.4033, allocations: 99.33 kB / 343.9 MB, free: 13.82 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008146/0.4114, allocations: 4.715 MB / 348.6 MB, free: 9.191 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006741/0.4122, allocations: 23.48 kB / 348.6 MB, free: 9.18 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.891e-05/0.4123, allocations: 18.59 kB / 348.7 MB, free: 9.176 MB / 282.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.0004313/0.4127, allocations: 169.6 kB / 348.8 MB, free: 9.02 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002124/0.4129, allocations: 41.53 kB / 348.9 MB, free: 8.996 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001762/0.4131, allocations: 49.17 kB / 348.9 MB, free: 8.961 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.449e-05/0.4131, allocations: 6.844 kB / 348.9 MB, free: 8.961 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.963e-05/0.4132, allocations: 7.172 kB / 348.9 MB, free: 8.957 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.627e-05/0.4132, allocations: 5.078 kB / 348.9 MB, free: 8.953 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00468/0.4179, allocations: 1.344 MB / 350.3 MB, free: 7.934 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.095e-05/0.418, allocations: 1.25 kB / 350.3 MB, free: 7.934 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001131/0.4191, allocations: 96.92 kB / 350.4 MB, free: 7.914 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007025/0.4198, allocations: 95.36 kB / 350.5 MB, free: 7.855 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.513e-05/0.4199, allocations: 16.61 kB / 350.5 MB, free: 7.844 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00672/0.4267, allocations: 4.136 MB / 354.6 MB, free: 3.652 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.227e-06/0.4267, allocations: 6.188 kB / 354.6 MB, free: 3.648 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003137/0.4299, allocations: 0.932 MB / 355.6 MB, free: 3.016 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003762/0.4303, allocations: 143.7 kB / 355.7 MB, free: 2.871 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001157/0.4305, allocations: 16.19 kB / 355.7 MB, free: 2.859 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006694/0.4311, allocations: 21.77 kB / 355.7 MB, free: 2.848 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002002/0.4314, allocations: 47.59 kB / 355.8 MB, free: 2.82 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.511e-05/0.4314, allocations: 16 kB / 355.8 MB, free: 2.816 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0003712/0.4318, allocations: 174.3 kB / 356 MB, free: 2.691 MB / 282.7 MB Notification: Performance of sort global known variables: time 5.21e-07/0.4318, allocations: 0 / 356 MB, free: 2.691 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.001418/0.4333, allocations: 122.6 kB / 356.1 MB, free: 2.672 MB / 282.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.002879/0.4362, allocations: 1.484 MB / 357.6 MB, free: 1.492 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.002096/0.4383, allocations: 0.778 MB / 358.3 MB, free: 0.9414 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 6.853e-06/0.4384, allocations: 0 / 358.3 MB, free: 0.9414 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001392/0.4398, allocations: 0.5838 MB / 358.9 MB, free: 496 kB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007627/0.4406, allocations: 43.94 kB / 359 MB, free: 472 kB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007084/0.4477, allocations: 2.74 MB / 361.7 MB, free: 14.29 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005743/0.4483, allocations: 0.8358 MB / 362.5 MB, free: 13.42 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003406/0.4487, allocations: 127.4 kB / 362.7 MB, free: 13.29 MB / 298.7 MB Notification: Performance of SimCode: time 1.032e-06/0.4487, allocations: 0 / 362.7 MB, free: 13.29 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.92/3.368, allocations: 10.47 MB / 373.1 MB, free: 2.805 MB / 298.7 MB "Error: Could not read variable sine.pi in file ModelicaTest_3.2.1_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions_res.mat. Warning: Get data of variable sine.pi from file ModelicaTest_3.2.1_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions_res.mat failed! Error: Could not read variable sine1.pi in file ModelicaTest_3.2.1_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions_res.mat. Warning: Get data of variable sine1.pi from file ModelicaTest_3.2.1_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions_res.mat failed! Error: Could not read variable sine2.pi in file ModelicaTest_3.2.1_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions_res.mat. Warning: Get data of variable sine2.pi from file ModelicaTest_3.2.1_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions_res.mat failed! " 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