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.FrameForcesAndTorques2.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.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.2_cpp_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques2") Notification: Performance of loadModel(ModelicaTest): time 2.152/2.152, allocations: 234.9 MB / 250.5 MB, free: 9.559 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004391/0.0004394, allocations: 12 kB / 314.3 MB, free: 9.602 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2746/0.275, allocations: 54.87 MB / 369.2 MB, free: 10.73 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.FrameForcesAndTorques2): time 0.112/0.3871, allocations: 76.61 MB / 445.8 MB, free: 13.91 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.04344/0.4306, allocations: 17.33 MB / 463.1 MB, free: 12.54 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01425/0.4449, allocations: 375.1 kB / 463.5 MB, free: 12.17 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0118/0.4567, allocations: 3.931 MB / 467.4 MB, free: 8.219 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.3597/0.8165, allocations: 10.91 MB / 478.3 MB, free: 4.07 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004749/0.8213, allocations: 0.9023 MB / 479.2 MB, free: 4.062 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.03379/0.8551, allocations: 18.36 MB / 497.6 MB, free: 2.129 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01121/0.8664, allocations: 7.031 MB / 0.4928 GB, free: 1.504 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002901/0.8693, allocations: 1.577 MB / 0.4943 GB, free: 1.504 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003677/0.873, allocations: 2.213 MB / 0.4965 GB, free: 1.285 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001192/0.8743, allocations: 240.8 kB / 0.4967 GB, free: 1.285 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003147/0.8774, allocations: 1.143 MB / 0.4978 GB, free: 1.039 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003438/0.8809, allocations: 2.558 MB / 0.5003 GB, free: 0.5039 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001999/0.883, allocations: 1.328 MB / 0.5016 GB, free: 484 kB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01317/0.8962, allocations: 9.046 MB / 0.5105 GB, free: 9.719 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.65e-06/0.8962, allocations: 0 / 0.5105 GB, free: 9.719 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.655e-06/0.8962, allocations: 0 / 0.5105 GB, free: 9.719 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0002488/0.8965, allocations: 0 / 0.5105 GB, free: 9.719 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: 2410 * Number of variables: 2410 Notification: Performance of Generate backend data structure: time 0.01958/0.9161, allocations: 6.868 MB / 0.5172 GB, free: 3.406 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.342e-05/0.9161, allocations: 8.031 kB / 0.5172 GB, free: 3.398 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05605/0.9722, allocations: 8.289 MB / 0.5253 GB, free: 11.82 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01215/0.9844, allocations: 4.611 MB / 0.5298 GB, free: 8.535 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004635/0.9849, allocations: 391.5 kB / 0.5302 GB, free: 8.316 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001977/0.9869, allocations: 0.499 MB / 0.5306 GB, free: 7.992 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04041/1.027, allocations: 16.54 MB / 0.5468 GB, free: 11.14 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002701/1.028, allocations: 68.23 kB / 0.5469 GB, free: 11.11 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001425/1.029, allocations: 240.7 kB / 0.5471 GB, free: 11.04 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005756/1.035, allocations: 2.926 MB / 0.55 GB, free: 8.656 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05658/1.091, allocations: 14.02 MB / 0.5636 GB, free: 14.79 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.119/1.211, allocations: 60.32 MB / 0.6226 GB, free: 12.86 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0276/1.238, allocations: 8.096 MB / 0.6305 GB, free: 5.727 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002818/1.238, allocations: 61.81 kB / 0.6305 GB, free: 5.688 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.482e-05/1.239, allocations: 68.56 kB / 0.6306 GB, free: 5.613 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=290): time 7.795e-06/1.239, allocations: 0 / 0.6306 GB, free: 5.613 MB / 0.4948 GB Notification: Performance of matching and sorting (n=332): time 0.1291/1.368, allocations: 34.99 MB / 0.6648 GB, free: 2.352 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001713/1.368, allocations: 217.2 kB / 0.665 GB, free: 2.098 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.2822/1.65, allocations: 6.564 MB / 0.6714 GB, free: 215.2 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0007757/1.651, allocations: 76.98 kB / 0.6714 GB, free: 215.2 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.003438/1.654, allocations: 4.362 MB / 0.6757 GB, free: 212.6 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.001771/1.656, allocations: 1.239 MB / 0.6769 GB, free: 211.7 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009003/1.657, allocations: 170.6 kB / 0.6771 GB, free: 211.5 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0005768/1.658, allocations: 0.6705 MB / 0.6777 GB, free: 211.1 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008433/1.666, allocations: 3.854 MB / 0.6815 GB, free: 209.8 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01098/1.677, allocations: 8.667 MB / 0.69 GB, free: 202 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01086/1.688, allocations: 5.639 MB / 0.6955 GB, free: 199.9 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001594/1.688, allocations: 46.59 kB / 0.6955 GB, free: 199.9 MB / 0.5261 GB Notification: Performance of matching and sorting (n=1115) (initialization): time 0.03083/1.719, allocations: 13.66 MB / 0.7089 GB, free: 192.4 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001459/1.719, allocations: 76 kB / 0.7089 GB, free: 192.3 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002001/1.72, allocations: 168 kB / 0.7091 GB, free: 192.2 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005549/1.725, allocations: 1.801 MB / 0.7108 GB, free: 190.8 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008859/1.734, allocations: 2.031 MB / 0.7128 GB, free: 189.1 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01864/1.753, allocations: 12.37 MB / 0.7249 GB, free: 176.6 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008709/1.762, allocations: 0.5227 MB / 0.7254 GB, free: 176.1 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001706/1.763, allocations: 0.4972 MB / 0.7259 GB, free: 175.6 MB / 0.5261 GB 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.007242/1.771, allocations: 3.15 MB / 0.729 GB, free: 172.4 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001614/1.772, allocations: 0.5553 MB / 0.7295 GB, free: 171.8 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01873/1.791, allocations: 7.702 MB / 0.737 GB, free: 164.1 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.605e-05/1.791, allocations: 37.12 kB / 0.7371 GB, free: 164 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.992e-05/1.791, allocations: 12 kB / 0.7371 GB, free: 164 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.591e-05/1.791, allocations: 15.94 kB / 0.7371 GB, free: 164 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03949/1.831, allocations: 16.68 MB / 0.7534 GB, free: 147.3 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.29e-05/1.831, allocations: 5.594 kB / 0.7534 GB, free: 147.3 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004025/1.835, allocations: 0.6006 MB / 0.754 GB, free: 146.7 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005052/1.84, allocations: 1.528 MB / 0.7555 GB, free: 145.1 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008052/1.841, allocations: 63.98 kB / 0.7555 GB, free: 145.1 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01784/1.859, allocations: 11.58 MB / 0.7668 GB, free: 133.2 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.235e-06/1.859, allocations: 4 kB / 0.7669 GB, free: 133.2 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02395/1.883, allocations: 12.57 MB / 0.7791 GB, free: 120.5 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003788/1.886, allocations: 1.235 MB / 0.7803 GB, free: 119.3 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001816/1.888, allocations: 63.94 kB / 0.7804 GB, free: 119.2 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00449/1.893, allocations: 267.6 kB / 0.7806 GB, free: 118.9 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001075/1.894, allocations: 193.8 kB / 0.7808 GB, free: 118.7 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005113/1.894, allocations: 95.94 kB / 0.7809 GB, free: 118.7 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.008296/1.903, allocations: 4.219 MB / 0.785 GB, free: 114.4 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.281e-06/1.903, allocations: 0 / 0.785 GB, free: 114.4 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.009636/1.912, allocations: 1.696 MB / 0.7867 GB, free: 112.7 MB / 0.5261 GB 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.001145/1.914, allocations: 226.6 kB / 0.7869 GB, free: 112.5 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01753/1.931, allocations: 9.435 MB / 0.7961 GB, free: 103.1 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 9.334e-06/1.931, allocations: 0 / 0.7961 GB, free: 103.1 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.008506/1.94, allocations: 3.949 MB / 0.8 GB, free: 99.09 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004682/1.945, allocations: 0.6744 MB / 0.8006 GB, free: 98.43 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03585/1.98, allocations: 19.34 MB / 0.8195 GB, free: 78.99 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009625/1.99, allocations: 4.993 MB / 0.8244 GB, free: 73.96 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002976/1.993, allocations: 463.3 kB / 0.8249 GB, free: 73.51 MB / 0.5261 GB Notification: Performance of SimCode: time 2.169e-06/1.993, allocations: 0 / 0.8249 GB, free: 73.51 MB / 0.5261 GB Notification: Performance of Templates: time 0.4802/2.473, allocations: 148.3 MB / 0.9697 GB, free: 126.5 MB / 0.5261 GB