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.001166/0.001166, allocations: 114.6 kB / 17.07 MB, free: 6.016 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.001006/0.001006, allocations: 191 kB / 18 MB, free: 5.098 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.292/1.292, allocations: 222.9 MB / 241.7 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001096/0.001096, allocations: 47.92 kB / 350.8 MB, free: 3.777 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2785/0.2796, allocations: 49.45 MB / 400.2 MB, free: 8.43 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity): time 0.007886/0.2875, allocations: 6.975 MB / 407.2 MB, free: 1.844 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.007/0.2946, allocations: 3.103 MB / 410.3 MB, free: 14.73 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001559/0.2962, allocations: 31.94 kB / 410.4 MB, free: 14.7 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001934/0.2982, allocations: 0.6614 MB / 411 MB, free: 14.04 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003885/0.3021, allocations: 1.409 MB / 412.4 MB, free: 12.62 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001294/0.3034, allocations: 0.4952 MB / 412.9 MB, free: 12.12 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.005592/0.309, allocations: 3.12 MB / 416 MB, free: 8.996 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009489/0.31, allocations: 451.1 kB / 416.5 MB, free: 8.543 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001347/0.3113, allocations: 0.7977 MB / 417.3 MB, free: 7.742 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002105/0.3135, allocations: 1.207 MB / 418.5 MB, free: 6.531 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005684/0.3141, allocations: 132 kB / 418.6 MB, free: 6.402 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001971/0.316, allocations: 0.9555 MB / 419.6 MB, free: 5.445 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001149/0.3172, allocations: 1.087 MB / 420.7 MB, free: 4.355 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001206/0.3184, allocations: 1.23 MB / 421.9 MB, free: 3.117 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004619/0.323, allocations: 4.075 MB / 426 MB, free: 15.03 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.586e-06/0.3231, allocations: 0 / 426 MB, free: 15.03 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.984e-06/0.3231, allocations: 3.938 kB / 426 MB, free: 15.02 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.405e-05/0.3232, allocations: 0 / 426 MB, free: 15.02 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.006487/0.3297, allocations: 3.305 MB / 429.3 MB, free: 11.65 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.49e-05/0.3298, allocations: 12.03 kB / 429.3 MB, free: 11.64 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004943/0.3303, allocations: 441.4 kB / 429.7 MB, free: 11.2 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007918/0.3382, allocations: 1.926 MB / 431.6 MB, free: 9.27 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00425/0.3425, allocations: 2.269 MB / 433.9 MB, free: 6.953 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.296e-05/0.3426, allocations: 110.6 kB / 434 MB, free: 6.844 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008175/0.3434, allocations: 299.5 kB / 434.3 MB, free: 6.551 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0142/0.3576, allocations: 8.227 MB / 442.5 MB, free: 13.76 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.747e-05/0.3577, allocations: 43.69 kB / 442.6 MB, free: 13.71 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000273/0.358, allocations: 79.89 kB / 442.7 MB, free: 13.64 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002163/0.3602, allocations: 1.397 MB / 444.1 MB, free: 12.23 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01762/0.3778, allocations: 9.542 MB / 453.6 MB, free: 2.68 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03519/0.4131, allocations: 30.5 MB / 484.1 MB, free: 3.324 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01208/0.4252, allocations: 4.379 MB / 488.5 MB, free: 14.79 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003069/0.4283, allocations: 2.109 MB / 490.6 MB, free: 12.66 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001281/0.4285, allocations: 17.05 kB / 490.6 MB, free: 12.64 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.78e-05/0.4285, allocations: 50.44 kB / 490.6 MB, free: 12.59 MB / 414.1 MB Notification: Performance of pre-optimization done (n=122): time 4.659e-06/0.4285, allocations: 0 / 490.6 MB, free: 12.59 MB / 414.1 MB Notification: Performance of matching and sorting (n=136): time 0.0517/0.4802, allocations: 18.49 MB / 0.4972 GB, free: 9.832 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.002628/0.4829, allocations: 3.239 MB / 0.5004 GB, free: 6.258 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005638/0.4886, allocations: 3.012 MB / 0.5033 GB, free: 3.227 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007103/0.4893, allocations: 45.69 kB / 0.5034 GB, free: 3.176 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00203/0.4914, allocations: 2.163 MB / 0.5055 GB, free: 0.9922 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001386/0.4928, allocations: 0.5893 MB / 0.506 GB, free: 408 kB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002963/0.4958, allocations: 1.008 MB / 0.507 GB, free: 15.38 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 9.655e-05/0.4959, allocations: 309.1 kB / 0.5073 GB, free: 15.07 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004202/0.5001, allocations: 2.574 MB / 0.5098 GB, free: 12.49 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006856/0.507, allocations: 5.521 MB / 0.5152 GB, free: 5.496 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01082/0.5178, allocations: 8.512 MB / 0.5235 GB, free: 11.53 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001077/0.518, allocations: 36 kB / 0.5236 GB, free: 11.49 MB / 462.1 MB Notification: Performance of matching and sorting (n=636) (initialization): time 0.0242/0.5422, allocations: 9.883 MB / 0.5332 GB, free: 1.574 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002232/0.5425, allocations: 48 kB / 0.5333 GB, free: 1.527 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.2565/0.799, allocations: 5.096 MB / 0.5382 GB, free: 128.6 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008352/0.8074, allocations: 2.356 MB / 0.5405 GB, free: 128.6 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003757/0.8112, allocations: 1.23 MB / 0.5417 GB, free: 128.6 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007273/0.8185, allocations: 8.69 MB / 0.5502 GB, free: 122.4 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004792/0.8233, allocations: 0.5605 MB / 0.5508 GB, free: 122.3 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008008/0.8242, allocations: 312.8 kB / 0.5511 GB, free: 122.3 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.001954/0.8261, allocations: 1.419 MB / 0.5525 GB, free: 121.7 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004827/0.8266, allocations: 270.2 kB / 0.5527 GB, free: 121.7 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008688/0.8275, allocations: 413.7 kB / 0.5531 GB, free: 121.4 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01036/0.8379, allocations: 5.024 MB / 0.558 GB, free: 118.2 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.612e-05/0.8379, allocations: 5.375 kB / 0.558 GB, free: 118.2 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.381e-05/0.838, allocations: 11.38 kB / 0.558 GB, free: 118.2 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006843/0.8448, allocations: 5.342 MB / 0.5633 GB, free: 112.9 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.476e-06/0.8448, allocations: 4 kB / 0.5633 GB, free: 112.9 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001674/0.8465, allocations: 375.3 kB / 0.5636 GB, free: 112.5 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008072/0.8546, allocations: 2.386 MB / 0.5659 GB, free: 110.1 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000698/0.8554, allocations: 55.89 kB / 0.566 GB, free: 110 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007619/0.863, allocations: 9.449 MB / 0.5752 GB, free: 100.1 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001645/0.8647, allocations: 3.065 MB / 0.5782 GB, free: 96.8 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01569/0.8804, allocations: 8.795 MB / 0.5868 GB, free: 88.13 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000746/0.8812, allocations: 330.2 kB / 0.5871 GB, free: 87.79 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005303/0.8818, allocations: 39.98 kB / 0.5872 GB, free: 87.75 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001998/0.8838, allocations: 319.3 kB / 0.5875 GB, free: 87.44 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004168/0.8842, allocations: 105.3 kB / 0.5876 GB, free: 87.34 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001596/0.8844, allocations: 59.42 kB / 0.5876 GB, free: 87.29 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002131/0.8865, allocations: 1.875 MB / 0.5895 GB, free: 85.41 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.8865, allocations: 0 / 0.5895 GB, free: 85.41 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003869/0.8904, allocations: 0.9566 MB / 0.5904 GB, free: 84.46 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.01362/0.904, allocations: 9.442 MB / 0.5996 GB, free: 74.97 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.009436/0.9135, allocations: 7.26 MB / 0.6067 GB, free: 67.6 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.709e-06/0.9135, allocations: 0 / 0.6067 GB, free: 67.6 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005149/0.9187, allocations: 3.649 MB / 0.6103 GB, free: 63.81 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002053/0.9208, allocations: 306 kB / 0.6106 GB, free: 63.52 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06067/0.9814, allocations: 45.24 MB / 0.6547 GB, free: 13.94 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002289/0.9838, allocations: 2.29 MB / 0.657 GB, free: 11.62 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.003602/0.9874, allocations: 1.66 MB / 0.6586 GB, free: 9.949 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001618/0.989, allocations: 1.171 MB / 0.6597 GB, free: 8.777 MB / 462.1 MB Notification: Performance of SimCode: time 7.62e-07/0.9891, allocations: 4 kB / 0.6597 GB, free: 8.773 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1058/1.095, allocations: 62.65 MB / 0.7209 GB, free: 10.49 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.98/19.08, allocations: 0 / 0.7209 GB, free: 10.49 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