Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_ForceAndTorque",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.552/1.552, allocations: 171.1 MB / 186.7 MB, free: 1.129 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003441/0.0003443, allocations: 8 kB / 233.3 MB, free: 2.922 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07823/0.0786, allocations: 38.77 MB / 272.1 MB, free: 12.07 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3711/0.4497, allocations: 89 MB / 361.1 MB, free: 0.7266 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000301/0.4501, allocations: 86.83 kB / 361.2 MB, free: 0.6797 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6062/1.056, allocations: 97.03 MB / 458.2 MB, free: 72.59 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.514e-06/1.056, allocations: 0 / 458.2 MB, free: 72.59 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0002622/1.057, allocations: 95.86 kB / 458.3 MB, free: 72.59 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1732 * Number of variables: 1732 Notification: Performance of Generate backend data structure: time 0.01953/1.076, allocations: 4.972 MB / 463.3 MB, free: 70.48 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.037e-05/1.076, allocations: 10.5 kB / 463.3 MB, free: 70.48 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003764/1.08, allocations: 0.8678 MB / 464.2 MB, free: 70.41 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03209/1.112, allocations: 4.497 MB / 468.7 MB, free: 70.07 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01757/1.13, allocations: 5.058 MB / 473.7 MB, free: 69.39 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003822/1.13, allocations: 364.8 kB / 474.1 MB, free: 69.38 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002091/1.132, allocations: 485.6 kB / 474.6 MB, free: 69.38 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03045/1.163, allocations: 12.03 MB / 486.6 MB, free: 64.65 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002142/1.163, allocations: 66.2 kB / 486.7 MB, free: 64.61 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001048/1.164, allocations: 229.7 kB / 486.9 MB, free: 64.48 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002177/1.166, allocations: 1.191 MB / 488.1 MB, free: 64.27 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02888/1.195, allocations: 9.964 MB / 498 MB, free: 59.4 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07162/1.267, allocations: 52.84 MB / 0.538 GB, free: 7.359 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0204/1.287, allocations: 5.231 MB / 0.5431 GB, free: 1.984 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01971/1.307, allocations: 8.04 MB / 0.5509 GB, free: 9.793 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.802e-05/1.307, allocations: 59.81 kB / 0.551 GB, free: 9.727 MB / 362.7 MB Notification: Performance of pre-optimization done (n=216): time 5.61e-06/1.307, allocations: 0 / 0.551 GB, free: 9.727 MB / 362.7 MB Notification: Performance of matching and sorting (n=237): time 0.346/1.653, allocations: 19.41 MB / 0.5699 GB, free: 79.22 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001091/1.653, allocations: 181.3 kB / 0.5701 GB, free: 79.03 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01343/1.667, allocations: 4.197 MB / 0.5742 GB, free: 78.66 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006073/1.667, allocations: 65.17 kB / 0.5743 GB, free: 78.63 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002864/1.67, allocations: 3.298 MB / 0.5775 GB, free: 76.86 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001462/1.672, allocations: 0.8831 MB / 0.5784 GB, free: 76.34 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006142/1.672, allocations: 133.3 kB / 0.5785 GB, free: 76.34 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0003684/1.673, allocations: 0.5942 MB / 0.5791 GB, free: 76.02 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005671/1.679, allocations: 2.5 MB / 0.5815 GB, free: 76 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008169/1.687, allocations: 6.382 MB / 0.5877 GB, free: 71.02 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008825/1.696, allocations: 3.929 MB / 0.5916 GB, free: 70.72 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001202/1.696, allocations: 37.06 kB / 0.5916 GB, free: 70.72 MB / 362.7 MB Notification: Performance of matching and sorting (n=864) (initialization): time 0.02482/1.721, allocations: 9.321 MB / 0.6007 GB, free: 67.57 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001021/1.721, allocations: 63.16 kB / 0.6008 GB, free: 67.57 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000167/1.721, allocations: 136.1 kB / 0.6009 GB, free: 67.57 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003403/1.724, allocations: 0.92 MB / 0.6018 GB, free: 67.42 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009634/1.734, allocations: 1.596 MB / 0.6034 GB, free: 67.24 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01054/1.745, allocations: 5.933 MB / 0.6091 GB, free: 64.12 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007423/1.752, allocations: 384.9 kB / 0.6095 GB, free: 64 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001415/1.753, allocations: 402.7 kB / 0.6099 GB, free: 63.95 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 624 * Number of states: 0 () * Number of discrete variables: 39 (fixed2.color[3],fixed2.color[2],fixed2.color[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],forceAndTorque.connectionLineColor[3],forceAndTorque.connectionLineColor[2],forceAndTorque.connectionLineColor[1],forceAndTorque.torqueColor[3],forceAndTorque.torqueColor[2],forceAndTorque.torqueColor[1],forceAndTorque.forceColor[3],forceAndTorque.forceColor[2],forceAndTorque.forceColor[1],fixedRotation.color[3],fixedRotation.color[2],fixedRotation.color[1],fixed1.color[3],fixed1.color[2],fixed1.color[1],body.color[3],body.color[2],body.color[1],body.body.sphereColor[3],body.body.sphereColor[2],body.body.sphereColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (816): * Single equations (assignments): 812 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 23} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.006225/1.76, allocations: 2.366 MB / 0.6122 GB, free: 62.83 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001201/1.761, allocations: 414.7 kB / 0.6126 GB, free: 62.61 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01153/1.772, allocations: 4.296 MB / 0.6168 GB, free: 60.98 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.535e-05/1.773, allocations: 29.8 kB / 0.6168 GB, free: 60.98 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.616e-05/1.773, allocations: 3.531 kB / 0.6168 GB, free: 60.98 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.38e-05/1.773, allocations: 14.77 kB / 0.6168 GB, free: 60.98 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02676/1.799, allocations: 10.39 MB / 0.627 GB, free: 57.13 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.254e-05/1.799, allocations: 7.156 kB / 0.627 GB, free: 57.13 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004061/1.804, allocations: 476.8 kB / 0.6275 GB, free: 57.09 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003008/1.807, allocations: 0.7186 MB / 0.6282 GB, free: 56.95 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003044/1.807, allocations: 51.39 kB / 0.6282 GB, free: 56.92 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01009/1.817, allocations: 5.475 MB / 0.6336 GB, free: 52.93 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.835e-06/1.817, allocations: 11.94 kB / 0.6336 GB, free: 52.91 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01759/1.835, allocations: 8.313 MB / 0.6417 GB, free: 45.3 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00299/1.838, allocations: 0.816 MB / 0.6425 GB, free: 44.53 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001434/1.839, allocations: 48.64 kB / 0.6425 GB, free: 44.48 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003887/1.843, allocations: 146 kB / 0.6427 GB, free: 44.39 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007844/1.844, allocations: 143.9 kB / 0.6428 GB, free: 44.29 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000273/1.844, allocations: 70.94 kB / 0.6429 GB, free: 44.23 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.007204/1.851, allocations: 3.007 MB / 0.6458 GB, free: 41.75 MB / 362.7 MB Notification: Performance of sort global known variables: time 8.21e-07/1.851, allocations: 4 kB / 0.6458 GB, free: 41.75 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.007963/1.859, allocations: 1.152 MB / 0.6469 GB, free: 40.61 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 25 * Number of states: 4 (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 (198): * Single equations (assignments): 194 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(4,75.0%) 18} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01821/1.878, allocations: 10.13 MB / 0.6568 GB, free: 31.27 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.01364/1.891, allocations: 6.127 MB / 0.6628 GB, free: 25.88 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 9.779e-06/1.891, allocations: 4 kB / 0.6628 GB, free: 25.88 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005678/1.897, allocations: 2.279 MB / 0.665 GB, free: 23.89 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004002/1.901, allocations: 473.6 kB / 0.6655 GB, free: 23.48 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3732/2.274, allocations: 136.8 MB / 0.7991 GB, free: 21.87 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00784/2.282, allocations: 3.76 MB / 0.8028 GB, free: 21.06 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005556/2.288, allocations: 2.268 MB / 0.805 GB, free: 21.05 MB / 394.7 MB Notification: Performance of SimCode: time 2.635e-06/2.288, allocations: 1.125 kB / 0.805 GB, free: 21.05 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.669/6.957, allocations: 115.2 MB / 0.9175 GB, free: 79.53 MB / 394.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque_res.mat does not exist to compare? outputFormat=mat