Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.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.PointGravityWithPointMasses,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravityWithPointMasses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravityWithPointMasses",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.001055/0.001055, allocations: 114.2 kB / 17.28 MB, free: 6.219 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.0009658/0.0009658, allocations: 189.3 kB / 18.2 MB, free: 5.301 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.28/1.28, allocations: 205.1 MB / 224 MB, free: 12.46 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.001126/0.001126, allocations: 51.92 kB / 280.3 MB, free: 3.395 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07796/0.0791, allocations: 46.63 MB / 326.9 MB, free: 4.703 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses): time 0.02435/0.1035, allocations: 28.95 MB / 355.8 MB, free: 7.625 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01301/0.1165, allocations: 5.941 MB / 361.8 MB, free: 1.664 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005582/0.1222, allocations: 115.8 kB / 361.9 MB, free: 1.551 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003147/0.1254, allocations: 1.352 MB / 363.2 MB, free: 200 kB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002524/0.1279, allocations: 0.9184 MB / 364.2 MB, free: 15.27 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006927/0.1287, allocations: 239.7 kB / 364.4 MB, free: 15.04 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.002434/0.1311, allocations: 2.228 MB / 366.6 MB, free: 12.8 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00172/0.1328, allocations: 1.661 MB / 368.3 MB, free: 11.12 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009416/0.1338, allocations: 0.8405 MB / 369.1 MB, free: 10.28 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001397/0.1352, allocations: 1.339 MB / 370.5 MB, free: 8.934 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002627/0.1355, allocations: 164 kB / 370.6 MB, free: 8.773 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001108/0.1366, allocations: 0.663 MB / 371.3 MB, free: 8.109 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009363/0.1375, allocations: 1.188 MB / 372.5 MB, free: 6.918 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001139/0.1387, allocations: 1.394 MB / 373.9 MB, free: 5.516 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003975/0.1427, allocations: 4.158 MB / 378 MB, free: 1.344 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.384e-06/0.1427, allocations: 0 / 378 MB, free: 1.344 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.964e-06/0.1427, allocations: 0 / 378 MB, free: 1.344 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001101/0.1428, allocations: 0 / 378 MB, free: 1.344 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1113 * Number of variables: 1113 Notification: Performance of Generate backend data structure: time 0.1616/0.3044, allocations: 2.946 MB / 381 MB, free: 55.11 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.883e-05/0.3045, allocations: 9.625 kB / 381 MB, free: 55.11 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007189/0.3052, allocations: 0.5293 MB / 381.5 MB, free: 54.86 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007279/0.3125, allocations: 1.778 MB / 383.3 MB, free: 54.62 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002387/0.3149, allocations: 1.159 MB / 384.4 MB, free: 53.92 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001168/0.315, allocations: 148.6 kB / 384.6 MB, free: 53.88 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003759/0.3154, allocations: 207 kB / 384.8 MB, free: 53.84 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01784/0.3333, allocations: 8.602 MB / 393.4 MB, free: 49.31 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.667e-05/0.3334, allocations: 44.33 kB / 393.4 MB, free: 49.29 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002626/0.3337, allocations: 101.5 kB / 393.5 MB, free: 49.22 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002505/0.3362, allocations: 1.668 MB / 395.2 MB, free: 48.55 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01441/0.3506, allocations: 7.166 MB / 402.4 MB, free: 41.5 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02281/0.3735, allocations: 30.19 MB / 432.6 MB, free: 10.46 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02162/0.3951, allocations: 5.042 MB / 437.6 MB, free: 5.242 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001249/0.3964, allocations: 1.236 MB / 438.8 MB, free: 3.984 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004134/0.4005, allocations: 3.746 MB / 442.6 MB, free: 96 kB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.72e-05/0.4006, allocations: 54.83 kB / 442.6 MB, free: 32 kB / 318.1 MB Notification: Performance of pre-optimization done (n=111): time 3.055e-06/0.4006, allocations: 0 / 442.6 MB, free: 32 kB / 318.1 MB Notification: Performance of matching and sorting (n=111): time 0.04574/0.4463, allocations: 9.262 MB / 451.9 MB, free: 6.684 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.113e-05/0.4465, allocations: 191.9 kB / 452.1 MB, free: 6.453 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003689/0.4502, allocations: 3.035 MB / 455.1 MB, free: 3.398 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001254/0.4503, allocations: 45.7 kB / 455.2 MB, free: 3.348 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001573/0.4519, allocations: 2.422 MB / 457.6 MB, free: 0.8867 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004956/0.4524, allocations: 0.4979 MB / 458.1 MB, free: 392 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00133/0.4537, allocations: 1.087 MB / 459.2 MB, free: 15.28 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001083/0.4538, allocations: 305.1 kB / 459.5 MB, free: 14.98 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002201/0.4561, allocations: 1.603 MB / 461.1 MB, free: 13.38 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004829/0.4609, allocations: 5.177 MB / 466.3 MB, free: 6.395 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008011/0.4689, allocations: 7.321 MB / 473.6 MB, free: 13.29 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000106/0.4691, allocations: 36 kB / 473.6 MB, free: 13.25 MB / 366.1 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.0108/0.4799, allocations: 6.443 MB / 480.1 MB, free: 6.805 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.839e-05/0.48, allocations: 56.09 kB / 480.1 MB, free: 6.75 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001099/0.4801, allocations: 132.8 kB / 480.2 MB, free: 6.621 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001668/0.4803, allocations: 168 kB / 480.4 MB, free: 6.457 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004739/0.485, allocations: 1.454 MB / 481.9 MB, free: 5 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002055/0.4853, allocations: 251 kB / 482.1 MB, free: 4.754 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004123/0.4894, allocations: 0.7499 MB / 482.9 MB, free: 3.996 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004774/0.4899, allocations: 344 kB / 483.2 MB, free: 3.66 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 580 * Number of states: 0 () * Number of discrete variables: 30 (spring.color[3],spring.color[2],spring.color[1],spring.massColor[3],spring.massColor[2],spring.massColor[1],body4.sphereColor[3],body4.sphereColor[2],body4.sphereColor[1],body3.sphereColor[3],body3.sphereColor[2],body3.sphereColor[1],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 (681): * Single equations (assignments): 678 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002164/0.4921, allocations: 1.571 MB / 484.8 MB, free: 2.074 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004967/0.4926, allocations: 248.8 kB / 485 MB, free: 1.828 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001286/0.4939, allocations: 0.8296 MB / 485.8 MB, free: 0.9922 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.617e-05/0.4939, allocations: 15.94 kB / 485.8 MB, free: 0.9766 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.183e-05/0.4939, allocations: 4 kB / 485.9 MB, free: 0.9727 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.177e-05/0.4939, allocations: 3.984 kB / 485.9 MB, free: 0.9688 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005407/0.4993, allocations: 3.402 MB / 489.3 MB, free: 13.51 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.224e-06/0.4994, allocations: 0 / 489.3 MB, free: 13.51 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002326/0.5017, allocations: 411.5 kB / 489.7 MB, free: 13.11 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.798e-06/0.5017, allocations: 4 kB / 489.7 MB, free: 13.1 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.442e-05/0.5018, allocations: 35.97 kB / 489.7 MB, free: 13.07 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.474e-06/0.5018, allocations: 4 kB / 489.7 MB, free: 13.06 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.608e-06/0.5019, allocations: 7.938 kB / 489.7 MB, free: 13.05 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003194/0.5051, allocations: 2.776 MB / 492.5 MB, free: 10.25 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006045/0.5057, allocations: 301.6 kB / 492.8 MB, free: 9.934 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002564/0.5059, allocations: 27.98 kB / 492.8 MB, free: 9.906 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00087/0.5068, allocations: 41.69 kB / 492.8 MB, free: 9.867 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00014/0.507, allocations: 67.78 kB / 492.9 MB, free: 9.801 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.833e-05/0.5071, allocations: 35.98 kB / 492.9 MB, free: 9.766 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002675/0.5097, allocations: 1.841 MB / 494.8 MB, free: 7.922 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5097, allocations: 4 kB / 494.8 MB, free: 7.918 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.00426/0.514, allocations: 0.8248 MB / 495.6 MB, free: 7.094 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 24 (body1.r_0[1],body1.r_0[2],body1.r_0[3],body1.v_0[1],body1.v_0[2],body1.v_0[3],body2.r_0[1],body2.r_0[2],body2.r_0[3],body2.v_0[1],body2.v_0[2],body2.v_0[3],body3.r_0[1],body3.r_0[2],body3.r_0[3],body3.v_0[1],body3.v_0[2],body3.v_0[3],body4.r_0[1],body4.r_0[2],body4.r_0[3],body4.v_0[1],body4.v_0[2],body4.v_0[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 (87): * Single equations (assignments): 84 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00372/0.5177, allocations: 3.423 MB / 499 MB, free: 3.648 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.006129/0.5239, allocations: 3.814 MB / 0.4911 GB, free: 15.88 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 7.193e-06/0.5239, allocations: 0 / 0.4911 GB, free: 15.88 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000894/0.5248, allocations: 0.7103 MB / 0.4918 GB, free: 15.16 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00191/0.5267, allocations: 267.4 kB / 0.492 GB, free: 14.91 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04844/0.5752, allocations: 38.11 MB / 0.5292 GB, free: 2.242 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1381/0.7133, allocations: 2.383 MB / 0.5316 GB, free: 150.8 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.00408/0.7174, allocations: 1.632 MB / 0.5332 GB, free: 150.8 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001306/0.7187, allocations: 1.215 MB / 0.5343 GB, free: 150.8 MB / 430.1 MB Notification: Performance of SimCode: time 8.62e-07/0.7187, allocations: 3.281 kB / 0.5343 GB, free: 150.8 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05656/0.7753, allocations: 46.53 MB / 0.5798 GB, free: 117.7 MB / 430.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000132/0.7755, allocations: 248.3 kB / 0.58 GB, free: 117.4 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.227/4.003, allocations: 0 / 0.58 GB, free: 117.4 MB / 430.1 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravityWithPointMasses_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravityWithPointMasses.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Elementary/PointGravityWithPointMasses/PointGravityWithPointMasses.csv","../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches