Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Forces.WorldForces2.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.MultiBody.Forces.WorldForces2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Revolute1.phi|Revolute1.w|Revolute2.phi|Revolute2.w|Revolute3.phi|Revolute3.w",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Forces.WorldForces2") Notification: Performance of loadModel(ModelicaTest): time 2.186/2.186, allocations: 235 MB / 248.1 MB, free: 14.57 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.077e-05/3.1e-05, allocations: 8 kB / 309.7 MB, free: 1.535 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.32/0.32, allocations: 54.85 MB / 364.5 MB, free: 5.352 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1624/0.4824, allocations: 99.49 MB / 464 MB, free: 12.88 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002512/0.4827, allocations: 71.97 kB / 464.1 MB, free: 12.81 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7941/1.277, allocations: 137.1 MB / 0.5871 GB, free: 99.29 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.597e-06/1.277, allocations: 4 kB / 0.5871 GB, free: 99.29 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0003854/1.277, allocations: 135.3 kB / 0.5872 GB, free: 99.28 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2367 * Number of variables: 2367 Notification: Performance of Generate backend data structure: time 0.01993/1.297, allocations: 6.635 MB / 0.5937 GB, free: 94.96 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.204e-05/1.297, allocations: 10 kB / 0.5937 GB, free: 94.96 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04808/1.345, allocations: 9.491 MB / 0.603 GB, free: 89.22 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02325/1.369, allocations: 8.727 MB / 0.6115 GB, free: 80.53 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004889/1.369, allocations: 0.5049 MB / 0.612 GB, free: 80.06 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002565/1.372, allocations: 0.6749 MB / 0.6126 GB, free: 79.43 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0347/1.407, allocations: 15.98 MB / 0.6283 GB, free: 62.09 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003583/1.407, allocations: 95.12 kB / 0.6283 GB, free: 62 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001667/1.409, allocations: 323.1 kB / 0.6287 GB, free: 61.68 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00223/1.411, allocations: 1.467 MB / 0.6301 GB, free: 60.21 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05604/1.467, allocations: 12.64 MB / 0.6424 GB, free: 47.55 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4555/1.922, allocations: 70.68 MB / 0.7115 GB, free: 56.25 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01866/1.941, allocations: 5.84 MB / 0.7172 GB, free: 55.54 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005491/1.947, allocations: 3.033 MB / 0.7201 GB, free: 55.5 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002003/1.947, allocations: 44.42 kB / 0.7202 GB, free: 55.5 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.131e-05/1.947, allocations: 66.77 kB / 0.7202 GB, free: 55.46 MB / 474.7 MB Notification: Performance of pre-optimization done (n=242): time 7.891e-06/1.947, allocations: 0 / 0.7202 GB, free: 55.46 MB / 474.7 MB Notification: Performance of matching and sorting (n=260): time 0.06155/2.009, allocations: 18.98 MB / 0.7388 GB, free: 50.47 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.943e-05/2.009, allocations: 256 kB / 0.739 GB, free: 50.19 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01269/2.021, allocations: 6.084 MB / 0.7449 GB, free: 49.68 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000486/2.022, allocations: 64.58 kB / 0.745 GB, free: 49.65 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003465/2.025, allocations: 4.608 MB / 0.7495 GB, free: 47.07 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001211/2.027, allocations: 1.008 MB / 0.7505 GB, free: 46.51 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006892/2.027, allocations: 169.3 kB / 0.7507 GB, free: 46.51 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0005132/2.028, allocations: 0.6642 MB / 0.7513 GB, free: 46.18 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005833/2.034, allocations: 2.782 MB / 0.754 GB, free: 46.16 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008431/2.042, allocations: 7.919 MB / 0.7618 GB, free: 39.52 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008919/2.051, allocations: 4.664 MB / 0.7663 GB, free: 38.2 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001554/2.051, allocations: 53.81 kB / 0.7664 GB, free: 38.2 MB / 474.7 MB Notification: Performance of matching and sorting (n=1096) (initialization): time 0.02465/2.076, allocations: 10.78 MB / 0.7769 GB, free: 35.14 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001486/2.076, allocations: 85.06 kB / 0.777 GB, free: 35.14 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002077/2.076, allocations: 182.5 kB / 0.7771 GB, free: 35.14 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002535/2.079, allocations: 0.8086 MB / 0.7779 GB, free: 35 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008605/2.088, allocations: 1.928 MB / 0.7798 GB, free: 34.76 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01138/2.099, allocations: 8.3 MB / 0.7879 GB, free: 28.97 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008856/2.108, allocations: 458.1 kB / 0.7884 GB, free: 28.81 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001598/2.11, allocations: 0.5043 MB / 0.7889 GB, free: 28.74 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 828 * Number of states: 0 () * Number of discrete variables: 54 (worldForce2.color[3],worldForce2.color[2],worldForce2.color[1],fixed3.color[3],fixed3.color[2],fixed3.color[1],BodyCylinder3.color[3],BodyCylinder3.color[2],BodyCylinder3.color[1],BodyCylinder3.body.sphereColor[3],BodyCylinder3.body.sphereColor[2],BodyCylinder3.body.sphereColor[1],Revolute3.cylinderColor[3],Revolute3.cylinderColor[2],Revolute3.cylinderColor[1],fixed2.color[3],fixed2.color[2],fixed2.color[1],worldForce1.color[3],worldForce1.color[2],worldForce1.color[1],BodyCylinder2.color[3],BodyCylinder2.color[2],BodyCylinder2.color[1],BodyCylinder2.body.sphereColor[3],BodyCylinder2.body.sphereColor[2],BodyCylinder2.body.sphereColor[1],Revolute2.cylinderColor[3],Revolute2.cylinderColor[2],Revolute2.cylinderColor[1],fixed1.color[3],fixed1.color[2],fixed1.color[1],worldForce.color[3],worldForce.color[2],worldForce.color[1],BodyCylinder1.color[3],BodyCylinder1.color[2],BodyCylinder1.color[1],BodyCylinder1.body.sphereColor[3],BodyCylinder1.body.sphereColor[2],BodyCylinder1.body.sphereColor[1],Revolute1.cylinderColor[3],Revolute1.cylinderColor[2],Revolute1.cylinderColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1033): * Single equations (assignments): 1027 * Array equations: 3 * 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%) 13,(1,100.0%) 13,(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001599/2.111, allocations: 0.7575 MB / 0.7896 GB, free: 28.13 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001271/2.113, allocations: 0.5866 MB / 0.7902 GB, free: 27.8 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009562/2.122, allocations: 4.274 MB / 0.7943 GB, free: 25.93 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.801e-05/2.122, allocations: 28 kB / 0.7944 GB, free: 25.91 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.769e-05/2.122, allocations: 8 kB / 0.7944 GB, free: 25.9 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.539e-05/2.122, allocations: 8.625 kB / 0.7944 GB, free: 25.9 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02583/2.148, allocations: 11.17 MB / 0.8053 GB, free: 16.84 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.515e-05/2.148, allocations: 4.562 kB / 0.8053 GB, free: 16.83 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002756/2.151, allocations: 407.9 kB / 0.8057 GB, free: 16.5 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001921/2.153, allocations: 0.4991 MB / 0.8062 GB, free: 16.13 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000386/2.153, allocations: 47.61 kB / 0.8062 GB, free: 16.09 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009045/2.162, allocations: 7.389 MB / 0.8134 GB, free: 8.945 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.339e-06/2.162, allocations: 3.938 kB / 0.8134 GB, free: 8.941 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01327/2.176, allocations: 7.621 MB / 0.8209 GB, free: 2.07 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003244/2.179, allocations: 0.9836 MB / 0.8218 GB, free: 1.145 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001559/2.181, allocations: 44 kB / 0.8219 GB, free: 1.102 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003973/2.185, allocations: 141.5 kB / 0.822 GB, free: 1.008 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006378/2.185, allocations: 149 kB / 0.8222 GB, free: 0.9141 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002532/2.186, allocations: 75.31 kB / 0.8222 GB, free: 0.8477 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.02581/2.211, allocations: 5.198 MB / 0.8273 GB, free: 15.12 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.286e-06/2.211, allocations: 3.844 kB / 0.8273 GB, free: 15.12 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01039/2.222, allocations: 1.517 MB / 0.8288 GB, free: 13.61 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 6 (Revolute3.phi,Revolute3.w,Revolute1.phi,Revolute1.w,Revolute2.phi,Revolute2.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (215): * Single equations (assignments): 209 * Array equations: 3 * 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%) 10,(1,100.0%) 10,(1,100.0%) 10} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007733/2.223, allocations: 185.5 kB / 0.829 GB, free: 13.43 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01626/2.239, allocations: 7.124 MB / 0.8359 GB, free: 6.914 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 8.34e-06/2.239, allocations: 0 / 0.8359 GB, free: 6.914 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00525/2.244, allocations: 2.391 MB / 0.8383 GB, free: 4.703 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005422/2.25, allocations: 0.7507 MB / 0.839 GB, free: 4.066 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03538/2.285, allocations: 12.79 MB / 0.8515 GB, free: 8.344 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01264/2.298, allocations: 5.027 MB / 0.8564 GB, free: 3.32 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002253/2.3, allocations: 459.4 kB / 0.8568 GB, free: 2.871 MB / 0.4948 GB Notification: Performance of SimCode: time 1.775e-06/2.3, allocations: 0 / 0.8568 GB, free: 2.871 MB / 0.4948 GB Notification: Performance of Templates: time 0.5581/2.858, allocations: 171.3 MB / 1.024 GB, free: 102 MB / 0.5417 GB