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.Torque.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.Torque,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Revolute1.phi|Revolute1.w|Revolute2.phi|Revolute2.w|Revolute3.phi|Revolute3.w|Revolute4.phi|Revolute4.w",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Forces.Torque") Notification: Performance of loadModel(ModelicaTest): time 1.899/1.899, allocations: 209.3 MB / 224.8 MB, free: 1.211 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004375/0.0004377, allocations: 16 kB / 282.5 MB, free: 9.773 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08639/0.08686, allocations: 48.71 MB / 331.2 MB, free: 8.977 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Torque): time 0.3088/0.3957, allocations: 74.18 MB / 405.4 MB, free: 10.71 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.04469/0.4405, allocations: 16.61 MB / 422 MB, free: 10.05 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01639/0.4569, allocations: 363.2 kB / 422.3 MB, free: 9.695 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01213/0.4691, allocations: 3.799 MB / 426.1 MB, free: 5.879 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.03679/0.5059, allocations: 10.59 MB / 436.7 MB, free: 11.26 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00519/0.5111, allocations: 0.8815 MB / 437.6 MB, free: 10.38 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.03966/0.5509, allocations: 18.46 MB / 456.1 MB, free: 7.898 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01398/0.5649, allocations: 7.386 MB / 463.5 MB, free: 436 kB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00376/0.5687, allocations: 1.639 MB / 465.1 MB, free: 14.78 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004354/0.5731, allocations: 2.239 MB / 467.3 MB, free: 12.53 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.00121/0.5744, allocations: 228 kB / 467.6 MB, free: 12.31 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003055/0.5774, allocations: 1.038 MB / 468.6 MB, free: 11.27 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.004024/0.5815, allocations: 2.622 MB / 471.2 MB, free: 8.645 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002232/0.5838, allocations: 1.341 MB / 472.6 MB, free: 7.293 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01348/0.5973, allocations: 8.884 MB / 481.4 MB, free: 14.39 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.704e-06/0.5973, allocations: 0 / 481.4 MB, free: 14.39 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.152e-06/0.5973, allocations: 0 / 481.4 MB, free: 14.39 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0002359/0.5976, allocations: 0 / 481.4 MB, free: 14.39 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: 2384 * Number of variables: 2384 Notification: Performance of Generate backend data structure: time 0.02029/0.6179, allocations: 7.143 MB / 488.6 MB, free: 7.16 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.397e-05/0.6179, allocations: 8.031 kB / 488.6 MB, free: 7.152 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2799/0.8978, allocations: 8.268 MB / 496.9 MB, free: 126.9 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0123/0.9102, allocations: 4.811 MB / 0.4899 GB, free: 125.5 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000595/0.9108, allocations: 384.2 kB / 0.4903 GB, free: 125.3 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002361/0.9132, allocations: 0.5041 MB / 0.4908 GB, free: 125.2 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03619/0.9495, allocations: 15.79 MB / 0.5062 GB, free: 118.1 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002574/0.9498, allocations: 71 kB / 0.5063 GB, free: 118.1 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001223/0.951, allocations: 242.1 kB / 0.5065 GB, free: 118 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005038/0.956, allocations: 2.829 MB / 0.5093 GB, free: 117.3 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03032/0.9864, allocations: 13.15 MB / 0.5221 GB, free: 106.2 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07883/1.065, allocations: 61.15 MB / 0.5818 GB, free: 44.13 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02013/1.085, allocations: 6.733 MB / 0.5884 GB, free: 37.25 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01786/1.103, allocations: 9.322 MB / 0.5975 GB, free: 27.84 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.727e-05/1.103, allocations: 72.45 kB / 0.5976 GB, free: 27.76 MB / 410.7 MB Notification: Performance of pre-optimization done (n=269): time 7.837e-06/1.103, allocations: 0 / 0.5976 GB, free: 27.76 MB / 410.7 MB Notification: Performance of matching and sorting (n=311): time 0.1025/1.206, allocations: 32.09 MB / 0.6289 GB, free: 11.31 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001851/1.206, allocations: 248.1 kB / 0.6291 GB, free: 11.02 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01572/1.222, allocations: 7.194 MB / 0.6362 GB, free: 3.84 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006842/1.223, allocations: 69.7 kB / 0.6362 GB, free: 3.766 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00503/1.228, allocations: 4.563 MB / 0.6407 GB, free: 15.21 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002051/1.23, allocations: 1.174 MB / 0.6418 GB, free: 14.04 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009851/1.231, allocations: 180 kB / 0.642 GB, free: 13.87 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0008811/1.232, allocations: 0.6911 MB / 0.6427 GB, free: 13.16 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009075/1.241, allocations: 3.668 MB / 0.6463 GB, free: 9.488 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2499/1.491, allocations: 8.943 MB / 0.655 GB, free: 134.5 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01234/1.503, allocations: 5.591 MB / 0.6605 GB, free: 133.6 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002347/1.503, allocations: 52.72 kB / 0.6605 GB, free: 133.6 MB / 442.7 MB Notification: Performance of matching and sorting (n=1181) (initialization): time 0.03406/1.537, allocations: 13.65 MB / 0.6738 GB, free: 128.8 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002267/1.538, allocations: 89.2 kB / 0.6739 GB, free: 128.8 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003984/1.538, allocations: 185.2 kB / 0.6741 GB, free: 128.8 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006617/1.545, allocations: 1.815 MB / 0.6759 GB, free: 128.5 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009595/1.554, allocations: 2.107 MB / 0.6779 GB, free: 128.2 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0196/1.574, allocations: 12.33 MB / 0.69 GB, free: 121.9 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009196/1.583, allocations: 0.5257 MB / 0.6905 GB, free: 121.8 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001596/1.585, allocations: 0.5335 MB / 0.691 GB, free: 121.7 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 845 * Number of states: 0 () * Number of discrete variables: 60 (fixed4.color[3],fixed4.color[2],fixed4.color[1],fixed2.color[3],fixed2.color[2],fixed2.color[1],Revolute4.cylinderColor[3],Revolute4.cylinderColor[2],Revolute4.cylinderColor[1],Revolute3.cylinderColor[3],Revolute3.cylinderColor[2],Revolute3.cylinderColor[1],Revolute2.cylinderColor[3],Revolute2.cylinderColor[2],Revolute2.cylinderColor[1],torque2.connectionLineColor[3],torque2.connectionLineColor[2],torque2.connectionLineColor[1],torque2.torqueColor[3],torque2.torqueColor[2],torque2.torqueColor[1],torque1.connectionLineColor[3],torque1.connectionLineColor[2],torque1.connectionLineColor[1],torque1.torqueColor[3],torque1.torqueColor[2],torque1.torqueColor[1],fixedRotation.color[3],fixedRotation.color[2],fixedRotation.color[1],fixed3.color[3],fixed3.color[2],fixed3.color[1],body2.color[3],body2.color[2],body2.color[1],body2.body.sphereColor[3],body2.body.sphereColor[2],body2.body.sphereColor[1],fixed1.color[3],fixed1.color[2],fixed1.color[1],body1.color[3],body1.color[2],body1.color[1],body1.body.sphereColor[3],body1.body.sphereColor[2],body1.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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1099): * Single equations (assignments): 1092 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 23,(2,100.0%) 23} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00692/1.592, allocations: 3.219 MB / 0.6942 GB, free: 120.2 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001295/1.593, allocations: 0.5954 MB / 0.6947 GB, free: 120.2 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01644/1.61, allocations: 6.963 MB / 0.7015 GB, free: 117.2 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.205e-05/1.61, allocations: 33.48 kB / 0.7016 GB, free: 117.2 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.567e-05/1.61, allocations: 12 kB / 0.7016 GB, free: 117.2 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.695e-05/1.61, allocations: 16.36 kB / 0.7016 GB, free: 117.2 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03398/1.644, allocations: 15.5 MB / 0.7167 GB, free: 102.4 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.044e-05/1.644, allocations: 9.641 kB / 0.7167 GB, free: 102.4 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003346/1.647, allocations: 0.5226 MB / 0.7173 GB, free: 101.9 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004981/1.652, allocations: 1.522 MB / 0.7187 GB, free: 100.4 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007571/1.653, allocations: 61.08 kB / 0.7188 GB, free: 100.3 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01758/1.671, allocations: 11.48 MB / 0.73 GB, free: 88.66 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.797e-06/1.671, allocations: 12.03 kB / 0.73 GB, free: 88.65 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02161/1.692, allocations: 11.29 MB / 0.741 GB, free: 77.49 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003553/1.696, allocations: 1.184 MB / 0.7422 GB, free: 76.28 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001622/1.698, allocations: 63.59 kB / 0.7423 GB, free: 76.22 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004221/1.702, allocations: 209 kB / 0.7425 GB, free: 76.02 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009691/1.703, allocations: 197.1 kB / 0.7426 GB, free: 75.83 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003273/1.703, allocations: 76 kB / 0.7427 GB, free: 75.75 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.008852/1.712, allocations: 4.644 MB / 0.7473 GB, free: 71.13 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.384e-06/1.712, allocations: 0 / 0.7473 GB, free: 71.13 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.009432/1.722, allocations: 1.687 MB / 0.7489 GB, free: 69.45 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * Number of states: 8 (Revolute1.phi,Revolute1.w,Revolute3.phi,Revolute3.w,Revolute2.phi,Revolute2.w,Revolute4.phi,Revolute4.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (254): * Single equations (assignments): 249 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(4,75.0%) 18,(4,75.0%) 18} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00104/1.723, allocations: 215 kB / 0.7491 GB, free: 69.24 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.01633/1.739, allocations: 8.97 MB / 0.7579 GB, free: 60.27 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 9.322e-06/1.739, allocations: 4.125 kB / 0.7579 GB, free: 60.27 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006964/1.746, allocations: 3.488 MB / 0.7613 GB, free: 56.75 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004312/1.75, allocations: 0.7034 MB / 0.762 GB, free: 56.05 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03371/1.784, allocations: 19.11 MB / 0.7806 GB, free: 36.86 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009051/1.793, allocations: 5.025 MB / 0.7855 GB, free: 31.8 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002493/1.796, allocations: 487.3 kB / 0.786 GB, free: 31.32 MB / 442.7 MB Notification: Performance of SimCode: time 1.694e-06/1.796, allocations: 3.938 kB / 0.786 GB, free: 31.32 MB / 442.7 MB Notification: Performance of Templates: time 0.4518/2.248, allocations: 148.3 MB / 0.9308 GB, free: 36.04 MB / 442.7 MB