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/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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.281/2.281, allocations: 235.1 MB / 243 MB, free: 9.586 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.019e-05/2.045e-05, allocations: 0 / 303.3 MB, free: 13.21 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3666/0.3667, allocations: 54.85 MB / 358.1 MB, free: 14.86 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1722/0.539, allocations: 95.81 MB / 453.9 MB, free: 14.91 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002706/0.5393, allocations: 71.97 kB / 454 MB, free: 14.84 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.735/2.274, allocations: 193.4 MB / 0.6322 GB, free: 67.93 MB / 458.8 MB Notification: Performance of FrontEnd: time 2.185e-06/2.275, allocations: 1.031 kB / 0.6322 GB, free: 67.93 MB / 458.8 MB Notification: Performance of Transformations before backend: time 0.0005906/2.275, allocations: 165.8 kB / 0.6324 GB, free: 67.93 MB / 458.8 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.0675/2.343, allocations: 9.574 MB / 0.6417 GB, free: 66.11 MB / 458.8 MB Notification: Performance of prepare preOptimizeDAE: time 5.184e-05/2.343, allocations: 9.406 kB / 0.6417 GB, free: 66.11 MB / 458.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08851/2.431, allocations: 12.05 MB / 0.6535 GB, free: 65.5 MB / 458.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04248/2.474, allocations: 11.88 MB / 0.6651 GB, free: 64.49 MB / 458.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006769/2.474, allocations: 271.2 kB / 0.6654 GB, free: 64.49 MB / 458.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005645/2.48, allocations: 0.4972 MB / 0.6659 GB, free: 64.48 MB / 458.8 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.03633/2.517, allocations: 15.16 MB / 0.6807 GB, free: 64.43 MB / 458.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05534/2.572, allocations: 20.04 MB / 0.7002 GB, free: 61.59 MB / 458.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006284/2.573, allocations: 77.55 kB / 0.7003 GB, free: 61.58 MB / 458.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004644/2.577, allocations: 30.75 kB / 0.7003 GB, free: 61.58 MB / 458.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005515/2.583, allocations: 2.462 MB / 0.7027 GB, free: 61.55 MB / 458.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1601/2.743, allocations: 76.86 MB / 0.7778 GB, free: 14.45 MB / 474.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01939/2.762, allocations: 10.08 MB / 0.7876 GB, free: 4.668 MB / 474.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01977/2.782, allocations: 6.638 MB / 0.7941 GB, free: 15.88 MB / 490.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00083/2.783, allocations: 78.59 kB / 0.7942 GB, free: 15.81 MB / 490.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.124e-05/2.783, allocations: 83.81 kB / 0.7943 GB, free: 15.72 MB / 490.8 MB Notification: Performance of pre-optimization done (n=587): time 1.14e-05/2.783, allocations: 0 / 0.7943 GB, free: 15.72 MB / 490.8 MB Notification: Performance of matching and sorting (n=615): time 0.4564/3.24, allocations: 35.16 MB / 0.8286 GB, free: 85.86 MB / 490.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001073/3.24, allocations: 263.8 kB / 0.8289 GB, free: 85.61 MB / 490.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01272/3.253, allocations: 5.361 MB / 0.8341 GB, free: 85.1 MB / 490.8 MB Notification: Performance of collectPreVariables (initialization): time 0.001427/3.254, allocations: 25.7 kB / 0.8341 GB, free: 85.07 MB / 490.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.004842/3.259, allocations: 5.86 MB / 0.8399 GB, free: 81.91 MB / 490.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.003624/3.263, allocations: 2.204 MB / 0.842 GB, free: 80.56 MB / 490.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002253/3.265, allocations: 0 / 0.842 GB, free: 80.56 MB / 490.8 MB Notification: Performance of setup shared object (initialization): time 0.001157/3.266, allocations: 0.8844 MB / 0.8429 GB, free: 80.22 MB / 490.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01386/3.28, allocations: 6.148 MB / 0.8489 GB, free: 80.19 MB / 490.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01886/3.299, allocations: 12.77 MB / 0.8613 GB, free: 71.76 MB / 490.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01927/3.318, allocations: 8.947 MB / 0.8701 GB, free: 71.67 MB / 490.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002979/3.318, allocations: 65.41 kB / 0.8701 GB, free: 71.67 MB / 490.8 MB Notification: Performance of matching and sorting (n=1725) (initialization): time 0.06534/3.384, allocations: 20.46 MB / 0.8901 GB, free: 68.17 MB / 490.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001945/3.384, allocations: 109 kB / 0.8902 GB, free: 68.17 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.04533/3.429, allocations: 12.93 MB / 0.9029 GB, free: 64.38 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02676/3.456, allocations: 3.53 MB / 0.9063 GB, free: 63.85 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01969/3.476, allocations: 3.087 MB / 0.9093 GB, free: 63.51 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01566/3.492, allocations: 11.74 MB / 0.9208 GB, free: 53.34 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01755/3.509, allocations: 0.8862 MB / 0.9217 GB, free: 52.79 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003388/3.513, allocations: 0.7142 MB / 0.9223 GB, free: 52.1 MB / 490.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1056 * 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 (1577): * Single equations (assignments): 1543 * 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.005597/3.518, allocations: 0.6908 MB / 0.923 GB, free: 51.41 MB / 490.8 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0448/3.563, allocations: 13.08 MB / 0.9358 GB, free: 40.57 MB / 490.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002924/3.566, allocations: 0.644 MB / 0.9364 GB, free: 39.93 MB / 490.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04748/3.614, allocations: 14.19 MB / 0.9503 GB, free: 28.54 MB / 490.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.04398/3.658, allocations: 12.72 MB / 0.9627 GB, free: 18.12 MB / 490.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.354e-05/3.658, allocations: 11.95 kB / 0.9627 GB, free: 18.11 MB / 490.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001915/3.658, allocations: 24.09 kB / 0.9627 GB, free: 18.11 MB / 490.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.507/4.165, allocations: 31.74 MB / 0.9937 GB, free: 89.96 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.052e-05/4.165, allocations: 11.84 kB / 0.9938 GB, free: 89.96 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01099/4.176, allocations: 1.139 MB / 0.9949 GB, free: 89.96 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02362/4.2, allocations: 3.56 MB / 0.9983 GB, free: 89.85 MB / 0.4949 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001623/4.202, allocations: 72.3 kB / 0.9984 GB, free: 89.85 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02048/4.222, allocations: 13.36 MB / 1.011 GB, free: 82.51 MB / 0.4949 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.004238/4.226, allocations: 5.657 MB / 1.017 GB, free: 77.33 MB / 0.4949 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05983/4.286, allocations: 23.35 MB / 1.04 GB, free: 73.96 MB / 0.4949 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002488/4.289, allocations: 0.6787 MB / 1.04 GB, free: 73.87 MB / 0.4949 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003354/4.292, allocations: 46.05 kB / 1.04 GB, free: 73.87 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009947/4.302, allocations: 0.5219 MB / 1.041 GB, free: 73.87 MB / 0.4949 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002377/4.305, allocations: 381.2 kB / 1.041 GB, free: 73.86 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001382/4.306, allocations: 162.9 kB / 1.042 GB, free: 73.86 MB / 0.4949 GB Notification: Performance of sorting global known variables: time 0.009317/4.315, allocations: 3.585 MB / 1.045 GB, free: 73.64 MB / 0.4949 GB Notification: Performance of sort global known variables: time 1.593e-06/4.315, allocations: 0 / 1.045 GB, free: 73.64 MB / 0.4949 GB Notification: Performance of remove unused functions: time 0.01657/4.332, allocations: 2.308 MB / 1.047 GB, free: 73.64 MB / 0.4949 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 48 * 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 (479): * Single equations (assignments): 453 * 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.06132/4.393, allocations: 26.06 MB / 1.073 GB, free: 67.2 MB / 0.4949 GB Notification: Performance of simCode: created initialization part: time 0.03682/4.43, allocations: 16.3 MB / 1.089 GB, free: 61.4 MB / 0.4949 GB Notification: Performance of simCode: created event and clocks part: time 1.487e-05/4.43, allocations: 2.719 kB / 1.089 GB, free: 61.4 MB / 0.4949 GB Notification: Performance of simCode: created simulation system equations: time 0.02053/4.451, allocations: 8 MB / 1.096 GB, free: 57.96 MB / 0.4949 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007719/4.459, allocations: 0.6427 MB / 1.097 GB, free: 57.71 MB / 0.4949 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0819/4.541, allocations: 27.13 MB / 1.124 GB, free: 35.41 MB / 0.4949 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01641/4.557, allocations: 6.827 MB / 1.13 GB, free: 30.39 MB / 0.4949 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01341/4.571, allocations: 4.504 MB / 1.135 GB, free: 26.22 MB / 0.4949 GB Notification: Performance of SimCode: time 2.525e-06/4.571, allocations: 0 / 1.135 GB, free: 26.22 MB / 0.4949 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 9.137/13.71, allocations: 0.7109 GB / 1.846 GB, free: 105.3 MB / 0.5418 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