Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Forces.Worldtorque.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: translateModel(ModelicaTest.MultiBody.Forces.Worldtorque,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.2_cpp_ModelicaTest.MultiBody.Forces.Worldtorque") Notification: Performance of loadModel(ModelicaTest): time 2.254/2.254, allocations: 235.1 MB / 243 MB, free: 9.5 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 1.928e-05/1.923e-05, allocations: 4 kB / 303.2 MB, free: 13.2 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2713/0.2713, allocations: 54.85 MB / 358 MB, free: 14.94 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1515/0.4229, allocations: 99.01 MB / 457 MB, free: 11.78 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002467/0.4232, allocations: 71.97 kB / 457.1 MB, free: 11.71 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7088/1.132, allocations: 139.9 MB / 0.583 GB, free: 15.77 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.167e-06/1.132, allocations: 0 / 0.583 GB, free: 15.77 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0004528/1.133, allocations: 140 kB / 0.5831 GB, free: 15.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: 2470 * Number of variables: 2470 Notification: Performance of Generate backend data structure: time 0.02416/1.157, allocations: 6.833 MB / 0.5898 GB, free: 8.723 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.424e-05/1.157, allocations: 8.031 kB / 0.5898 GB, free: 8.715 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05245/1.209, allocations: 9.534 MB / 0.5991 GB, free: 15.16 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0283/1.238, allocations: 8.836 MB / 0.6077 GB, free: 6.238 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005137/1.238, allocations: 232 kB / 0.608 GB, free: 6.012 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003364/1.241, allocations: 427.8 kB / 0.6084 GB, free: 5.594 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02432/1.266, allocations: 9.42 MB / 0.6176 GB, free: 12.17 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.5861/1.852, allocations: 14.58 MB / 0.6318 GB, free: 65.05 MB / 458.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005624/1.853, allocations: 89.78 kB / 0.6319 GB, free: 65.05 MB / 458.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002665/1.855, allocations: 48.16 kB / 0.6319 GB, free: 65.05 MB / 458.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003011/1.858, allocations: 1.531 MB / 0.6334 GB, free: 65.04 MB / 458.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08773/1.946, allocations: 69.42 MB / 0.7012 GB, free: 24.92 MB / 458.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007146/1.953, allocations: 4.63 MB / 0.7058 GB, free: 24.23 MB / 458.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004674/1.958, allocations: 3.003 MB / 0.7087 GB, free: 23.8 MB / 458.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001996/1.958, allocations: 49.89 kB / 0.7087 GB, free: 23.79 MB / 458.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.331e-05/1.958, allocations: 62.81 kB / 0.7088 GB, free: 23.73 MB / 458.8 MB Notification: Performance of pre-optimization done (n=249): time 7.488e-06/1.958, allocations: 0 / 0.7088 GB, free: 23.73 MB / 458.8 MB Notification: Performance of matching and sorting (n=268): time 0.06195/2.02, allocations: 24.42 MB / 0.7326 GB, free: 13.39 MB / 458.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.784e-05/2.02, allocations: 268.1 kB / 0.7329 GB, free: 13.1 MB / 458.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01002/2.03, allocations: 4.909 MB / 0.7377 GB, free: 11.33 MB / 458.8 MB Notification: Performance of collectPreVariables (initialization): time 0.00052/2.031, allocations: 25.7 kB / 0.7377 GB, free: 11.3 MB / 458.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.00341/2.034, allocations: 4.984 MB / 0.7426 GB, free: 7.457 MB / 458.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001274/2.036, allocations: 1.005 MB / 0.7436 GB, free: 6.719 MB / 458.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007897/2.037, allocations: 0 / 0.7436 GB, free: 6.719 MB / 458.8 MB Notification: Performance of setup shared object (initialization): time 0.0006482/2.037, allocations: 0.6877 MB / 0.7442 GB, free: 6.242 MB / 458.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005567/2.043, allocations: 2.788 MB / 0.747 GB, free: 5.246 MB / 458.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009892/2.053, allocations: 8.238 MB / 0.755 GB, free: 12.86 MB / 474.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009116/2.062, allocations: 4.735 MB / 0.7596 GB, free: 11.32 MB / 474.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000151/2.062, allocations: 54.66 kB / 0.7597 GB, free: 11.32 MB / 474.8 MB Notification: Performance of matching and sorting (n=1165) (initialization): time 0.02494/2.087, allocations: 10.22 MB / 0.7697 GB, free: 6.484 MB / 474.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001725/2.087, allocations: 88 kB / 0.7697 GB, free: 6.398 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002937/2.088, allocations: 196 kB / 0.7699 GB, free: 6.207 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002781/2.09, allocations: 0.8408 MB / 0.7708 GB, free: 5.496 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008992/2.099, allocations: 2.067 MB / 0.7728 GB, free: 3.691 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01315/2.113, allocations: 8.216 MB / 0.7808 GB, free: 11.95 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008645/2.121, allocations: 311.7 kB / 0.7811 GB, free: 11.69 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001933/2.123, allocations: 0.5325 MB / 0.7816 GB, free: 11.16 MB / 490.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 891 * Number of states: 0 () * Number of discrete variables: 54 (worldTorque3.color[3],worldTorque3.color[2],worldTorque3.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],worldTorque2.color[3],worldTorque2.color[2],worldTorque2.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],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],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 (1099): * Single equations (assignments): 1093 * 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%) 14,(1,100.0%) 14,(1,100.0%) 14} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002452/2.126, allocations: 0.5902 MB / 0.7822 GB, free: 10.57 MB / 490.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001402/2.127, allocations: 0.524 MB / 0.7827 GB, free: 10.05 MB / 490.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01033/2.138, allocations: 4.206 MB / 0.7868 GB, free: 6.559 MB / 490.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.355e-05/2.138, allocations: 31.94 kB / 0.7868 GB, free: 6.527 MB / 490.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.318e-05/2.138, allocations: 15.73 kB / 0.7869 GB, free: 6.52 MB / 490.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.453e-05/2.138, allocations: 10.5 kB / 0.7869 GB, free: 6.52 MB / 490.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02844/2.166, allocations: 10.3 MB / 0.7969 GB, free: 14.17 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.942e-05/2.166, allocations: 7.188 kB / 0.7969 GB, free: 14.17 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003096/2.169, allocations: 443 kB / 0.7974 GB, free: 13.82 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002192/2.172, allocations: 0.522 MB / 0.7979 GB, free: 13.42 MB / 0.4949 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004921/2.172, allocations: 12 kB / 0.7979 GB, free: 13.41 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01146/2.184, allocations: 7.263 MB / 0.805 GB, free: 6.441 MB / 0.4949 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.095e-05/2.184, allocations: 7.312 kB / 0.805 GB, free: 6.438 MB / 0.4949 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3156/2.499, allocations: 7.757 MB / 0.8126 GB, free: 106.6 MB / 0.4949 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003195/2.502, allocations: 0.8918 MB / 0.8134 GB, free: 106.5 MB / 0.4949 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001374/2.504, allocations: 3.828 kB / 0.8134 GB, free: 106.5 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003626/2.508, allocations: 109 kB / 0.8135 GB, free: 106.5 MB / 0.4949 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007774/2.508, allocations: 167.6 kB / 0.8137 GB, free: 106.5 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000301/2.509, allocations: 67.59 kB / 0.8138 GB, free: 106.5 MB / 0.4949 GB Notification: Performance of sorting global known variables: time 0.008712/2.517, allocations: 3.325 MB / 0.817 GB, free: 106.3 MB / 0.4949 GB Notification: Performance of sort global known variables: time 1.07e-06/2.517, allocations: 0 / 0.817 GB, free: 106.3 MB / 0.4949 GB Notification: Performance of remove unused functions: time 0.01037/2.528, allocations: 1.346 MB / 0.8183 GB, free: 106.3 MB / 0.4949 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 6 (Revolute3.phi,Revolute3.w,Revolute2.phi,Revolute2.w,Revolute1.phi,Revolute1.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (220): * Single equations (assignments): 214 * 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%) 11,(1,100.0%) 11,(1,100.0%) 11} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007529/2.529, allocations: 153.9 kB / 0.8185 GB, free: 106.2 MB / 0.4949 GB Notification: Performance of simCode: created initialization part: time 0.01302/2.542, allocations: 7.005 MB / 0.8253 GB, free: 105.9 MB / 0.4949 GB Notification: Performance of simCode: created event and clocks part: time 8.678e-06/2.542, allocations: 5.25 kB / 0.8253 GB, free: 105.9 MB / 0.4949 GB Notification: Performance of simCode: created simulation system equations: time 0.004168/2.546, allocations: 2.405 MB / 0.8277 GB, free: 105.6 MB / 0.4949 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004233/2.55, allocations: 0.5999 MB / 0.8282 GB, free: 105.5 MB / 0.4949 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03014/2.58, allocations: 12.96 MB / 0.8409 GB, free: 103.1 MB / 0.4949 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01064/2.591, allocations: 5.216 MB / 0.846 GB, free: 102.2 MB / 0.4949 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002165/2.593, allocations: 425.7 kB / 0.8464 GB, free: 102.2 MB / 0.4949 GB Notification: Performance of SimCode: time 1.939e-06/2.593, allocations: 0 / 0.8464 GB, free: 102.2 MB / 0.4949 GB Notification: Performance of Templates: time 0.5281/3.121, allocations: 172.2 MB / 1.015 GB, free: 127.3 MB / 0.5105 GB