Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravity",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity,fileNamePrefix="Modelica_3_2_3_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.001268/0.001276, allocations: 104.2 kB / 17.58 MB, free: 5.559 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.002066/0.002066, allocations: 192 kB / 18.51 MB, free: 4.641 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.112/2.112, allocations: 205.1 MB / 224.4 MB, free: 12.31 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001647/0.001647, allocations: 55.92 kB / 280.8 MB, free: 3.066 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1185/0.1201, allocations: 46.63 MB / 327.4 MB, free: 4.363 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity): time 0.01251/0.1327, allocations: 7 MB / 334.4 MB, free: 13.32 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.009253/0.142, allocations: 3.089 MB / 337.5 MB, free: 10.22 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001719/0.1438, allocations: 31.94 kB / 337.5 MB, free: 10.19 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002208/0.1461, allocations: 0.6574 MB / 338.2 MB, free: 9.527 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004083/0.1502, allocations: 1.393 MB / 339.6 MB, free: 8.129 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001278/0.1515, allocations: 0.4913 MB / 340 MB, free: 7.637 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.005619/0.1572, allocations: 3.14 MB / 343.2 MB, free: 4.488 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001322/0.1585, allocations: 455.2 kB / 343.6 MB, free: 4.035 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001878/0.1604, allocations: 0.7901 MB / 344.4 MB, free: 3.242 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002539/0.163, allocations: 1.226 MB / 345.7 MB, free: 2.012 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007846/0.1638, allocations: 132 kB / 345.8 MB, free: 1.883 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003107/0.1669, allocations: 0.9477 MB / 346.7 MB, free: 0.9336 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00173/0.1687, allocations: 1.087 MB / 347.8 MB, free: 15.84 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002431/0.1711, allocations: 1.238 MB / 349.1 MB, free: 14.6 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006005/0.1772, allocations: 3.898 MB / 353 MB, free: 10.69 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.788e-06/0.1772, allocations: 4 kB / 353 MB, free: 10.68 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.104e-06/0.1772, allocations: 0 / 353 MB, free: 10.68 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001727/0.1774, allocations: 0 / 353 MB, free: 10.68 MB / 302.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.01365/0.1911, allocations: 3.251 MB / 356.2 MB, free: 7.371 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.645e-05/0.1912, allocations: 16.03 kB / 356.2 MB, free: 7.355 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001739/0.1929, allocations: 429.4 kB / 356.6 MB, free: 6.926 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01492/0.2078, allocations: 1.908 MB / 358.5 MB, free: 5.012 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009302/0.2172, allocations: 2.546 MB / 361.1 MB, free: 2.422 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002829/0.2176, allocations: 114.6 kB / 361.2 MB, free: 2.309 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002427/0.22, allocations: 303.4 kB / 361.5 MB, free: 2.012 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03009/0.2501, allocations: 8.223 MB / 369.7 MB, free: 9.223 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001478/0.2503, allocations: 35.66 kB / 369.8 MB, free: 9.188 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005556/0.2509, allocations: 75.89 kB / 369.8 MB, free: 9.113 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004598/0.2555, allocations: 1.401 MB / 371.2 MB, free: 7.711 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.3076/0.5632, allocations: 9.527 MB / 380.8 MB, free: 48.41 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05481/0.6181, allocations: 30.57 MB / 411.3 MB, free: 26.73 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01978/0.6379, allocations: 4.377 MB / 415.7 MB, free: 24.27 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004493/0.6425, allocations: 2.12 MB / 417.8 MB, free: 22.9 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001145/0.6426, allocations: 13 kB / 417.8 MB, free: 22.89 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.037e-05/0.6427, allocations: 42.56 kB / 417.9 MB, free: 22.84 MB / 318.1 MB Notification: Performance of pre-optimization done (n=122): time 6.281e-06/0.6427, allocations: 0 / 417.9 MB, free: 22.84 MB / 318.1 MB Notification: Performance of matching and sorting (n=136): time 0.07526/0.718, allocations: 18.42 MB / 436.3 MB, free: 4.148 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.002625/0.7206, allocations: 3.239 MB / 439.5 MB, free: 0.5781 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00691/0.7276, allocations: 3.028 MB / 442.6 MB, free: 13.53 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008869/0.7285, allocations: 41.7 kB / 442.6 MB, free: 13.48 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002679/0.7312, allocations: 2.097 MB / 444.7 MB, free: 11.4 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001774/0.733, allocations: 0.5581 MB / 445.3 MB, free: 10.84 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002646/0.7357, allocations: 1.008 MB / 446.3 MB, free: 9.828 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001831/0.7359, allocations: 305.1 kB / 446.6 MB, free: 9.527 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00687/0.7428, allocations: 2.582 MB / 449.2 MB, free: 6.938 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01028/0.7531, allocations: 5.517 MB / 454.7 MB, free: 15.95 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01736/0.7705, allocations: 8.522 MB / 463.2 MB, free: 5.961 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001291/0.7707, allocations: 32 kB / 463.2 MB, free: 5.93 MB / 350.1 MB Notification: Performance of matching and sorting (n=636) (initialization): time 0.02733/0.798, allocations: 9.865 MB / 473.1 MB, free: 12.03 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.227e-05/0.7982, allocations: 48.97 kB / 473.1 MB, free: 11.98 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01465/0.8128, allocations: 5.112 MB / 478.2 MB, free: 6.836 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01048/0.8233, allocations: 2.355 MB / 480.6 MB, free: 4.453 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005085/0.8285, allocations: 1.232 MB / 481.8 MB, free: 3.219 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01122/0.8397, allocations: 8.697 MB / 490.5 MB, free: 9.973 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009206/0.849, allocations: 0.5652 MB / 491.1 MB, free: 9.406 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002143/0.8512, allocations: 316.2 kB / 491.4 MB, free: 9.098 MB / 382.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.005764/0.857, allocations: 1.422 MB / 492.8 MB, free: 7.668 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001253/0.8583, allocations: 252.7 kB / 493.1 MB, free: 7.418 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001425/0.8597, allocations: 419.3 kB / 493.5 MB, free: 7.004 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01945/0.8792, allocations: 5.021 MB / 498.5 MB, free: 1.945 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.293e-05/0.8793, allocations: 4 kB / 498.5 MB, free: 1.941 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.096e-05/0.8794, allocations: 7.984 kB / 498.5 MB, free: 1.934 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01661/0.896, allocations: 5.359 MB / 0.4921 GB, free: 12.53 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.846e-05/0.8961, allocations: 4 kB / 0.4921 GB, free: 12.52 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003242/0.8993, allocations: 367.4 kB / 0.4924 GB, free: 12.16 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01354/0.9129, allocations: 2.396 MB / 0.4948 GB, free: 9.742 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009326/0.9139, allocations: 55.88 kB / 0.4948 GB, free: 9.688 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01784/0.9318, allocations: 9.44 MB / 0.504 GB, free: 15.7 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.00343/0.9353, allocations: 3.076 MB / 0.507 GB, free: 12.32 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02905/0.9643, allocations: 8.777 MB / 0.5156 GB, free: 3.488 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001762/0.9662, allocations: 321.7 kB / 0.5159 GB, free: 3.152 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001793/0.968, allocations: 35.98 kB / 0.5159 GB, free: 3.117 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004841/0.9729, allocations: 319.4 kB / 0.5163 GB, free: 2.805 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001187/0.9741, allocations: 107.8 kB / 0.5164 GB, free: 2.699 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006161/0.9747, allocations: 51.95 kB / 0.5164 GB, free: 2.648 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0061/0.9809, allocations: 1.895 MB / 0.5183 GB, free: 0.75 MB / 414.1 MB Notification: Performance of sort global known variables: time 9.21e-07/0.9809, allocations: 0 / 0.5183 GB, free: 0.75 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.009617/0.9905, allocations: 0.9558 MB / 0.5192 GB, free: 15.79 MB / 430.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.02873/1.019, allocations: 9.42 MB / 0.5284 GB, free: 6.309 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.2778/1.297, allocations: 7.531 MB / 0.5357 GB, free: 149.6 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.881e-05/1.297, allocations: 4.406 kB / 0.5357 GB, free: 149.6 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.009185/1.306, allocations: 3.643 MB / 0.5393 GB, free: 148.7 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004704/1.311, allocations: 317.1 kB / 0.5396 GB, free: 148.7 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08158/1.393, allocations: 48.29 MB / 0.5868 GB, free: 109.9 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002245/1.395, allocations: 2.299 MB / 0.589 GB, free: 107.6 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0043/1.399, allocations: 1.66 MB / 0.5906 GB, free: 105.9 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001621/1.401, allocations: 1.175 MB / 0.5918 GB, free: 104.7 MB / 430.1 MB Notification: Performance of SimCode: time 9.82e-07/1.401, allocations: 0 / 0.5918 GB, free: 104.7 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1309/1.532, allocations: 65.98 MB / 0.6562 GB, free: 38.58 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 21.33/22.87, allocations: 7.938 kB / 0.6562 GB, free: 38.57 MB / 430.1 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_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_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravity.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Elementary/PointGravity/PointGravity.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches