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.SimpleDriveTrain.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.SimpleDriveTrain,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2/2, allocations: 209.3 MB / 224.8 MB, free: 0.5312 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004409/0.0004411, allocations: 16 kB / 282.6 MB, free: 9.594 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3751/0.3756, allocations: 48.7 MB / 331.3 MB, free: 6.387 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain): time 0.002542/0.3782, allocations: 1.49 MB / 332.8 MB, free: 5.598 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001053/0.3793, allocations: 0.4885 MB / 333.3 MB, free: 5.254 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001558/0.3795, allocations: 3.719 kB / 333.3 MB, free: 5.254 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 6.804e-05/0.3796, allocations: 14.14 kB / 333.3 MB, free: 5.246 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001863/0.3798, allocations: 47.05 kB / 333.3 MB, free: 5.211 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002094/0.38, allocations: 23.19 kB / 333.3 MB, free: 5.199 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002292/0.3803, allocations: 107.5 kB / 333.4 MB, free: 5.141 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001897/0.3805, allocations: 47.41 kB / 333.5 MB, free: 5.113 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001442/0.3806, allocations: 55.44 kB / 333.5 MB, free: 5.086 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00013/0.3808, allocations: 51.89 kB / 333.6 MB, free: 5.062 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.783e-05/0.3808, allocations: 10.52 kB / 333.6 MB, free: 5.059 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.713e-05/0.3809, allocations: 7.594 kB / 333.6 MB, free: 5.059 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 3.191e-05/0.3809, allocations: 24.28 kB / 333.6 MB, free: 5.043 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 4.487e-05/0.381, allocations: 45.48 kB / 333.7 MB, free: 5.004 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002115/0.3812, allocations: 108.5 kB / 333.8 MB, free: 4.984 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.427e-06/0.3812, allocations: 4 kB / 333.8 MB, free: 4.98 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.814e-06/0.3812, allocations: 0 / 333.8 MB, free: 4.98 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.268e-05/0.3812, allocations: 1.406 kB / 333.8 MB, free: 4.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: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.0006562/0.3819, allocations: 408.2 kB / 334.2 MB, free: 4.59 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.558e-05/0.382, allocations: 10.45 kB / 334.2 MB, free: 4.59 MB / 266.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.857e-05/0.382, allocations: 45.44 kB / 334.2 MB, free: 4.543 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.146e-05/0.3821, allocations: 19.31 kB / 334.3 MB, free: 4.531 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002237/0.3823, allocations: 202.9 kB / 334.5 MB, free: 4.312 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.042e-05/0.3824, allocations: 13.62 kB / 334.5 MB, free: 4.305 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.204e-05/0.3824, allocations: 12.75 kB / 334.5 MB, free: 4.301 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003886/0.3828, allocations: 123.3 kB / 334.6 MB, free: 4.238 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.184e-05/0.3828, allocations: 5.094 kB / 334.6 MB, free: 4.234 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.225e-05/0.3829, allocations: 8.969 kB / 334.6 MB, free: 4.227 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.157e-06/0.3829, allocations: 7.656 kB / 334.6 MB, free: 4.223 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003145/0.3832, allocations: 87.47 kB / 334.7 MB, free: 4.195 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001056/0.3843, allocations: 473.8 kB / 335.2 MB, free: 3.832 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003479/0.3847, allocations: 123.2 kB / 335.3 MB, free: 3.77 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.762e-05/0.3847, allocations: 6.141 kB / 335.3 MB, free: 3.766 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.465e-05/0.3847, allocations: 31.97 kB / 335.3 MB, free: 3.727 MB / 266.7 MB Notification: Performance of pre-optimization done (n=13): time 3.076e-06/0.3848, allocations: 0 / 335.3 MB, free: 3.727 MB / 266.7 MB Notification: Performance of matching and sorting (n=19): time 0.002229/0.387, allocations: 0.8127 MB / 336.2 MB, free: 3.105 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.222e-05/0.3871, allocations: 61.47 kB / 336.2 MB, free: 3.035 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001606/0.3872, allocations: 144.2 kB / 336.4 MB, free: 2.922 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.751e-05/0.3873, allocations: 30.92 kB / 336.4 MB, free: 2.887 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.438e-05/0.3873, allocations: 177 kB / 336.6 MB, free: 2.719 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.234e-05/0.3874, allocations: 64.58 kB / 336.6 MB, free: 2.668 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.16e-05/0.3874, allocations: 1.219 kB / 336.6 MB, free: 2.668 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 6.325e-05/0.3875, allocations: 319.8 kB / 336.9 MB, free: 2.352 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001804/0.3877, allocations: 46.17 kB / 337 MB, free: 2.336 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001897/0.3879, allocations: 82.31 kB / 337.1 MB, free: 2.285 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001939/0.3881, allocations: 55.42 kB / 337.1 MB, free: 2.262 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.496e-06/0.3881, allocations: 1.188 kB / 337.1 MB, free: 2.262 MB / 266.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0006256/0.3888, allocations: 214.7 kB / 337.3 MB, free: 2.148 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.185e-05/0.3888, allocations: 5.75 kB / 337.3 MB, free: 2.148 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.588e-06/0.3888, allocations: 2.203 kB / 337.3 MB, free: 2.148 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002539/0.3891, allocations: 43.42 kB / 337.4 MB, free: 2.129 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002957/0.3894, allocations: 41.53 kB / 337.4 MB, free: 2.121 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001649/0.3911, allocations: 1.561 MB / 339 MB, free: 0.6328 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001723/0.3913, allocations: 9.625 kB / 339 MB, free: 0.6289 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.871e-05/0.3913, allocations: 9.5 kB / 339 MB, free: 0.625 MB / 266.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.0001417/0.3915, allocations: 129.6 kB / 339.1 MB, free: 0.4961 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.813e-05/0.3915, allocations: 18.3 kB / 339.1 MB, free: 496 kB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.798e-05/0.3916, allocations: 18.25 kB / 339.2 MB, free: 480 kB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.918e-05/0.3916, allocations: 1.656 kB / 339.2 MB, free: 480 kB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.122e-05/0.3916, allocations: 1.25 kB / 339.2 MB, free: 480 kB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.41e-06/0.3917, allocations: 1.547 kB / 339.2 MB, free: 480 kB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001106/0.3928, allocations: 0.5592 MB / 339.7 MB, free: 40 kB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.839e-06/0.3928, allocations: 1.594 kB / 339.7 MB, free: 40 kB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000316/0.3931, allocations: 37.7 kB / 339.8 MB, free: 36 kB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001844/0.3933, allocations: 30.44 kB / 339.8 MB, free: 24 kB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.042e-05/0.3934, allocations: 9.656 kB / 339.8 MB, free: 16 kB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001733/0.3951, allocations: 1.385 MB / 341.2 MB, free: 14.65 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.397e-06/0.3952, allocations: 0.6562 kB / 341.2 MB, free: 14.65 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009365/0.3961, allocations: 347.8 kB / 341.5 MB, free: 14.43 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001346/0.3963, allocations: 100.6 kB / 341.6 MB, free: 14.32 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.684e-05/0.3963, allocations: 5.906 kB / 341.6 MB, free: 14.31 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001586/0.3965, allocations: 3.719 kB / 341.6 MB, free: 14.31 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.16e-05/0.3966, allocations: 18.09 kB / 341.6 MB, free: 14.3 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.574e-05/0.3966, allocations: 7.875 kB / 341.7 MB, free: 14.3 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001183/0.3967, allocations: 113.8 kB / 341.8 MB, free: 14.2 MB / 282.7 MB Notification: Performance of sort global known variables: time 3.7e-07/0.3967, allocations: 8 kB / 341.8 MB, free: 14.2 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0004567/0.3972, allocations: 38.72 kB / 341.8 MB, free: 14.19 MB / 282.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.001153/0.3984, allocations: 0.8821 MB / 342.7 MB, free: 13.41 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0007682/0.3992, allocations: 259.5 kB / 342.9 MB, free: 13.23 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.667e-06/0.3992, allocations: 0 / 342.9 MB, free: 13.23 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004579/0.3996, allocations: 202 kB / 343.1 MB, free: 13.07 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000382/0.4, allocations: 24.16 kB / 343.2 MB, free: 13.06 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0026/0.4027, allocations: 1.118 MB / 344.3 MB, free: 12.19 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003982/0.4031, allocations: 0.7335 MB / 345 MB, free: 11.46 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001174/0.4032, allocations: 43.55 kB / 345.1 MB, free: 11.43 MB / 282.7 MB Notification: Performance of SimCode: time 9.11e-07/0.4032, allocations: 0 / 345.1 MB, free: 11.43 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.632/3.036, allocations: 2.999 MB / 348.1 MB, free: 9.902 MB / 282.7 MB "Error: Could not read variable sine.pi in file ModelicaTest_3.2.1_cpp_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.mat. Warning: Get data of variable sine.pi from file ModelicaTest_3.2.1_cpp_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.mat failed! " 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