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.256/2.256, allocations: 234.9 MB / 250.5 MB, free: 10.57 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007841/0.0007844, allocations: 12 kB / 314.4 MB, free: 10.58 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2913/0.2921, allocations: 54.86 MB / 369.3 MB, free: 10.84 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1256/0.4177, allocations: 81.96 MB / 451.2 MB, free: 8.766 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002477/0.418, allocations: 71.95 kB / 451.3 MB, free: 8.695 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02416/0.4422, allocations: 5.81 MB / 457.1 MB, free: 2.867 MB / 378.7 MB Notification: Performance of FrontEnd: time 5.815e-06/0.4422, allocations: 0 / 457.1 MB, free: 2.867 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.556e-05/0.4423, allocations: 11.94 kB / 457.1 MB, free: 2.855 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: 96 * Number of variables: 96 Notification: Performance of Generate backend data structure: time 0.001109/0.4434, allocations: 0.5969 MB / 457.7 MB, free: 2.207 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.243e-05/0.4434, allocations: 8.031 kB / 457.7 MB, free: 2.199 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001127/0.4436, allocations: 47.47 kB / 457.8 MB, free: 2.152 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004367/0.444, allocations: 275.3 kB / 458 MB, free: 1.84 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.91e-05/0.4441, allocations: 29 kB / 458.1 MB, free: 1.812 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001072/0.4442, allocations: 47.91 kB / 458.1 MB, free: 1.766 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009173/0.4451, allocations: 385 kB / 458.5 MB, free: 1.371 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.993e-05/0.4452, allocations: 4 kB / 458.5 MB, free: 1.367 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.889e-05/0.4452, allocations: 16 kB / 458.5 MB, free: 1.352 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.679e-05/0.4453, allocations: 8 kB / 458.5 MB, free: 1.344 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007349/0.446, allocations: 255.8 kB / 458.8 MB, free: 1.094 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002188/0.4482, allocations: 1.1 MB / 459.9 MB, free: 15.93 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000924/0.4492, allocations: 363.5 kB / 460.2 MB, free: 15.55 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.705e-05/0.4492, allocations: 4 kB / 460.2 MB, free: 15.55 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.333e-05/0.4493, allocations: 42.5 kB / 460.3 MB, free: 15.5 MB / 394.7 MB Notification: Performance of pre-optimization done (n=39): time 5.677e-06/0.4493, allocations: 0 / 460.3 MB, free: 15.5 MB / 394.7 MB Notification: Performance of matching and sorting (n=57): time 0.006108/0.4555, allocations: 2.482 MB / 462.7 MB, free: 12.75 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.57e-05/0.4556, allocations: 118.8 kB / 462.9 MB, free: 12.61 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003072/0.4559, allocations: 209.8 kB / 463.1 MB, free: 12.39 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 4.445e-05/0.456, allocations: 29.7 kB / 463.1 MB, free: 12.36 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001813/0.4562, allocations: 243.1 kB / 463.3 MB, free: 12.12 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002148/0.4564, allocations: 197.1 kB / 463.5 MB, free: 11.92 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.269e-05/0.4564, allocations: 8 kB / 463.5 MB, free: 11.91 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001811/0.4566, allocations: 330.8 kB / 463.9 MB, free: 11.58 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003891/0.457, allocations: 137.1 kB / 464 MB, free: 11.45 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004761/0.4575, allocations: 235.8 kB / 464.2 MB, free: 11.18 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004663/0.458, allocations: 171.9 kB / 464.4 MB, free: 11.01 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.779e-06/0.458, allocations: 0 / 464.4 MB, free: 11.01 MB / 394.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001512/0.4595, allocations: 0.554 MB / 464.9 MB, free: 10.44 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.231e-05/0.4596, allocations: 4 kB / 464.9 MB, free: 10.44 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.219e-05/0.4596, allocations: 4 kB / 465 MB, free: 10.43 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005104/0.4601, allocations: 122.6 kB / 465.1 MB, free: 10.3 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004956/0.4606, allocations: 103.8 kB / 465.2 MB, free: 10.2 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005754/0.4664, allocations: 4.708 MB / 469.9 MB, free: 5.09 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004214/0.4669, allocations: 20 kB / 469.9 MB, free: 5.07 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.07e-05/0.467, allocations: 27.92 kB / 469.9 MB, free: 5.043 MB / 394.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.0003209/0.4673, allocations: 177.7 kB / 470.1 MB, free: 4.859 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001566/0.4675, allocations: 31.62 kB / 470.1 MB, free: 4.828 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000127/0.4676, allocations: 50.17 kB / 470.2 MB, free: 4.781 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.949e-06/0.4676, allocations: 8 kB / 470.2 MB, free: 4.773 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.104e-05/0.4676, allocations: 0 / 470.2 MB, free: 4.773 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.322e-05/0.4677, allocations: 7.984 kB / 470.2 MB, free: 4.766 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004223/0.4719, allocations: 1.347 MB / 471.5 MB, free: 3.344 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.03e-05/0.472, allocations: 0 / 471.5 MB, free: 3.344 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001012/0.473, allocations: 99.88 kB / 471.6 MB, free: 3.246 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006614/0.4737, allocations: 98.45 kB / 471.7 MB, free: 3.141 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.285e-05/0.4738, allocations: 12 kB / 471.8 MB, free: 3.129 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2671/0.7409, allocations: 4.121 MB / 475.9 MB, free: 94.7 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.598e-06/0.7409, allocations: 5.75 kB / 475.9 MB, free: 94.7 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002032/0.743, allocations: 0.9995 MB / 476.9 MB, free: 94.28 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.661e-05/0.7431, allocations: 117.1 kB / 477 MB, free: 94.18 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.471e-05/0.7432, allocations: 10.38 kB / 477 MB, free: 94.18 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003827/0.7436, allocations: 20.36 kB / 477 MB, free: 94.18 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001296/0.7437, allocations: 44.25 kB / 477.1 MB, free: 94.18 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.779e-05/0.7438, allocations: 18.2 kB / 477.1 MB, free: 94.18 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0002039/0.744, allocations: 171.2 kB / 477.2 MB, free: 94.11 MB / 394.7 MB Notification: Performance of sort global known variables: time 8.39e-07/0.744, allocations: 2.094 kB / 477.3 MB, free: 94.11 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001009/0.745, allocations: 121.5 kB / 477.4 MB, free: 94.11 MB / 394.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.000165/0.7452, allocations: 122 kB / 477.5 MB, free: 94.02 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.00158/0.7468, allocations: 0.7754 MB / 478.3 MB, free: 93.68 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.368e-06/0.7468, allocations: 0 / 478.3 MB, free: 93.68 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000964/0.7478, allocations: 0.5853 MB / 478.9 MB, free: 93.35 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006222/0.7484, allocations: 54.12 kB / 478.9 MB, free: 93.35 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002235/0.7507, allocations: 1.332 MB / 480.2 MB, free: 92.63 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003552/0.7511, allocations: 0.8292 MB / 481.1 MB, free: 91.93 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001215/0.7512, allocations: 33.2 kB / 481.1 MB, free: 91.92 MB / 394.7 MB Notification: Performance of SimCode: time 1.594e-06/0.7512, allocations: 0 / 481.1 MB, free: 91.92 MB / 394.7 MB Notification: Performance of Templates: time 0.01168/0.7629, allocations: 8.807 MB / 489.9 MB, free: 89.82 MB / 394.7 MB