Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Parts.FlyingBodies.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Parts.FlyingBodies,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_MultiBody_Parts_FlyingBodies",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.468/2.468, allocations: 234.9 MB / 250.5 MB, free: 9.551 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006163/0.0006164, allocations: 16 kB / 314.5 MB, free: 9.469 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3554/0.3561, allocations: 54.86 MB / 369.4 MB, free: 10.61 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1787/0.5348, allocations: 96.56 MB / 465.9 MB, free: 9.906 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003126/0.5352, allocations: 79.91 kB / 466 MB, free: 9.828 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.15/1.685, allocations: 196.5 MB / 0.647 GB, free: 0.5547 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.565e-06/1.685, allocations: 0 / 0.647 GB, free: 0.5547 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0005354/1.686, allocations: 159.9 kB / 0.6471 GB, free: 408 kB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3302 * Number of variables: 3302 Notification: Performance of Generate backend data structure: time 0.7262/2.412, allocations: 10.12 MB / 0.657 GB, free: 73.76 MB / 474.8 MB Notification: Performance of prepare preOptimizeDAE: time 5.221e-05/2.412, allocations: 7.25 kB / 0.657 GB, free: 73.76 MB / 474.8 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.008989/2.421, allocations: 1.655 MB / 0.6586 GB, free: 73.64 MB / 474.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.09136/2.513, allocations: 12.04 MB / 0.6704 GB, free: 73.02 MB / 474.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04397/2.557, allocations: 11.94 MB / 0.6821 GB, free: 72.24 MB / 474.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009903/2.558, allocations: 0.6207 MB / 0.6827 GB, free: 72.22 MB / 474.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005782/2.563, allocations: 0.8408 MB / 0.6835 GB, free: 72.21 MB / 474.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06586/2.629, allocations: 21.74 MB / 0.7047 GB, free: 69.32 MB / 474.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000658/2.63, allocations: 75.34 kB / 0.7048 GB, free: 69.32 MB / 474.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005226/2.635, allocations: 381.3 kB / 0.7052 GB, free: 69.32 MB / 474.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005628/2.641, allocations: 2.468 MB / 0.7076 GB, free: 69.29 MB / 474.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.06531/2.706, allocations: 21.24 MB / 0.7283 GB, free: 66.79 MB / 474.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2095/2.916, allocations: 81.06 MB / 0.8075 GB, free: 14.21 MB / 490.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03352/2.95, allocations: 9.75 MB / 0.817 GB, free: 5.465 MB / 490.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008062/2.95, allocations: 78.88 kB / 0.8171 GB, free: 5.41 MB / 490.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001006/2.951, allocations: 82.56 kB / 0.8171 GB, free: 5.32 MB / 490.8 MB Notification: Performance of pre-optimization done (n=583): time 1.319e-05/2.951, allocations: 4 kB / 0.8171 GB, free: 5.316 MB / 490.8 MB Notification: Performance of matching and sorting (n=611): time 0.5468/3.497, allocations: 43.04 MB / 0.8592 GB, free: 91.61 MB / 0.4949 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.005123/3.503, allocations: 6.176 MB / 0.8652 GB, free: 85.88 MB / 0.4949 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0167/3.519, allocations: 5.749 MB / 0.8708 GB, free: 85.25 MB / 0.4949 GB Notification: Performance of collectPreVariables (initialization): time 0.001706/3.521, allocations: 108.8 kB / 0.8709 GB, free: 85.22 MB / 0.4949 GB Notification: Performance of collectInitialEqns (initialization): time 0.005268/3.526, allocations: 5.659 MB / 0.8765 GB, free: 81.82 MB / 0.4949 GB Notification: Performance of collectInitialBindings (initialization): time 0.004042/3.53, allocations: 2.24 MB / 0.8786 GB, free: 80.48 MB / 0.4949 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002577/3.533, allocations: 242.1 kB / 0.8789 GB, free: 80.48 MB / 0.4949 GB Notification: Performance of setup shared object (initialization): time 0.001267/3.534, allocations: 0.8566 MB / 0.8797 GB, free: 80.13 MB / 0.4949 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01603/3.55, allocations: 6.381 MB / 0.8859 GB, free: 80.11 MB / 0.4949 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02087/3.571, allocations: 12.57 MB / 0.8982 GB, free: 72.33 MB / 0.4949 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02099/3.592, allocations: 8.965 MB / 0.907 GB, free: 72.25 MB / 0.4949 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002777/3.593, allocations: 59.03 kB / 0.907 GB, free: 72.25 MB / 0.4949 GB Notification: Performance of matching and sorting (n=1637) (initialization): time 0.06803/3.661, allocations: 21.62 MB / 0.9281 GB, free: 65.91 MB / 0.4949 GB Notification: Performance of prepare postOptimizeDAE: time 0.000189/3.661, allocations: 98.94 kB / 0.9282 GB, free: 65.91 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.04414/3.705, allocations: 13.31 MB / 0.9412 GB, free: 61.77 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02442/3.73, allocations: 3.577 MB / 0.9447 GB, free: 61.23 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01943/3.749, allocations: 2.918 MB / 0.9476 GB, free: 60.92 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01768/3.767, allocations: 12.46 MB / 0.9597 GB, free: 49.96 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01707/3.784, allocations: 1.105 MB / 0.9608 GB, free: 49.18 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003322/3.787, allocations: 0.6728 MB / 0.9615 GB, free: 48.54 MB / 0.4949 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 972 * Number of states: 0 () * Number of discrete variables: 45 (fixedFrame3.color_x[3],fixedFrame3.color_x[2],fixedFrame3.color_x[1],fixedFrame2.color_x[3],fixedFrame2.color_x[2],fixedFrame2.color_x[1],fixedFrame1.color_x[3],fixedFrame1.color_x[2],fixedFrame1.color_x[1],fixedFrame.color_x[3],fixedFrame.color_x[2],fixedFrame.color_x[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],bodyCylinder.color[3],bodyCylinder.color[2],bodyCylinder.color[1],bodyCylinder.body.sphereColor[3],bodyCylinder.body.sphereColor[2],bodyCylinder.body.sphereColor[1],BodyBox1.color[3],BodyBox1.color[2],BodyBox1.color[1],BodyBox1.body.sphereColor[3],BodyBox1.body.sphereColor[2],BodyBox1.body.sphereColor[1],bodyShape.color[3],bodyShape.color[2],bodyShape.color[1],bodyShape.body.sphereColor[3],bodyShape.body.sphereColor[2],bodyShape.body.sphereColor[1],bodyShape.frameTranslation.color[3],bodyShape.frameTranslation.color[2],bodyShape.frameTranslation.color[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1489): * Single equations (assignments): 1455 * Array equations: 20 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 12 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 8 {(4,100.0%),(3,100.0%),(4,100.0%),(3,100.0%),(4,100.0%),(3,100.0%),(4,100.0%),(3,100.0%)} * Non-linear Jacobian: 4 {4,4,4,4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01413/3.802, allocations: 4.484 MB / 0.9659 GB, free: 44.68 MB / 0.4949 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002691/3.804, allocations: 0.6551 MB / 0.9665 GB, free: 44.02 MB / 0.4949 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04933/3.854, allocations: 14.66 MB / 0.9808 GB, free: 32.19 MB / 0.4949 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.04368/3.897, allocations: 13.13 MB / 0.9936 GB, free: 21.37 MB / 0.4949 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.482e-05/3.898, allocations: 11.72 kB / 0.9936 GB, free: 21.36 MB / 0.4949 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001677/3.898, allocations: 23.86 kB / 0.9937 GB, free: 21.36 MB / 0.4949 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.494/4.392, allocations: 33.72 MB / 1.027 GB, free: 96.54 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.833e-05/4.392, allocations: 10.47 kB / 1.027 GB, free: 96.54 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01098/4.403, allocations: 1.135 MB / 1.028 GB, free: 96.54 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0231/4.426, allocations: 3.613 MB / 1.031 GB, free: 96.43 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001719/4.428, allocations: 149.8 kB / 1.031 GB, free: 96.43 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02115/4.449, allocations: 13.91 MB / 1.045 GB, free: 88.72 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.004687/4.454, allocations: 5.94 MB / 1.051 GB, free: 83.29 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06346/4.517, allocations: 23.73 MB / 1.074 GB, free: 80.16 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002467/4.52, allocations: 0.6865 MB / 1.075 GB, free: 80.07 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003542/4.523, allocations: 128.1 kB / 1.075 GB, free: 80.07 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009785/4.533, allocations: 0.5984 MB / 1.075 GB, free: 80.07 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002462/4.536, allocations: 376 kB / 1.076 GB, free: 80.06 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001324/4.537, allocations: 160.3 kB / 1.076 GB, free: 80.06 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.01135/4.548, allocations: 4.002 MB / 1.08 GB, free: 79.84 MB / 0.5105 GB Notification: Performance of sort global known variables: time 8.61e-07/4.549, allocations: 0 / 1.08 GB, free: 79.84 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.0169/4.565, allocations: 2.539 MB / 1.082 GB, free: 79.84 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 44 * Number of states: 48 ($STATESET4.x[3],$STATESET4.x[2],$STATESET4.x[1],bodyCylinder.v_0[1],bodyCylinder.v_0[2],bodyCylinder.v_0[3],bodyCylinder.body.frame_a.r_0[1],bodyCylinder.body.frame_a.r_0[2],bodyCylinder.body.frame_a.r_0[3],bodyCylinder.body.w_a[1],bodyCylinder.body.w_a[2],bodyCylinder.body.w_a[3],$STATESET3.x[3],$STATESET3.x[2],$STATESET3.x[1],BodyBox1.v_0[1],BodyBox1.v_0[2],BodyBox1.v_0[3],BodyBox1.body.frame_a.r_0[1],BodyBox1.body.frame_a.r_0[2],BodyBox1.body.frame_a.r_0[3],BodyBox1.body.w_a[1],BodyBox1.body.w_a[2],BodyBox1.body.w_a[3],$STATESET2.x[3],$STATESET2.x[2],$STATESET2.x[1],bodyShape.v_0[1],bodyShape.v_0[2],bodyShape.v_0[3],bodyShape.body.frame_a.r_0[1],bodyShape.body.frame_a.r_0[2],bodyShape.body.frame_a.r_0[3],bodyShape.body.w_a[1],bodyShape.body.w_a[2],bodyShape.body.w_a[3],$STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],body1.frame_a.r_0[1],body1.frame_a.r_0[2],body1.frame_a.r_0[3],body1.v_0[1],body1.v_0[2],body1.v_0[3],body1.w_a[1],body1.w_a[2],body1.w_a[3]) * 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 (475): * Single equations (assignments): 449 * Array equations: 12 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 12 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 8 {(3,100.0%),(4,100.0%),(3,100.0%),(4,100.0%),(3,100.0%),(4,100.0%),(3,100.0%),(4,100.0%)} * Non-linear Jacobian: 4 {4,4,4,4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.06609/4.632, allocations: 26.33 MB / 1.108 GB, free: 72.43 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.0406/4.672, allocations: 16.91 MB / 1.124 GB, free: 66.57 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.634e-05/4.672, allocations: 2.406 kB / 1.124 GB, free: 66.57 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.02144/4.694, allocations: 8.225 MB / 1.132 GB, free: 63 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008423/4.702, allocations: 0.8721 MB / 1.133 GB, free: 62.65 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.6559/5.358, allocations: 239.3 MB / 1.367 GB, free: 16.21 MB / 0.5574 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01777/5.376, allocations: 6.835 MB / 1.374 GB, free: 15.28 MB / 0.5574 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01376/5.39, allocations: 4.45 MB / 1.378 GB, free: 15.27 MB / 0.5574 GB Notification: Performance of SimCode: time 1.352e-06/5.39, allocations: 0 / 1.378 GB, free: 15.27 MB / 0.5574 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 9.628/15.02, allocations: 0.7123 GB / 2.09 GB, free: 137.5 MB / 0.5574 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Parts.FlyingBodies_res.mat does not exist to compare? outputFormat=mat