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.WorldForces.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.WorldForces,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.WorldForces") Notification: Performance of loadModel(ModelicaTest): time 2.206/2.206, allocations: 234.9 MB / 250.5 MB, free: 9.672 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000438/0.0004382, allocations: 12 kB / 314.3 MB, free: 9.73 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2916/0.292, allocations: 54.87 MB / 369.2 MB, free: 12.66 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.WorldForces): time 0.1238/0.4159, allocations: 92.86 MB / 462 MB, free: 15.55 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.05481/0.4707, allocations: 20.63 MB / 482.7 MB, free: 10.86 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.019/0.4898, allocations: 458.9 kB / 483.1 MB, free: 10.41 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01511/0.5049, allocations: 4.791 MB / 487.9 MB, free: 5.594 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.04444/0.5494, allocations: 13.2 MB / 0.4894 GB, free: 8.355 MB / 426.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006267/0.5557, allocations: 1.069 MB / 0.4904 GB, free: 7.285 MB / 426.7 MB Notification: Performance of NFFlatten.flatten: time 0.351/0.9068, allocations: 26.48 MB / 0.5163 GB, free: 9.219 MB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01276/0.9196, allocations: 8.052 MB / 0.5241 GB, free: 8.52 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004037/0.9237, allocations: 1.89 MB / 0.526 GB, free: 8.52 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004598/0.9283, allocations: 2.669 MB / 0.5286 GB, free: 8.508 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001704/0.9301, allocations: 273.7 kB / 0.5289 GB, free: 8.508 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004178/0.9343, allocations: 1.063 MB / 0.5299 GB, free: 8.508 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 0.006421/0.9407, allocations: 3.053 MB / 0.5329 GB, free: 8.508 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 0.004456/0.9453, allocations: 1.547 MB / 0.5344 GB, free: 8.473 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01331/0.9586, allocations: 10.42 MB / 0.5446 GB, free: 3.473 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.186e-06/0.9587, allocations: 0 / 0.5446 GB, free: 3.473 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.219e-06/0.9587, allocations: 0 / 0.5446 GB, free: 3.473 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0003398/0.959, allocations: 0 / 0.5446 GB, free: 3.473 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2702 * Number of variables: 2702 Notification: Performance of Generate backend data structure: time 0.0218/0.9809, allocations: 8.001 MB / 0.5524 GB, free: 12.12 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.403e-05/0.9809, allocations: 12.03 kB / 0.5524 GB, free: 12.11 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07752/1.058, allocations: 11.3 MB / 0.5634 GB, free: 1.809 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01578/1.074, allocations: 5.915 MB / 0.5692 GB, free: 13.58 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005243/1.075, allocations: 440.7 kB / 0.5696 GB, free: 13.34 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002311/1.077, allocations: 0.5799 MB / 0.5702 GB, free: 12.96 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04295/1.12, allocations: 17.91 MB / 0.5877 GB, free: 15.1 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003611/1.121, allocations: 82.19 kB / 0.5878 GB, free: 15.06 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001662/1.122, allocations: 274.4 kB / 0.588 GB, free: 14.98 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006358/1.129, allocations: 3.2 MB / 0.5911 GB, free: 12.37 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03856/1.167, allocations: 14.69 MB / 0.6055 GB, free: 2.172 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1131/1.28, allocations: 68.49 MB / 0.6724 GB, free: 9.199 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02384/1.304, allocations: 7.291 MB / 0.6795 GB, free: 3.582 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003058/1.305, allocations: 64.22 kB / 0.6795 GB, free: 3.543 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.132e-05/1.305, allocations: 71.86 kB / 0.6796 GB, free: 3.488 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=307): time 9.551e-06/1.305, allocations: 0 / 0.6796 GB, free: 3.488 MB / 0.5261 GB Notification: Performance of matching and sorting (n=340): time 0.6309/1.936, allocations: 33.19 MB / 0.712 GB, free: 223.5 MB / 0.5418 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.928e-05/1.936, allocations: 296.8 kB / 0.7123 GB, free: 223.2 MB / 0.5418 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01469/1.95, allocations: 7.793 MB / 0.7199 GB, free: 220.9 MB / 0.5418 GB Notification: Performance of collectPreVariables (initialization): time 0.00072/1.951, allocations: 76.83 kB / 0.72 GB, free: 220.8 MB / 0.5418 GB Notification: Performance of collectInitialEqns (initialization): time 0.003711/1.955, allocations: 5.055 MB / 0.7249 GB, free: 216.8 MB / 0.5418 GB Notification: Performance of collectInitialBindings (initialization): time 0.001727/1.957, allocations: 1.288 MB / 0.7262 GB, free: 215.9 MB / 0.5418 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009069/1.958, allocations: 189.1 kB / 0.7264 GB, free: 215.7 MB / 0.5418 GB Notification: Performance of setup shared object (initialization): time 0.0005776/1.958, allocations: 0.7162 MB / 0.7271 GB, free: 215.2 MB / 0.5418 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007612/1.966, allocations: 3.786 MB / 0.7308 GB, free: 214 MB / 0.5418 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01027/1.976, allocations: 9.382 MB / 0.7399 GB, free: 205.2 MB / 0.5418 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01058/1.987, allocations: 5.814 MB / 0.7456 GB, free: 203 MB / 0.5418 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001484/1.987, allocations: 53.59 kB / 0.7457 GB, free: 203 MB / 0.5418 GB Notification: Performance of matching and sorting (n=1241) (initialization): time 0.03015/2.017, allocations: 13.91 MB / 0.7592 GB, free: 191.8 MB / 0.5418 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001564/2.017, allocations: 88 kB / 0.7593 GB, free: 191.7 MB / 0.5418 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000223/2.018, allocations: 196 kB / 0.7595 GB, free: 191.5 MB / 0.5418 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004821/2.022, allocations: 1.571 MB / 0.7611 GB, free: 190 MB / 0.5418 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009334/2.032, allocations: 2.269 MB / 0.7633 GB, free: 187.7 MB / 0.5418 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0176/2.049, allocations: 12.66 MB / 0.7756 GB, free: 174.7 MB / 0.5418 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009634/2.059, allocations: 0.5424 MB / 0.7762 GB, free: 174.1 MB / 0.5418 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001702/2.061, allocations: 0.5602 MB / 0.7767 GB, free: 173.6 MB / 0.5418 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 893 * Number of states: 0 () * Number of discrete variables: 60 (forceAndTorque.torqueColor[3],forceAndTorque.torqueColor[2],forceAndTorque.torqueColor[1],forceAndTorque.forceColor[3],forceAndTorque.forceColor[2],forceAndTorque.forceColor[1],Revolute4.cylinderColor[3],Revolute4.cylinderColor[2],Revolute4.cylinderColor[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],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],worldForce.color[3],worldForce.color[2],worldForce.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],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 (1166): * Single equations (assignments): 1160 * 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%) 13,(1,100.0%) 14,(2,100.0%) 23} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.007754/2.069, allocations: 3.592 MB / 0.7802 GB, free: 170 MB / 0.5418 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001501/2.07, allocations: 0.644 MB / 0.7808 GB, free: 169.3 MB / 0.5418 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01559/2.086, allocations: 7.003 MB / 0.7877 GB, free: 162.3 MB / 0.5418 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.57e-05/2.086, allocations: 36 kB / 0.7877 GB, free: 162.3 MB / 0.5418 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.444e-05/2.086, allocations: 8 kB / 0.7877 GB, free: 162.3 MB / 0.5418 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.71e-05/2.086, allocations: 15.94 kB / 0.7877 GB, free: 162.2 MB / 0.5418 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03624/2.122, allocations: 16.06 MB / 0.8034 GB, free: 146.2 MB / 0.5418 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.41e-05/2.122, allocations: 0 / 0.8034 GB, free: 146.2 MB / 0.5418 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003977/2.126, allocations: 0.624 MB / 0.804 GB, free: 145.6 MB / 0.5418 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004237/2.131, allocations: 1.242 MB / 0.8053 GB, free: 144.3 MB / 0.5418 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007611/2.131, allocations: 66.12 kB / 0.8053 GB, free: 144.3 MB / 0.5418 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01733/2.149, allocations: 11.66 MB / 0.8167 GB, free: 132.2 MB / 0.5418 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.914e-06/2.149, allocations: 0 / 0.8167 GB, free: 132.2 MB / 0.5418 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02163/2.17, allocations: 11.55 MB / 0.828 GB, free: 120.6 MB / 0.5418 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003931/2.174, allocations: 1.258 MB / 0.8292 GB, free: 119.3 MB / 0.5418 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00182/2.176, allocations: 57.02 kB / 0.8293 GB, free: 119.3 MB / 0.5418 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004647/2.181, allocations: 207.7 kB / 0.8295 GB, free: 119.1 MB / 0.5418 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001019/2.182, allocations: 202.2 kB / 0.8297 GB, free: 118.9 MB / 0.5418 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003555/2.182, allocations: 85.39 kB / 0.8297 GB, free: 118.8 MB / 0.5418 GB Notification: Performance of sorting global known variables: time 0.01045/2.193, allocations: 5.027 MB / 0.8346 GB, free: 113.8 MB / 0.5418 GB Notification: Performance of sort global known variables: time 1.448e-06/2.193, allocations: 0 / 0.8346 GB, free: 113.8 MB / 0.5418 GB Notification: Performance of remove unused functions: time 0.01074/2.204, allocations: 1.835 MB / 0.8364 GB, free: 112 MB / 0.5418 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 8 (Revolute3.phi,Revolute3.w,Revolute4.phi,Revolute4.w,Revolute2.phi,Revolute2.w,Revolute1.phi,Revolute1.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 (286): * Single equations (assignments): 280 * 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 {(4,75.0%) 18,(1,100.0%) 11,(1,100.0%) 10} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001104/2.205, allocations: 215.4 kB / 0.8366 GB, free: 111.7 MB / 0.5418 GB Notification: Performance of simCode: created initialization part: time 0.01751/2.222, allocations: 9.482 MB / 0.8459 GB, free: 102.3 MB / 0.5418 GB Notification: Performance of simCode: created event and clocks part: time 7.243e-06/2.222, allocations: 4 kB / 0.8459 GB, free: 102.3 MB / 0.5418 GB Notification: Performance of simCode: created simulation system equations: time 0.006939/2.229, allocations: 3.651 MB / 0.8495 GB, free: 98.57 MB / 0.5418 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005405/2.235, allocations: 0.8189 MB / 0.8503 GB, free: 97.75 MB / 0.5418 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03832/2.273, allocations: 21.14 MB / 0.8709 GB, free: 76.58 MB / 0.5418 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0108/2.284, allocations: 5.604 MB / 0.8764 GB, free: 70.95 MB / 0.5418 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002708/2.287, allocations: 0.5072 MB / 0.8769 GB, free: 70.44 MB / 0.5418 GB Notification: Performance of SimCode: time 2.185e-06/2.287, allocations: 0 / 0.8769 GB, free: 70.44 MB / 0.5418 GB Notification: Performance of Templates: time 0.5424/2.829, allocations: 196.6 MB / 1.069 GB, free: 77.22 MB / 0.5418 GB