Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravity",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001722/0.001728, allocations: 118.2 kB / 17.79 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002048/0.002048, allocations: 201.2 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.382/1.382, allocations: 227.4 MB / 246.9 MB, free: 10.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00132/0.00132, allocations: 63.91 kB / 358.2 MB, free: 13.42 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2832/0.2845, allocations: 50.54 MB / 408.8 MB, free: 1.527 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity): time 0.007662/0.2922, allocations: 6.953 MB / 415.7 MB, free: 10.54 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006156/0.2984, allocations: 3.115 MB / 418.8 MB, free: 7.422 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001005/0.2995, allocations: 35.88 kB / 418.9 MB, free: 7.387 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00158/0.3011, allocations: 0.6614 MB / 419.5 MB, free: 6.723 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003145/0.3043, allocations: 1.378 MB / 420.9 MB, free: 5.34 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000971/0.3053, allocations: 499.1 kB / 421.4 MB, free: 4.852 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.004093/0.3094, allocations: 3.211 MB / 424.6 MB, free: 1.633 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009469/0.3104, allocations: 459.1 kB / 425.1 MB, free: 1.172 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001341/0.3117, allocations: 0.7822 MB / 425.8 MB, free: 396 kB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001646/0.3134, allocations: 1.211 MB / 427 MB, free: 15.17 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003579/0.3137, allocations: 128 kB / 427.2 MB, free: 15.05 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001757/0.3155, allocations: 0.932 MB / 428.1 MB, free: 14.11 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001161/0.3167, allocations: 1.075 MB / 429.2 MB, free: 13.04 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001213/0.3179, allocations: 1.215 MB / 430.4 MB, free: 11.81 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004744/0.3227, allocations: 4.021 MB / 434.4 MB, free: 7.777 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.062e-06/0.3227, allocations: 4 kB / 434.4 MB, free: 7.773 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.924e-06/0.3227, allocations: 0 / 434.4 MB, free: 7.773 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001088/0.3228, allocations: 4 kB / 434.4 MB, free: 7.77 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.006495/0.3293, allocations: 3.278 MB / 437.7 MB, free: 4.426 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.63e-05/0.3294, allocations: 12.03 kB / 437.7 MB, free: 4.414 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000544/0.3299, allocations: 437.4 kB / 438.1 MB, free: 3.977 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008065/0.338, allocations: 2.043 MB / 440.2 MB, free: 1.93 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003741/0.3418, allocations: 2.058 MB / 442.2 MB, free: 15.82 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001001/0.3419, allocations: 114.6 kB / 442.4 MB, free: 15.71 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009678/0.3429, allocations: 303.5 kB / 442.6 MB, free: 15.41 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01421/0.3571, allocations: 8.223 MB / 450.9 MB, free: 6.621 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.826e-05/0.3572, allocations: 31.7 kB / 450.9 MB, free: 6.59 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002648/0.3575, allocations: 75.89 kB / 451 MB, free: 6.516 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002/0.3595, allocations: 1.401 MB / 452.4 MB, free: 5.109 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01706/0.3766, allocations: 9.542 MB / 461.9 MB, free: 11.56 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03272/0.4094, allocations: 30.5 MB / 492.4 MB, free: 12.21 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01138/0.4208, allocations: 4.383 MB / 496.8 MB, free: 7.672 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003031/0.4239, allocations: 2.116 MB / 498.9 MB, free: 5.539 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.439e-05/0.424, allocations: 15.98 kB / 498.9 MB, free: 5.523 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.994e-05/0.424, allocations: 50.5 kB / 499 MB, free: 5.465 MB / 414.1 MB Notification: Performance of pre-optimization done (n=122): time 3.898e-06/0.424, allocations: 0 / 499 MB, free: 5.465 MB / 414.1 MB Notification: Performance of matching and sorting (n=136): time 0.0435/0.4675, allocations: 18.47 MB / 0.5053 GB, free: 2.727 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00231/0.4699, allocations: 3.231 MB / 0.5085 GB, free: 15.16 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003882/0.4738, allocations: 3.008 MB / 0.5114 GB, free: 12.13 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005362/0.4744, allocations: 41.7 kB / 0.5114 GB, free: 12.09 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001427/0.4758, allocations: 2.163 MB / 0.5136 GB, free: 9.902 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000915/0.4767, allocations: 0.5854 MB / 0.5141 GB, free: 9.312 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001452/0.4782, allocations: 1.008 MB / 0.5151 GB, free: 8.293 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 9.961e-05/0.4783, allocations: 309.1 kB / 0.5154 GB, free: 7.988 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003612/0.4819, allocations: 2.574 MB / 0.5179 GB, free: 5.406 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005838/0.4878, allocations: 5.525 MB / 0.5233 GB, free: 14.41 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01056/0.4983, allocations: 8.517 MB / 0.5316 GB, free: 4.43 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001054/0.4985, allocations: 32 kB / 0.5317 GB, free: 4.398 MB / 462.1 MB Notification: Performance of matching and sorting (n=636) (initialization): time 0.2617/0.7602, allocations: 9.879 MB / 0.5413 GB, free: 120.4 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.155e-05/0.7603, allocations: 51.28 kB / 0.5414 GB, free: 120.4 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01078/0.7711, allocations: 5.108 MB / 0.5464 GB, free: 119.6 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008137/0.7793, allocations: 2.355 MB / 0.5487 GB, free: 119.3 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004006/0.7833, allocations: 1.23 MB / 0.5499 GB, free: 119.3 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006687/0.79, allocations: 8.696 MB / 0.5583 GB, free: 111.6 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00467/0.7948, allocations: 0.5588 MB / 0.5589 GB, free: 111.1 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007917/0.7956, allocations: 315.2 kB / 0.5592 GB, free: 110.8 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.002033/0.7976, allocations: 1.413 MB / 0.5606 GB, free: 109.5 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004934/0.7981, allocations: 267.6 kB / 0.5608 GB, free: 109.4 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006959/0.7988, allocations: 415.2 kB / 0.5612 GB, free: 109 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.009576/0.8084, allocations: 5.014 MB / 0.5661 GB, free: 103.9 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.225e-05/0.8084, allocations: 4 kB / 0.5661 GB, free: 103.9 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.023e-05/0.8085, allocations: 8.125 kB / 0.5661 GB, free: 103.9 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006859/0.8153, allocations: 5.355 MB / 0.5714 GB, free: 98.59 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.015e-05/0.8154, allocations: 4 kB / 0.5714 GB, free: 98.59 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001567/0.8169, allocations: 367.4 kB / 0.5717 GB, free: 98.23 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007312/0.8243, allocations: 2.392 MB / 0.5741 GB, free: 95.82 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003865/0.8247, allocations: 47.05 kB / 0.5741 GB, free: 95.77 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007265/0.832, allocations: 9.453 MB / 0.5833 GB, free: 85.83 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001466/0.8335, allocations: 3.067 MB / 0.5863 GB, free: 82.48 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01404/0.8475, allocations: 8.786 MB / 0.5949 GB, free: 73.7 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006262/0.8482, allocations: 340.6 kB / 0.5952 GB, free: 73.36 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000489/0.8487, allocations: 35.92 kB / 0.5953 GB, free: 73.32 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001928/0.8506, allocations: 319.4 kB / 0.5956 GB, free: 73.01 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004567/0.8511, allocations: 107.5 kB / 0.5957 GB, free: 72.9 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001645/0.8513, allocations: 53.81 kB / 0.5957 GB, free: 72.85 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002249/0.8535, allocations: 1.871 MB / 0.5975 GB, free: 70.98 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.8535, allocations: 0 / 0.5975 GB, free: 70.98 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003951/0.8575, allocations: 0.9449 MB / 0.5985 GB, free: 70.04 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.01409/0.8716, allocations: 9.418 MB / 0.6077 GB, free: 60.57 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.01034/0.882, allocations: 7.267 MB / 0.6148 GB, free: 53.18 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 6.552e-06/0.882, allocations: 0 / 0.6148 GB, free: 53.18 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005286/0.8873, allocations: 3.664 MB / 0.6183 GB, free: 49.38 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002263/0.8896, allocations: 309.6 kB / 0.6186 GB, free: 49.09 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06326/0.9529, allocations: 45.19 MB / 0.6628 GB, free: 15.59 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00235/0.9553, allocations: 2.298 MB / 0.665 GB, free: 13.27 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.003678/0.959, allocations: 1.663 MB / 0.6666 GB, free: 11.6 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001861/0.9609, allocations: 1.167 MB / 0.6678 GB, free: 10.43 MB / 478.1 MB Notification: Performance of SimCode: time 8.42e-07/0.9609, allocations: 0 / 0.6678 GB, free: 10.43 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1563/1.117, allocations: 62.57 MB / 0.7289 GB, free: 12.17 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.75/19.87, allocations: 14.98 kB / 0.7289 GB, free: 12.16 MB / 0.5294 GB (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravity.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches