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.WorldForces2.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.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.1_cpp_ModelicaTest.MultiBody.Forces.WorldForces2") Notification: Performance of loadModel(ModelicaTest): time 1.805/1.805, allocations: 209.3 MB / 222.4 MB, free: 7.723 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.074e-05/3.099e-05, allocations: 4 kB / 277.8 MB, free: 15.32 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08761/0.08767, allocations: 48.7 MB / 326.5 MB, free: 14.52 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3605/0.4483, allocations: 92.69 MB / 419.2 MB, free: 15.17 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002419/0.4486, allocations: 69.47 kB / 419.3 MB, free: 15.14 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7695/1.218, allocations: 136.9 MB / 0.5432 GB, free: 73.63 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.458e-06/1.218, allocations: 0 / 0.5432 GB, free: 73.63 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0004791/1.219, allocations: 134.9 kB / 0.5433 GB, free: 73.63 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: 2364 * Number of variables: 2364 Notification: Performance of Generate backend data structure: time 0.02292/1.242, allocations: 6.632 MB / 0.5498 GB, free: 71.02 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.576e-05/1.242, allocations: 7.656 kB / 0.5498 GB, free: 71.02 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0496/1.291, allocations: 9.502 MB / 0.5591 GB, free: 70.55 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02639/1.318, allocations: 8.722 MB / 0.5676 GB, free: 69.64 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006348/1.318, allocations: 0.504 MB / 0.5681 GB, free: 69.62 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003129/1.322, allocations: 0.6785 MB / 0.5688 GB, free: 69.62 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.041/1.363, allocations: 15.97 MB / 0.5844 GB, free: 65.64 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004536/1.363, allocations: 91.64 kB / 0.5844 GB, free: 65.64 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002824/1.366, allocations: 331 kB / 0.5848 GB, free: 65.64 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002745/1.369, allocations: 1.458 MB / 0.5862 GB, free: 65.62 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03312/1.402, allocations: 12.65 MB / 0.5985 GB, free: 63.21 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08769/1.49, allocations: 70.67 MB / 0.6676 GB, free: 2.551 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01958/1.509, allocations: 5.861 MB / 0.6733 GB, free: 13.65 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006035/1.515, allocations: 3.043 MB / 0.6762 GB, free: 10.86 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002493/1.516, allocations: 48.8 kB / 0.6763 GB, free: 10.82 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.492e-05/1.516, allocations: 63.86 kB / 0.6764 GB, free: 10.76 MB / 442.7 MB Notification: Performance of pre-optimization done (n=242): time 7.965e-06/1.516, allocations: 0 / 0.6764 GB, free: 10.76 MB / 442.7 MB Notification: Performance of matching and sorting (n=260): time 0.333/1.849, allocations: 18.98 MB / 0.6949 GB, free: 80.1 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.63e-05/1.849, allocations: 259.3 kB / 0.6951 GB, free: 79.82 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01506/1.864, allocations: 6.085 MB / 0.7011 GB, free: 79.31 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004989/1.864, allocations: 67.17 kB / 0.7011 GB, free: 79.28 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003896/1.868, allocations: 4.605 MB / 0.7056 GB, free: 77.27 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001426/1.87, allocations: 1.003 MB / 0.7066 GB, free: 76.82 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001034/1.871, allocations: 171.3 kB / 0.7068 GB, free: 76.82 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.001026/1.872, allocations: 0.668 MB / 0.7074 GB, free: 76.49 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007035/1.879, allocations: 2.784 MB / 0.7101 GB, free: 76.47 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009561/1.889, allocations: 7.912 MB / 0.7179 GB, free: 69.85 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009494/1.898, allocations: 4.658 MB / 0.7224 GB, free: 69.82 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001923/1.898, allocations: 50.28 kB / 0.7225 GB, free: 69.82 MB / 442.7 MB Notification: Performance of matching and sorting (n=1096) (initialization): time 0.02512/1.923, allocations: 10.79 MB / 0.733 GB, free: 69.07 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001743/1.924, allocations: 84.53 kB / 0.7331 GB, free: 69.07 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002497/1.924, allocations: 183 kB / 0.7333 GB, free: 69.07 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002831/1.927, allocations: 0.8007 MB / 0.734 GB, free: 69.04 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008651/1.936, allocations: 1.928 MB / 0.7359 GB, free: 68.87 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01185/1.947, allocations: 8.31 MB / 0.744 GB, free: 64.71 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01021/1.958, allocations: 454 kB / 0.7445 GB, free: 64.68 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001777/1.959, allocations: 0.5065 MB / 0.745 GB, free: 64.61 MB / 442.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.002381/1.962, allocations: 0.761 MB / 0.7457 GB, free: 64 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001434/1.963, allocations: 0.5836 MB / 0.7463 GB, free: 63.68 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01045/1.974, allocations: 4.272 MB / 0.7505 GB, free: 62.06 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.276e-05/1.974, allocations: 26.72 kB / 0.7505 GB, free: 62.06 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.445e-05/1.974, allocations: 12.47 kB / 0.7505 GB, free: 62.06 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.003e-05/1.974, allocations: 13.45 kB / 0.7505 GB, free: 62.06 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03039/2.004, allocations: 11.16 MB / 0.7614 GB, free: 57.96 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.905e-05/2.005, allocations: 3.562 kB / 0.7614 GB, free: 57.96 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003148/2.008, allocations: 407 kB / 0.7618 GB, free: 57.93 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00222/2.01, allocations: 0.4982 MB / 0.7623 GB, free: 57.8 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005148/2.01, allocations: 48.19 kB / 0.7623 GB, free: 57.77 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0103/2.021, allocations: 7.388 MB / 0.7695 GB, free: 52.31 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.562e-06/2.021, allocations: 3.812 kB / 0.7695 GB, free: 52.31 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01483/2.036, allocations: 7.611 MB / 0.777 GB, free: 48.95 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003548/2.039, allocations: 1.001 MB / 0.778 GB, free: 48.35 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00199/2.041, allocations: 43.19 kB / 0.778 GB, free: 48.32 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004296/2.046, allocations: 140.6 kB / 0.7781 GB, free: 48.29 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007462/2.046, allocations: 150.8 kB / 0.7783 GB, free: 48.27 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003409/2.047, allocations: 69.67 kB / 0.7783 GB, free: 48.25 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.01079/2.058, allocations: 4.331 MB / 0.7826 GB, free: 46.77 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.345e-06/2.058, allocations: 0 / 0.7826 GB, free: 46.77 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.0108/2.068, allocations: 1.513 MB / 0.784 GB, free: 46.6 MB / 442.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.0008185/2.069, allocations: 194.9 kB / 0.7842 GB, free: 46.46 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.01401/2.083, allocations: 7.122 MB / 0.7912 GB, free: 42.17 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 9.079e-06/2.083, allocations: 0 / 0.7912 GB, free: 42.17 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004446/2.088, allocations: 2.4 MB / 0.7935 GB, free: 39.95 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00535/2.093, allocations: 0.7616 MB / 0.7943 GB, free: 39.31 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03203/2.125, allocations: 12.77 MB / 0.8067 GB, free: 27.98 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01138/2.137, allocations: 5.031 MB / 0.8117 GB, free: 24.29 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00215/2.139, allocations: 451.4 kB / 0.8121 GB, free: 23.87 MB / 442.7 MB Notification: Performance of SimCode: time 1.89e-06/2.139, allocations: 0 / 0.8121 GB, free: 23.87 MB / 442.7 MB Notification: Performance of Templates: time 0.5203/2.659, allocations: 171.2 MB / 0.9792 GB, free: 12.3 MB / 458.7 MB