Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Forces.WorldForces.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo) Running command: translateModel(ModelicaTest.MultiBody.Forces.WorldForces,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.WorldForces") Notification: Performance of loadModel(ModelicaTest): time 1.972/1.972, allocations: 209.2 MB / 225.4 MB, free: 0.6172 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004332/0.0004333, allocations: 16 kB / 283.1 MB, free: 9.691 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3613/0.3617, allocations: 48.7 MB / 331.8 MB, free: 6.512 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1769/0.5387, allocations: 95.81 MB / 427.6 MB, free: 14.59 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002734/0.5391, allocations: 83.97 kB / 427.7 MB, free: 14.5 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9064/1.445, allocations: 152.8 MB / 0.5668 GB, free: 29.47 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.755e-06/1.446, allocations: 0 / 0.5668 GB, free: 29.47 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0006024/1.446, allocations: 155.9 kB / 0.567 GB, free: 29.32 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2698 * Number of variables: 2698 Notification: Performance of Generate backend data structure: time 0.0334/1.48, allocations: 8.014 MB / 0.5748 GB, free: 21.21 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.711e-05/1.48, allocations: 8.031 kB / 0.5748 GB, free: 21.21 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07029/1.55, allocations: 9.623 MB / 0.5842 GB, free: 11.56 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03235/1.582, allocations: 9.152 MB / 0.5932 GB, free: 2.324 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006471/1.583, allocations: 0.5775 MB / 0.5937 GB, free: 1.746 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004248/1.587, allocations: 0.7614 MB / 0.5945 GB, free: 0.9844 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06061/1.648, allocations: 18.22 MB / 0.6123 GB, free: 13.11 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006064/1.649, allocations: 107 kB / 0.6124 GB, free: 13.01 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003633/1.652, allocations: 371.8 kB / 0.6127 GB, free: 12.64 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004443/1.657, allocations: 1.695 MB / 0.6144 GB, free: 10.95 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.3617/2.019, allocations: 14.62 MB / 0.6286 GB, free: 65.37 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1218/2.14, allocations: 80.76 MB / 0.7075 GB, free: 18.2 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02937/2.17, allocations: 7.214 MB / 0.7146 GB, free: 15.69 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004614/2.17, allocations: 63.95 kB / 0.7146 GB, free: 15.68 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.573e-05/2.17, allocations: 70.34 kB / 0.7147 GB, free: 15.62 MB / 426.7 MB Notification: Performance of pre-optimization done (n=307): time 7.645e-06/2.17, allocations: 2.156 kB / 0.7147 GB, free: 15.62 MB / 426.7 MB Notification: Performance of matching and sorting (n=340): time 0.1289/2.299, allocations: 32.56 MB / 0.7465 GB, free: 2.371 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001128/2.3, allocations: 304.1 kB / 0.7468 GB, free: 2.055 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01562/2.315, allocations: 7.383 MB / 0.754 GB, free: 15.49 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009453/2.316, allocations: 76.98 kB / 0.7541 GB, free: 15.42 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.006263/2.323, allocations: 5.077 MB / 0.759 GB, free: 10.86 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002596/2.325, allocations: 1.281 MB / 0.7603 GB, free: 9.73 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001504/2.327, allocations: 192 kB / 0.7604 GB, free: 9.543 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0009536/2.328, allocations: 0.7138 MB / 0.7611 GB, free: 8.934 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01127/2.339, allocations: 3.693 MB / 0.7647 GB, free: 5.824 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01724/2.356, allocations: 9.315 MB / 0.7738 GB, free: 10.73 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01564/2.372, allocations: 5.724 MB / 0.7794 GB, free: 5.898 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002573/2.372, allocations: 56 kB / 0.7795 GB, free: 5.844 MB / 458.7 MB Notification: Performance of matching and sorting (n=1247) (initialization): time 0.04414/2.416, allocations: 13.65 MB / 0.7928 GB, free: 10.12 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002142/2.417, allocations: 90.81 kB / 0.7929 GB, free: 10.04 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004735/2.417, allocations: 196 kB / 0.7931 GB, free: 9.848 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006455/2.424, allocations: 1.371 MB / 0.7944 GB, free: 8.781 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01565/2.439, allocations: 2.239 MB / 0.7966 GB, free: 6.852 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4989/2.938, allocations: 11.53 MB / 0.8079 GB, free: 104.9 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01253/2.951, allocations: 0.5296 MB / 0.8084 GB, free: 104.9 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002869/2.954, allocations: 0.5641 MB / 0.8089 GB, free: 104.9 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 899 * Number of states: 0 () * Number of discrete variables: 60 (forceAndTorque.torqueColor[3],forceAndTorque.torqueColor[2],forceAndTorque.torqueColor[1],forceAndTorque.forceColor[3],forceAndTorque.forceColor[2],forceAndTorque.forceColor[1],Revolute4.cylinderColor[3],Revolute4.cylinderColor[2],Revolute4.cylinderColor[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],fixed1.color[3],fixed1.color[2],fixed1.color[1],worldTorque1.color[3],worldTorque1.color[2],worldTorque1.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],fixed2.color[3],fixed2.color[2],fixed2.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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1172): * Single equations (assignments): 1166 * 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%) 14,(2,100.0%) 23} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01192/2.966, allocations: 3.582 MB / 0.8124 GB, free: 104.8 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002017/2.968, allocations: 0.6473 MB / 0.8131 GB, free: 104.8 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02239/2.99, allocations: 6.657 MB / 0.8196 GB, free: 104.6 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000106/2.99, allocations: 36.56 kB / 0.8196 GB, free: 104.6 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.158e-05/2.99, allocations: 9.094 kB / 0.8196 GB, free: 104.6 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001025/2.991, allocations: 15.86 kB / 0.8196 GB, free: 104.6 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04559/3.036, allocations: 15.45 MB / 0.8347 GB, free: 103.8 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.828e-05/3.036, allocations: 3.938 kB / 0.8347 GB, free: 103.8 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005956/3.042, allocations: 0.5785 MB / 0.8353 GB, free: 103.8 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004809/3.047, allocations: 1.042 MB / 0.8363 GB, free: 103.8 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006721/3.048, allocations: 57.05 kB / 0.8364 GB, free: 103.8 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01862/3.066, allocations: 10.52 MB / 0.8466 GB, free: 99.52 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.095e-06/3.066, allocations: 0 / 0.8466 GB, free: 99.52 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0268/3.093, allocations: 11.03 MB / 0.8574 GB, free: 95.32 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004761/3.098, allocations: 1.214 MB / 0.8586 GB, free: 94.87 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002528/3.101, allocations: 55.78 kB / 0.8586 GB, free: 94.83 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006269/3.107, allocations: 202 kB / 0.8588 GB, free: 94.79 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001188/3.108, allocations: 201.5 kB / 0.859 GB, free: 94.77 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003667/3.109, allocations: 87.06 kB / 0.8591 GB, free: 94.75 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.01209/3.121, allocations: 4.696 MB / 0.8637 GB, free: 93.2 MB / 474.7 MB Notification: Performance of sort global known variables: time 5.11e-07/3.121, allocations: 0 / 0.8637 GB, free: 93.2 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01242/3.133, allocations: 1.789 MB / 0.8654 GB, free: 93 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 8 (Revolute3.phi,Revolute3.w,Revolute4.phi,Revolute4.w,Revolute2.phi,Revolute2.w,Revolute1.phi,Revolute1.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 (286): * Single equations (assignments): 280 * 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 {(4,75.0%) 18,(1,100.0%) 11,(1,100.0%) 10} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001249/3.134, allocations: 209.5 kB / 0.8656 GB, free: 92.88 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.02161/3.156, allocations: 9.254 MB / 0.8747 GB, free: 89.97 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 9.037e-06/3.156, allocations: 2.188 kB / 0.8747 GB, free: 89.97 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008999/3.165, allocations: 3.541 MB / 0.8781 GB, free: 88.52 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007081/3.172, allocations: 0.8098 MB / 0.8789 GB, free: 88.18 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04849/3.221, allocations: 20.98 MB / 0.8994 GB, free: 74.57 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01348/3.234, allocations: 5.608 MB / 0.9049 GB, free: 70.48 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003551/3.238, allocations: 0.5073 MB / 0.9054 GB, free: 70 MB / 474.7 MB Notification: Performance of SimCode: time 1.102e-06/3.238, allocations: 0 / 0.9054 GB, free: 70 MB / 474.7 MB Notification: Performance of Templates: time 0.7298/3.968, allocations: 195.1 MB / 1.096 GB, free: 30.52 MB / 474.7 MB