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.256/2.256, allocations: 235 MB / 248.1 MB, free: 14.36 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.501e-05/2.522e-05, allocations: 0 / 309.7 MB, free: 1.336 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3254/0.3254, allocations: 54.85 MB / 364.5 MB, free: 5.535 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1256/0.4511, allocations: 81.8 MB / 446.3 MB, free: 14.68 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002299/0.4513, allocations: 63.97 kB / 446.4 MB, free: 14.62 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02434/0.4757, allocations: 5.784 MB / 452.2 MB, free: 8.848 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.132e-06/0.4757, allocations: 4 kB / 452.2 MB, free: 8.844 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.262e-05/0.4758, allocations: 4 kB / 452.2 MB, free: 8.84 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.001003/0.4768, allocations: 0.5493 MB / 452.7 MB, free: 8.246 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.486e-05/0.4769, allocations: 12.86 kB / 452.7 MB, free: 8.234 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001036/0.477, allocations: 51.03 kB / 452.8 MB, free: 8.188 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003761/0.4774, allocations: 255.3 kB / 453 MB, free: 7.895 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.637e-05/0.4774, allocations: 24.78 kB / 453.1 MB, free: 7.867 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.424e-05/0.4775, allocations: 47.89 kB / 453.1 MB, free: 7.82 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007747/0.4783, allocations: 371.3 kB / 453.5 MB, free: 7.422 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.788e-05/0.4784, allocations: 11.89 kB / 453.5 MB, free: 7.41 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.716e-05/0.4784, allocations: 16 kB / 453.5 MB, free: 7.395 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.689e-05/0.4785, allocations: 13.03 kB / 453.5 MB, free: 7.383 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004821/0.479, allocations: 187.8 kB / 453.7 MB, free: 7.199 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003118/0.4821, allocations: 1.712 MB / 455.4 MB, free: 5.383 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005302/0.4827, allocations: 254.3 kB / 455.7 MB, free: 5.07 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001698/0.4828, allocations: 89.34 kB / 455.8 MB, free: 4.965 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.208e-05/0.4829, allocations: 0 / 455.8 MB, free: 4.965 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.522e-05/0.4829, allocations: 50.5 kB / 455.8 MB, free: 4.906 MB / 378.7 MB Notification: Performance of pre-optimization done (n=26): time 2.682e-06/0.483, allocations: 0 / 455.8 MB, free: 4.906 MB / 378.7 MB Notification: Performance of matching and sorting (n=26): time 0.0006541/0.4836, allocations: 197 kB / 456 MB, free: 4.707 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001332/0.4838, allocations: 213.6 kB / 456.2 MB, free: 4.449 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003566/0.4841, allocations: 239.4 kB / 456.4 MB, free: 4.203 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.447e-05/0.4842, allocations: 31.11 kB / 456.5 MB, free: 4.168 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002157/0.4844, allocations: 301.9 kB / 456.8 MB, free: 3.867 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001179/0.4845, allocations: 110.4 kB / 456.9 MB, free: 3.758 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.046e-05/0.4846, allocations: 16 kB / 456.9 MB, free: 3.742 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001692/0.4848, allocations: 330.8 kB / 457.2 MB, free: 3.41 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002267/0.485, allocations: 85.56 kB / 457.3 MB, free: 3.324 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004861/0.4855, allocations: 410.1 kB / 457.7 MB, free: 2.766 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003494/0.4859, allocations: 159.9 kB / 457.8 MB, free: 2.609 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.014e-05/0.4859, allocations: 4 kB / 457.9 MB, free: 2.605 MB / 378.7 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.001073/0.487, allocations: 0.489 MB / 458.3 MB, free: 2.109 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.841e-05/0.487, allocations: 8 kB / 458.3 MB, free: 2.102 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.129e-05/0.4871, allocations: 12.84 kB / 458.4 MB, free: 2.09 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.817e-05/0.4871, allocations: 19.28 kB / 458.4 MB, free: 2.074 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000647/0.4878, allocations: 155.7 kB / 458.5 MB, free: 1.922 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.195e-05/0.4878, allocations: 23.89 kB / 458.6 MB, free: 1.898 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005117/0.4883, allocations: 75.3 kB / 458.6 MB, free: 1.824 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.554e-05/0.4884, allocations: 32 kB / 458.7 MB, free: 1.793 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.0001617/0.4886, allocations: 144.7 kB / 458.8 MB, free: 1.645 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002391/0.4888, allocations: 31.62 kB / 458.8 MB, free: 1.613 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.301e-05/0.4889, allocations: 41.91 kB / 458.9 MB, free: 1.57 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.319e-06/0.489, allocations: 4 kB / 458.9 MB, free: 1.566 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.781e-06/0.489, allocations: 0 / 458.9 MB, free: 1.566 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.609e-05/0.489, allocations: 11.94 kB / 458.9 MB, free: 1.555 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001786/0.4908, allocations: 0.6357 MB / 459.5 MB, free: 0.8555 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.113e-06/0.4908, allocations: 4 kB / 459.5 MB, free: 0.8516 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006466/0.4915, allocations: 91.94 kB / 459.6 MB, free: 0.7617 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.26e-05/0.4915, allocations: 4 kB / 459.6 MB, free: 0.7578 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.73e-05/0.4916, allocations: 11.95 kB / 459.6 MB, free: 0.7461 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.265e-06/0.4916, allocations: 4 kB / 459.6 MB, free: 0.7422 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.4e-06/0.4916, allocations: 4 kB / 459.6 MB, free: 0.7383 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009605/0.4926, allocations: 0.902 MB / 460.5 MB, free: 15.75 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001276/0.4927, allocations: 108.8 kB / 460.6 MB, free: 15.63 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.19e-05/0.4928, allocations: 8 kB / 460.7 MB, free: 15.62 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005159/0.4933, allocations: 15.98 kB / 460.7 MB, free: 15.61 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8e-05/0.4934, allocations: 28.11 kB / 460.7 MB, free: 15.58 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.6e-05/0.4935, allocations: 11.98 kB / 460.7 MB, free: 15.57 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.000259/0.4937, allocations: 183.1 kB / 460.9 MB, free: 15.39 MB / 394.7 MB Notification: Performance of sort global known variables: time 7.74e-07/0.4938, allocations: 0 / 460.9 MB, free: 15.39 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001115/0.4949, allocations: 104.1 kB / 461 MB, free: 15.29 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.0001912/0.4951, allocations: 118.4 kB / 461.1 MB, free: 15.16 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0006736/0.4958, allocations: 270.1 kB / 461.4 MB, free: 14.9 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 6.491e-06/0.4958, allocations: 256 / 461.4 MB, free: 14.9 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001791/0.496, allocations: 87.73 kB / 461.5 MB, free: 14.82 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009026/0.4969, allocations: 58.53 kB / 461.5 MB, free: 14.76 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002926/0.4999, allocations: 1.55 MB / 463.1 MB, free: 13.16 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006024/0.5005, allocations: 0.8033 MB / 463.9 MB, free: 12.33 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001114/0.5006, allocations: 35.44 kB / 463.9 MB, free: 12.29 MB / 394.7 MB Notification: Performance of SimCode: time 2.144e-06/0.5006, allocations: 0 / 463.9 MB, free: 12.29 MB / 394.7 MB Notification: Performance of Templates: time 0.008253/0.5089, allocations: 3.978 MB / 467.9 MB, free: 8.324 MB / 394.7 MB