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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/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.192/2.192, allocations: 235 MB / 248.1 MB, free: 14.36 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.001e-05/3.014e-05, allocations: 4 kB / 309.7 MB, free: 1.332 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3183/0.3184, allocations: 54.86 MB / 364.5 MB, free: 5.527 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1502/0.4686, allocations: 99.67 MB / 464.2 MB, free: 12.78 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002546/0.4689, allocations: 75.95 kB / 464.3 MB, free: 12.7 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7955/1.264, allocations: 142.9 MB / 0.593 GB, free: 96.27 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.928e-06/1.264, allocations: 0 / 0.593 GB, free: 96.27 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0004032/1.265, allocations: 143.2 kB / 0.5931 GB, free: 96.26 MB / 458.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.02061/1.285, allocations: 6.841 MB / 0.5998 GB, free: 91.8 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.888e-05/1.286, allocations: 6.188 kB / 0.5998 GB, free: 91.8 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04972/1.335, allocations: 9.53 MB / 0.6091 GB, free: 83.37 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02331/1.359, allocations: 8.839 MB / 0.6177 GB, free: 74.53 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005487/1.359, allocations: 0.5256 MB / 0.6182 GB, free: 74 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002849/1.362, allocations: 0.7105 MB / 0.6189 GB, free: 73.29 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03762/1.4, allocations: 16.54 MB / 0.6351 GB, free: 55.27 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004109/1.4, allocations: 95.12 kB / 0.6352 GB, free: 55.18 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002152/1.402, allocations: 339.8 kB / 0.6355 GB, free: 54.84 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002378/1.405, allocations: 1.523 MB / 0.637 GB, free: 53.32 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03059/1.435, allocations: 13.11 MB / 0.6498 GB, free: 40.19 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4094/1.845, allocations: 72.57 MB / 0.7206 GB, free: 53.78 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01859/1.863, allocations: 5.86 MB / 0.7264 GB, free: 53.08 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005387/1.869, allocations: 3.066 MB / 0.7294 GB, free: 53.04 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001834/1.869, allocations: 49.16 kB / 0.7294 GB, free: 53.04 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.678e-05/1.869, allocations: 61.88 kB / 0.7295 GB, free: 53 MB / 474.7 MB Notification: Performance of pre-optimization done (n=249): time 7.539e-06/1.869, allocations: 0 / 0.7295 GB, free: 53 MB / 474.7 MB Notification: Performance of matching and sorting (n=267): time 0.06343/1.933, allocations: 19.5 MB / 0.7485 GB, free: 47.72 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.65e-05/1.933, allocations: 268.6 kB / 0.7488 GB, free: 47.44 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01185/1.945, allocations: 6.128 MB / 0.7547 GB, free: 46.92 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005024/1.945, allocations: 64.45 kB / 0.7548 GB, free: 46.89 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003389/1.949, allocations: 4.788 MB / 0.7595 GB, free: 44.19 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001228/1.95, allocations: 1.03 MB / 0.7605 GB, free: 43.61 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007187/1.95, allocations: 176.4 kB / 0.7607 GB, free: 43.61 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0005259/1.951, allocations: 0.6704 MB / 0.7613 GB, free: 43.28 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005817/1.957, allocations: 2.875 MB / 0.7641 GB, free: 43.26 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00855/1.965, allocations: 8.127 MB / 0.7721 GB, free: 35.81 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01054/1.976, allocations: 4.815 MB / 0.7768 GB, free: 34.43 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003178/1.976, allocations: 53.25 kB / 0.7768 GB, free: 34.43 MB / 474.7 MB Notification: Performance of matching and sorting (n=1122) (initialization): time 0.05245/2.029, allocations: 11.12 MB / 0.7877 GB, free: 31.24 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000288/2.029, allocations: 87.89 kB / 0.7878 GB, free: 31.24 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004493/2.03, allocations: 186 kB / 0.7879 GB, free: 31.24 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00519/2.035, allocations: 0.8347 MB / 0.7887 GB, free: 31.09 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01871/2.054, allocations: 1.986 MB / 0.7907 GB, free: 30.85 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01276/2.067, allocations: 8.488 MB / 0.799 GB, free: 24.95 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009523/2.076, allocations: 477.1 kB / 0.7994 GB, free: 24.79 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00148/2.078, allocations: 0.5122 MB / 0.7999 GB, free: 24.5 MB / 474.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.001569/2.079, allocations: 0.7796 MB / 0.8007 GB, free: 23.72 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001249/2.08, allocations: 0.5901 MB / 0.8013 GB, free: 23.12 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008945/2.089, allocations: 4.447 MB / 0.8056 GB, free: 19.42 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.525e-05/2.09, allocations: 32 kB / 0.8056 GB, free: 19.39 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.657e-05/2.09, allocations: 8 kB / 0.8056 GB, free: 19.38 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.506e-05/2.09, allocations: 14.36 kB / 0.8057 GB, free: 19.38 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02494/2.115, allocations: 11.6 MB / 0.817 GB, free: 9.938 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.53e-05/2.115, allocations: 4 kB / 0.817 GB, free: 9.934 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002882/2.117, allocations: 446 kB / 0.8174 GB, free: 9.582 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00191/2.119, allocations: 0.5254 MB / 0.8179 GB, free: 9.176 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000326/2.12, allocations: 49.12 kB / 0.818 GB, free: 9.133 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009346/2.129, allocations: 7.561 MB / 0.8254 GB, free: 1.844 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.549e-06/2.129, allocations: 4.062 kB / 0.8254 GB, free: 1.84 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01711/2.146, allocations: 7.953 MB / 0.8331 GB, free: 10.93 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0037/2.15, allocations: 1.011 MB / 0.8341 GB, free: 9.977 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001434/2.152, allocations: 40 kB / 0.8342 GB, free: 9.938 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003621/2.155, allocations: 154.4 kB / 0.8343 GB, free: 9.832 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006024/2.156, allocations: 157.3 kB / 0.8345 GB, free: 9.73 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003079/2.156, allocations: 67.38 kB / 0.8345 GB, free: 9.668 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.01106/2.167, allocations: 4.355 MB / 0.8388 GB, free: 5.84 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.206e-06/2.167, allocations: 0 / 0.8388 GB, free: 5.84 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01023/2.177, allocations: 1.569 MB / 0.8403 GB, free: 4.285 MB / 490.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.0006208/2.178, allocations: 188.4 kB / 0.8405 GB, free: 4.098 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01571/2.194, allocations: 7.336 MB / 0.8476 GB, free: 13.39 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 6.651e-06/2.194, allocations: 0 / 0.8476 GB, free: 13.39 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.004895/2.199, allocations: 2.501 MB / 0.8501 GB, free: 11.09 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004519/2.203, allocations: 0.7634 MB / 0.8508 GB, free: 10.45 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03429/2.238, allocations: 13.34 MB / 0.8639 GB, free: 15.14 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01036/2.248, allocations: 5.211 MB / 0.8689 GB, free: 10.5 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002224/2.25, allocations: 463.4 kB / 0.8694 GB, free: 10.05 MB / 0.5105 GB Notification: Performance of SimCode: time 2.191e-06/2.25, allocations: 0 / 0.8694 GB, free: 10.05 MB / 0.5105 GB Notification: Performance of Templates: time 0.5638/2.814, allocations: 177.4 MB / 1.043 GB, free: 78.83 MB / 0.5417 GB