Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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.342/2.342, allocations: 234.9 MB / 251.1 MB, free: 9.551 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004365/0.0004367, allocations: 12 kB / 314.9 MB, free: 9.609 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3484/0.3489, allocations: 54.85 MB / 369.8 MB, free: 10.72 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1505/0.4994, allocations: 81.87 MB / 451.7 MB, free: 8.734 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003024/0.4998, allocations: 75.95 kB / 451.7 MB, free: 8.66 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02549/0.5253, allocations: 5.766 MB / 457.5 MB, free: 2.879 MB / 378.7 MB Notification: Performance of FrontEnd: time 4.599e-06/0.5254, allocations: 4 kB / 457.5 MB, free: 2.875 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.148e-05/0.5254, allocations: 8 kB / 457.5 MB, free: 2.867 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.001241/0.5267, allocations: 0.5813 MB / 458.1 MB, free: 2.234 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.928e-05/0.5267, allocations: 12.03 kB / 458.1 MB, free: 2.223 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001121/0.5268, allocations: 39.53 kB / 458.2 MB, free: 2.184 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003797/0.5272, allocations: 259.2 kB / 458.4 MB, free: 1.887 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.396e-05/0.5273, allocations: 32.94 kB / 458.4 MB, free: 1.855 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.376e-05/0.5274, allocations: 36 kB / 458.5 MB, free: 1.82 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009849/0.5284, allocations: 402.1 kB / 458.9 MB, free: 1.391 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.649e-05/0.5284, allocations: 7.844 kB / 458.9 MB, free: 1.383 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.073e-05/0.5285, allocations: 19.94 kB / 458.9 MB, free: 1.363 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.77e-05/0.5285, allocations: 12 kB / 458.9 MB, free: 1.352 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007504/0.5293, allocations: 219.8 kB / 459.1 MB, free: 1.137 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003318/0.5326, allocations: 1.727 MB / 460.8 MB, free: 15.3 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007176/0.5334, allocations: 262.3 kB / 461.1 MB, free: 14.98 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.748e-05/0.5334, allocations: 12.12 kB / 461.1 MB, free: 14.97 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.225e-05/0.5335, allocations: 34.5 kB / 461.1 MB, free: 14.93 MB / 394.7 MB Notification: Performance of pre-optimization done (n=26): time 3.196e-06/0.5335, allocations: 0 / 461.1 MB, free: 14.93 MB / 394.7 MB Notification: Performance of matching and sorting (n=26): time 0.001087/0.5346, allocations: 289.8 kB / 461.4 MB, free: 14.64 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001118/0.5347, allocations: 217.5 kB / 461.6 MB, free: 14.38 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004049/0.5351, allocations: 270.9 kB / 461.9 MB, free: 14.1 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 3.08e-05/0.5352, allocations: 33.8 kB / 461.9 MB, free: 14.06 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000193/0.5354, allocations: 297.8 kB / 462.2 MB, free: 13.77 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001171/0.5355, allocations: 110.5 kB / 462.3 MB, free: 13.66 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.205e-05/0.5356, allocations: 12 kB / 462.3 MB, free: 13.65 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001337/0.5357, allocations: 330.8 kB / 462.7 MB, free: 13.32 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003426/0.5361, allocations: 101.2 kB / 462.8 MB, free: 13.22 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006036/0.5367, allocations: 432.8 kB / 463.2 MB, free: 12.63 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005222/0.5372, allocations: 167.8 kB / 463.4 MB, free: 12.47 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.025e-05/0.5373, allocations: 4 kB / 463.4 MB, free: 12.46 MB / 394.7 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.001438/0.5387, allocations: 0.5163 MB / 463.9 MB, free: 11.94 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.042e-05/0.5388, allocations: 9 kB / 463.9 MB, free: 11.93 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.307e-05/0.5388, allocations: 12 kB / 463.9 MB, free: 11.92 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.131e-05/0.5388, allocations: 20 kB / 463.9 MB, free: 11.9 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008606/0.5397, allocations: 147.8 kB / 464.1 MB, free: 11.76 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.116e-05/0.5398, allocations: 35.8 kB / 464.1 MB, free: 11.72 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004943/0.5403, allocations: 63.38 kB / 464.2 MB, free: 11.66 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.608e-05/0.5404, allocations: 32 kB / 464.2 MB, free: 11.63 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.0003139/0.5407, allocations: 181.5 kB / 464.4 MB, free: 11.44 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002156/0.5409, allocations: 39.62 kB / 464.4 MB, free: 11.4 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001091/0.541, allocations: 37.72 kB / 464.4 MB, free: 11.36 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.767e-06/0.5411, allocations: 4 kB / 464.4 MB, free: 11.36 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.192e-05/0.5411, allocations: 4 kB / 464.5 MB, free: 11.36 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.446e-06/0.5411, allocations: 3.953 kB / 464.5 MB, free: 11.35 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002009/0.5431, allocations: 0.6359 MB / 465.1 MB, free: 10.65 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.494e-06/0.5431, allocations: 12 kB / 465.1 MB, free: 10.64 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009055/0.5441, allocations: 87.94 kB / 465.2 MB, free: 10.55 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.048e-05/0.5441, allocations: 4 kB / 465.2 MB, free: 10.55 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.232e-05/0.5441, allocations: 12 kB / 465.2 MB, free: 10.54 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.113e-05/0.5442, allocations: 7.891 kB / 465.2 MB, free: 10.53 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.496e-06/0.5442, allocations: 4 kB / 465.2 MB, free: 10.53 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00122/0.5454, allocations: 0.8458 MB / 466.1 MB, free: 9.648 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001294/0.5456, allocations: 109.1 kB / 466.2 MB, free: 9.523 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.681e-05/0.5456, allocations: 11.98 kB / 466.2 MB, free: 9.512 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004911/0.5461, allocations: 15.95 kB / 466.2 MB, free: 9.496 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.504e-05/0.5462, allocations: 31.95 kB / 466.2 MB, free: 9.465 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.793e-05/0.5463, allocations: 12 kB / 466.2 MB, free: 9.453 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0002767/0.5466, allocations: 178 kB / 466.4 MB, free: 9.281 MB / 394.7 MB Notification: Performance of sort global known variables: time 3.71e-07/0.5466, allocations: 4 kB / 466.4 MB, free: 9.277 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001028/0.5476, allocations: 95.84 kB / 466.5 MB, free: 9.184 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.0001841/0.5478, allocations: 114.6 kB / 466.6 MB, free: 9.066 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0009673/0.5488, allocations: 301.6 kB / 466.9 MB, free: 8.773 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.557e-06/0.5488, allocations: 0 / 466.9 MB, free: 8.773 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002984/0.5491, allocations: 91.83 kB / 467 MB, free: 8.684 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009659/0.5501, allocations: 55.89 kB / 467.1 MB, free: 8.633 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004189/0.5543, allocations: 1.935 MB / 469 MB, free: 6.641 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005916/0.555, allocations: 0.7994 MB / 469.8 MB, free: 5.812 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001501/0.5551, allocations: 35.42 kB / 469.8 MB, free: 5.777 MB / 394.7 MB Notification: Performance of SimCode: time 1.303e-06/0.5551, allocations: 0 / 469.8 MB, free: 5.777 MB / 394.7 MB Notification: Performance of Templates: time 0.01039/0.5655, allocations: 3.983 MB / 473.8 MB, free: 1.797 MB / 394.7 MB