Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Forces.FrameTorques2.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo) Running command: translateModel(ModelicaTest.MultiBody.Forces.FrameTorques2,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.1_cpp_ModelicaTest.MultiBody.Forces.FrameTorques2") Notification: Performance of loadModel(ModelicaTest): time 1.856/1.856, allocations: 209.3 MB / 222.4 MB, free: 7.723 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.046e-05/3.068e-05, allocations: 4 kB / 277.8 MB, free: 15.3 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08878/0.08884, allocations: 48.7 MB / 326.5 MB, free: 14.5 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3512/0.4401, allocations: 92.75 MB / 419.3 MB, free: 15.11 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002293/0.4403, allocations: 73.66 kB / 419.4 MB, free: 15.07 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9634/1.404, allocations: 169.9 MB / 0.5755 GB, free: 71.85 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.059e-06/1.404, allocations: 6.719 kB / 0.5755 GB, free: 71.85 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0005231/1.404, allocations: 170.2 kB / 0.5756 GB, free: 71.84 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2944 * Number of variables: 2944 Notification: Performance of Generate backend data structure: time 0.02666/1.431, allocations: 8.244 MB / 0.5837 GB, free: 68.64 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.33e-05/1.431, allocations: 12.12 kB / 0.5837 GB, free: 68.64 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06481/1.496, allocations: 12.09 MB / 0.5955 GB, free: 68.03 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03138/1.527, allocations: 10.94 MB / 0.6062 GB, free: 66.89 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007256/1.528, allocations: 0.6413 MB / 0.6068 GB, free: 66.71 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003701/1.532, allocations: 0.8493 MB / 0.6077 GB, free: 66.46 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05162/1.584, allocations: 19.83 MB / 0.627 GB, free: 50.84 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005764/1.584, allocations: 107 kB / 0.6271 GB, free: 50.74 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003472/1.588, allocations: 402.9 kB / 0.6275 GB, free: 50.39 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003154/1.591, allocations: 1.815 MB / 0.6293 GB, free: 48.58 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03967/1.631, allocations: 16.03 MB / 0.6449 GB, free: 32.53 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4032/2.034, allocations: 82.07 MB / 0.7251 GB, free: 42.25 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02691/2.061, allocations: 8.078 MB / 0.733 GB, free: 41.55 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006903/2.068, allocations: 4.069 MB / 0.7369 GB, free: 41.52 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007981/2.069, allocations: 0.6656 MB / 0.7376 GB, free: 40.95 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.326e-05/2.069, allocations: 73.3 kB / 0.7377 GB, free: 40.91 MB / 458.7 MB Notification: Performance of pre-optimization done (n=311): time 8.688e-06/2.069, allocations: 0 / 0.7377 GB, free: 40.91 MB / 458.7 MB Notification: Performance of matching and sorting (n=335): time 0.09488/2.164, allocations: 26.26 MB / 0.7633 GB, free: 34.48 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.708e-05/2.164, allocations: 290.4 kB / 0.7636 GB, free: 34.17 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0155/2.179, allocations: 6.807 MB / 0.7702 GB, free: 33.63 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006766/2.18, allocations: 81.64 kB / 0.7703 GB, free: 33.6 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004292/2.184, allocations: 5.53 MB / 0.7757 GB, free: 30.75 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001613/2.186, allocations: 1.273 MB / 0.7769 GB, free: 30.02 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001006/2.187, allocations: 193 kB / 0.7771 GB, free: 30.02 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0008025/2.188, allocations: 0.7159 MB / 0.7778 GB, free: 29.69 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007584/2.195, allocations: 3.442 MB / 0.7812 GB, free: 29.58 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01062/2.206, allocations: 9.107 MB / 0.7901 GB, free: 20.82 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01107/2.217, allocations: 5.534 MB / 0.7955 GB, free: 19.21 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001661/2.217, allocations: 57.41 kB / 0.7955 GB, free: 19.21 MB / 458.7 MB Notification: Performance of matching and sorting (n=1259) (initialization): time 0.03061/2.248, allocations: 12.87 MB / 0.8081 GB, free: 15.41 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001596/2.248, allocations: 93.31 kB / 0.8082 GB, free: 15.41 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000262/2.248, allocations: 196.4 kB / 0.8084 GB, free: 15.41 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0036/2.252, allocations: 1.057 MB / 0.8094 GB, free: 15.2 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01053/2.263, allocations: 2.25 MB / 0.8116 GB, free: 14.93 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01702/2.28, allocations: 11.26 MB / 0.8226 GB, free: 5.664 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01091/2.291, allocations: 0.5207 MB / 0.8231 GB, free: 5.199 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002144/2.293, allocations: 0.5762 MB / 0.8237 GB, free: 4.641 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 912 * Number of states: 0 () * Number of discrete variables: 63 (Revolute4.cylinderColor[3],Revolute4.cylinderColor[2],Revolute4.cylinderColor[1],frameTorque4.color[3],frameTorque4.color[2],frameTorque4.color[1],frameTorque3.color[3],frameTorque3.color[2],frameTorque3.color[1],body4.color[3],body4.color[2],body4.color[1],body4.body.sphereColor[3],body4.body.sphereColor[2],body4.body.sphereColor[1],body3.color[3],body3.color[2],body3.color[1],body3.body.sphereColor[3],body3.body.sphereColor[2],body3.body.sphereColor[1],Revolute3.cylinderColor[3],Revolute3.cylinderColor[2],Revolute3.cylinderColor[1],Revolute2.cylinderColor[3],Revolute2.cylinderColor[2],Revolute2.cylinderColor[1],frameTorque2.color[3],frameTorque2.color[2],frameTorque2.color[1],frameTorque1.color[3],frameTorque1.color[2],frameTorque1.color[1],fixed2.color[3],fixed2.color[2],fixed2.color[1],body2.color[3],body2.color[2],body2.color[1],body2.body.sphereColor[3],body2.body.sphereColor[2],body2.body.sphereColor[1],fixed1.color[3],fixed1.color[2],fixed1.color[1],body1.color[3],body1.color[2],body1.color[1],body1.body.sphereColor[3],body1.body.sphereColor[2],body1.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 (1179): * Single equations (assignments): 1172 * 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%) 14,(1,100.0%) 14,(1,100.0%) 14,(1,100.0%) 14} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002911/2.296, allocations: 0.8423 MB / 0.8245 GB, free: 3.797 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001841/2.298, allocations: 0.6788 MB / 0.8252 GB, free: 3.109 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01889/2.316, allocations: 6.138 MB / 0.8312 GB, free: 14.59 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.301e-05/2.317, allocations: 36 kB / 0.8312 GB, free: 14.55 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.436e-05/2.317, allocations: 11.95 kB / 0.8312 GB, free: 14.54 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.992e-05/2.317, allocations: 18.72 kB / 0.8312 GB, free: 14.54 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04361/2.36, allocations: 15.01 MB / 0.8459 GB, free: 2.355 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.706e-05/2.36, allocations: 0 / 0.8459 GB, free: 2.355 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004112/2.365, allocations: 0.5641 MB / 0.8464 GB, free: 1.902 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002913/2.368, allocations: 0.7086 MB / 0.8471 GB, free: 1.359 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006752/2.368, allocations: 58.2 kB / 0.8472 GB, free: 1.305 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01661/2.385, allocations: 10.11 MB / 0.8571 GB, free: 7.551 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.12e-05/2.385, allocations: 11.17 kB / 0.8571 GB, free: 7.543 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03208/2.417, allocations: 10.62 MB / 0.8674 GB, free: 15.92 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004468/2.422, allocations: 1.196 MB / 0.8686 GB, free: 14.8 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002232/2.424, allocations: 55.61 kB / 0.8687 GB, free: 14.75 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005174/2.429, allocations: 194.2 kB / 0.8689 GB, free: 14.62 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001004/2.43, allocations: 198.1 kB / 0.869 GB, free: 14.5 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005652/2.431, allocations: 91.7 kB / 0.8691 GB, free: 14.41 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.01361/2.444, allocations: 4.847 MB / 0.8739 GB, free: 10.13 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.807e-06/2.444, allocations: 4 kB / 0.8739 GB, free: 10.13 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01272/2.457, allocations: 1.873 MB / 0.8757 GB, free: 8.266 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 () * 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%) 11,(1,100.0%) 11,(1,100.0%) 11,(1,100.0%) 11} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009938/2.458, allocations: 201.2 kB / 0.8759 GB, free: 8.066 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01989/2.478, allocations: 8.858 MB / 0.8845 GB, free: 0 / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.587e-05/2.478, allocations: 1.5 kB / 0.8845 GB, free: 0 / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.2768/2.755, allocations: 3.198 MB / 0.8877 GB, free: 135.9 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006491/2.761, allocations: 0.9199 MB / 0.8886 GB, free: 135.9 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04093/2.802, allocations: 15.96 MB / 0.9041 GB, free: 133 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01447/2.817, allocations: 6.12 MB / 0.9101 GB, free: 132.1 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00278/2.82, allocations: 0.5211 MB / 0.9106 GB, free: 132.1 MB / 0.4948 GB Notification: Performance of SimCode: time 1.98e-06/2.82, allocations: 0 / 0.9106 GB, free: 132.1 MB / 0.4948 GB Notification: Performance of Templates: time 0.6199/3.44, allocations: 244.5 MB / 1.149 GB, free: 95.1 MB / 0.4948 GB