Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Parts.FlyingBodies.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) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Parts.FlyingBodies,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_MultiBody_Parts_FlyingBodies",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.945/1.945, allocations: 209.2 MB / 224.8 MB, free: 0.6172 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004574/0.0004575, allocations: 16 kB / 282.6 MB, free: 9.594 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.336/0.3365, allocations: 48.7 MB / 331.3 MB, free: 6.484 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Parts.FlyingBodies): time 0.09118/0.4278, allocations: 58.43 MB / 389.7 MB, free: 3.938 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.03927/0.4671, allocations: 13.38 MB / 403.1 MB, free: 6.512 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01222/0.4794, allocations: 291.2 kB / 403.4 MB, free: 6.227 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01118/0.4906, allocations: 3.092 MB / 406.5 MB, free: 3.121 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.03452/0.5252, allocations: 8.759 MB / 415.2 MB, free: 10.34 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005195/0.5304, allocations: 0.7958 MB / 416 MB, free: 9.543 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.05747/0.588, allocations: 19.88 MB / 435.9 MB, free: 5.637 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01197/0.6, allocations: 5.686 MB / 441.6 MB, free: 15.88 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005712/0.6058, allocations: 2.235 MB / 443.8 MB, free: 13.63 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006884/0.6127, allocations: 3.049 MB / 446.9 MB, free: 10.57 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.00226/0.615, allocations: 316 kB / 447.2 MB, free: 10.27 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004679/0.6197, allocations: 1.077 MB / 448.3 MB, free: 9.188 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.006066/0.6258, allocations: 3.425 MB / 451.7 MB, free: 5.754 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003614/0.6295, allocations: 1.738 MB / 453.4 MB, free: 4.004 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01823/0.6478, allocations: 11.39 MB / 464.8 MB, free: 8.59 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.589e-06/0.6478, allocations: 0 / 464.8 MB, free: 8.59 MB / 394.7 MB Notification: Performance of FrontEnd: time 3.417e-06/0.6479, allocations: 0 / 464.8 MB, free: 8.59 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0005133/0.6484, allocations: 0 / 464.8 MB, free: 8.59 MB / 394.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.03156/0.68, allocations: 8.49 MB / 473.3 MB, free: 8 kB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 0.5373/1.217, allocations: 8.656 kB / 473.3 MB, free: 115.1 MB / 394.8 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006423/1.224, allocations: 1.503 MB / 474.8 MB, free: 114.5 MB / 394.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2531/1.477, allocations: 16.81 MB / 491.6 MB, free: 108 MB / 394.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02005/1.497, allocations: 6.654 MB / 498.3 MB, free: 101.4 MB / 394.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005632/1.498, allocations: 437.1 kB / 498.7 MB, free: 101.1 MB / 394.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00572/1.503, allocations: 0.9031 MB / 499.6 MB, free: 100.3 MB / 394.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05589/1.559, allocations: 23.01 MB / 0.5104 GB, free: 76.59 MB / 394.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003744/1.56, allocations: 75.36 kB / 0.5104 GB, free: 76.52 MB / 394.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003003/1.563, allocations: 265 kB / 0.5107 GB, free: 76.35 MB / 394.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.01294/1.576, allocations: 5.199 MB / 0.5158 GB, free: 71.17 MB / 394.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05725/1.633, allocations: 21.84 MB / 0.5371 GB, free: 49.27 MB / 394.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1732/1.806, allocations: 81.03 MB / 0.6162 GB, free: 14.71 MB / 442.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03381/1.84, allocations: 9.86 MB / 0.6259 GB, free: 4.543 MB / 442.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000901/1.841, allocations: 79.86 kB / 0.6259 GB, free: 4.465 MB / 442.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001028/1.841, allocations: 94.52 kB / 0.626 GB, free: 4.363 MB / 442.8 MB Notification: Performance of pre-optimization done (n=585): time 1.169e-05/1.841, allocations: 0 / 0.626 GB, free: 4.363 MB / 442.8 MB Notification: Performance of matching and sorting (n=613): time 0.4787/2.32, allocations: 43.59 MB / 0.6686 GB, free: 129.4 MB / 442.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.004955/2.325, allocations: 6.188 MB / 0.6746 GB, free: 122.9 MB / 442.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01345/2.338, allocations: 6.955 MB / 0.6814 GB, free: 117 MB / 442.8 MB Notification: Performance of collectPreVariables (initialization): time 0.00174/2.34, allocations: 105.1 kB / 0.6815 GB, free: 116.9 MB / 442.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.004212/2.344, allocations: 5.662 MB / 0.6871 GB, free: 111.8 MB / 442.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.003701/2.348, allocations: 2.25 MB / 0.6893 GB, free: 109.7 MB / 442.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002305/2.351, allocations: 241 kB / 0.6895 GB, free: 109.5 MB / 442.8 MB Notification: Performance of setup shared object (initialization): time 0.0009923/2.352, allocations: 0.8517 MB / 0.6903 GB, free: 108.7 MB / 442.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01512/2.367, allocations: 6.524 MB / 0.6967 GB, free: 102.1 MB / 442.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01891/2.386, allocations: 12.75 MB / 0.7091 GB, free: 86.59 MB / 442.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01969/2.405, allocations: 9.12 MB / 0.718 GB, free: 77.5 MB / 442.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002282/2.406, allocations: 64 kB / 0.7181 GB, free: 77.44 MB / 442.8 MB Notification: Performance of matching and sorting (n=1641) (initialization): time 0.06703/2.473, allocations: 22.15 MB / 0.7397 GB, free: 55.25 MB / 442.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001723/2.473, allocations: 100.9 kB / 0.7398 GB, free: 55.15 MB / 442.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.04509/2.518, allocations: 13.88 MB / 0.7534 GB, free: 41.23 MB / 442.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02533/2.544, allocations: 4.128 MB / 0.7574 GB, free: 37.05 MB / 442.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01878/2.562, allocations: 2.956 MB / 0.7603 GB, free: 34.09 MB / 442.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01954/2.582, allocations: 13.26 MB / 0.7732 GB, free: 20.05 MB / 442.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01621/2.598, allocations: 1.087 MB / 0.7743 GB, free: 18.97 MB / 442.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00309/2.601, allocations: 0.6664 MB / 0.775 GB, free: 18.3 MB / 442.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 968 * 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 (1493): * Single equations (assignments): 1459 * Array equations: 20 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 8 * Torn equation systems: 6 * 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: 0 * 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: 4 {3 1,3 1,3 1,3 1} Notification: Performance of prepare postOptimizeDAE: time 0.01282/2.614, allocations: 4.496 MB / 0.7794 GB, free: 13.8 MB / 442.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002883/2.617, allocations: 0.6555 MB / 0.78 GB, free: 13.13 MB / 442.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.379/2.996, allocations: 14.86 MB / 0.7945 GB, free: 124.2 MB / 442.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.04781/3.044, allocations: 13.32 MB / 0.8075 GB, free: 121.1 MB / 442.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.291e-05/3.044, allocations: 9.688 kB / 0.8075 GB, free: 121.1 MB / 442.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001422/3.044, allocations: 25.73 kB / 0.8075 GB, free: 121.1 MB / 442.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1207/3.165, allocations: 33.7 MB / 0.8405 GB, free: 105.4 MB / 442.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001174/3.165, allocations: 12 kB / 0.8405 GB, free: 105.4 MB / 442.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01473/3.18, allocations: 1.184 MB / 0.8416 GB, free: 104.2 MB / 442.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03261/3.213, allocations: 3.691 MB / 0.8452 GB, free: 100.5 MB / 442.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002185/3.215, allocations: 145.4 kB / 0.8454 GB, free: 100.4 MB / 442.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02126/3.236, allocations: 13.93 MB / 0.859 GB, free: 85.77 MB / 442.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.004531/3.241, allocations: 5.947 MB / 0.8648 GB, free: 79.31 MB / 442.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06752/3.308, allocations: 22.38 MB / 0.8866 GB, free: 57.05 MB / 442.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.008777/3.317, allocations: 1.774 MB / 0.8884 GB, free: 55.61 MB / 442.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003935/3.321, allocations: 125.8 kB / 0.8885 GB, free: 55.48 MB / 442.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01267/3.334, allocations: 0.603 MB / 0.8891 GB, free: 54.88 MB / 442.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002864/3.337, allocations: 377.5 kB / 0.8894 GB, free: 54.52 MB / 442.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001436/3.338, allocations: 156.5 kB / 0.8896 GB, free: 54.37 MB / 442.8 MB Notification: Performance of sorting global known variables: time 0.0135/3.352, allocations: 4.395 MB / 0.8939 GB, free: 49.98 MB / 442.8 MB Notification: Performance of sort global known variables: time 1.353e-06/3.352, allocations: 0 / 0.8939 GB, free: 49.98 MB / 442.8 MB Notification: Performance of remove unused functions: time 0.0188/3.371, allocations: 2.58 MB / 0.8964 GB, free: 47.41 MB / 442.8 MB 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 (477): * Single equations (assignments): 451 * 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 {(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 Backend phase and start with SimCode phase: time 0.06505/3.436, allocations: 23.16 MB / 0.919 GB, free: 24.26 MB / 442.8 MB Notification: Performance of simCode: created initialization part: time 0.04/3.476, allocations: 17.16 MB / 0.9358 GB, free: 6.883 MB / 442.8 MB Notification: Performance of simCode: created event and clocks part: time 1.615e-05/3.476, allocations: 7.938 kB / 0.9358 GB, free: 6.875 MB / 442.8 MB Notification: Performance of simCode: created simulation system equations: time 0.0228/3.499, allocations: 8.286 MB / 0.9439 GB, free: 14.34 MB / 458.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008499/3.507, allocations: 0.8912 MB / 0.9447 GB, free: 13.45 MB / 458.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5785/4.086, allocations: 96.31 MB / 1.039 GB, free: 83.3 MB / 458.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01533/4.101, allocations: 6.832 MB / 1.045 GB, free: 76.43 MB / 458.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01259/4.114, allocations: 4.436 MB / 1.05 GB, free: 72 MB / 458.8 MB Notification: Performance of SimCode: time 1.432e-06/4.114, allocations: 0 / 1.05 GB, free: 72 MB / 458.8 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 9.163/13.28, allocations: 0.7132 GB / 1.763 GB, free: 73.6 MB / 490.8 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Parts.FlyingBodies_res.mat does not exist to compare? outputFormat=mat