Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_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_Modelica_Mechanics_MultiBody_Examples_Elementary_UserDefinedGravityField",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.909/1.909, allocations: 194.9 MB / 211.1 MB, free: 8.547 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003555/0.0003558, allocations: 8 kB / 264.1 MB, free: 3.465 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2875/0.2879, allocations: 44.5 MB / 308.6 MB, free: 12.75 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField): time 0.03686/0.3248, allocations: 14.82 MB / 323.4 MB, free: 13.88 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01854/0.3434, allocations: 4.654 MB / 328 MB, free: 9.211 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00278/0.3463, allocations: 67.81 kB / 328.1 MB, free: 9.145 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0025/0.3488, allocations: 0.7077 MB / 328.8 MB, free: 8.434 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.008522/0.3574, allocations: 2.283 MB / 331.1 MB, free: 6.145 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002088/0.3595, allocations: 463.1 kB / 331.6 MB, free: 5.691 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.003783/0.3634, allocations: 1.478 MB / 333 MB, free: 4.211 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003416/0.3668, allocations: 1.557 MB / 334.6 MB, free: 2.617 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001487/0.3684, allocations: 0.6307 MB / 335.2 MB, free: 1.984 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00197/0.3704, allocations: 0.8488 MB / 336.1 MB, free: 1.133 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004957/0.3709, allocations: 84 kB / 336.1 MB, free: 1.051 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002444/0.3734, allocations: 0.7801 MB / 336.9 MB, free: 276 kB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00167/0.3751, allocations: 0.9117 MB / 337.8 MB, free: 15.36 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008076/0.3759, allocations: 0.4962 MB / 338.3 MB, free: 14.85 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005596/0.3815, allocations: 3.095 MB / 341.4 MB, free: 11.75 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.607e-06/0.3816, allocations: 3.938 kB / 341.4 MB, free: 11.75 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.896e-06/0.3816, allocations: 4 kB / 341.4 MB, free: 11.74 MB / 282.7 MB Notification: Performance of Transformations before backend: time 0.0001351/0.3817, allocations: 0 / 341.4 MB, free: 11.74 MB / 282.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.008528/0.3903, allocations: 2.629 MB / 344.1 MB, free: 9.055 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.748e-05/0.3904, allocations: 8.031 kB / 344.1 MB, free: 9.047 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001344/0.3917, allocations: 466.1 kB / 344.5 MB, free: 8.582 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01174/0.4035, allocations: 1.896 MB / 346.4 MB, free: 6.68 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004632/0.4082, allocations: 1.621 MB / 348 MB, free: 5.012 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001636/0.4084, allocations: 123 kB / 348.2 MB, free: 4.891 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007056/0.4091, allocations: 159.9 kB / 348.3 MB, free: 4.734 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01592/0.425, allocations: 6.588 MB / 354.9 MB, free: 13.67 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001006/0.4252, allocations: 27.75 kB / 354.9 MB, free: 13.64 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004597/0.4256, allocations: 87.84 kB / 355 MB, free: 13.55 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003985/0.4296, allocations: 1.406 MB / 356.4 MB, free: 12.15 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01802/0.4477, allocations: 5.861 MB / 362.3 MB, free: 6.281 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04559/0.4933, allocations: 25.7 MB / 388 MB, free: 11.82 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009796/0.5032, allocations: 2.6 MB / 390.6 MB, free: 9.066 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01281/0.516, allocations: 4.85 MB / 395.4 MB, free: 4.121 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.987e-05/0.5161, allocations: 46.56 kB / 395.5 MB, free: 4.066 MB / 330.7 MB Notification: Performance of pre-optimization done (n=97): time 4.469e-06/0.5161, allocations: 0 / 395.5 MB, free: 4.066 MB / 330.7 MB Notification: Performance of matching and sorting (n=105): time 0.04281/0.559, allocations: 10.06 MB / 405.6 MB, free: 9.805 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.958e-05/0.5591, allocations: 140.9 kB / 405.7 MB, free: 9.637 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006799/0.5659, allocations: 2.803 MB / 408.5 MB, free: 6.812 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003131/0.5663, allocations: 37.7 kB / 408.5 MB, free: 6.77 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002272/0.5686, allocations: 2.044 MB / 410.6 MB, free: 4.695 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008018/0.5694, allocations: 434.6 kB / 411 MB, free: 4.266 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004748/0.5699, allocations: 80 kB / 411.1 MB, free: 4.188 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0003752/0.5703, allocations: 491.1 kB / 411.6 MB, free: 3.699 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003893/0.5742, allocations: 1.421 MB / 413 MB, free: 2.273 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.3049/0.8792, allocations: 3.998 MB / 417 MB, free: 89.88 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008532/0.8878, allocations: 2.331 MB / 419.3 MB, free: 89.37 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001161/0.8879, allocations: 28.58 kB / 419.3 MB, free: 89.37 MB / 346.7 MB Notification: Performance of matching and sorting (n=531) (initialization): time 0.02268/0.9106, allocations: 5.948 MB / 425.3 MB, free: 87.42 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000138/0.9108, allocations: 46.19 kB / 425.3 MB, free: 87.42 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002132/0.911, allocations: 92.12 kB / 425.4 MB, free: 87.42 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005457/0.9165, allocations: 0.8329 MB / 426.2 MB, free: 87.33 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007147/0.9237, allocations: 0.9407 MB / 427.2 MB, free: 87.21 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01168/0.9354, allocations: 4.418 MB / 431.6 MB, free: 84.21 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006412/0.9419, allocations: 238.2 kB / 431.8 MB, free: 84.02 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009361/0.9429, allocations: 263.6 kB / 432.1 MB, free: 83.77 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 422 * 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 (495): * Single equations (assignments): 491 * 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.003763/0.9467, allocations: 1.361 MB / 433.5 MB, free: 82.6 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005885/0.9473, allocations: 234.1 kB / 433.7 MB, free: 82.49 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006791/0.9541, allocations: 2.122 MB / 435.8 MB, free: 80.54 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.395e-05/0.9542, allocations: 12 kB / 435.8 MB, free: 80.53 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.989e-06/0.9542, allocations: 4 kB / 435.8 MB, free: 80.53 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.092e-05/0.9542, allocations: 3.984 kB / 435.8 MB, free: 80.52 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01374/0.968, allocations: 5.08 MB / 440.9 MB, free: 75.42 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.786e-05/0.968, allocations: 0 / 440.9 MB, free: 75.42 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001516/0.9695, allocations: 160.5 kB / 441.1 MB, free: 75.26 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003672/0.9732, allocations: 0.6796 MB / 441.7 MB, free: 74.58 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002402/0.9735, allocations: 23.94 kB / 441.8 MB, free: 74.55 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00742/0.9809, allocations: 3.987 MB / 445.8 MB, free: 70.46 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.869e-06/0.981, allocations: 4.094 kB / 445.8 MB, free: 70.46 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009743/0.9908, allocations: 4.058 MB / 449.8 MB, free: 66.43 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001386/0.9922, allocations: 462 kB / 450.3 MB, free: 65.95 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000425/0.9926, allocations: 12 kB / 450.3 MB, free: 65.94 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001669/0.9943, allocations: 73.53 kB / 450.4 MB, free: 65.87 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002673/0.9946, allocations: 60.25 kB / 450.4 MB, free: 65.81 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000124/0.9947, allocations: 35.98 kB / 450.4 MB, free: 65.78 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.00333/0.9981, allocations: 1.759 MB / 452.2 MB, free: 64.01 MB / 346.7 MB Notification: Performance of sort global known variables: time 5.31e-07/0.9981, allocations: 4.062 kB / 452.2 MB, free: 64 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.004556/1.003, allocations: 0.6871 MB / 452.9 MB, free: 63.33 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.01037/1.013, allocations: 4.706 MB / 457.6 MB, free: 58.6 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.007568/1.021, allocations: 3.442 MB / 461 MB, free: 55.17 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 5.35e-06/1.021, allocations: 0 / 461 MB, free: 55.17 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002037/1.023, allocations: 1.039 MB / 462.1 MB, free: 54.11 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001845/1.025, allocations: 243 kB / 462.3 MB, free: 53.88 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0537/1.078, allocations: 22.01 MB / 484.3 MB, free: 29.47 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002759/1.081, allocations: 2.287 MB / 486.6 MB, free: 27.15 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.005021/1.086, allocations: 1.314 MB / 487.9 MB, free: 25.83 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002139/1.088, allocations: 1.097 MB / 489 MB, free: 24.73 MB / 346.7 MB Notification: Performance of SimCode: time 2.184e-06/1.088, allocations: 0 / 489 MB, free: 24.73 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1405/1.229, allocations: 49.56 MB / 0.526 GB, free: 7.133 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000342/1.229, allocations: 223.3 kB / 0.5262 GB, free: 6.895 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.148/5.378, allocations: 0 / 0.5262 GB, free: 6.895 MB / 378.7 MB