Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: translateModel(ModelicaTest.Rotational.ForUsersGuide.Directions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|J2.phi|J2.w|J3.phi|J3.w|J5.phi|J5.w",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions") Notification: Performance of loadModel(ModelicaTest): time 2.165/2.165, allocations: 234.9 MB / 250.5 MB, free: 9.559 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007924/0.0007927, allocations: 8 kB / 314.3 MB, free: 9.605 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2936/0.2944, allocations: 54.87 MB / 369.2 MB, free: 10.73 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions): time 0.00337/0.2978, allocations: 2.206 MB / 371.4 MB, free: 8.496 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00139/0.2993, allocations: 0.7337 MB / 372.1 MB, free: 7.758 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001834/0.2995, allocations: 8 kB / 372.1 MB, free: 7.75 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 9.982e-05/0.2996, allocations: 39.62 kB / 372.2 MB, free: 7.711 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003289/0.2999, allocations: 127.7 kB / 372.3 MB, free: 7.586 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002662/0.3002, allocations: 67.92 kB / 372.4 MB, free: 7.52 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004878/0.3007, allocations: 311.7 kB / 372.7 MB, free: 7.215 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002857/0.301, allocations: 133.4 kB / 372.8 MB, free: 7.086 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002396/0.3013, allocations: 139.5 kB / 372.9 MB, free: 6.949 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002584/0.3015, allocations: 163.2 kB / 373.1 MB, free: 6.789 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.733e-05/0.3016, allocations: 20 kB / 373.1 MB, free: 6.77 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.527e-05/0.3017, allocations: 20 kB / 373.1 MB, free: 6.75 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 7.235e-05/0.3018, allocations: 59.77 kB / 373.2 MB, free: 6.691 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001121/0.3019, allocations: 93.52 kB / 373.3 MB, free: 6.594 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004352/0.3024, allocations: 331.6 kB / 373.6 MB, free: 6.27 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.874e-06/0.3024, allocations: 0 / 373.6 MB, free: 6.27 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.221e-06/0.3024, allocations: 0 / 373.6 MB, free: 6.27 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.925e-06/0.3024, allocations: 0 / 373.6 MB, free: 6.27 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.001063/0.3035, allocations: 0.6056 MB / 374.2 MB, free: 5.613 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.917e-05/0.3035, allocations: 8.031 kB / 374.2 MB, free: 5.605 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001012/0.3036, allocations: 43.53 kB / 374.3 MB, free: 5.562 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004239/0.3041, allocations: 283.3 kB / 374.5 MB, free: 5.242 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.736e-05/0.3041, allocations: 29 kB / 374.6 MB, free: 5.215 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.972e-05/0.3042, allocations: 47.91 kB / 374.6 MB, free: 5.168 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008957/0.3051, allocations: 393 kB / 375 MB, free: 4.766 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.757e-05/0.3052, allocations: 3.984 kB / 375 MB, free: 4.762 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.725e-05/0.3052, allocations: 19.95 kB / 375 MB, free: 4.742 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.296e-05/0.3053, allocations: 8 kB / 375 MB, free: 4.734 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007281/0.306, allocations: 259.8 kB / 375.3 MB, free: 4.48 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00217/0.3082, allocations: 1.112 MB / 376.4 MB, free: 3.309 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008038/0.309, allocations: 355.9 kB / 376.7 MB, free: 2.934 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.035e-05/0.3091, allocations: 12.23 kB / 376.8 MB, free: 2.922 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.058e-05/0.3091, allocations: 42.55 kB / 376.8 MB, free: 2.871 MB / 298.7 MB Notification: Performance of pre-optimization done (n=39): time 3.399e-06/0.3091, allocations: 4 kB / 376.8 MB, free: 2.867 MB / 298.7 MB Notification: Performance of matching and sorting (n=57): time 0.00556/0.3147, allocations: 2.464 MB / 379.3 MB, free: 140 kB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.045e-05/0.3148, allocations: 106.8 kB / 379.4 MB, free: 8 kB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003549/0.3152, allocations: 250.6 kB / 379.6 MB, free: 15.75 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.954e-05/0.3153, allocations: 33.7 kB / 379.6 MB, free: 15.71 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001742/0.3155, allocations: 235.1 kB / 379.9 MB, free: 15.48 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002116/0.3157, allocations: 201.1 kB / 380.1 MB, free: 15.29 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.993e-05/0.3157, allocations: 8 kB / 380.1 MB, free: 15.28 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001803/0.3159, allocations: 330.8 kB / 380.4 MB, free: 14.95 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003945/0.3163, allocations: 137.1 kB / 380.5 MB, free: 14.81 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005013/0.3168, allocations: 235.8 kB / 380.8 MB, free: 14.55 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004567/0.3173, allocations: 163.9 kB / 380.9 MB, free: 14.39 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.797e-06/0.3173, allocations: 0 / 380.9 MB, free: 14.39 MB / 314.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001528/0.3189, allocations: 0.5541 MB / 381.5 MB, free: 13.82 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.93e-05/0.3189, allocations: 7.938 kB / 381.5 MB, free: 13.81 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.84e-05/0.319, allocations: 4 kB / 381.5 MB, free: 13.8 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000846/0.3198, allocations: 126.6 kB / 381.6 MB, free: 13.67 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000903/0.3208, allocations: 99.88 kB / 381.7 MB, free: 13.57 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0093/0.3301, allocations: 4.707 MB / 386.4 MB, free: 8.457 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006141/0.3308, allocations: 28.05 kB / 386.4 MB, free: 8.43 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.132e-05/0.3309, allocations: 27.98 kB / 386.5 MB, free: 8.402 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.0004592/0.3314, allocations: 161.7 kB / 386.6 MB, free: 8.234 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002824/0.3317, allocations: 39.58 kB / 386.7 MB, free: 8.195 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000164/0.3319, allocations: 46.17 kB / 386.7 MB, free: 8.152 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.338e-05/0.3319, allocations: 4 kB / 386.7 MB, free: 8.148 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.414e-05/0.3319, allocations: 4 kB / 386.7 MB, free: 8.145 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.689e-05/0.332, allocations: 8.359 kB / 386.7 MB, free: 8.137 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005236/0.3372, allocations: 1.338 MB / 388.1 MB, free: 6.723 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-05/0.3373, allocations: 4 kB / 388.1 MB, free: 6.719 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001051/0.3384, allocations: 103.9 kB / 388.2 MB, free: 6.617 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007173/0.3391, allocations: 102.5 kB / 388.3 MB, free: 6.508 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.192e-05/0.3392, allocations: 12 kB / 388.3 MB, free: 6.496 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007401/0.3466, allocations: 4.139 MB / 392.4 MB, free: 1.953 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.799e-06/0.3467, allocations: 0 / 392.4 MB, free: 1.953 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003454/0.3502, allocations: 0.9445 MB / 393.4 MB, free: 0.9766 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002193/0.3504, allocations: 104.7 kB / 393.5 MB, free: 0.8555 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001138/0.3506, allocations: 20.05 kB / 393.5 MB, free: 0.8359 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007183/0.3513, allocations: 16 kB / 393.5 MB, free: 0.8203 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000198/0.3516, allocations: 43.84 kB / 393.5 MB, free: 0.7773 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.297e-05/0.3517, allocations: 19.95 kB / 393.6 MB, free: 0.7578 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0003742/0.352, allocations: 178 kB / 393.7 MB, free: 0.582 MB / 314.7 MB Notification: Performance of sort global known variables: time 9.67e-07/0.3521, allocations: 0 / 393.7 MB, free: 0.582 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001795/0.3539, allocations: 120 kB / 393.9 MB, free: 476 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.0002585/0.3542, allocations: 115.1 kB / 394 MB, free: 352 kB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002669/0.3569, allocations: 0.769 MB / 394.7 MB, free: 15.54 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 5.983e-06/0.3569, allocations: 0 / 394.7 MB, free: 15.54 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001135/0.3581, allocations: 0.5793 MB / 395.3 MB, free: 14.92 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006233/0.3587, allocations: 48.72 kB / 395.4 MB, free: 14.87 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002566/0.3613, allocations: 1.325 MB / 396.7 MB, free: 13.5 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005969/0.3619, allocations: 0.8358 MB / 397.5 MB, free: 12.63 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001351/0.3621, allocations: 31.44 kB / 397.6 MB, free: 12.6 MB / 330.7 MB Notification: Performance of SimCode: time 1.826e-06/0.3621, allocations: 3.938 kB / 397.6 MB, free: 12.6 MB / 330.7 MB Notification: Performance of Templates: time 0.02296/0.385, allocations: 8.784 MB / 406.3 MB, free: 3.801 MB / 330.7 MB