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.FrameTorques2.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.FrameTorques2,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.FrameTorques2") Notification: Performance of loadModel(ModelicaTest): time 2.191/2.191, allocations: 234.9 MB / 250.5 MB, free: 9.469 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004475/0.0004477, allocations: 12 kB / 314.3 MB, free: 9.52 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2902/0.2907, allocations: 54.86 MB / 369.2 MB, free: 12.76 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.FrameTorques2): time 0.1378/0.4285, allocations: 103.1 MB / 472.3 MB, free: 5.375 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.05767/0.4862, allocations: 22.79 MB / 495.1 MB, free: 14.51 MB / 426.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02057/0.5068, allocations: 0.4988 MB / 495.6 MB, free: 14.01 MB / 426.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01617/0.5231, allocations: 5.315 MB / 0.4892 GB, free: 8.672 MB / 426.7 MB Notification: Performance of NFTyping.typeBindings: time 0.3427/0.8659, allocations: 14.65 MB / 0.5035 GB, free: 5.355 MB / 426.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006301/0.8722, allocations: 1.233 MB / 0.5047 GB, free: 5.344 MB / 426.7 MB Notification: Performance of NFFlatten.flatten: time 0.06259/0.9348, allocations: 34.59 MB / 0.5385 GB, free: 0.5117 MB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01826/0.9532, allocations: 10.02 MB / 0.5482 GB, free: 10.91 MB / 442.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004832/0.958, allocations: 2.174 MB / 0.5504 GB, free: 9.52 MB / 442.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005766/0.9638, allocations: 3.036 MB / 0.5533 GB, free: 7.41 MB / 442.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001757/0.9656, allocations: 308 kB / 0.5536 GB, free: 7.109 MB / 442.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003989/0.9697, allocations: 1.205 MB / 0.5548 GB, free: 6.109 MB / 442.7 MB Notification: Performance of NFScalarize.scalarize: time 0.005117/0.9748, allocations: 3.47 MB / 0.5582 GB, free: 3.641 MB / 442.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002593/0.9774, allocations: 1.724 MB / 0.5599 GB, free: 3.051 MB / 442.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0173/0.9947, allocations: 11.89 MB / 0.5715 GB, free: 8.727 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.751e-06/0.9948, allocations: 2.188 kB / 0.5715 GB, free: 8.727 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.99e-06/0.9948, allocations: 2.25 kB / 0.5715 GB, free: 8.727 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.000298/0.9951, allocations: 0 / 0.5715 GB, free: 8.727 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: 2948 * Number of variables: 2948 Notification: Performance of Generate backend data structure: time 0.02598/1.021, allocations: 9.028 MB / 0.5803 GB, free: 424 kB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.423e-05/1.021, allocations: 8.031 kB / 0.5803 GB, free: 416 kB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1022/1.123, allocations: 14.29 MB / 0.5943 GB, free: 3.434 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01871/1.142, allocations: 7.19 MB / 0.6013 GB, free: 14.3 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005997/1.143, allocations: 497.7 kB / 0.6018 GB, free: 14.04 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002421/1.145, allocations: 0.6642 MB / 0.6024 GB, free: 13.6 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04867/1.194, allocations: 19.97 MB / 0.6219 GB, free: 14.14 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004095/1.194, allocations: 87.2 kB / 0.622 GB, free: 14.1 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001945/1.196, allocations: 310.7 kB / 0.6223 GB, free: 14.01 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006818/1.203, allocations: 3.381 MB / 0.6256 GB, free: 11.27 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04525/1.248, allocations: 16.44 MB / 0.6416 GB, free: 15.75 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.421/1.67, allocations: 72.36 MB / 0.7123 GB, free: 187.6 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02895/1.699, allocations: 8.27 MB / 0.7204 GB, free: 186.9 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007985/1.699, allocations: 0.6624 MB / 0.721 GB, free: 186.4 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.685e-05/1.699, allocations: 68.91 kB / 0.7211 GB, free: 186.3 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=311): time 8.809e-06/1.699, allocations: 0 / 0.7211 GB, free: 186.3 MB / 0.5417 GB Notification: Performance of matching and sorting (n=335): time 0.1117/1.811, allocations: 32.4 MB / 0.7527 GB, free: 170.8 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.056e-05/1.811, allocations: 291.2 kB / 0.753 GB, free: 170.4 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01448/1.826, allocations: 8.277 MB / 0.7611 GB, free: 162.2 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.0006396/1.827, allocations: 75.42 kB / 0.7612 GB, free: 162.1 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.003717/1.83, allocations: 5.519 MB / 0.7666 GB, free: 156.6 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.001511/1.832, allocations: 1.263 MB / 0.7678 GB, free: 155.4 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008101/1.833, allocations: 188.9 kB / 0.768 GB, free: 155.2 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0005729/1.833, allocations: 0.7162 MB / 0.7687 GB, free: 154.5 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007199/1.84, allocations: 3.646 MB / 0.7722 GB, free: 150.8 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01001/1.85, allocations: 9.302 MB / 0.7813 GB, free: 139 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01009/1.861, allocations: 5.677 MB / 0.7869 GB, free: 133.7 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001454/1.861, allocations: 58.38 kB / 0.7869 GB, free: 133.7 MB / 0.5417 GB Notification: Performance of matching and sorting (n=1251) (initialization): time 0.02828/1.889, allocations: 13.42 MB / 0.8 GB, free: 120.5 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001532/1.889, allocations: 92.84 kB / 0.8001 GB, free: 120.5 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002169/1.89, allocations: 200 kB / 0.8003 GB, free: 120.3 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004274/1.894, allocations: 1.345 MB / 0.8016 GB, free: 118.9 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009736/1.904, allocations: 2.226 MB / 0.8038 GB, free: 116.7 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0176/1.921, allocations: 12.93 MB / 0.8164 GB, free: 103.2 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009431/1.931, allocations: 0.5344 MB / 0.8169 GB, free: 102.7 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001629/1.932, allocations: 0.5595 MB / 0.8175 GB, free: 102.1 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 904 * Number of states: 0 () * Number of discrete variables: 63 (Revolute4.cylinderColor[3],Revolute4.cylinderColor[2],Revolute4.cylinderColor[1],frameTorque4.color[3],frameTorque4.color[2],frameTorque4.color[1],frameTorque3.color[3],frameTorque3.color[2],frameTorque3.color[1],body4.color[3],body4.color[2],body4.color[1],body4.body.sphereColor[3],body4.body.sphereColor[2],body4.body.sphereColor[1],body3.color[3],body3.color[2],body3.color[1],body3.body.sphereColor[3],body3.body.sphereColor[2],body3.body.sphereColor[1],Revolute3.cylinderColor[3],Revolute3.cylinderColor[2],Revolute3.cylinderColor[1],Revolute2.cylinderColor[3],Revolute2.cylinderColor[2],Revolute2.cylinderColor[1],frameTorque2.color[3],frameTorque2.color[2],frameTorque2.color[1],frameTorque1.color[3],frameTorque1.color[2],frameTorque1.color[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 (1171): * Single equations (assignments): 1164 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 14,(1,100.0%) 14,(1,100.0%) 14,(1,100.0%) 14} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.008198/1.941, allocations: 3.879 MB / 0.8213 GB, free: 98.24 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001549/1.942, allocations: 0.6788 MB / 0.8219 GB, free: 97.55 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01483/1.957, allocations: 6.493 MB / 0.8283 GB, free: 91.03 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.981e-05/1.957, allocations: 39.95 kB / 0.8283 GB, free: 90.99 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.995e-05/1.957, allocations: 12 kB / 0.8283 GB, free: 90.98 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.938e-05/1.957, allocations: 15.94 kB / 0.8283 GB, free: 90.96 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03775/1.995, allocations: 15.92 MB / 0.8439 GB, free: 75.04 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.959e-05/1.995, allocations: 3.984 kB / 0.8439 GB, free: 75.04 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00394/1.999, allocations: 0.5616 MB / 0.8444 GB, free: 74.48 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003703/2.003, allocations: 0.9916 MB / 0.8454 GB, free: 73.47 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006574/2.003, allocations: 59.98 kB / 0.8455 GB, free: 73.41 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01528/2.019, allocations: 11.79 MB / 0.857 GB, free: 61.1 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.786e-06/2.019, allocations: 4 kB / 0.857 GB, free: 61.09 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01997/2.039, allocations: 10.53 MB / 0.8673 GB, free: 50.47 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003746/2.043, allocations: 1.246 MB / 0.8685 GB, free: 49.2 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001756/2.044, allocations: 63.98 kB / 0.8686 GB, free: 49.13 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004508/2.049, allocations: 203.8 kB / 0.8688 GB, free: 48.93 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000721/2.05, allocations: 202.2 kB / 0.8689 GB, free: 48.73 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003272/2.05, allocations: 87.98 kB / 0.869 GB, free: 48.65 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.01029/2.06, allocations: 5.359 MB / 0.8743 GB, free: 43.33 MB / 0.5417 GB Notification: Performance of sort global known variables: time 9.26e-07/2.06, allocations: 4 kB / 0.8743 GB, free: 43.33 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.01056/2.071, allocations: 1.917 MB / 0.8761 GB, free: 41.41 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 8 (Revolute3.phi,Revolute3.w,Revolute4.phi,Revolute4.w,Revolute1.phi,Revolute1.w,Revolute2.phi,Revolute2.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 (276): * Single equations (assignments): 269 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 11,(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.000843/2.072, allocations: 224.2 kB / 0.8763 GB, free: 41.2 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.01742/2.089, allocations: 9.218 MB / 0.8854 GB, free: 31.96 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 8.449e-06/2.089, allocations: 0 / 0.8854 GB, free: 31.96 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.006115/2.095, allocations: 3.378 MB / 0.8887 GB, free: 28.54 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005568/2.101, allocations: 0.9357 MB / 0.8896 GB, free: 27.6 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0409/2.142, allocations: 22.57 MB / 0.9116 GB, free: 4.965 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.285/2.427, allocations: 6.12 MB / 0.9176 GB, free: 215.7 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003175/2.43, allocations: 0.5269 MB / 0.9181 GB, free: 215.7 MB / 0.5417 GB Notification: Performance of SimCode: time 1.753e-06/2.43, allocations: 0 / 0.9181 GB, free: 215.7 MB / 0.5417 GB Notification: Performance of Templates: time 0.6417/3.072, allocations: 246.1 MB / 1.158 GB, free: 189 MB / 0.5417 GB