Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.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) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_UserDefinedGravityField",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.395/2.395, allocations: 194.9 MB / 211.7 MB, free: 2.988 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003566/0.0003566, allocations: 8 kB / 264 MB, free: 13.48 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1021/0.1025, allocations: 44.5 MB / 308.5 MB, free: 0.9062 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4195/0.522, allocations: 86.81 MB / 395.4 MB, free: 14.41 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003254/0.5224, allocations: 86.56 kB / 395.4 MB, free: 14.41 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2488/0.7712, allocations: 57.68 MB / 453.1 MB, free: 15.62 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.635e-06/0.7713, allocations: 0 / 453.1 MB, free: 15.62 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0001627/0.7715, allocations: 47.94 kB / 453.2 MB, free: 15.57 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 948 * Number of variables: 948 Notification: Performance of Generate backend data structure: time 0.01164/0.7831, allocations: 2.761 MB / 455.9 MB, free: 12.98 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.636e-05/0.7832, allocations: 8.031 kB / 455.9 MB, free: 12.97 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002192/0.7854, allocations: 496.8 kB / 456.4 MB, free: 12.67 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01536/0.8008, allocations: 1.923 MB / 458.3 MB, free: 10.76 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01381/0.8147, allocations: 3.416 MB / 461.8 MB, free: 7.934 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002539/0.815, allocations: 183.3 kB / 461.9 MB, free: 7.828 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001333/0.8163, allocations: 246.6 kB / 462.2 MB, free: 7.672 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01964/0.836, allocations: 6.84 MB / 469 MB, free: 376 kB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001472/0.8362, allocations: 35.69 kB / 469.1 MB, free: 340 kB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006247/0.8368, allocations: 127.1 kB / 469.2 MB, free: 236 kB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001859/0.8387, allocations: 0.7189 MB / 469.9 MB, free: 15.5 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01887/0.8576, allocations: 5.993 MB / 475.9 MB, free: 9.508 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05259/0.9102, allocations: 31.13 MB / 0.4951 GB, free: 9.496 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01051/0.9208, allocations: 2.63 MB / 0.4977 GB, free: 6.715 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01511/0.936, allocations: 5.14 MB / 0.5027 GB, free: 1.445 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.91e-05/0.9361, allocations: 42.5 kB / 0.5028 GB, free: 1.395 MB / 394.7 MB Notification: Performance of pre-optimization done (n=97): time 5.079e-06/0.9361, allocations: 0 / 0.5028 GB, free: 1.395 MB / 394.7 MB Notification: Performance of matching and sorting (n=105): time 0.04199/0.9781, allocations: 9.808 MB / 0.5123 GB, free: 7.387 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001006/0.9783, allocations: 140.9 kB / 0.5125 GB, free: 7.219 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006507/0.9848, allocations: 2.416 MB / 0.5148 GB, free: 4.785 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003725/0.9852, allocations: 37.7 kB / 0.5149 GB, free: 4.742 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002831/0.9881, allocations: 2.028 MB / 0.5169 GB, free: 2.723 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009864/0.9891, allocations: 434.5 kB / 0.5173 GB, free: 2.301 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004989/0.9896, allocations: 76 kB / 0.5173 GB, free: 2.227 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.000497/0.9901, allocations: 492 kB / 0.5178 GB, free: 1.734 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006283/0.9965, allocations: 1.448 MB / 0.5192 GB, free: 288 kB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.3018/1.298, allocations: 4.02 MB / 0.5232 GB, free: 108.9 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00888/1.307, allocations: 2.349 MB / 0.5254 GB, free: 108.9 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002173/1.308, allocations: 30.94 kB / 0.5255 GB, free: 108.9 MB / 410.7 MB Notification: Performance of matching and sorting (n=529) (initialization): time 0.02709/1.335, allocations: 5.913 MB / 0.5313 GB, free: 108.5 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001623/1.335, allocations: 47.31 kB / 0.5313 GB, free: 108.5 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002533/1.335, allocations: 95.11 kB / 0.5314 GB, free: 108.5 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005952/1.341, allocations: 0.8235 MB / 0.5322 GB, free: 108.5 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0081/1.349, allocations: 0.9386 MB / 0.5331 GB, free: 108.4 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01306/1.362, allocations: 4.383 MB / 0.5374 GB, free: 107.1 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008521/1.371, allocations: 286 kB / 0.5377 GB, free: 107.1 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001098/1.372, allocations: 254.3 kB / 0.5379 GB, free: 107.1 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 420 * Number of states: 0 () * Number of discrete variables: 18 (fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.cylinderColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (493): * Single equations (assignments): 489 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 11} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004737/1.377, allocations: 1.365 MB / 0.5392 GB, free: 106.9 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008401/1.378, allocations: 228.2 kB / 0.5395 GB, free: 106.9 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009907/1.388, allocations: 2.131 MB / 0.5415 GB, free: 106.8 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.106e-05/1.388, allocations: 14.28 kB / 0.5415 GB, free: 106.8 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.665e-05/1.388, allocations: 3.5 kB / 0.5416 GB, free: 106.8 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.702e-05/1.388, allocations: 4.547 kB / 0.5416 GB, free: 106.8 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02134/1.409, allocations: 5.081 MB / 0.5465 GB, free: 106.3 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.956e-05/1.409, allocations: 0 / 0.5465 GB, free: 106.3 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001867/1.411, allocations: 143.6 kB / 0.5467 GB, free: 106.3 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004802/1.416, allocations: 0.6816 MB / 0.5473 GB, free: 106.3 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00038/1.417, allocations: 21.92 kB / 0.5473 GB, free: 106.3 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01085/1.427, allocations: 3.938 MB / 0.5512 GB, free: 104.7 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.779e-06/1.427, allocations: 3.219 kB / 0.5512 GB, free: 104.7 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01466/1.442, allocations: 4.149 MB / 0.5552 GB, free: 103.1 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001923/1.444, allocations: 464.2 kB / 0.5557 GB, free: 102.8 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007873/1.445, allocations: 19.08 kB / 0.5557 GB, free: 102.8 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002796/1.448, allocations: 80.52 kB / 0.5558 GB, free: 102.8 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000413/1.448, allocations: 50.5 kB / 0.5558 GB, free: 102.8 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001909/1.448, allocations: 34.69 kB / 0.5559 GB, free: 102.8 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.005766/1.454, allocations: 1.699 MB / 0.5575 GB, free: 102.2 MB / 410.7 MB Notification: Performance of sort global known variables: time 7.81e-07/1.454, allocations: 0 / 0.5575 GB, free: 102.2 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.007938/1.462, allocations: 0.6745 MB / 0.5582 GB, free: 102.1 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 2 (rev.phi,rev.w) * 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 (74): * Single equations (assignments): 70 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 9} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01648/1.479, allocations: 5.116 MB / 0.5632 GB, free: 99.62 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.01101/1.49, allocations: 3.467 MB / 0.5666 GB, free: 98.41 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 7.424e-06/1.49, allocations: 2.969 kB / 0.5666 GB, free: 98.41 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002586/1.492, allocations: 1.046 MB / 0.5676 GB, free: 97.98 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002001/1.495, allocations: 232.4 kB / 0.5678 GB, free: 97.87 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06241/1.557, allocations: 84.55 MB / 0.6504 GB, free: 17.53 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003281/1.56, allocations: 2.285 MB / 0.6526 GB, free: 15.71 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002462/1.563, allocations: 1.129 MB / 0.6537 GB, free: 14.67 MB / 410.7 MB Notification: Performance of SimCode: time 7.92e-07/1.563, allocations: 0 / 0.6537 GB, free: 14.67 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.422/5.984, allocations: 62.16 MB / 0.7144 GB, free: 101.6 MB / 410.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField_res.mat does not exist to compare? outputFormat=mat