Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.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) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_UserDefinedGravityField",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.769/1.769, allocations: 171.2 MB / 186.8 MB, free: 1.117 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003568/0.000357, allocations: 8 kB / 233.4 MB, free: 0.8164 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08927/0.08965, allocations: 38.76 MB / 272.1 MB, free: 9.973 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3642/0.4539, allocations: 81.05 MB / 353.2 MB, free: 1.812 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003294/0.4543, allocations: 87.95 kB / 353.3 MB, free: 1.727 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2574/0.7117, allocations: 57.68 MB / 410.9 MB, free: 7.609 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.545e-06/0.7118, allocations: 0 / 410.9 MB, free: 7.609 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0001533/0.7119, allocations: 47.98 kB / 411 MB, free: 7.562 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.01121/0.7232, allocations: 2.755 MB / 413.7 MB, free: 4.746 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.767e-05/0.7232, allocations: 15.97 kB / 413.8 MB, free: 4.73 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002133/0.7254, allocations: 0.4943 MB / 414.2 MB, free: 4.227 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01513/0.7406, allocations: 1.919 MB / 416.2 MB, free: 2.301 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2445/0.9851, allocations: 3.398 MB / 419.6 MB, free: 83.33 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000299/0.9855, allocations: 181.8 kB / 419.7 MB, free: 83.32 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001635/0.9871, allocations: 243.7 kB / 420 MB, free: 83.32 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02116/1.008, allocations: 6.848 MB / 426.8 MB, free: 81.48 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001972/1.009, allocations: 39.89 kB / 426.9 MB, free: 81.48 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009982/1.01, allocations: 124.8 kB / 427 MB, free: 81.48 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00188/1.011, allocations: 0.7218 MB / 427.7 MB, free: 81.47 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01865/1.03, allocations: 5.992 MB / 433.7 MB, free: 81.43 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04311/1.073, allocations: 31.13 MB / 464.8 MB, free: 59.65 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009875/1.083, allocations: 2.625 MB / 467.5 MB, free: 58.47 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01308/1.096, allocations: 5.135 MB / 472.6 MB, free: 55.8 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.787e-05/1.096, allocations: 46.22 kB / 472.6 MB, free: 55.75 MB / 346.7 MB Notification: Performance of pre-optimization done (n=97): time 4.529e-06/1.097, allocations: 0 / 472.6 MB, free: 55.75 MB / 346.7 MB Notification: Performance of matching and sorting (n=105): time 0.03888/1.135, allocations: 9.798 MB / 482.4 MB, free: 51.87 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.293e-05/1.136, allocations: 139.7 kB / 482.6 MB, free: 51.7 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005697/1.141, allocations: 2.423 MB / 485 MB, free: 50.8 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003384/1.142, allocations: 40.92 kB / 485 MB, free: 50.76 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001694/1.143, allocations: 2.028 MB / 487.1 MB, free: 49.15 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000761/1.144, allocations: 426.9 kB / 487.5 MB, free: 48.85 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004965/1.145, allocations: 82.97 kB / 487.6 MB, free: 48.79 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002742/1.145, allocations: 495.5 kB / 488 MB, free: 48.4 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004022/1.149, allocations: 1.442 MB / 489.5 MB, free: 47.96 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005612/1.155, allocations: 4.026 MB / 493.5 MB, free: 44 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005754/1.16, allocations: 2.346 MB / 495.9 MB, free: 43.09 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.385e-05/1.161, allocations: 29.06 kB / 495.9 MB, free: 43.08 MB / 346.7 MB Notification: Performance of matching and sorting (n=529) (initialization): time 0.01743/1.178, allocations: 5.911 MB / 0.49 GB, free: 38.93 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.679e-05/1.178, allocations: 44 kB / 0.4901 GB, free: 38.88 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001291/1.178, allocations: 92 kB / 0.4902 GB, free: 38.79 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004124/1.182, allocations: 0.8259 MB / 0.491 GB, free: 38.23 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00533/1.188, allocations: 0.9385 MB / 0.4919 GB, free: 37.41 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008547/1.196, allocations: 4.394 MB / 0.4962 GB, free: 33.54 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004977/1.201, allocations: 280.8 kB / 0.4965 GB, free: 33.31 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009341/1.202, allocations: 258.4 kB / 0.4967 GB, free: 33.06 MB / 346.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.003333/1.206, allocations: 1.365 MB / 0.498 GB, free: 31.86 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005934/1.206, allocations: 225 kB / 0.4982 GB, free: 31.64 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0069/1.213, allocations: 2.134 MB / 0.5003 GB, free: 30.02 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.834e-05/1.213, allocations: 12.7 kB / 0.5003 GB, free: 30.01 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.304e-05/1.213, allocations: 4 kB / 0.5003 GB, free: 30.01 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.234e-05/1.213, allocations: 4.016 kB / 0.5004 GB, free: 30.01 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01414/1.228, allocations: 5.089 MB / 0.5053 GB, free: 25.95 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.908e-05/1.228, allocations: 4 kB / 0.5053 GB, free: 25.95 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001376/1.229, allocations: 145.6 kB / 0.5055 GB, free: 25.84 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003626/1.233, allocations: 0.6832 MB / 0.5061 GB, free: 25.41 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002394/1.233, allocations: 19.94 kB / 0.5062 GB, free: 25.4 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007781/1.241, allocations: 3.937 MB / 0.51 GB, free: 21.46 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.161e-06/1.241, allocations: 7.969 kB / 0.51 GB, free: 21.46 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01005/1.251, allocations: 4.146 MB / 0.5141 GB, free: 17.25 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00142/1.252, allocations: 457.8 kB / 0.5145 GB, free: 16.78 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004978/1.253, allocations: 19.95 kB / 0.5145 GB, free: 16.76 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001855/1.255, allocations: 85.44 kB / 0.5146 GB, free: 16.68 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003059/1.255, allocations: 52.3 kB / 0.5146 GB, free: 16.62 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001413/1.255, allocations: 32 kB / 0.5147 GB, free: 16.59 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.004175/1.259, allocations: 1.697 MB / 0.5163 GB, free: 14.89 MB / 346.7 MB Notification: Performance of sort global known variables: time 6.31e-07/1.259, allocations: 0 / 0.5163 GB, free: 14.89 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.005035/1.265, allocations: 0.6758 MB / 0.517 GB, free: 14.22 MB / 346.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.01102/1.276, allocations: 5.112 MB / 0.522 GB, free: 9.062 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.008215/1.284, allocations: 3.466 MB / 0.5254 GB, free: 5.609 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 7.063e-06/1.284, allocations: 4.188 kB / 0.5254 GB, free: 5.605 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002195/1.286, allocations: 1.032 MB / 0.5264 GB, free: 4.562 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00205/1.288, allocations: 240 kB / 0.5266 GB, free: 4.332 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3724/1.661, allocations: 84.54 MB / 0.6092 GB, free: 33.16 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006694/1.667, allocations: 2.286 MB / 0.6114 GB, free: 32.41 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004233/1.672, allocations: 1.126 MB / 0.6125 GB, free: 32.41 MB / 362.7 MB Notification: Performance of SimCode: time 1.563e-06/1.672, allocations: 0 / 0.6125 GB, free: 32.41 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.783/5.455, allocations: 62.18 MB / 0.6732 GB, free: 2.863 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField_res.mat does not exist to compare? outputFormat=mat