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.WorldForces2.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.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.94/1.94, allocations: 209.3 MB / 225.4 MB, free: 0.6133 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004555/0.0004555, allocations: 15.98 kB / 283.1 MB, free: 9.695 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.371/0.3714, allocations: 48.7 MB / 331.8 MB, free: 6.512 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.176/0.5475, allocations: 92.78 MB / 424.6 MB, free: 1.637 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002705/0.5478, allocations: 83.95 kB / 424.7 MB, free: 1.555 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8127/1.361, allocations: 138 MB / 0.5495 GB, free: 47 MB / 394.7 MB Notification: Performance of FrontEnd: time 4.218e-06/1.361, allocations: 4 kB / 0.5495 GB, free: 47 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0005855/1.361, allocations: 132 kB / 0.5496 GB, free: 46.87 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: 2364 * Number of variables: 2364 Notification: Performance of Generate backend data structure: time 0.02998/1.391, allocations: 7.256 MB / 0.5567 GB, free: 39.53 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.298e-05/1.391, allocations: 12.02 kB / 0.5567 GB, free: 39.52 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0673/1.459, allocations: 9.484 MB / 0.5659 GB, free: 30.01 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03032/1.489, allocations: 8.764 MB / 0.5745 GB, free: 21.16 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006597/1.49, allocations: 0.5054 MB / 0.575 GB, free: 20.66 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003731/1.493, allocations: 0.6754 MB / 0.5757 GB, free: 19.98 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04729/1.541, allocations: 16.15 MB / 0.5914 GB, free: 2.359 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005969/1.541, allocations: 99.11 kB / 0.5915 GB, free: 2.262 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003257/1.545, allocations: 331.8 kB / 0.5918 GB, free: 1.938 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003202/1.548, allocations: 1.456 MB / 0.5933 GB, free: 488 kB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04459/1.593, allocations: 12.85 MB / 0.6058 GB, free: 3.602 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.8453/2.438, allocations: 70.66 MB / 0.6748 GB, free: 29.33 MB / 426.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02442/2.462, allocations: 5.904 MB / 0.6806 GB, free: 28.63 MB / 426.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003593/2.463, allocations: 42.89 kB / 0.6806 GB, free: 28.63 MB / 426.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.421e-05/2.463, allocations: 60.94 kB / 0.6807 GB, free: 28.59 MB / 426.8 MB Notification: Performance of pre-optimization done (n=242): time 6.302e-06/2.463, allocations: 0 / 0.6807 GB, free: 28.59 MB / 426.8 MB Notification: Performance of matching and sorting (n=260): time 0.09709/2.56, allocations: 23.09 MB / 0.7032 GB, free: 22.79 MB / 426.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001083/2.56, allocations: 261.1 kB / 0.7035 GB, free: 22.51 MB / 426.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01543/2.576, allocations: 6.902 MB / 0.7102 GB, free: 21.99 MB / 426.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0006501/2.576, allocations: 64.42 kB / 0.7103 GB, free: 21.96 MB / 426.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.004264/2.581, allocations: 4.604 MB / 0.7148 GB, free: 19.49 MB / 426.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001631/2.582, allocations: 1.004 MB / 0.7158 GB, free: 18.83 MB / 426.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001013/2.583, allocations: 170.4 kB / 0.7159 GB, free: 18.7 MB / 426.8 MB Notification: Performance of setup shared object (initialization): time 0.0005036/2.584, allocations: 0.6633 MB / 0.7166 GB, free: 18.23 MB / 426.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007421/2.591, allocations: 2.866 MB / 0.7194 GB, free: 17.29 MB / 426.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01075/2.602, allocations: 8.022 MB / 0.7272 GB, free: 9.453 MB / 426.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01101/2.613, allocations: 4.685 MB / 0.7318 GB, free: 7.875 MB / 426.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002128/2.613, allocations: 51.19 kB / 0.7318 GB, free: 7.875 MB / 426.8 MB Notification: Performance of matching and sorting (n=1096) (initialization): time 0.02943/2.643, allocations: 10.95 MB / 0.7425 GB, free: 4.133 MB / 426.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001328/2.643, allocations: 83.25 kB / 0.7426 GB, free: 4.133 MB / 426.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002631/2.643, allocations: 185.5 kB / 0.7428 GB, free: 4.129 MB / 426.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003097/2.646, allocations: 0.8053 MB / 0.7436 GB, free: 3.98 MB / 426.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0116/2.658, allocations: 1.924 MB / 0.7454 GB, free: 3.742 MB / 426.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0148/2.673, allocations: 8.468 MB / 0.7537 GB, free: 12.72 MB / 442.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01037/2.683, allocations: 449 kB / 0.7541 GB, free: 12.32 MB / 442.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002193/2.686, allocations: 0.5085 MB / 0.7546 GB, free: 11.83 MB / 442.8 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 () * Number of clocked 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.01058/2.696, allocations: 3.208 MB / 0.7578 GB, free: 9.008 MB / 442.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001959/2.698, allocations: 0.5862 MB / 0.7583 GB, free: 8.414 MB / 442.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01533/2.713, allocations: 4.334 MB / 0.7626 GB, free: 4.797 MB / 442.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.502e-05/2.714, allocations: 28 kB / 0.7626 GB, free: 4.77 MB / 442.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.945e-05/2.714, allocations: 8 kB / 0.7626 GB, free: 4.762 MB / 442.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.391e-05/2.714, allocations: 11.2 kB / 0.7626 GB, free: 4.762 MB / 442.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04801/2.762, allocations: 11.27 MB / 0.7736 GB, free: 11.72 MB / 458.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.034e-05/2.762, allocations: 3.688 kB / 0.7736 GB, free: 11.72 MB / 458.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005608/2.767, allocations: 415 kB / 0.774 GB, free: 11.39 MB / 458.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003576/2.771, allocations: 0.505 MB / 0.7745 GB, free: 11.01 MB / 458.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007205/2.772, allocations: 49.8 kB / 0.7746 GB, free: 10.96 MB / 458.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01865/2.791, allocations: 7.529 MB / 0.7819 GB, free: 3.727 MB / 458.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.524e-06/2.791, allocations: 4.031 kB / 0.7819 GB, free: 3.723 MB / 458.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0264/2.817, allocations: 7.696 MB / 0.7894 GB, free: 13.3 MB / 474.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004225/2.821, allocations: 0.995 MB / 0.7904 GB, free: 12.37 MB / 474.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002021/2.823, allocations: 44 kB / 0.7904 GB, free: 12.33 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004576/2.828, allocations: 149 kB / 0.7906 GB, free: 12.23 MB / 474.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006897/2.829, allocations: 147.3 kB / 0.7907 GB, free: 12.13 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000331/2.829, allocations: 71.23 kB / 0.7908 GB, free: 12.07 MB / 474.8 MB Notification: Performance of sorting global known variables: time 0.01269/2.842, allocations: 4.395 MB / 0.7951 GB, free: 8.469 MB / 474.8 MB Notification: Performance of sort global known variables: time 5.21e-07/2.842, allocations: 0 / 0.7951 GB, free: 8.469 MB / 474.8 MB Notification: Performance of remove unused functions: time 0.01212/2.854, allocations: 1.516 MB / 0.7966 GB, free: 6.961 MB / 474.8 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 () * Number of clocked 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.001047/2.855, allocations: 186.8 kB / 0.7967 GB, free: 6.781 MB / 474.8 MB Notification: Performance of simCode: created initialization part: time 0.01979/2.875, allocations: 7.245 MB / 0.8038 GB, free: 396 kB / 474.8 MB Notification: Performance of simCode: created event and clocks part: time 8.516e-06/2.875, allocations: 0 / 0.8038 GB, free: 396 kB / 474.8 MB Notification: Performance of simCode: created simulation system equations: time 0.3514/3.226, allocations: 2.721 MB / 0.8065 GB, free: 118.9 MB / 474.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007134/3.233, allocations: 0.7498 MB / 0.8072 GB, free: 118.9 MB / 474.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05006/3.284, allocations: 17.9 MB / 0.8247 GB, free: 112.4 MB / 474.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0137/3.297, allocations: 5.031 MB / 0.8296 GB, free: 111.5 MB / 474.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002848/3.3, allocations: 451.5 kB / 0.83 GB, free: 111.5 MB / 474.8 MB Notification: Performance of SimCode: time 1.813e-06/3.3, allocations: 3.562 kB / 0.83 GB, free: 111.5 MB / 474.8 MB Notification: Performance of Templates: time 0.6648/3.965, allocations: 171.2 MB / 0.9972 GB, free: 114 MB / 474.8 MB