Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravity",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravity",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001104/0.001104, allocations: 108.5 kB / 17.05 MB, free: 6.09 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00104/0.00104, allocations: 192 kB / 17.99 MB, free: 5.184 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.327/1.327, allocations: 222.9 MB / 241.7 MB, free: 15.09 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001079/0.001079, allocations: 55.91 kB / 350.8 MB, free: 3.723 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2943/0.2954, allocations: 49.44 MB / 400.2 MB, free: 8.383 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity): time 0.007712/0.3032, allocations: 6.967 MB / 407.2 MB, free: 1.809 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.006262/0.3095, allocations: 3.1 MB / 410.3 MB, free: 14.7 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00114/0.3107, allocations: 39.88 kB / 410.3 MB, free: 14.66 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001834/0.3126, allocations: 0.6536 MB / 411 MB, free: 14 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003568/0.3162, allocations: 1.42 MB / 412.4 MB, free: 12.58 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001107/0.3173, allocations: 0.4952 MB / 412.9 MB, free: 12.08 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00397/0.3213, allocations: 3.121 MB / 416 MB, free: 8.953 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009858/0.3223, allocations: 451.2 kB / 416.5 MB, free: 8.5 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001542/0.3239, allocations: 0.7939 MB / 417.3 MB, free: 7.703 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002005/0.3259, allocations: 1.211 MB / 418.5 MB, free: 6.488 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005863/0.3265, allocations: 132 kB / 418.6 MB, free: 6.359 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002164/0.3287, allocations: 0.9594 MB / 419.6 MB, free: 5.398 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001534/0.3302, allocations: 1.079 MB / 420.6 MB, free: 4.316 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002142/0.3324, allocations: 1.234 MB / 421.9 MB, free: 3.074 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005699/0.3381, allocations: 4.076 MB / 426 MB, free: 14.98 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.761e-06/0.3381, allocations: 0 / 426 MB, free: 14.98 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.084e-06/0.3381, allocations: 0 / 426 MB, free: 14.98 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001542/0.3383, allocations: 3.938 kB / 426 MB, free: 14.98 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 911 * Number of variables: 911 Notification: Performance of Generate backend data structure: time 0.00988/0.3482, allocations: 3.309 MB / 429.3 MB, free: 11.6 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.386e-05/0.3483, allocations: 11.97 kB / 429.3 MB, free: 11.59 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001206/0.3495, allocations: 437.4 kB / 429.7 MB, free: 11.15 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008386/0.3579, allocations: 1.926 MB / 431.6 MB, free: 9.223 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004775/0.3627, allocations: 2.273 MB / 433.9 MB, free: 6.902 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001415/0.3629, allocations: 110.6 kB / 434 MB, free: 6.793 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001275/0.3641, allocations: 303.5 kB / 434.3 MB, free: 6.496 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01606/0.3802, allocations: 8.219 MB / 442.5 MB, free: 13.71 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000115/0.3804, allocations: 43.69 kB / 442.6 MB, free: 13.67 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006096/0.381, allocations: 79.89 kB / 442.6 MB, free: 13.59 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002264/0.3833, allocations: 1.393 MB / 444 MB, free: 12.19 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0181/0.4014, allocations: 9.542 MB / 453.6 MB, free: 2.637 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03864/0.4401, allocations: 30.51 MB / 484.1 MB, free: 3.281 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01229/0.4524, allocations: 4.375 MB / 488.5 MB, free: 14.75 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002819/0.4553, allocations: 2.113 MB / 490.6 MB, free: 12.62 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001173/0.4554, allocations: 13.05 kB / 490.6 MB, free: 12.61 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.675e-05/0.4555, allocations: 54.55 kB / 490.6 MB, free: 12.54 MB / 414.1 MB Notification: Performance of pre-optimization done (n=122): time 4.348e-06/0.4555, allocations: 224 / 490.6 MB, free: 12.54 MB / 414.1 MB Notification: Performance of matching and sorting (n=136): time 0.04949/0.505, allocations: 18.49 MB / 0.4972 GB, free: 9.785 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00243/0.5074, allocations: 3.228 MB / 0.5004 GB, free: 6.223 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005038/0.5125, allocations: 3.008 MB / 0.5033 GB, free: 3.195 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005688/0.5131, allocations: 49.69 kB / 0.5033 GB, free: 3.141 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001578/0.5147, allocations: 2.167 MB / 0.5055 GB, free: 0.9531 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001079/0.5158, allocations: 0.5893 MB / 0.506 GB, free: 368 kB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002559/0.5184, allocations: 1.008 MB / 0.507 GB, free: 15.34 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 9.456e-05/0.5185, allocations: 312.9 kB / 0.5073 GB, free: 15.03 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003975/0.5225, allocations: 2.574 MB / 0.5098 GB, free: 12.45 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006099/0.5286, allocations: 5.521 MB / 0.5152 GB, free: 5.453 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009901/0.5385, allocations: 8.518 MB / 0.5235 GB, free: 11.48 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.739e-05/0.5387, allocations: 28 kB / 0.5236 GB, free: 11.45 MB / 462.1 MB Notification: Performance of matching and sorting (n=636) (initialization): time 0.02177/0.5604, allocations: 9.883 MB / 0.5332 GB, free: 1.531 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001083/0.5606, allocations: 52 kB / 0.5333 GB, free: 1.48 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.2429/0.8035, allocations: 5.095 MB / 0.5382 GB, free: 128.1 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00842/0.812, allocations: 2.351 MB / 0.5405 GB, free: 128 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003892/0.8159, allocations: 1.23 MB / 0.5417 GB, free: 128 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006741/0.8227, allocations: 8.692 MB / 0.5502 GB, free: 121.8 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005459/0.8282, allocations: 0.5683 MB / 0.5508 GB, free: 121.7 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001041/0.8293, allocations: 309.9 kB / 0.5511 GB, free: 121.7 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 475 * Number of states: 0 () * Number of discrete variables: 18 (body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[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 (584): * Single equations (assignments): 569 * Array equations: 7 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 6 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 4 systems {(3,100.0%), (4,100.0%), (3,100.0%), (4,100.0%)} * Non-linear Jacobian (size): 2 systems {4, 4} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(2,1,100.0%), (2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002289/0.8316, allocations: 1.409 MB / 0.5525 GB, free: 121.1 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005331/0.8321, allocations: 271.3 kB / 0.5527 GB, free: 121.1 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006848/0.8328, allocations: 419.1 kB / 0.5531 GB, free: 120.8 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01043/0.8432, allocations: 5.017 MB / 0.558 GB, free: 117.5 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.344e-05/0.8433, allocations: 4 kB / 0.558 GB, free: 117.5 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.401e-05/0.8434, allocations: 7.984 kB / 0.558 GB, free: 117.5 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008208/0.8516, allocations: 5.365 MB / 0.5633 GB, free: 112.1 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.51e-05/0.8516, allocations: 0 / 0.5633 GB, free: 112.1 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00173/0.8534, allocations: 372.2 kB / 0.5636 GB, free: 111.8 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007736/0.8611, allocations: 2.386 MB / 0.5659 GB, free: 109.4 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004964/0.8616, allocations: 51.89 kB / 0.566 GB, free: 109.3 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007082/0.8687, allocations: 9.449 MB / 0.5752 GB, free: 99.4 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.00138/0.8701, allocations: 3.059 MB / 0.5782 GB, free: 96.07 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01433/0.8845, allocations: 8.786 MB / 0.5868 GB, free: 87.41 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007176/0.8853, allocations: 334.3 kB / 0.5871 GB, free: 87.08 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005777/0.8858, allocations: 39.98 kB / 0.5871 GB, free: 87.04 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002087/0.8879, allocations: 323.3 kB / 0.5875 GB, free: 86.72 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00038/0.8883, allocations: 105.5 kB / 0.5876 GB, free: 86.62 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001579/0.8885, allocations: 55.91 kB / 0.5876 GB, free: 86.57 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.00221/0.8907, allocations: 1.878 MB / 0.5894 GB, free: 84.69 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.8907, allocations: 0 / 0.5894 GB, free: 84.69 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003906/0.8946, allocations: 0.9536 MB / 0.5904 GB, free: 83.74 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 24 ($STATESET2.x[3],$STATESET2.x[2],$STATESET2.x[1],body2.frame_a.r_0[1],body2.frame_a.r_0[2],body2.frame_a.r_0[3],body2.v_0[1],body2.v_0[2],body2.v_0[3],body2.w_a[1],body2.w_a[2],body2.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 (92): * Single equations (assignments): 81 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 6 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 4 systems {(3,100.0%), (4,100.0%), (3,100.0%), (4,100.0%)} * Non-linear Jacobian (size): 2 systems {4, 4} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(2,1,100.0%), (2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01419/0.9088, allocations: 9.442 MB / 0.5996 GB, free: 74.26 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.01028/0.9192, allocations: 7.263 MB / 0.6067 GB, free: 66.89 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.821e-06/0.9192, allocations: 2.625 kB / 0.6067 GB, free: 66.89 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005493/0.9247, allocations: 3.653 MB / 0.6103 GB, free: 63.1 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002523/0.9273, allocations: 305.7 kB / 0.6105 GB, free: 62.8 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0647/0.992, allocations: 45.23 MB / 0.6547 GB, free: 13.27 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001719/0.9938, allocations: 2.289 MB / 0.657 GB, free: 10.95 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.003203/0.997, allocations: 1.66 MB / 0.6586 GB, free: 9.285 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001675/0.9987, allocations: 1.171 MB / 0.6597 GB, free: 8.117 MB / 462.1 MB Notification: Performance of SimCode: time 1.112e-06/0.9987, allocations: 0 / 0.6597 GB, free: 8.117 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1108/1.109, allocations: 62.65 MB / 0.7209 GB, free: 9.828 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.06/19.17, allocations: 6.469 kB / 0.7209 GB, free: 9.824 MB / 0.5137 GB (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravity.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/PointGravity/PointGravity.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches