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.FrameForces2.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.FrameForces2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Revolute1.phi|Revolute1.w|Revolute2.phi|Revolute2.w|Revolute3.phi|Revolute3.w|Revolute4.phi|Revolute4.w",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Forces.FrameForces2") Notification: Performance of loadModel(ModelicaTest): time 2.212/2.212, allocations: 234.9 MB / 250.5 MB, free: 10.44 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004298/0.00043, allocations: 12 kB / 314.4 MB, free: 10.45 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2807/0.2811, allocations: 54.87 MB / 369.3 MB, free: 10.83 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1517/0.4329, allocations: 99.45 MB / 468.7 MB, free: 7.23 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002595/0.4332, allocations: 79.95 kB / 468.8 MB, free: 7.152 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8903/1.324, allocations: 162.5 MB / 0.6165 GB, free: 1.207 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.941e-06/1.324, allocations: 0 / 0.6165 GB, free: 1.207 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0005521/1.324, allocations: 164 kB / 0.6167 GB, free: 1.047 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2806 * Number of variables: 2806 Notification: Performance of Generate backend data structure: time 0.03121/1.355, allocations: 8.792 MB / 0.6253 GB, free: 8.16 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.521e-05/1.355, allocations: 8.031 kB / 0.6253 GB, free: 8.152 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.3607/1.716, allocations: 12.01 MB / 0.637 GB, free: 56.02 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0299/1.746, allocations: 10.84 MB / 0.6476 GB, free: 55.73 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006812/1.747, allocations: 0.6099 MB / 0.6482 GB, free: 55.71 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003324/1.75, allocations: 0.8175 MB / 0.649 GB, free: 55.7 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04838/1.799, allocations: 19.25 MB / 0.6678 GB, free: 51.63 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004626/1.799, allocations: 110.3 kB / 0.6679 GB, free: 51.62 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002435/1.802, allocations: 386.5 kB / 0.6683 GB, free: 51.62 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003084/1.805, allocations: 1.733 MB / 0.67 GB, free: 51.59 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04023/1.845, allocations: 15.71 MB / 0.6853 GB, free: 51.52 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1065/1.951, allocations: 79.63 MB / 0.7631 GB, free: 13.34 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02688/1.978, allocations: 8.261 MB / 0.7711 GB, free: 7.102 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001054/1.979, allocations: 0.6638 MB / 0.7718 GB, free: 6.383 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.862e-05/1.98, allocations: 71.88 kB / 0.7718 GB, free: 6.309 MB / 474.7 MB Notification: Performance of pre-optimization done (n=307): time 7.745e-06/1.98, allocations: 0 / 0.7718 GB, free: 6.309 MB / 474.7 MB Notification: Performance of matching and sorting (n=331): time 0.1129/2.093, allocations: 30.42 MB / 0.8015 GB, free: 12.77 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002121/2.093, allocations: 291.7 kB / 0.8018 GB, free: 12.42 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01633/2.109, allocations: 6.725 MB / 0.8084 GB, free: 6.809 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0006799/2.11, allocations: 75.03 kB / 0.8085 GB, free: 6.73 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.005937/2.116, allocations: 5.297 MB / 0.8136 GB, free: 1.934 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.001961/2.118, allocations: 1.245 MB / 0.8149 GB, free: 0.832 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000997/2.119, allocations: 190.4 kB / 0.815 GB, free: 0.6484 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.000896/2.12, allocations: 0.7141 MB / 0.8157 GB, free: 40 kB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02868/2.148, allocations: 4.594 MB / 0.8202 GB, free: 0 / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.3099/2.458, allocations: 8.947 MB / 0.829 GB, free: 91.68 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01061/2.469, allocations: 5.427 MB / 0.8343 GB, free: 91.65 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002365/2.469, allocations: 57.94 kB / 0.8343 GB, free: 91.65 MB / 0.4948 GB Notification: Performance of matching and sorting (n=1225) (initialization): time 0.03018/2.5, allocations: 12.7 MB / 0.8467 GB, free: 91.27 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001857/2.5, allocations: 88.53 kB / 0.8468 GB, free: 91.27 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.00027/2.5, allocations: 193.9 kB / 0.847 GB, free: 91.27 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003151/2.503, allocations: 1.019 MB / 0.848 GB, free: 91.23 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009241/2.512, allocations: 2.155 MB / 0.8501 GB, free: 91.04 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01533/2.528, allocations: 11.19 MB / 0.861 GB, free: 85.61 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01013/2.538, allocations: 0.5112 MB / 0.8615 GB, free: 85.61 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001992/2.54, allocations: 0.5491 MB / 0.8621 GB, free: 85.61 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 882 * Number of states: 0 () * Number of discrete variables: 63 (frameForce4.color[3],frameForce4.color[2],frameForce4.color[1],BodyCylinder4.color[3],BodyCylinder4.color[2],BodyCylinder4.color[1],BodyCylinder4.body.sphereColor[3],BodyCylinder4.body.sphereColor[2],BodyCylinder4.body.sphereColor[1],Revolute4.cylinderColor[3],Revolute4.cylinderColor[2],Revolute4.cylinderColor[1],frameForce3.color[3],frameForce3.color[2],frameForce3.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],frameForce2.color[3],frameForce2.color[2],frameForce2.color[1],fixed2.color[3],fixed2.color[2],fixed2.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],frameForce1.color[3],frameForce1.color[2],frameForce1.color[1],fixed1.color[3],fixed1.color[2],fixed1.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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1149): * Single equations (assignments): 1142 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 13,(1,100.0%) 13,(1,100.0%) 13,(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.009348/2.549, allocations: 3.726 MB / 0.8657 GB, free: 85.3 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001511/2.551, allocations: 0.6648 MB / 0.8663 GB, free: 85.3 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01422/2.565, allocations: 5.941 MB / 0.8721 GB, free: 85.04 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.368e-05/2.565, allocations: 44.08 kB / 0.8722 GB, free: 85.04 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.233e-05/2.565, allocations: 7.688 kB / 0.8722 GB, free: 85.04 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.076e-05/2.565, allocations: 17.91 kB / 0.8722 GB, free: 85.04 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0371/2.603, allocations: 14.72 MB / 0.8866 GB, free: 82.32 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.716e-05/2.603, allocations: 3.812 kB / 0.8866 GB, free: 82.32 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003522/2.606, allocations: 0.5221 MB / 0.8871 GB, free: 82.29 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002583/2.609, allocations: 0.6717 MB / 0.8878 GB, free: 82.11 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006217/2.609, allocations: 59.28 kB / 0.8878 GB, free: 82.07 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01297/2.622, allocations: 10.08 MB / 0.8976 GB, free: 74.77 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.045e-06/2.622, allocations: 3.719 kB / 0.8977 GB, free: 74.77 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01898/2.641, allocations: 10.05 MB / 0.9075 GB, free: 70.66 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00387/2.645, allocations: 1.174 MB / 0.9086 GB, free: 70.02 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001715/2.647, allocations: 54.06 kB / 0.9087 GB, free: 69.98 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004427/2.652, allocations: 189.3 kB / 0.9088 GB, free: 69.94 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008559/2.652, allocations: 191.9 kB / 0.909 GB, free: 69.91 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003233/2.653, allocations: 88.78 kB / 0.9091 GB, free: 69.89 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.01127/2.664, allocations: 4.812 MB / 0.9138 GB, free: 68.32 MB / 0.4948 GB Notification: Performance of sort global known variables: time 9.29e-07/2.664, allocations: 3.375 kB / 0.9138 GB, free: 68.32 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01134/2.675, allocations: 1.805 MB / 0.9156 GB, free: 68.12 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 8 (Revolute3.phi,Revolute3.w,Revolute4.phi,Revolute4.w,Revolute1.phi,Revolute1.w,Revolute2.phi,Revolute2.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 (276): * Single equations (assignments): 269 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 10,(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.0009104/2.676, allocations: 208.6 kB / 0.9158 GB, free: 67.97 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01649/2.693, allocations: 8.79 MB / 0.9244 GB, free: 62.73 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 7.828e-06/2.693, allocations: 0 / 0.9244 GB, free: 62.73 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.005483/2.698, allocations: 3.194 MB / 0.9275 GB, free: 59.87 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005372/2.704, allocations: 0.9129 MB / 0.9284 GB, free: 59.12 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03865/2.743, allocations: 21.54 MB / 0.9494 GB, free: 39.61 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01229/2.755, allocations: 5.895 MB / 0.9552 GB, free: 35.32 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002533/2.757, allocations: 0.5005 MB / 0.9556 GB, free: 34.84 MB / 0.4948 GB Notification: Performance of SimCode: time 1.827e-06/2.757, allocations: 0 / 0.9556 GB, free: 34.84 MB / 0.4948 GB Notification: Performance of Templates: time 0.6894/3.447, allocations: 235.4 MB / 1.186 GB, free: 8.891 MB / 0.5417 GB