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/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.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.297/2.297, allocations: 234.9 MB / 250.5 MB, free: 9.539 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004317/0.0004319, allocations: 12 kB / 314.4 MB, free: 9.551 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2759/0.2764, allocations: 54.86 MB / 369.3 MB, free: 10.71 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1356/0.412, allocations: 81.89 MB / 451.2 MB, free: 8.703 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002376/0.4123, allocations: 71.97 kB / 451.2 MB, free: 8.633 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02389/0.4362, allocations: 5.762 MB / 457 MB, free: 2.859 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.424e-06/0.4362, allocations: 0 / 457 MB, free: 2.859 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.14e-05/0.4363, allocations: 8 kB / 457 MB, free: 2.852 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.001043/0.4373, allocations: 0.5813 MB / 457.6 MB, free: 2.219 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.07e-05/0.4374, allocations: 8.031 kB / 457.6 MB, free: 2.211 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001065/0.4375, allocations: 39.53 kB / 457.6 MB, free: 2.172 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003774/0.4379, allocations: 267.2 kB / 457.9 MB, free: 1.867 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.602e-05/0.438, allocations: 29 kB / 457.9 MB, free: 1.84 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.218e-05/0.4381, allocations: 44 kB / 458 MB, free: 1.797 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008544/0.4389, allocations: 386.1 kB / 458.3 MB, free: 1.383 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.636e-05/0.439, allocations: 11.91 kB / 458.3 MB, free: 1.371 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.021e-05/0.439, allocations: 16 kB / 458.4 MB, free: 1.355 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.951e-05/0.4391, allocations: 19.92 kB / 458.4 MB, free: 1.336 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006124/0.4397, allocations: 219.8 kB / 458.6 MB, free: 1.121 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003157/0.4429, allocations: 1.723 MB / 460.3 MB, free: 15.29 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005945/0.4435, allocations: 262.3 kB / 460.6 MB, free: 14.97 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.955e-05/0.4436, allocations: 7.984 kB / 460.6 MB, free: 14.96 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.96e-05/0.4436, allocations: 50.62 kB / 460.6 MB, free: 14.91 MB / 394.7 MB Notification: Performance of pre-optimization done (n=26): time 3.271e-06/0.4436, allocations: 0 / 460.6 MB, free: 14.91 MB / 394.7 MB Notification: Performance of matching and sorting (n=26): time 0.0009831/0.4446, allocations: 273.3 kB / 460.9 MB, free: 14.63 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000143/0.4448, allocations: 217.5 kB / 461.1 MB, free: 14.37 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003516/0.4451, allocations: 242 kB / 461.3 MB, free: 14.12 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 3.541e-05/0.4452, allocations: 33.7 kB / 461.4 MB, free: 14.09 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002219/0.4454, allocations: 293.9 kB / 461.7 MB, free: 13.8 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001204/0.4456, allocations: 114.5 kB / 461.8 MB, free: 13.68 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.679e-05/0.4456, allocations: 15.94 kB / 461.8 MB, free: 13.67 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001846/0.4458, allocations: 330.8 kB / 462.1 MB, free: 13.34 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002953/0.4461, allocations: 101.2 kB / 462.2 MB, free: 13.24 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005708/0.4467, allocations: 424.9 kB / 462.6 MB, free: 12.66 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004127/0.4471, allocations: 175.8 kB / 462.8 MB, free: 12.49 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.755e-06/0.4471, allocations: 0 / 462.8 MB, free: 12.49 MB / 394.7 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.001261/0.4484, allocations: 0.5132 MB / 463.3 MB, free: 11.97 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.038e-05/0.4485, allocations: 12 kB / 463.3 MB, free: 11.96 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.466e-05/0.4485, allocations: 15.98 kB / 463.3 MB, free: 11.94 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.398e-05/0.4485, allocations: 20.73 kB / 463.4 MB, free: 11.92 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006024/0.4492, allocations: 155.7 kB / 463.5 MB, free: 11.77 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.514e-05/0.4492, allocations: 27.86 kB / 463.5 MB, free: 11.74 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004475/0.4497, allocations: 67.33 kB / 463.6 MB, free: 11.68 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.549e-05/0.4497, allocations: 32 kB / 463.6 MB, free: 11.64 MB / 394.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.0002866/0.45, allocations: 181.5 kB / 463.8 MB, free: 11.46 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002311/0.4503, allocations: 39.55 kB / 463.9 MB, free: 11.42 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.664e-05/0.4504, allocations: 33.78 kB / 463.9 MB, free: 11.38 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.853e-06/0.4504, allocations: 8 kB / 463.9 MB, free: 11.38 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.172e-06/0.4504, allocations: 0 / 463.9 MB, free: 11.38 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.225e-06/0.4504, allocations: 4 kB / 463.9 MB, free: 11.37 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001814/0.4523, allocations: 0.6397 MB / 464.5 MB, free: 10.67 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.881e-06/0.4523, allocations: 0 / 464.5 MB, free: 10.67 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006148/0.4529, allocations: 95.95 kB / 464.6 MB, free: 10.57 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.247e-05/0.453, allocations: 4 kB / 464.6 MB, free: 10.57 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.079e-05/0.453, allocations: 12.61 kB / 464.6 MB, free: 10.56 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.309e-05/0.453, allocations: 11.89 kB / 464.7 MB, free: 10.55 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.882e-06/0.453, allocations: 4 kB / 464.7 MB, free: 10.54 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00115/0.4542, allocations: 0.9294 MB / 465.6 MB, free: 9.531 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001286/0.4544, allocations: 108.8 kB / 465.7 MB, free: 9.406 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.173e-05/0.4545, allocations: 16 kB / 465.7 MB, free: 9.391 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005424/0.455, allocations: 11.98 kB / 465.7 MB, free: 9.379 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.419e-05/0.4551, allocations: 23.97 kB / 465.8 MB, free: 9.355 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.489e-05/0.4551, allocations: 12 kB / 465.8 MB, free: 9.344 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0002544/0.4554, allocations: 178 kB / 465.9 MB, free: 9.172 MB / 394.7 MB Notification: Performance of sort global known variables: time 8.3e-07/0.4554, allocations: 0 / 465.9 MB, free: 9.172 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001064/0.4565, allocations: 103.8 kB / 466 MB, free: 9.07 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 () * 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.0001719/0.4567, allocations: 115.1 kB / 466.2 MB, free: 8.949 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0007692/0.4575, allocations: 301.8 kB / 466.4 MB, free: 8.656 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.449e-06/0.4575, allocations: 0 / 466.4 MB, free: 8.656 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002977/0.4578, allocations: 92.58 kB / 466.5 MB, free: 8.566 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008278/0.4586, allocations: 56.8 kB / 466.6 MB, free: 8.512 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003372/0.462, allocations: 1.932 MB / 468.5 MB, free: 6.523 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005969/0.4627, allocations: 0.8033 MB / 469.3 MB, free: 5.695 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001116/0.4628, allocations: 31.44 kB / 469.4 MB, free: 5.664 MB / 394.7 MB Notification: Performance of SimCode: time 2.065e-06/0.4628, allocations: 0 / 469.4 MB, free: 5.664 MB / 394.7 MB Notification: Performance of Templates: time 0.008253/0.4711, allocations: 3.978 MB / 473.3 MB, free: 1.688 MB / 394.7 MB