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.FrameForcesAndTorques.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.FrameForcesAndTorques,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.FrameForcesAndTorques") Notification: Performance of loadModel(ModelicaTest): time 2.234/2.234, allocations: 235 MB / 248.1 MB, free: 14.37 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.942e-05/2.97e-05, allocations: 4 kB / 309.7 MB, free: 1.332 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3251/0.3252, allocations: 54.85 MB / 364.5 MB, free: 5.547 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.172/0.4973, allocations: 102.9 MB / 467.4 MB, free: 9.598 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003591/0.4977, allocations: 78.52 kB / 467.5 MB, free: 9.523 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8516/1.349, allocations: 138.5 MB / 0.5917 GB, free: 97.68 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.893e-06/1.349, allocations: 0 / 0.5917 GB, free: 97.68 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0003711/1.35, allocations: 134.8 kB / 0.5919 GB, free: 97.68 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: 2488 * Number of variables: 2488 Notification: Performance of Generate backend data structure: time 0.02166/1.371, allocations: 6.795 MB / 0.5985 GB, free: 93.2 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.199e-05/1.371, allocations: 10.31 kB / 0.5985 GB, free: 93.2 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03929/1.411, allocations: 7.18 MB / 0.6055 GB, free: 87.77 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02065/1.431, allocations: 7.528 MB / 0.6129 GB, free: 80.15 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005907/1.432, allocations: 0.5213 MB / 0.6134 GB, free: 79.63 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00339/1.435, allocations: 0.691 MB / 0.6141 GB, free: 78.94 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04337/1.479, allocations: 17.1 MB / 0.6308 GB, free: 60.46 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004188/1.479, allocations: 87.19 kB / 0.6308 GB, free: 60.38 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003106/1.483, allocations: 327.8 kB / 0.6312 GB, free: 60.05 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002873/1.485, allocations: 1.625 MB / 0.6327 GB, free: 58.42 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03532/1.521, allocations: 14.14 MB / 0.6466 GB, free: 44.24 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4145/1.935, allocations: 72.27 MB / 0.7171 GB, free: 57.82 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02428/1.96, allocations: 7.113 MB / 0.7241 GB, free: 57.12 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006901/1.967, allocations: 3.929 MB / 0.7279 GB, free: 57.08 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02067/1.987, allocations: 9.477 MB / 0.7372 GB, free: 55.92 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.008e-05/1.987, allocations: 64.12 kB / 0.7372 GB, free: 55.88 MB / 474.7 MB Notification: Performance of pre-optimization done (n=297): time 7.596e-06/1.987, allocations: 3.438 kB / 0.7372 GB, free: 55.88 MB / 474.7 MB Notification: Performance of matching and sorting (n=339): time 0.09418/2.082, allocations: 27.69 MB / 0.7643 GB, free: 50.29 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.958e-05/2.082, allocations: 241.7 kB / 0.7645 GB, free: 50.04 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01245/2.094, allocations: 5.881 MB / 0.7703 GB, free: 47.93 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000708/2.095, allocations: 75.2 kB / 0.7703 GB, free: 47.86 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003374/2.098, allocations: 4.578 MB / 0.7748 GB, free: 44.21 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001636/2.1, allocations: 1.256 MB / 0.776 GB, free: 43.29 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001021/2.101, allocations: 182.2 kB / 0.7762 GB, free: 43.15 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0006336/2.102, allocations: 0.6923 MB / 0.7769 GB, free: 42.68 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007855/2.11, allocations: 3.65 MB / 0.7804 GB, free: 41.41 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01048/2.12, allocations: 8.677 MB / 0.7889 GB, free: 33.42 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01092/2.131, allocations: 5.572 MB / 0.7944 GB, free: 31.74 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001846/2.131, allocations: 53.22 kB / 0.7944 GB, free: 31.74 MB / 474.7 MB Notification: Performance of matching and sorting (n=1161) (initialization): time 0.03123/2.163, allocations: 13.41 MB / 0.8075 GB, free: 22.22 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001573/2.163, allocations: 90.41 kB / 0.8076 GB, free: 22.14 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002206/2.163, allocations: 176.9 kB / 0.8078 GB, free: 21.97 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005311/2.168, allocations: 1.694 MB / 0.8094 GB, free: 20.7 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009648/2.178, allocations: 2.119 MB / 0.8115 GB, free: 18.89 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01747/2.196, allocations: 11.37 MB / 0.8226 GB, free: 8.656 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00963/2.205, allocations: 0.5239 MB / 0.8231 GB, free: 8.219 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00205/2.207, allocations: 0.5256 MB / 0.8236 GB, free: 7.715 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 806 * Number of states: 0 () * Number of discrete variables: 54 (FixedRotation1.color[3],FixedRotation1.color[2],FixedRotation1.color[1],Revolute4.cylinderColor[3],Revolute4.cylinderColor[2],Revolute4.cylinderColor[1],Revolute3.cylinderColor[3],Revolute3.cylinderColor[2],Revolute3.cylinderColor[1],Revolute2.cylinderColor[3],Revolute2.cylinderColor[2],Revolute2.cylinderColor[1],frameTorque2.torqueColor[3],frameTorque2.torqueColor[2],frameTorque2.torqueColor[1],frameTorque2.forceColor[3],frameTorque2.forceColor[2],frameTorque2.forceColor[1],frameTorque1.torqueColor[3],frameTorque1.torqueColor[2],frameTorque1.torqueColor[1],frameTorque1.forceColor[3],frameTorque1.forceColor[2],frameTorque1.forceColor[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 (1089): * Single equations (assignments): 1084 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 23,(2,100.0%) 23} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002899/2.21, allocations: 0.7784 MB / 0.8244 GB, free: 6.938 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001445/2.212, allocations: 0.5862 MB / 0.8249 GB, free: 6.344 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01738/2.229, allocations: 7.437 MB / 0.8322 GB, free: 312 kB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.447e-05/2.229, allocations: 36 kB / 0.8322 GB, free: 276 kB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.281e-05/2.229, allocations: 8 kB / 0.8322 GB, free: 268 kB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.732e-05/2.229, allocations: 14.02 kB / 0.8323 GB, free: 268 kB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04602/2.275, allocations: 16.09 MB / 0.848 GB, free: 2.164 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.03e-05/2.275, allocations: 4 kB / 0.848 GB, free: 2.16 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004739/2.28, allocations: 0.6362 MB / 0.8486 GB, free: 1.523 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005388/2.286, allocations: 1.413 MB / 0.85 GB, free: 108 kB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008546/2.287, allocations: 63.98 kB / 0.85 GB, free: 44 kB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0211/2.308, allocations: 10.61 MB / 0.8604 GB, free: 5.18 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.08e-05/2.308, allocations: 10.06 kB / 0.8604 GB, free: 5.172 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02806/2.336, allocations: 12.58 MB / 0.8727 GB, free: 8.355 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004468/2.34, allocations: 1.2 MB / 0.8739 GB, free: 7.129 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002026/2.342, allocations: 59.98 kB / 0.8739 GB, free: 7.07 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004951/2.347, allocations: 228.3 kB / 0.8742 GB, free: 6.848 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001162/2.349, allocations: 209.8 kB / 0.8744 GB, free: 6.641 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004221/2.349, allocations: 84 kB / 0.8744 GB, free: 6.559 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.01162/2.361, allocations: 4.226 MB / 0.8786 GB, free: 2.344 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.395e-06/2.361, allocations: 0 / 0.8786 GB, free: 2.344 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01181/2.373, allocations: 1.696 MB / 0.8802 GB, free: 0.6523 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * Number of states: 8 (Revolute1.phi,Revolute1.w,Revolute3.phi,Revolute3.w,Revolute2.phi,Revolute2.w,Revolute4.phi,Revolute4.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (279): * Single equations (assignments): 274 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(4,75.0%) 18,(4,75.0%) 18} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001139/2.374, allocations: 211 kB / 0.8804 GB, free: 456 kB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.02118/2.395, allocations: 9.036 MB / 0.8892 GB, free: 7.426 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 7.921e-06/2.395, allocations: 0 / 0.8892 GB, free: 7.426 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.009308/2.404, allocations: 3.648 MB / 0.8928 GB, free: 3.746 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0053/2.41, allocations: 0.7153 MB / 0.8935 GB, free: 3.055 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03961/2.449, allocations: 14.49 MB / 0.9077 GB, free: 4.5 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.3093/2.759, allocations: 5.178 MB / 0.9127 GB, free: 170.4 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002968/2.762, allocations: 475.8 kB / 0.9132 GB, free: 170.3 MB / 0.5417 GB Notification: Performance of SimCode: time 2.264e-06/2.762, allocations: 0 / 0.9132 GB, free: 170.3 MB / 0.5417 GB Notification: Performance of Templates: time 0.2185/2.98, allocations: 152.2 MB / 1.062 GB, free: 73.05 MB / 0.5417 GB