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/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.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 1.836/1.836, allocations: 209.3 MB / 222.4 MB, free: 1.945 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.327e-05/3.338e-05, allocations: 4 kB / 277.8 MB, free: 12.39 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08853/0.08859, allocations: 48.71 MB / 326.5 MB, free: 11.59 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3512/0.4398, allocations: 92.88 MB / 419.4 MB, free: 10.2 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002496/0.4401, allocations: 74.38 kB / 419.5 MB, free: 10.13 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7434/1.184, allocations: 142.8 MB / 0.5491 GB, free: 77.88 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.988e-06/1.184, allocations: 0 / 0.5491 GB, free: 77.88 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0004024/1.184, allocations: 145.5 kB / 0.5493 GB, free: 77.86 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: 2467 * Number of variables: 2467 Notification: Performance of Generate backend data structure: time 0.02065/1.205, allocations: 6.835 MB / 0.5559 GB, free: 73.38 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.06e-05/1.205, allocations: 11 kB / 0.5559 GB, free: 73.38 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04739/1.252, allocations: 9.542 MB / 0.5653 GB, free: 64.35 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02326/1.275, allocations: 8.82 MB / 0.5739 GB, free: 55.45 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005465/1.276, allocations: 0.5333 MB / 0.5744 GB, free: 54.91 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002612/1.279, allocations: 0.7028 MB / 0.5751 GB, free: 54.21 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03637/1.315, allocations: 16.52 MB / 0.5912 GB, free: 36.2 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003452/1.315, allocations: 99.11 kB / 0.5913 GB, free: 36.1 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001989/1.317, allocations: 339.8 kB / 0.5916 GB, free: 35.77 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002316/1.32, allocations: 1.526 MB / 0.5931 GB, free: 34.23 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03008/1.35, allocations: 13.1 MB / 0.6059 GB, free: 21.11 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3705/1.72, allocations: 72.55 MB / 0.6768 GB, free: 35.21 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0183/1.739, allocations: 5.857 MB / 0.6825 GB, free: 34.52 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005591/1.744, allocations: 3.075 MB / 0.6855 GB, free: 34.48 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002297/1.745, allocations: 46.66 kB / 0.6855 GB, free: 34.48 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.789e-05/1.745, allocations: 64.25 kB / 0.6856 GB, free: 34.44 MB / 426.7 MB Notification: Performance of pre-optimization done (n=249): time 7.541e-06/1.745, allocations: 0 / 0.6856 GB, free: 34.44 MB / 426.7 MB Notification: Performance of matching and sorting (n=267): time 0.06666/1.811, allocations: 19.5 MB / 0.7046 GB, free: 28.95 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.109e-05/1.812, allocations: 266.2 kB / 0.7049 GB, free: 28.66 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01321/1.825, allocations: 6.144 MB / 0.7109 GB, free: 28.15 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005508/1.825, allocations: 65.89 kB / 0.7109 GB, free: 28.12 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00373/1.829, allocations: 4.782 MB / 0.7156 GB, free: 25.44 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001325/1.83, allocations: 1.032 MB / 0.7166 GB, free: 24.86 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008618/1.831, allocations: 170.4 kB / 0.7168 GB, free: 24.86 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.000607/1.832, allocations: 0.6748 MB / 0.7174 GB, free: 24.52 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006411/1.838, allocations: 2.875 MB / 0.7203 GB, free: 23.7 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008984/1.847, allocations: 8.129 MB / 0.7282 GB, free: 15.66 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009132/1.857, allocations: 4.798 MB / 0.7329 GB, free: 14.28 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001451/1.857, allocations: 57.97 kB / 0.7329 GB, free: 14.28 MB / 426.7 MB Notification: Performance of matching and sorting (n=1122) (initialization): time 0.02568/1.882, allocations: 11.12 MB / 0.7438 GB, free: 10.77 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001541/1.883, allocations: 86.25 kB / 0.7439 GB, free: 10.77 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002335/1.883, allocations: 186.5 kB / 0.744 GB, free: 10.77 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002617/1.886, allocations: 0.8379 MB / 0.7449 GB, free: 10.61 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008784/1.894, allocations: 1.986 MB / 0.7468 GB, free: 10.37 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01152/1.906, allocations: 8.493 MB / 0.7551 GB, free: 3.621 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00908/1.915, allocations: 478 kB / 0.7556 GB, free: 3.199 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001681/1.917, allocations: 0.5094 MB / 0.7561 GB, free: 2.699 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 849 * 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 (1056): * Single equations (assignments): 1050 * 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.002226/1.919, allocations: 0.7766 MB / 0.7568 GB, free: 1.922 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001361/1.92, allocations: 0.5968 MB / 0.7574 GB, free: 1.32 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01287/1.933, allocations: 4.531 MB / 0.7618 GB, free: 13.79 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.645e-05/1.933, allocations: 31.94 kB / 0.7619 GB, free: 13.75 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.617e-05/1.933, allocations: 8 kB / 0.7619 GB, free: 13.75 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.006e-05/1.934, allocations: 15.67 kB / 0.7619 GB, free: 13.74 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03242/1.966, allocations: 11.59 MB / 0.7732 GB, free: 4.316 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.46e-05/1.966, allocations: 4 kB / 0.7732 GB, free: 4.312 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003199/1.969, allocations: 441.6 kB / 0.7736 GB, free: 3.961 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00222/1.971, allocations: 0.5262 MB / 0.7741 GB, free: 3.555 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005046/1.972, allocations: 46.91 kB / 0.7742 GB, free: 3.512 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01292/1.985, allocations: 7.608 MB / 0.7816 GB, free: 12.34 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.978e-06/1.985, allocations: 112 / 0.7816 GB, free: 12.34 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01693/2.002, allocations: 7.886 MB / 0.7893 GB, free: 5.246 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003657/2.006, allocations: 1.015 MB / 0.7903 GB, free: 4.293 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001593/2.007, allocations: 46.86 kB / 0.7903 GB, free: 4.25 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003981/2.011, allocations: 145.8 kB / 0.7905 GB, free: 4.152 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000741/2.012, allocations: 160.7 kB / 0.7906 GB, free: 4.059 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003019/2.012, allocations: 73.55 kB / 0.7907 GB, free: 3.992 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.01142/2.024, allocations: 4.367 MB / 0.795 GB, free: 160 kB / 458.7 MB Notification: Performance of sort global known variables: time 1.133e-06/2.024, allocations: 0 / 0.795 GB, free: 160 kB / 458.7 MB Notification: Performance of remove unused functions: time 0.02235/2.046, allocations: 2.211 MB / 0.7971 GB, free: 0 / 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 (219): * Single equations (assignments): 213 * 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.000912/2.047, allocations: 207 kB / 0.7973 GB, free: 15.81 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01608/2.063, allocations: 7.332 MB / 0.8045 GB, free: 9.078 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 9.919e-06/2.063, allocations: 4 kB / 0.8045 GB, free: 9.074 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005298/2.069, allocations: 2.5 MB / 0.8069 GB, free: 6.539 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005197/2.074, allocations: 0.7595 MB / 0.8077 GB, free: 5.801 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03504/2.109, allocations: 13.17 MB / 0.8205 GB, free: 8.59 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01275/2.122, allocations: 5.208 MB / 0.8256 GB, free: 3.379 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002317/2.124, allocations: 459.4 kB / 0.8261 GB, free: 2.93 MB / 490.7 MB Notification: Performance of SimCode: time 2.413e-06/2.124, allocations: 3.562 kB / 0.8261 GB, free: 2.93 MB / 490.7 MB Notification: Performance of Templates: time 0.7775/2.902, allocations: 177.2 MB / 0.9991 GB, free: 131.3 MB / 490.7 MB