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.262/2.262, allocations: 234.9 MB / 250.5 MB, free: 10.54 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004421/0.0004423, allocations: 12 kB / 314.4 MB, free: 10.5 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3504/0.3509, allocations: 54.87 MB / 369.3 MB, free: 10.85 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Parts.FlyingBodies): time 0.127/0.478, allocations: 58.43 MB / 427.7 MB, free: 268 kB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.03847/0.5165, allocations: 13.4 MB / 441.1 MB, free: 2.82 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01155/0.5281, allocations: 295.2 kB / 441.4 MB, free: 2.531 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01063/0.5388, allocations: 3.084 MB / 444.5 MB, free: 15.43 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.03249/0.5714, allocations: 8.755 MB / 453.2 MB, free: 6.656 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004794/0.5762, allocations: 0.7802 MB / 454 MB, free: 5.875 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.05916/0.6354, allocations: 19.9 MB / 473.9 MB, free: 1.957 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.3776/1.013, allocations: 5.672 MB / 479.6 MB, free: 19.15 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006258/1.019, allocations: 2.228 MB / 481.8 MB, free: 19.15 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006981/1.026, allocations: 3.054 MB / 484.9 MB, free: 19.14 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002683/1.029, allocations: 311.3 kB / 485.2 MB, free: 19.14 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005121/1.034, allocations: 1.088 MB / 486.3 MB, free: 19.14 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.006487/1.041, allocations: 3.431 MB / 489.7 MB, free: 19.14 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003962/1.045, allocations: 1.735 MB / 491.4 MB, free: 19.11 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01691/1.062, allocations: 11.4 MB / 0.491 GB, free: 15.58 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.94e-06/1.062, allocations: 0 / 0.491 GB, free: 15.58 MB / 394.7 MB Notification: Performance of FrontEnd: time 4.278e-06/1.062, allocations: 0 / 0.491 GB, free: 15.58 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.000634/1.063, allocations: 1.75 kB / 0.491 GB, free: 15.58 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.03101/1.094, allocations: 8.483 MB / 0.4993 GB, free: 10.61 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.075e-05/1.094, allocations: 8.344 kB / 0.4993 GB, free: 10.61 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005283/1.099, allocations: 1.511 MB / 0.5008 GB, free: 10.19 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2492/1.348, allocations: 16.92 MB / 0.5173 GB, free: 14.09 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02231/1.371, allocations: 6.688 MB / 0.5239 GB, free: 9.297 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000662/1.371, allocations: 431.9 kB / 0.5243 GB, free: 9.066 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006375/1.378, allocations: 0.9039 MB / 0.5252 GB, free: 8.445 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06291/1.441, allocations: 23.01 MB / 0.5476 GB, free: 7.246 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004344/1.441, allocations: 77.05 kB / 0.5477 GB, free: 7.203 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003065/1.444, allocations: 268.9 kB / 0.5479 GB, free: 7.133 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.01496/1.459, allocations: 5.197 MB / 0.553 GB, free: 2.832 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.07624/1.536, allocations: 21.84 MB / 0.5743 GB, free: 3.25 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1975/1.733, allocations: 81.15 MB / 0.6536 GB, free: 4.363 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.3627/2.096, allocations: 9.862 MB / 0.6632 GB, free: 187.6 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008698/2.097, allocations: 79.06 kB / 0.6633 GB, free: 187.6 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.567e-05/2.097, allocations: 90.23 kB / 0.6634 GB, free: 187.6 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=585): time 1.169e-05/2.097, allocations: 6.562 kB / 0.6634 GB, free: 187.6 MB / 0.5105 GB Notification: Performance of matching and sorting (n=613): time 0.1656/2.263, allocations: 43.59 MB / 0.706 GB, free: 168.1 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.006551/2.269, allocations: 6.185 MB / 0.712 GB, free: 161.5 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01741/2.287, allocations: 6.951 MB / 0.7188 GB, free: 155.7 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.001792/2.288, allocations: 105 kB / 0.7189 GB, free: 155.6 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.004555/2.293, allocations: 5.662 MB / 0.7244 GB, free: 150.5 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.003949/2.297, allocations: 2.249 MB / 0.7266 GB, free: 148.5 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002625/2.3, allocations: 239.9 kB / 0.7268 GB, free: 148.3 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.001171/2.301, allocations: 0.856 MB / 0.7277 GB, free: 147.6 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01627/2.317, allocations: 6.648 MB / 0.7342 GB, free: 141.9 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02043/2.338, allocations: 12.86 MB / 0.7467 GB, free: 126.8 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02114/2.359, allocations: 9.234 MB / 0.7558 GB, free: 117.6 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002488/2.359, allocations: 64 kB / 0.7558 GB, free: 117.5 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1641) (initialization): time 0.1116/2.471, allocations: 25.84 MB / 0.781 GB, free: 91.66 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001484/2.471, allocations: 96.62 kB / 0.7811 GB, free: 91.56 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.08816/2.559, allocations: 17.58 MB / 0.7983 GB, free: 73.93 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.07681/2.636, allocations: 8.073 MB / 0.8062 GB, free: 65.8 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01901/2.655, allocations: 2.952 MB / 0.8091 GB, free: 62.84 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04928/2.704, allocations: 21.47 MB / 0.83 GB, free: 40.58 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01694/2.721, allocations: 1.108 MB / 0.8311 GB, free: 39.47 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003343/2.725, allocations: 0.6688 MB / 0.8318 GB, free: 38.8 MB / 0.5105 GB 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): 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.01436/2.739, allocations: 4.497 MB / 0.8362 GB, free: 34.3 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002952/2.742, allocations: 0.6517 MB / 0.8368 GB, free: 33.64 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05026/2.793, allocations: 14.86 MB / 0.8513 GB, free: 18.71 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.3941/3.187, allocations: 13.31 MB / 0.8643 GB, free: 166.1 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001074/3.187, allocations: 7.844 kB / 0.8643 GB, free: 166.1 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001612/3.187, allocations: 23.11 kB / 0.8643 GB, free: 166.1 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1042/3.291, allocations: 33.72 MB / 0.8973 GB, free: 156.3 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001272/3.291, allocations: 11.25 kB / 0.8973 GB, free: 156.3 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01105/3.303, allocations: 1.179 MB / 0.8984 GB, free: 156.2 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02357/3.326, allocations: 3.693 MB / 0.902 GB, free: 155.6 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001864/3.328, allocations: 149.3 kB / 0.9022 GB, free: 155.5 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02122/3.349, allocations: 13.93 MB / 0.9158 GB, free: 146.1 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.004661/3.354, allocations: 5.954 MB / 0.9216 GB, free: 140.3 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06202/3.416, allocations: 22.38 MB / 0.9435 GB, free: 120.6 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002486/3.419, allocations: 0.7074 MB / 0.9441 GB, free: 120.3 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003775/3.422, allocations: 126 kB / 0.9443 GB, free: 120.1 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009618/3.432, allocations: 0.5993 MB / 0.9448 GB, free: 119.5 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002429/3.435, allocations: 383 kB / 0.9452 GB, free: 119.2 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001594/3.436, allocations: 156.6 kB / 0.9454 GB, free: 119 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.01124/3.447, allocations: 4.391 MB / 0.9496 GB, free: 114.6 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.533e-06/3.448, allocations: 2.125 kB / 0.9497 GB, free: 114.6 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01665/3.464, allocations: 2.658 MB / 0.9522 GB, free: 112 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 (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.06575/3.53, allocations: 23.17 MB / 0.9749 GB, free: 88.92 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.04383/3.574, allocations: 17.4 MB / 0.9919 GB, free: 71.3 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 2.864e-05/3.574, allocations: 4 kB / 0.9919 GB, free: 71.3 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.03186/3.606, allocations: 8.291 MB / 1 GB, free: 62.76 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01148/3.617, allocations: 0.8912 MB / 1.001 GB, free: 61.87 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.6989/4.316, allocations: 100.2 MB / 1.099 GB, free: 161.1 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01508/4.332, allocations: 6.831 MB / 1.105 GB, free: 156.1 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01215/4.344, allocations: 4.438 MB / 1.11 GB, free: 152 MB / 0.5105 GB Notification: Performance of SimCode: time 1.543e-06/4.344, allocations: 0 / 1.11 GB, free: 152 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 9.485/13.83, allocations: 0.7167 GB / 1.826 GB, free: 147.7 MB / 0.5105 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