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.372/2.372, allocations: 235 MB / 248.1 MB, free: 14.37 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.327e-05/3.348e-05, allocations: 4 kB / 309.8 MB, free: 1.227 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3842/0.3843, allocations: 54.85 MB / 364.6 MB, free: 5.535 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1719/0.5562, allocations: 96.47 MB / 461.1 MB, free: 15.97 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002809/0.5566, allocations: 75.95 kB / 461.2 MB, free: 15.9 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.12/1.676, allocations: 196.8 MB / 0.6425 GB, free: 50.22 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.505e-06/1.676, allocations: 0 / 0.6425 GB, free: 50.22 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0005363/1.677, allocations: 159.9 kB / 0.6427 GB, free: 50.07 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: 3302 * Number of variables: 3302 Notification: Performance of Generate backend data structure: time 0.06536/1.742, allocations: 9.571 MB / 0.652 GB, free: 40.41 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.72e-05/1.742, allocations: 12.03 kB / 0.652 GB, free: 40.4 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.009448/1.752, allocations: 1.663 MB / 0.6536 GB, free: 38.72 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.09195/1.844, allocations: 12.05 MB / 0.6654 GB, free: 26.64 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04481/1.889, allocations: 11.89 MB / 0.677 GB, free: 14.66 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008765/1.89, allocations: 0.6255 MB / 0.6776 GB, free: 14.04 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005866/1.896, allocations: 0.8393 MB / 0.6784 GB, free: 13.2 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06892/1.965, allocations: 21.54 MB / 0.6995 GB, free: 6.617 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006299/1.965, allocations: 75.38 kB / 0.6996 GB, free: 6.543 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005313/1.971, allocations: 391.6 kB / 0.6999 GB, free: 6.16 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006488/1.977, allocations: 2.466 MB / 0.7023 GB, free: 3.684 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.4291/2.406, allocations: 20.88 MB / 0.7227 GB, free: 77.51 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.179/2.585, allocations: 80.96 MB / 0.8018 GB, free: 37.53 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.04126/2.627, allocations: 9.7 MB / 0.8113 GB, free: 33.29 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01809/2.645, allocations: 6.36 MB / 0.8175 GB, free: 30.71 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009419/2.646, allocations: 79.25 kB / 0.8175 GB, free: 30.7 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.315e-05/2.646, allocations: 82.94 kB / 0.8176 GB, free: 30.62 MB / 474.7 MB Notification: Performance of pre-optimization done (n=583): time 1.343e-05/2.646, allocations: 0 / 0.8176 GB, free: 30.62 MB / 474.7 MB Notification: Performance of matching and sorting (n=611): time 0.1258/2.772, allocations: 34.86 MB / 0.8517 GB, free: 3.758 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.005408/2.777, allocations: 6.13 MB / 0.8577 GB, free: 13.25 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0165/2.794, allocations: 5.654 MB / 0.8632 GB, free: 8.391 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001499/2.795, allocations: 112.7 kB / 0.8633 GB, free: 8.281 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.006475/2.802, allocations: 5.664 MB / 0.8688 GB, free: 3.211 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00435/2.806, allocations: 2.248 MB / 0.871 GB, free: 1.219 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002604/2.809, allocations: 236.5 kB / 0.8712 GB, free: 0.9922 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.00169/2.811, allocations: 0.8497 MB / 0.8721 GB, free: 288 kB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.04977/2.86, allocations: 8.26 MB / 0.8801 GB, free: 15.52 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02479/2.885, allocations: 12.45 MB / 0.8923 GB, free: 264 kB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.3862/3.271, allocations: 8.897 MB / 0.901 GB, free: 99.46 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002609/3.272, allocations: 62.61 kB / 0.901 GB, free: 99.46 MB / 0.4948 GB Notification: Performance of matching and sorting (n=1637) (initialization): time 0.07033/3.342, allocations: 21.36 MB / 0.9219 GB, free: 98.54 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001673/3.342, allocations: 98.94 kB / 0.922 GB, free: 98.54 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.04396/3.386, allocations: 13.23 MB / 0.9349 GB, free: 98.17 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02414/3.41, allocations: 3.562 MB / 0.9384 GB, free: 98.06 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01922/3.43, allocations: 2.921 MB / 0.9412 GB, free: 97.83 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0174/3.447, allocations: 12.17 MB / 0.9531 GB, free: 89.85 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01678/3.464, allocations: 1.104 MB / 0.9542 GB, free: 89.67 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00346/3.468, allocations: 0.6723 MB / 0.9549 GB, free: 89.57 MB / 0.4948 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 () * 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.005851/3.473, allocations: 0.9652 MB / 0.9558 GB, free: 88.93 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00259/3.476, allocations: 0.6518 MB / 0.9564 GB, free: 88.93 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05096/3.527, allocations: 14.56 MB / 0.9707 GB, free: 84.32 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.04554/3.573, allocations: 13.03 MB / 0.9834 GB, free: 79.54 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.486e-05/3.573, allocations: 12.66 kB / 0.9834 GB, free: 79.53 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001421/3.573, allocations: 23.48 kB / 0.9834 GB, free: 79.53 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1001/3.673, allocations: 33.34 MB / 1.016 GB, free: 52.52 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.591e-05/3.673, allocations: 8 kB / 1.016 GB, free: 52.51 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01076/3.684, allocations: 1.131 MB / 1.017 GB, free: 51.66 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02313/3.707, allocations: 3.619 MB / 1.021 GB, free: 49.31 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001696/3.709, allocations: 148.2 kB / 1.021 GB, free: 49.19 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02069/3.73, allocations: 13.61 MB / 1.034 GB, free: 36.46 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.004518/3.734, allocations: 5.886 MB / 1.04 GB, free: 30.27 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06278/3.797, allocations: 23.58 MB / 1.063 GB, free: 6.484 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002378/3.8, allocations: 0.6918 MB / 1.063 GB, free: 5.766 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003168/3.803, allocations: 131.8 kB / 1.064 GB, free: 5.641 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009484/3.812, allocations: 0.5928 MB / 1.064 GB, free: 5.047 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002286/3.815, allocations: 380.8 kB / 1.065 GB, free: 4.676 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00147/3.816, allocations: 161.6 kB / 1.065 GB, free: 4.52 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.01067/3.827, allocations: 3.921 MB / 1.069 GB, free: 0.6055 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.263e-06/3.827, allocations: 0 / 1.069 GB, free: 0.6055 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.0164/3.843, allocations: 2.534 MB / 1.071 GB, free: 14.08 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 () * 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.4775/4.321, allocations: 26.17 MB / 1.097 GB, free: 108.3 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.03979/4.361, allocations: 16.71 MB / 1.113 GB, free: 106.7 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.801e-05/4.361, allocations: 2.094 kB / 1.113 GB, free: 106.7 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.02183/4.383, allocations: 8.163 MB / 1.121 GB, free: 105.2 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00775/4.39, allocations: 0.8684 MB / 1.122 GB, free: 105.1 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08263/4.473, allocations: 27.62 MB / 1.149 GB, free: 96.56 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01753/4.491, allocations: 6.832 MB / 1.155 GB, free: 94.52 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01261/4.503, allocations: 4.449 MB / 1.16 GB, free: 90.93 MB / 0.5105 GB Notification: Performance of SimCode: time 1.793e-06/4.503, allocations: 0 / 1.16 GB, free: 90.93 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 9.361/13.86, allocations: 0.7139 GB / 1.874 GB, free: 136.3 MB / 0.5573 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