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.FrameForces.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.FrameForces,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Revolute1.phi|Revolute1.w|Revolute2.phi|Revolute2.w",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Forces.FrameForces") Notification: Performance of loadModel(ModelicaTest): time 2.32/2.32, allocations: 234.9 MB / 250.5 MB, free: 9.598 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004376/0.0004378, allocations: 8 kB / 314.3 MB, free: 9.648 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.291/0.2915, allocations: 54.86 MB / 369.2 MB, free: 12.76 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.FrameForces): time 0.08061/0.3721, allocations: 60 MB / 429.2 MB, free: 0.5898 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.03503/0.4072, allocations: 13.92 MB / 443.1 MB, free: 2.629 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01138/0.4186, allocations: 299.2 kB / 443.4 MB, free: 2.336 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.009356/0.428, allocations: 3.084 MB / 446.5 MB, free: 15.24 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02941/0.4575, allocations: 8.7 MB / 455.2 MB, free: 6.516 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004108/0.4616, allocations: 0.7801 MB / 456 MB, free: 5.734 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.03846/0.5001, allocations: 17.93 MB / 473.9 MB, free: 3.785 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01017/0.5103, allocations: 5.45 MB / 479.3 MB, free: 14.26 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002717/0.5131, allocations: 1.378 MB / 480.7 MB, free: 12.88 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003443/0.5166, allocations: 1.842 MB / 482.6 MB, free: 11.03 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0008241/0.5174, allocations: 184 kB / 482.7 MB, free: 10.85 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002861/0.5203, allocations: 1.116 MB / 483.9 MB, free: 9.734 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003277/0.5236, allocations: 2.139 MB / 486 MB, free: 7.59 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001782/0.5254, allocations: 1.084 MB / 487.1 MB, free: 6.496 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01107/0.5365, allocations: 7.342 MB / 494.4 MB, free: 15.13 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.055e-06/0.5366, allocations: 0 / 494.4 MB, free: 15.13 MB / 426.7 MB Notification: Performance of FrontEnd: time 6.044e-06/0.5366, allocations: 8 kB / 494.4 MB, free: 15.12 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.000175/0.5368, allocations: 0 / 494.4 MB, free: 15.12 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: 1885 * Number of variables: 1885 Notification: Performance of Generate backend data structure: time 0.01556/0.5524, allocations: 5.699 MB / 0.4884 GB, free: 9.355 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.361e-05/0.5524, allocations: 8.031 kB / 0.4884 GB, free: 9.348 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05378/0.6062, allocations: 8.079 MB / 0.4963 GB, free: 1.25 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2664/0.8726, allocations: 4.238 MB / 0.5004 GB, free: 123 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003646/0.873, allocations: 302 kB / 0.5007 GB, free: 122.9 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001348/0.8744, allocations: 401.4 kB / 0.5011 GB, free: 122.8 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02642/0.9008, allocations: 12.65 MB / 0.5135 GB, free: 114.5 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001859/0.9011, allocations: 56.31 kB / 0.5135 GB, free: 114.5 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007379/0.9018, allocations: 185.6 kB / 0.5137 GB, free: 114.3 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003491/0.9053, allocations: 2.296 MB / 0.5159 GB, free: 112.1 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0234/0.9288, allocations: 10.39 MB / 0.5261 GB, free: 101.7 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06045/0.9893, allocations: 48.45 MB / 0.5734 GB, free: 52.47 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01382/1.003, allocations: 4.668 MB / 0.578 GB, free: 47.65 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01378/1.017, allocations: 6.965 MB / 0.5848 GB, free: 40.64 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.845e-05/1.017, allocations: 51.81 kB / 0.5848 GB, free: 40.58 MB / 426.7 MB Notification: Performance of pre-optimization done (n=181): time 6.1e-06/1.017, allocations: 0 / 0.5848 GB, free: 40.58 MB / 426.7 MB Notification: Performance of matching and sorting (n=193): time 0.05187/1.069, allocations: 16.44 MB / 0.6009 GB, free: 23.98 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.123e-05/1.069, allocations: 201.2 kB / 0.6011 GB, free: 23.74 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009983/1.079, allocations: 6.049 MB / 0.607 GB, free: 17.71 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003283/1.079, allocations: 53.7 kB / 0.607 GB, free: 17.65 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002547/1.082, allocations: 3.794 MB / 0.6107 GB, free: 13.87 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008857/1.083, allocations: 0.767 MB / 0.6115 GB, free: 13.11 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005098/1.083, allocations: 136 kB / 0.6116 GB, free: 12.97 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0004028/1.084, allocations: 0.6122 MB / 0.6122 GB, free: 12.35 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004426/1.088, allocations: 2.352 MB / 0.6145 GB, free: 9.996 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006751/1.095, allocations: 6.753 MB / 0.6211 GB, free: 1.059 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007974/1.103, allocations: 3.893 MB / 0.6249 GB, free: 13.16 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001371/1.103, allocations: 44 kB / 0.6249 GB, free: 13.12 MB / 442.7 MB Notification: Performance of matching and sorting (n=923) (initialization): time 0.02277/1.126, allocations: 9.129 MB / 0.6338 GB, free: 3.984 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001567/1.126, allocations: 73.91 kB / 0.6339 GB, free: 3.914 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002417/1.127, allocations: 156 kB / 0.6341 GB, free: 3.762 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002485/1.129, allocations: 0.7371 MB / 0.6348 GB, free: 3.023 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007095/1.136, allocations: 1.641 MB / 0.6364 GB, free: 1.379 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01099/1.147, allocations: 6.434 MB / 0.6427 GB, free: 10.7 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006848/1.154, allocations: 387.4 kB / 0.643 GB, free: 10.32 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00125/1.155, allocations: 432 kB / 0.6435 GB, free: 9.898 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 709 * Number of states: 0 () * Number of discrete variables: 42 (FixedRotation1.color[3],FixedRotation1.color[2],FixedRotation1.color[1],frameForce2.color[3],frameForce2.color[2],frameForce2.color[1],fixed2.color[3],fixed2.color[2],fixed2.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],frameForce1.color[3],frameForce1.color[2],frameForce1.color[1],fixed1.color[3],fixed1.color[2],fixed1.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 (863): * Single equations (assignments): 856 * 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 {(1,100.0%) 13,(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.006272/1.162, allocations: 2.623 MB / 0.646 GB, free: 7.266 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001192/1.163, allocations: 481.7 kB / 0.6465 GB, free: 6.789 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00806/1.171, allocations: 3.222 MB / 0.6496 GB, free: 3.539 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.717e-05/1.171, allocations: 24 kB / 0.6496 GB, free: 3.516 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.456e-05/1.171, allocations: 4 kB / 0.6496 GB, free: 3.512 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.464e-05/1.171, allocations: 7.969 kB / 0.6497 GB, free: 3.504 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02222/1.193, allocations: 8.586 MB / 0.658 GB, free: 10.84 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.909e-05/1.193, allocations: 0 / 0.658 GB, free: 10.84 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002298/1.196, allocations: 367.7 kB / 0.6584 GB, free: 10.48 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002004/1.198, allocations: 489.2 kB / 0.6589 GB, free: 10 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003128/1.198, allocations: 43.92 kB / 0.6589 GB, free: 9.957 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009924/1.208, allocations: 5.79 MB / 0.6646 GB, free: 3.895 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.152e-06/1.208, allocations: 8.406 kB / 0.6646 GB, free: 3.887 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01234/1.22, allocations: 5.814 MB / 0.6702 GB, free: 14.01 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002698/1.223, allocations: 0.8149 MB / 0.671 GB, free: 13.17 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00115/1.224, allocations: 39.98 kB / 0.6711 GB, free: 13.13 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002908/1.227, allocations: 95.88 kB / 0.6712 GB, free: 13.04 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005262/1.228, allocations: 125 kB / 0.6713 GB, free: 12.91 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002094/1.228, allocations: 47.98 kB / 0.6713 GB, free: 12.87 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.009534/1.238, allocations: 3.903 MB / 0.6751 GB, free: 8.992 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.102e-06/1.238, allocations: 0 / 0.6751 GB, free: 8.992 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.008048/1.246, allocations: 1.232 MB / 0.6763 GB, free: 7.766 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 4 (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 (154): * Single equations (assignments): 149 * 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 {(1,100.0%) 10,(1,100.0%) 10} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007308/1.247, allocations: 186.7 kB / 0.6765 GB, free: 7.582 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01264/1.259, allocations: 5.757 MB / 0.6821 GB, free: 1.828 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 7.493e-06/1.259, allocations: 0 / 0.6821 GB, free: 1.828 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003613/1.263, allocations: 1.747 MB / 0.6838 GB, free: 56 kB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.3313/1.594, allocations: 0.592 MB / 0.6844 GB, free: 173.7 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02605/1.62, allocations: 14.08 MB / 0.6982 GB, free: 168 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007404/1.628, allocations: 4.128 MB / 0.7022 GB, free: 166.5 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001688/1.63, allocations: 372.1 kB / 0.7026 GB, free: 166.5 MB / 490.7 MB Notification: Performance of SimCode: time 1.676e-06/1.63, allocations: 0 / 0.7026 GB, free: 166.5 MB / 490.7 MB Notification: Performance of Templates: time 0.1531/1.783, allocations: 115.8 MB / 0.8157 GB, free: 52.21 MB / 490.7 MB