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/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.924/1.924, allocations: 209.4 MB / 217.3 MB, free: 4.168 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.141e-05/2.151e-05, allocations: 4 kB / 271.3 MB, free: 14.12 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2658/0.2659, allocations: 48.69 MB / 320 MB, free: 14.38 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1384/0.4044, allocations: 92.03 MB / 412 MB, free: 4.379 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002152/0.4046, allocations: 75.95 kB / 412.1 MB, free: 4.305 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6861/1.091, allocations: 134 MB / 0.5333 GB, free: 26.46 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.96e-06/1.091, allocations: 0 / 0.5333 GB, free: 26.46 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0003873/1.091, allocations: 136 kB / 0.5335 GB, free: 26.33 MB / 378.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.0198/1.111, allocations: 6.628 MB / 0.5399 GB, free: 19.63 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.042e-05/1.111, allocations: 8.031 kB / 0.5399 GB, free: 19.62 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04641/1.157, allocations: 9.499 MB / 0.5492 GB, free: 10.1 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0236/1.181, allocations: 8.714 MB / 0.5577 GB, free: 1.301 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003975/1.182, allocations: 220 kB / 0.5579 GB, free: 1.086 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002663/1.184, allocations: 411.8 kB / 0.5583 GB, free: 0.6836 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0222/1.206, allocations: 9.052 MB / 0.5672 GB, free: 7.621 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03626/1.243, allocations: 14.06 MB / 0.5809 GB, free: 8.105 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004425/1.243, allocations: 91.17 kB / 0.581 GB, free: 8.016 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002236/1.246, allocations: 44 kB / 0.581 GB, free: 7.973 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002945/1.248, allocations: 1.467 MB / 0.5825 GB, free: 6.508 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5911/1.84, allocations: 67.55 MB / 0.6484 GB, free: 27.79 MB / 410.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007108/1.847, allocations: 4.616 MB / 0.6529 GB, free: 27.1 MB / 410.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00481/1.852, allocations: 2.967 MB / 0.6558 GB, free: 27.05 MB / 410.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001863/1.852, allocations: 52.41 kB / 0.6559 GB, free: 27.05 MB / 410.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.375e-05/1.852, allocations: 61.75 kB / 0.6559 GB, free: 27.01 MB / 410.8 MB Notification: Performance of pre-optimization done (n=242): time 7.092e-06/1.852, allocations: 6.188 kB / 0.656 GB, free: 27.01 MB / 410.8 MB Notification: Performance of matching and sorting (n=263): time 0.06432/1.916, allocations: 25.58 MB / 0.6809 GB, free: 16.57 MB / 410.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.225e-05/1.916, allocations: 265.2 kB / 0.6812 GB, free: 16.29 MB / 410.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01071/1.927, allocations: 4.798 MB / 0.6859 GB, free: 14.59 MB / 410.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0004932/1.928, allocations: 29.05 kB / 0.6859 GB, free: 14.56 MB / 410.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.003454/1.931, allocations: 4.79 MB / 0.6906 GB, free: 11 MB / 410.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001258/1.932, allocations: 0.9859 MB / 0.6915 GB, free: 10.27 MB / 410.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008562/1.933, allocations: 3.5 kB / 0.6915 GB, free: 10.27 MB / 410.8 MB Notification: Performance of setup shared object (initialization): time 0.0006647/1.934, allocations: 0.6815 MB / 0.6922 GB, free: 9.797 MB / 410.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005527/1.94, allocations: 2.693 MB / 0.6948 GB, free: 8.832 MB / 410.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008791/1.948, allocations: 7.974 MB / 0.7026 GB, free: 15.52 MB / 426.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009657/1.958, allocations: 4.604 MB / 0.7071 GB, free: 11.91 MB / 426.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002094/1.958, allocations: 56 kB / 0.7072 GB, free: 11.86 MB / 426.8 MB Notification: Performance of matching and sorting (n=1132) (initialization): time 0.02577/1.984, allocations: 9.905 MB / 0.7169 GB, free: 3.285 MB / 426.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001741/1.984, allocations: 87.38 kB / 0.7169 GB, free: 3.203 MB / 426.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000295/1.985, allocations: 195.9 kB / 0.7171 GB, free: 3.012 MB / 426.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002719/1.987, allocations: 0.8012 MB / 0.7179 GB, free: 2.336 MB / 426.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008751/1.996, allocations: 1.997 MB / 0.7199 GB, free: 0.5898 MB / 426.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01588/2.012, allocations: 8.025 MB / 0.7277 GB, free: 9.008 MB / 442.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008761/2.021, allocations: 301.4 kB / 0.728 GB, free: 8.754 MB / 442.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001972/2.023, allocations: 0.5236 MB / 0.7285 GB, free: 8.242 MB / 442.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 861 * 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 (1069): * Single equations (assignments): 1063 * 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.00248/2.025, allocations: 0.5715 MB / 0.7291 GB, free: 7.676 MB / 442.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00141/2.027, allocations: 0.5052 MB / 0.7295 GB, free: 7.164 MB / 442.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01064/2.038, allocations: 4.067 MB / 0.7335 GB, free: 3.793 MB / 442.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.276e-05/2.038, allocations: 28 kB / 0.7335 GB, free: 3.766 MB / 442.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.406e-05/2.038, allocations: 7.953 kB / 0.7335 GB, free: 3.758 MB / 442.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.463e-05/2.038, allocations: 15.16 kB / 0.7336 GB, free: 3.754 MB / 442.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03042/2.068, allocations: 10.14 MB / 0.7435 GB, free: 12.04 MB / 458.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.485e-05/2.068, allocations: 0 / 0.7435 GB, free: 12.04 MB / 458.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002872/2.071, allocations: 420.8 kB / 0.7439 GB, free: 11.7 MB / 458.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002139/2.073, allocations: 0.4968 MB / 0.7444 GB, free: 11.33 MB / 458.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004997/2.074, allocations: 15.14 kB / 0.7444 GB, free: 11.32 MB / 458.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01131/2.085, allocations: 7.083 MB / 0.7513 GB, free: 4.504 MB / 458.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.468e-06/2.085, allocations: 0 / 0.7513 GB, free: 4.504 MB / 458.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3042/2.389, allocations: 8.218 MB / 0.7593 GB, free: 104.1 MB / 458.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0032/2.393, allocations: 0.8805 MB / 0.7602 GB, free: 104 MB / 458.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001532/2.394, allocations: 6.422 kB / 0.7602 GB, free: 104 MB / 458.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003791/2.398, allocations: 105.9 kB / 0.7603 GB, free: 104 MB / 458.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007823/2.399, allocations: 149 kB / 0.7604 GB, free: 104 MB / 458.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003337/2.399, allocations: 67.44 kB / 0.7605 GB, free: 104 MB / 458.8 MB Notification: Performance of sorting global known variables: time 0.008457/2.408, allocations: 3.25 MB / 0.7637 GB, free: 103.8 MB / 458.8 MB Notification: Performance of sort global known variables: time 1.358e-06/2.408, allocations: 0 / 0.7637 GB, free: 103.8 MB / 458.8 MB Notification: Performance of remove unused functions: time 0.01065/2.418, allocations: 1.301 MB / 0.7649 GB, free: 103.8 MB / 458.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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (218): * Single equations (assignments): 212 * 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.0008423/2.419, allocations: 150.9 kB / 0.7651 GB, free: 103.8 MB / 458.8 MB Notification: Performance of simCode: created initialization part: time 0.01296/2.432, allocations: 6.809 MB / 0.7717 GB, free: 103.4 MB / 458.8 MB Notification: Performance of simCode: created event and clocks part: time 8.652e-06/2.432, allocations: 0 / 0.7717 GB, free: 103.4 MB / 458.8 MB Notification: Performance of simCode: created simulation system equations: time 0.00431/2.437, allocations: 2.349 MB / 0.774 GB, free: 103.1 MB / 458.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00451/2.441, allocations: 0.6002 MB / 0.7746 GB, free: 103.1 MB / 458.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03041/2.472, allocations: 12.58 MB / 0.7869 GB, free: 100.7 MB / 458.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01155/2.483, allocations: 5.045 MB / 0.7918 GB, free: 99.88 MB / 458.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002111/2.485, allocations: 425.6 kB / 0.7922 GB, free: 99.87 MB / 458.8 MB Notification: Performance of SimCode: time 1.866e-06/2.485, allocations: 0 / 0.7922 GB, free: 99.87 MB / 458.8 MB Notification: Performance of Templates: time 0.4919/2.977, allocations: 166 MB / 0.9543 GB, free: 123.7 MB / 474.8 MB