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.Worldtorque.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.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.1_cpp_ModelicaTest.MultiBody.Forces.Worldtorque") Notification: Performance of loadModel(ModelicaTest): time 2.014/2.014, allocations: 209.4 MB / 217.3 MB, free: 4.156 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 1.696e-05/1.708e-05, allocations: 4 kB / 271.3 MB, free: 14.12 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2647/0.2648, allocations: 48.7 MB / 320 MB, free: 14.38 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1418/0.4066, allocations: 92.21 MB / 412.2 MB, free: 4.191 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000241/0.4069, allocations: 71.97 kB / 412.3 MB, free: 4.121 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6993/1.106, allocations: 139.8 MB / 0.5391 GB, free: 20.42 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.624e-06/1.106, allocations: 0 / 0.5391 GB, free: 20.42 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0003896/1.107, allocations: 140 kB / 0.5393 GB, free: 20.29 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: 2467 * Number of variables: 2467 Notification: Performance of Generate backend data structure: time 0.01993/1.127, allocations: 6.837 MB / 0.5459 GB, free: 13.38 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.931e-05/1.127, allocations: 12.03 kB / 0.546 GB, free: 13.36 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04687/1.174, allocations: 9.538 MB / 0.5553 GB, free: 3.801 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02503/1.199, allocations: 8.828 MB / 0.5639 GB, free: 10.89 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004473/1.199, allocations: 228 kB / 0.5641 GB, free: 10.66 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002641/1.202, allocations: 427.8 kB / 0.5645 GB, free: 10.25 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02313/1.225, allocations: 9.412 MB / 0.5737 GB, free: 0.8281 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03641/1.261, allocations: 14.57 MB / 0.5879 GB, free: 0.7852 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004011/1.262, allocations: 99.11 kB / 0.588 GB, free: 0.6875 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001987/1.264, allocations: 48 kB / 0.5881 GB, free: 0.6406 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.2543/1.518, allocations: 1.52 MB / 0.5896 GB, free: 65.44 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08546/1.604, allocations: 69.39 MB / 0.6573 GB, free: 25.33 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006984/1.611, allocations: 4.634 MB / 0.6618 GB, free: 24.2 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004787/1.615, allocations: 3.006 MB / 0.6648 GB, free: 22.89 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002111/1.616, allocations: 54.34 kB / 0.6648 GB, free: 22.88 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.411e-05/1.616, allocations: 59.56 kB / 0.6649 GB, free: 22.82 MB / 410.7 MB Notification: Performance of pre-optimization done (n=249): time 7.734e-06/1.616, allocations: 3.438 kB / 0.6649 GB, free: 22.82 MB / 410.7 MB Notification: Performance of matching and sorting (n=268): time 0.06234/1.678, allocations: 24.43 MB / 0.6888 GB, free: 12.47 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.866e-05/1.678, allocations: 255.3 kB / 0.689 GB, free: 12.19 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01062/1.689, allocations: 4.929 MB / 0.6938 GB, free: 10.36 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005318/1.69, allocations: 25.7 kB / 0.6938 GB, free: 10.32 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003609/1.693, allocations: 4.986 MB / 0.6987 GB, free: 6.348 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001311/1.695, allocations: 0.9996 MB / 0.6997 GB, free: 5.613 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007685/1.695, allocations: 0 / 0.6997 GB, free: 5.613 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0005976/1.696, allocations: 0.6904 MB / 0.7004 GB, free: 5.137 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005903/1.702, allocations: 2.781 MB / 0.7031 GB, free: 3.809 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01056/1.712, allocations: 8.233 MB / 0.7111 GB, free: 9.527 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009984/1.722, allocations: 4.737 MB / 0.7157 GB, free: 5.762 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002032/1.723, allocations: 56 kB / 0.7158 GB, free: 5.707 MB / 426.7 MB Notification: Performance of matching and sorting (n=1165) (initialization): time 0.02719/1.75, allocations: 10.23 MB / 0.7258 GB, free: 12.78 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001767/1.75, allocations: 88 kB / 0.7259 GB, free: 12.69 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003078/1.75, allocations: 199 kB / 0.7261 GB, free: 12.5 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002846/1.753, allocations: 0.8324 MB / 0.7269 GB, free: 11.8 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009009/1.762, allocations: 2.071 MB / 0.7289 GB, free: 9.988 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01325/1.776, allocations: 8.209 MB / 0.7369 GB, free: 2.219 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008949/1.785, allocations: 309.8 kB / 0.7372 GB, free: 1.957 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002075/1.787, allocations: 0.5433 MB / 0.7377 GB, free: 1.43 MB / 442.7 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.002385/1.789, allocations: 0.5824 MB / 0.7383 GB, free: 0.8516 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001411/1.791, allocations: 0.5206 MB / 0.7388 GB, free: 332 kB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01261/1.803, allocations: 4.282 MB / 0.743 GB, free: 13.07 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.658e-05/1.803, allocations: 28 kB / 0.743 GB, free: 13.04 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.253e-05/1.803, allocations: 8 kB / 0.743 GB, free: 13.04 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.866e-05/1.803, allocations: 19.28 kB / 0.743 GB, free: 13.03 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02873/1.832, allocations: 10.29 MB / 0.7531 GB, free: 4.664 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.688e-05/1.832, allocations: 0 / 0.7531 GB, free: 4.664 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003158/1.835, allocations: 449.7 kB / 0.7535 GB, free: 4.309 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002246/1.838, allocations: 0.5193 MB / 0.754 GB, free: 3.91 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005321/1.838, allocations: 15.7 kB / 0.7541 GB, free: 3.898 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2817/2.12, allocations: 7.257 MB / 0.7611 GB, free: 100.6 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.783e-06/2.12, allocations: 6.094 kB / 0.7611 GB, free: 100.6 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01478/2.135, allocations: 7.621 MB / 0.7686 GB, free: 99.85 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0028/2.138, allocations: 0.9028 MB / 0.7695 GB, free: 99.76 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001269/2.139, allocations: 6.188 kB / 0.7695 GB, free: 99.76 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003707/2.143, allocations: 109.2 kB / 0.7696 GB, free: 99.76 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008059/2.144, allocations: 167.2 kB / 0.7697 GB, free: 99.76 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003429/2.144, allocations: 65.62 kB / 0.7698 GB, free: 99.76 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.007864/2.152, allocations: 3.334 MB / 0.7731 GB, free: 99.54 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.192e-06/2.152, allocations: 0 / 0.7731 GB, free: 99.54 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.01039/2.162, allocations: 1.346 MB / 0.7744 GB, free: 99.54 MB / 458.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,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.0007745/2.163, allocations: 150.9 kB / 0.7745 GB, free: 99.46 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.01299/2.176, allocations: 7.001 MB / 0.7813 GB, free: 99.12 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 7.197e-06/2.176, allocations: 0 / 0.7813 GB, free: 99.12 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004192/2.18, allocations: 2.402 MB / 0.7837 GB, free: 98.79 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004087/2.185, allocations: 0.6048 MB / 0.7843 GB, free: 98.76 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03268/2.217, allocations: 12.98 MB / 0.797 GB, free: 96.3 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0116/2.229, allocations: 5.209 MB / 0.8021 GB, free: 95.43 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002046/2.231, allocations: 428.8 kB / 0.8025 GB, free: 95.42 MB / 458.7 MB Notification: Performance of SimCode: time 2.019e-06/2.231, allocations: 3.531 kB / 0.8025 GB, free: 95.42 MB / 458.7 MB Notification: Performance of Templates: time 0.5008/2.732, allocations: 172 MB / 0.9705 GB, free: 100.5 MB / 458.7 MB