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.866/1.866, allocations: 209.3 MB / 224.8 MB, free: 1.133 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000436/0.0004363, allocations: 11.94 kB / 282.5 MB, free: 9.762 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08656/0.08703, allocations: 48.71 MB / 331.2 MB, free: 8.953 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.WorldForces2): time 0.317/0.4041, allocations: 82.68 MB / 413.9 MB, free: 2.152 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.05016/0.4543, allocations: 18.57 MB / 432.4 MB, free: 15.54 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01909/0.4734, allocations: 407.1 kB / 432.8 MB, free: 15.14 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01365/0.4871, allocations: 4.27 MB / 437.1 MB, free: 10.85 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.04097/0.5281, allocations: 11.83 MB / 448.9 MB, free: 14.98 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005796/0.534, allocations: 1.022 MB / 450 MB, free: 13.96 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.05585/0.5899, allocations: 26.16 MB / 476.1 MB, free: 3.773 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01403/0.604, allocations: 7.355 MB / 483.5 MB, free: 12.36 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003986/0.608, allocations: 1.736 MB / 485.2 MB, free: 10.61 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004787/0.6128, allocations: 2.426 MB / 487.6 MB, free: 8.18 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001249/0.6141, allocations: 244 kB / 487.9 MB, free: 7.941 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003493/0.6176, allocations: 1.155 MB / 489 MB, free: 6.785 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.004289/0.622, allocations: 2.767 MB / 491.8 MB, free: 4.012 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002344/0.6244, allocations: 1.384 MB / 493.2 MB, free: 2.617 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.2885/0.9129, allocations: 9.388 MB / 0.4908 GB, free: 35.11 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.164e-06/0.913, allocations: 0 / 0.4908 GB, free: 35.11 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.949e-06/0.913, allocations: 0.6562 kB / 0.4908 GB, free: 35.11 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0003339/0.9133, allocations: 0 / 0.4908 GB, free: 35.11 MB / 410.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.02147/0.9348, allocations: 7.207 MB / 0.4978 GB, free: 32.18 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.502e-05/0.9349, allocations: 10.53 kB / 0.4978 GB, free: 32.18 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07638/1.011, allocations: 11.17 MB / 0.5087 GB, free: 30.44 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01454/1.026, allocations: 5.618 MB / 0.5142 GB, free: 28.8 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004057/1.026, allocations: 389.5 kB / 0.5146 GB, free: 28.79 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002205/1.029, allocations: 0.5107 MB / 0.5151 GB, free: 28.78 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03697/1.066, allocations: 15.81 MB / 0.5305 GB, free: 23.48 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002994/1.066, allocations: 69.59 kB / 0.5306 GB, free: 23.47 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001778/1.068, allocations: 247.6 kB / 0.5308 GB, free: 23.47 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004933/1.073, allocations: 2.754 MB / 0.5335 GB, free: 22.64 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03069/1.103, allocations: 12.92 MB / 0.5462 GB, free: 13.63 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09335/1.197, allocations: 59.83 MB / 0.6046 GB, free: 11.49 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01931/1.216, allocations: 5.889 MB / 0.6103 GB, free: 6.926 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002471/1.216, allocations: 50.27 kB / 0.6104 GB, free: 6.895 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.348e-05/1.216, allocations: 64.12 kB / 0.6104 GB, free: 6.844 MB / 458.7 MB Notification: Performance of pre-optimization done (n=242): time 8.072e-06/1.216, allocations: 0 / 0.6104 GB, free: 6.844 MB / 458.7 MB Notification: Performance of matching and sorting (n=260): time 0.08611/1.303, allocations: 23.45 MB / 0.6333 GB, free: 2.988 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002024/1.303, allocations: 267.6 kB / 0.6336 GB, free: 2.676 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01595/1.319, allocations: 7.317 MB / 0.6407 GB, free: 13.28 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006007/1.319, allocations: 64.08 kB / 0.6408 GB, free: 13.24 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.005064/1.325, allocations: 4.587 MB / 0.6453 GB, free: 9.75 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001693/1.326, allocations: 1.006 MB / 0.6463 GB, free: 8.914 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008676/1.327, allocations: 168.6 kB / 0.6464 GB, free: 8.879 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0007812/1.328, allocations: 0.6592 MB / 0.6471 GB, free: 8.344 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00713/1.335, allocations: 2.958 MB / 0.65 GB, free: 6.324 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01284/1.348, allocations: 8.083 MB / 0.6579 GB, free: 11.78 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01072/1.359, allocations: 4.76 MB / 0.6625 GB, free: 7.188 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001764/1.359, allocations: 56 kB / 0.6626 GB, free: 7.133 MB / 0.4948 GB Notification: Performance of matching and sorting (n=1090) (initialization): time 0.2734/1.632, allocations: 11.22 MB / 0.6735 GB, free: 199.3 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002041/1.633, allocations: 85.98 kB / 0.6736 GB, free: 199.3 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003329/1.633, allocations: 180.5 kB / 0.6738 GB, free: 199.3 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003906/1.637, allocations: 1.024 MB / 0.6748 GB, free: 199.3 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009488/1.646, allocations: 2.024 MB / 0.6767 GB, free: 199.3 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01488/1.661, allocations: 9.578 MB / 0.6861 GB, free: 194.7 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008973/1.67, allocations: 474.6 kB / 0.6866 GB, free: 194.6 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001855/1.672, allocations: 0.4975 MB / 0.687 GB, free: 194.5 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 822 * 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 (1027): * Single equations (assignments): 1021 * 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.007945/1.68, allocations: 3.204 MB / 0.6902 GB, free: 193.3 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001356/1.682, allocations: 0.5903 MB / 0.6907 GB, free: 193.3 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01138/1.693, allocations: 4.692 MB / 0.6953 GB, free: 191.6 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.367e-05/1.693, allocations: 26.59 kB / 0.6954 GB, free: 191.6 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.081e-05/1.693, allocations: 7.531 kB / 0.6954 GB, free: 191.6 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.875e-05/1.693, allocations: 13.73 kB / 0.6954 GB, free: 191.6 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02907/1.722, allocations: 11.84 MB / 0.7069 GB, free: 187.3 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.411e-05/1.722, allocations: 3.953 kB / 0.7069 GB, free: 187.3 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003632/1.726, allocations: 0.51 MB / 0.7074 GB, free: 187.3 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002953/1.729, allocations: 0.7222 MB / 0.7081 GB, free: 187.1 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005259/1.73, allocations: 41.5 kB / 0.7082 GB, free: 187.1 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01202/1.742, allocations: 8.65 MB / 0.7166 GB, free: 180.7 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.983e-06/1.742, allocations: 4.031 kB / 0.7166 GB, free: 180.7 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01484/1.756, allocations: 8.054 MB / 0.7245 GB, free: 174 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003334/1.76, allocations: 1.038 MB / 0.7255 GB, free: 173.1 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001647/1.761, allocations: 44 kB / 0.7256 GB, free: 173.1 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003802/1.765, allocations: 153.5 kB / 0.7257 GB, free: 173 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006986/1.766, allocations: 159 kB / 0.7259 GB, free: 172.9 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002847/1.766, allocations: 64.78 kB / 0.7259 GB, free: 172.8 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.00982/1.776, allocations: 4.734 MB / 0.7305 GB, free: 168.4 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.278e-06/1.776, allocations: 0 / 0.7305 GB, free: 168.4 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01004/1.786, allocations: 1.559 MB / 0.7321 GB, free: 166.8 MB / 0.4948 GB 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.0008892/1.787, allocations: 199.1 kB / 0.7322 GB, free: 166.7 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01383/1.801, allocations: 7.442 MB / 0.7395 GB, free: 159.5 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 7.414e-06/1.801, allocations: 0 / 0.7395 GB, free: 159.5 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.004445/1.806, allocations: 2.533 MB / 0.742 GB, free: 157 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004799/1.81, allocations: 0.7589 MB / 0.7427 GB, free: 156.2 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0325/1.843, allocations: 18 MB / 0.7603 GB, free: 138.3 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008748/1.852, allocations: 5.028 MB / 0.7652 GB, free: 133.2 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002164/1.854, allocations: 463.4 kB / 0.7657 GB, free: 132.8 MB / 0.4948 GB Notification: Performance of SimCode: time 1.816e-06/1.854, allocations: 0 / 0.7657 GB, free: 132.8 MB / 0.4948 GB Notification: Performance of Templates: time 0.5545/2.408, allocations: 172.4 MB / 0.934 GB, free: 168.2 MB / 0.4948 GB