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.Directions2.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: translateModel(ModelicaTest.Rotational.ForUsersGuide.Directions2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="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",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions2") Notification: Performance of loadModel(ModelicaTest): time 2.174/2.174, allocations: 235.1 MB / 243 MB, free: 9.496 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 1.389e-05/1.397e-05, allocations: 0 / 303.2 MB, free: 13.21 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2765/0.2766, allocations: 54.86 MB / 358 MB, free: 14.94 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1485/0.4251, allocations: 81.13 MB / 439.2 MB, free: 13.69 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004364/0.4256, allocations: 71.97 kB / 439.2 MB, free: 13.62 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04502/0.4706, allocations: 5.727 MB / 445 MB, free: 7.883 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.173e-06/0.4707, allocations: 0 / 445 MB, free: 7.883 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.24e-05/0.4707, allocations: 8 kB / 445 MB, free: 7.875 MB / 378.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.0009666/0.4717, allocations: 0.5532 MB / 445.5 MB, free: 7.277 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.244e-05/0.4718, allocations: 12.02 kB / 445.5 MB, free: 7.266 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001096/0.4719, allocations: 43.53 kB / 445.6 MB, free: 7.223 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003773/0.4723, allocations: 247.4 kB / 445.8 MB, free: 6.938 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.439e-05/0.4723, allocations: 12 kB / 445.8 MB, free: 6.926 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.832e-05/0.4724, allocations: 35.88 kB / 445.9 MB, free: 6.891 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004562/0.4729, allocations: 161.5 kB / 446 MB, free: 6.73 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006678/0.4736, allocations: 325.8 kB / 446.3 MB, free: 6.379 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.559e-05/0.4736, allocations: 7.938 kB / 446.4 MB, free: 6.371 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.414e-05/0.4737, allocations: 3.938 kB / 446.4 MB, free: 6.367 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.389e-05/0.4737, allocations: 8 kB / 446.4 MB, free: 6.359 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0029/0.4766, allocations: 1.653 MB / 448 MB, free: 4.609 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004688/0.4771, allocations: 230.7 kB / 448.2 MB, free: 4.32 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001501/0.4773, allocations: 86.12 kB / 448.3 MB, free: 4.215 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.488e-05/0.4773, allocations: 0 / 448.3 MB, free: 4.215 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.131e-05/0.4774, allocations: 46.5 kB / 448.4 MB, free: 4.16 MB / 378.7 MB Notification: Performance of pre-optimization done (n=26): time 2.926e-06/0.4774, allocations: 0 / 448.4 MB, free: 4.16 MB / 378.7 MB Notification: Performance of matching and sorting (n=26): time 0.0006021/0.478, allocations: 165.2 kB / 448.5 MB, free: 3.992 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001321/0.4781, allocations: 209.6 kB / 448.7 MB, free: 3.738 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002907/0.4784, allocations: 214.3 kB / 448.9 MB, free: 3.52 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.969e-05/0.4785, allocations: 29.7 kB / 449 MB, free: 3.484 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002276/0.4787, allocations: 301.8 kB / 449.3 MB, free: 3.188 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001196/0.4788, allocations: 114.4 kB / 449.4 MB, free: 3.074 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.833e-05/0.4789, allocations: 0 / 449.4 MB, free: 3.074 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001842/0.4791, allocations: 334.8 kB / 449.7 MB, free: 2.738 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001953/0.4793, allocations: 77.5 kB / 449.8 MB, free: 2.664 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004835/0.4798, allocations: 392.6 kB / 450.2 MB, free: 2.121 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003108/0.4801, allocations: 139.8 kB / 450.3 MB, free: 1.984 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.351e-05/0.4801, allocations: 4 kB / 450.3 MB, free: 1.98 MB / 378.7 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.0009433/0.4811, allocations: 426 kB / 450.7 MB, free: 1.559 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.624e-05/0.4811, allocations: 12.06 kB / 450.7 MB, free: 1.547 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.075e-05/0.4812, allocations: 12 kB / 450.7 MB, free: 1.535 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.932e-05/0.4812, allocations: 20 kB / 450.8 MB, free: 1.516 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006311/0.4818, allocations: 147.7 kB / 450.9 MB, free: 1.371 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.731e-05/0.4819, allocations: 23.92 kB / 450.9 MB, free: 1.348 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004361/0.4823, allocations: 51.44 kB / 451 MB, free: 1.297 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.039e-05/0.4824, allocations: 36 kB / 451 MB, free: 1.262 MB / 378.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 () * 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.0001544/0.4826, allocations: 130.4 kB / 451.1 MB, free: 1.129 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002389/0.4828, allocations: 43.59 kB / 451.2 MB, free: 1.086 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.096e-05/0.4829, allocations: 29.83 kB / 451.2 MB, free: 1.059 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.621e-06/0.483, allocations: 4 kB / 451.2 MB, free: 1.055 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.514e-05/0.483, allocations: 8.125 kB / 451.2 MB, free: 1.047 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.635e-06/0.483, allocations: 3.938 kB / 451.2 MB, free: 1.043 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001627/0.4846, allocations: 0.5934 MB / 451.8 MB, free: 408 kB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.27e-06/0.4847, allocations: 4 kB / 451.8 MB, free: 404 kB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006049/0.4853, allocations: 91.89 kB / 451.9 MB, free: 312 kB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.755e-06/0.4853, allocations: 0 / 451.9 MB, free: 312 kB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.396e-05/0.4854, allocations: 8 kB / 451.9 MB, free: 304 kB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.023e-05/0.4854, allocations: 7.984 kB / 451.9 MB, free: 296 kB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.247e-06/0.4854, allocations: 0 / 451.9 MB, free: 296 kB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009128/0.4863, allocations: 0.8799 MB / 452.8 MB, free: 15.33 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001081/0.4864, allocations: 104.9 kB / 452.9 MB, free: 15.21 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.676e-05/0.4865, allocations: 7.984 kB / 452.9 MB, free: 15.2 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004947/0.487, allocations: 12 kB / 452.9 MB, free: 15.19 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.398e-05/0.4871, allocations: 27.86 kB / 453 MB, free: 15.16 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.428e-05/0.4871, allocations: 12 kB / 453 MB, free: 15.15 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0001932/0.4873, allocations: 154 kB / 453.1 MB, free: 15.01 MB / 394.7 MB Notification: Performance of sort global known variables: time 8.42e-07/0.4874, allocations: 0 / 453.1 MB, free: 15.01 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001022/0.4884, allocations: 91.75 kB / 453.2 MB, free: 14.92 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 18 (inertia5.phi,inertia5.w,inertia6.phi,inertia6.w,inertia3.phi,inertia3.w,inertia4.phi,inertia4.w,inertia2.phi,inertia2.w,inertia1.phi,inertia1.w,J6.phi,J6.w,J4.phi,J4.w,J2.phi,J2.w) * Number of discrete variables: 0 () * Number of discrete 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.0001665/0.4886, allocations: 111.7 kB / 453.3 MB, free: 14.8 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0005662/0.4892, allocations: 230.3 kB / 453.6 MB, free: 14.58 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 5.969e-06/0.4892, allocations: 4 kB / 453.6 MB, free: 14.57 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001678/0.4894, allocations: 76.23 kB / 453.6 MB, free: 14.5 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007823/0.4902, allocations: 45.17 kB / 453.7 MB, free: 14.46 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002845/0.493, allocations: 1.54 MB / 455.2 MB, free: 12.86 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005901/0.4936, allocations: 0.8069 MB / 456 MB, free: 12.03 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001062/0.4938, allocations: 35.42 kB / 456.1 MB, free: 11.99 MB / 394.7 MB Notification: Performance of SimCode: time 1.698e-06/0.4938, allocations: 0 / 456.1 MB, free: 11.99 MB / 394.7 MB Notification: Performance of Templates: time 0.00808/0.5019, allocations: 3.89 MB / 459.9 MB, free: 8.098 MB / 394.7 MB