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.FrameForcesAndTorques2.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.FrameForcesAndTorques2,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.FrameForcesAndTorques2") Notification: Performance of loadModel(ModelicaTest): time 1.861/1.861, allocations: 209.3 MB / 224.8 MB, free: 200 kB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004479/0.0004481, allocations: 12 kB / 282.5 MB, free: 9.629 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.282/0.2825, allocations: 48.7 MB / 331.2 MB, free: 6.469 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.FrameForcesAndTorques2): time 0.1023/0.3848, allocations: 76.55 MB / 407.7 MB, free: 1.801 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.07113/0.456, allocations: 17.32 MB / 425.1 MB, free: 436 kB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02339/0.4794, allocations: 375.1 kB / 425.4 MB, free: 60 kB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01203/0.4915, allocations: 3.923 MB / 429.4 MB, free: 12.12 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.03642/0.5279, allocations: 10.91 MB / 440.3 MB, free: 1.176 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005147/0.5331, allocations: 0.9166 MB / 441.2 MB, free: 264 kB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.03951/0.5727, allocations: 18.35 MB / 459.5 MB, free: 13.89 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01368/0.5864, allocations: 7.019 MB / 466.6 MB, free: 6.797 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003585/0.5901, allocations: 1.577 MB / 468.1 MB, free: 5.215 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004324/0.5944, allocations: 2.212 MB / 470.3 MB, free: 2.996 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001182/0.5956, allocations: 236 kB / 470.6 MB, free: 2.766 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003362/0.599, allocations: 1.143 MB / 471.7 MB, free: 1.621 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.2701/0.8692, allocations: 2.547 MB / 474.3 MB, free: 24.45 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002394/0.8716, allocations: 1.325 MB / 475.6 MB, free: 24.42 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01255/0.8842, allocations: 9.027 MB / 484.6 MB, free: 23.82 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.165e-06/0.8843, allocations: 0.6875 kB / 484.6 MB, free: 23.82 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.916e-06/0.8843, allocations: 1.125 kB / 484.6 MB, free: 23.82 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.000405/0.8847, allocations: 0 / 484.6 MB, free: 23.82 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2406 * Number of variables: 2406 Notification: Performance of Generate backend data structure: time 0.02146/0.9062, allocations: 6.865 MB / 491.5 MB, free: 21.03 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.986e-05/0.9062, allocations: 13.56 kB / 491.5 MB, free: 21.03 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05405/0.9603, allocations: 8.287 MB / 499.8 MB, free: 19.23 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0118/0.9721, allocations: 4.604 MB / 0.4926 GB, free: 17.86 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004044/0.9726, allocations: 385.8 kB / 0.4929 GB, free: 17.84 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002328/0.9749, allocations: 0.5023 MB / 0.4934 GB, free: 17.83 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03782/1.013, allocations: 16.53 MB / 0.5096 GB, free: 12.56 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002924/1.013, allocations: 67.86 kB / 0.5096 GB, free: 12.55 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001866/1.015, allocations: 241.8 kB / 0.5099 GB, free: 12.55 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004885/1.02, allocations: 2.928 MB / 0.5127 GB, free: 11.29 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03608/1.056, allocations: 14.03 MB / 0.5264 GB, free: 1.422 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1048/1.161, allocations: 60.29 MB / 0.5853 GB, free: 15.55 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02773/1.189, allocations: 8.082 MB / 0.5932 GB, free: 9.02 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002707/1.189, allocations: 56.03 kB / 0.5932 GB, free: 8.992 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.211e-05/1.189, allocations: 68.56 kB / 0.5933 GB, free: 8.934 MB / 458.7 MB Notification: Performance of pre-optimization done (n=290): time 8.221e-06/1.189, allocations: 0 / 0.5933 GB, free: 8.934 MB / 458.7 MB Notification: Performance of matching and sorting (n=332): time 0.128/1.317, allocations: 35 MB / 0.6275 GB, free: 12.11 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000162/1.317, allocations: 211.9 kB / 0.6277 GB, free: 11.86 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01501/1.332, allocations: 6.577 MB / 0.6341 GB, free: 5.273 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009127/1.333, allocations: 83.78 kB / 0.6342 GB, free: 5.188 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.005034/1.338, allocations: 4.351 MB / 0.6384 GB, free: 0.8594 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.2439/1.582, allocations: 1.227 MB / 0.6396 GB, free: 196.4 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001101/1.583, allocations: 170 kB / 0.6398 GB, free: 196.4 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0007176/1.584, allocations: 0.671 MB / 0.6405 GB, free: 196.1 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009541/1.594, allocations: 3.852 MB / 0.6442 GB, free: 196 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01256/1.606, allocations: 8.677 MB / 0.6527 GB, free: 188.3 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01122/1.618, allocations: 5.632 MB / 0.6582 GB, free: 186.2 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000172/1.618, allocations: 48.69 kB / 0.6582 GB, free: 186.2 MB / 490.7 MB Notification: Performance of matching and sorting (n=1115) (initialization): time 0.03163/1.649, allocations: 13.66 MB / 0.6716 GB, free: 181.3 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001786/1.65, allocations: 78.62 kB / 0.6716 GB, free: 181.3 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002431/1.65, allocations: 170.2 kB / 0.6718 GB, free: 181.3 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005921/1.656, allocations: 1.797 MB / 0.6736 GB, free: 180.7 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009069/1.665, allocations: 2.03 MB / 0.6755 GB, free: 179 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01845/1.683, allocations: 12.36 MB / 0.6876 GB, free: 168.1 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009262/1.693, allocations: 0.5239 MB / 0.6881 GB, free: 167.6 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001956/1.695, allocations: 0.5 MB / 0.6886 GB, free: 167.2 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 766 * Number of states: 0 () * Number of discrete variables: 51 (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],frameTorque2.torqueColor[3],frameTorque2.torqueColor[2],frameTorque2.torqueColor[1],frameTorque2.forceColor[3],frameTorque2.forceColor[2],frameTorque2.forceColor[1],frameTorque1.torqueColor[3],frameTorque1.torqueColor[2],frameTorque1.torqueColor[1],frameTorque1.forceColor[3],frameTorque1.forceColor[2],frameTorque1.forceColor[1],fixed2.color[3],fixed2.color[2],fixed2.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 (1043): * Single equations (assignments): 1038 * 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 {(2,100.0%) 23,(2,100.0%) 23} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.007835/1.703, allocations: 3.155 MB / 0.6917 GB, free: 164.4 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001329/1.704, allocations: 0.5536 MB / 0.6922 GB, free: 164.2 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01797/1.722, allocations: 7.702 MB / 0.6998 GB, free: 157.9 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.263e-05/1.722, allocations: 36.55 kB / 0.6998 GB, free: 157.9 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.41e-05/1.722, allocations: 11.28 kB / 0.6998 GB, free: 157.9 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.466e-05/1.722, allocations: 16.5 kB / 0.6998 GB, free: 157.9 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03975/1.762, allocations: 16.69 MB / 0.7161 GB, free: 141.7 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.101e-05/1.762, allocations: 4 kB / 0.7161 GB, free: 141.7 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004295/1.766, allocations: 0.5967 MB / 0.7167 GB, free: 141.1 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005077/1.771, allocations: 1.527 MB / 0.7182 GB, free: 139.6 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009143/1.772, allocations: 62.56 kB / 0.7183 GB, free: 139.5 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01793/1.79, allocations: 11.59 MB / 0.7296 GB, free: 127.7 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.693e-06/1.79, allocations: 11.23 kB / 0.7296 GB, free: 127.7 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02448/1.815, allocations: 12.56 MB / 0.7419 GB, free: 115.1 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003996/1.819, allocations: 1.236 MB / 0.7431 GB, free: 113.9 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002055/1.821, allocations: 56 kB / 0.7431 GB, free: 113.8 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004754/1.826, allocations: 279.5 kB / 0.7434 GB, free: 113.5 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00119/1.827, allocations: 201.8 kB / 0.7436 GB, free: 113.3 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005649/1.828, allocations: 91.98 kB / 0.7437 GB, free: 113.3 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.01034/1.838, allocations: 4.219 MB / 0.7478 GB, free: 109 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.013e-06/1.838, allocations: 0 / 0.7478 GB, free: 109 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01093/1.849, allocations: 1.702 MB / 0.7494 GB, free: 107.3 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 8 (Revolute1.phi,Revolute1.w,Revolute2.phi,Revolute2.w,Revolute3.phi,Revolute3.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 (278): * Single equations (assignments): 273 * 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.001419/1.85, allocations: 223.9 kB / 0.7497 GB, free: 107.1 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01864/1.869, allocations: 9.426 MB / 0.7589 GB, free: 97.68 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 9.315e-06/1.869, allocations: 0 / 0.7589 GB, free: 97.68 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008528/1.878, allocations: 3.943 MB / 0.7627 GB, free: 93.71 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004633/1.882, allocations: 0.6725 MB / 0.7634 GB, free: 93.04 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03783/1.92, allocations: 19.35 MB / 0.7823 GB, free: 73.61 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01029/1.931, allocations: 4.989 MB / 0.7871 GB, free: 68.59 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003131/1.934, allocations: 467.3 kB / 0.7876 GB, free: 68.13 MB / 490.7 MB Notification: Performance of SimCode: time 1.643e-06/1.934, allocations: 0 / 0.7876 GB, free: 68.13 MB / 490.7 MB Notification: Performance of Templates: time 0.4633/2.397, allocations: 148.2 MB / 0.9323 GB, free: 102.1 MB / 490.7 MB