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.001173/0.001173, allocations: 107.4 kB / 17.15 MB, free: 6.328 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.001147/0.001147, allocations: 198 kB / 18.07 MB, free: 5.434 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.277/1.277, allocations: 205.1 MB / 223.9 MB, free: 12.49 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.001095/0.001095, allocations: 47.91 kB / 280.1 MB, free: 3.496 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07908/0.08019, allocations: 46.63 MB / 326.7 MB, free: 4.793 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses): time 0.02511/0.1053, allocations: 28.94 MB / 355.6 MB, free: 7.73 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01185/0.1172, allocations: 5.977 MB / 361.6 MB, free: 1.734 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004271/0.1215, allocations: 119.7 kB / 361.7 MB, free: 1.617 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00281/0.1244, allocations: 1.41 MB / 363.1 MB, free: 208 kB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002275/0.1267, allocations: 0.9262 MB / 364.1 MB, free: 15.27 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006405/0.1274, allocations: 243.6 kB / 364.3 MB, free: 15.04 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.003378/0.1308, allocations: 3.289 MB / 367.6 MB, free: 11.73 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001881/0.1327, allocations: 1.546 MB / 369.1 MB, free: 10.17 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009669/0.1336, allocations: 0.7352 MB / 369.9 MB, free: 9.43 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001459/0.1351, allocations: 1.296 MB / 371.2 MB, free: 8.129 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002761/0.1354, allocations: 112 kB / 371.3 MB, free: 8.02 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001198/0.1366, allocations: 0.6357 MB / 371.9 MB, free: 7.383 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009644/0.1376, allocations: 1.149 MB / 373.1 MB, free: 6.23 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001163/0.1388, allocations: 1.347 MB / 374.4 MB, free: 4.875 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00361/0.1424, allocations: 4.092 MB / 378.5 MB, free: 0.7695 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.06e-06/0.1424, allocations: 0 / 378.5 MB, free: 0.7695 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.012e-06/0.1424, allocations: 0 / 378.5 MB, free: 0.7695 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.565e-05/0.1425, allocations: 0 / 378.5 MB, free: 0.7695 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.137/0.2795, allocations: 2.945 MB / 381.5 MB, free: 55.34 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.027e-05/0.2795, allocations: 9.125 kB / 381.5 MB, free: 55.34 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00102/0.2806, allocations: 0.5261 MB / 382 MB, free: 55.1 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006979/0.2876, allocations: 1.773 MB / 383.8 MB, free: 54.86 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0024/0.29, allocations: 1.159 MB / 384.9 MB, free: 54.16 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001242/0.2901, allocations: 154 kB / 385.1 MB, free: 54.12 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004091/0.2905, allocations: 203.8 kB / 385.3 MB, free: 54.07 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01759/0.3081, allocations: 8.604 MB / 393.9 MB, free: 49.52 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.085e-05/0.3083, allocations: 37.53 kB / 393.9 MB, free: 49.5 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002589/0.3085, allocations: 100.9 kB / 394 MB, free: 49.43 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002254/0.3108, allocations: 1.67 MB / 395.7 MB, free: 48.71 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01514/0.3259, allocations: 7.174 MB / 402.9 MB, free: 41.54 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02582/0.3518, allocations: 30.18 MB / 433 MB, free: 10.51 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02071/0.3726, allocations: 5.042 MB / 438.1 MB, free: 5.289 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001284/0.3739, allocations: 1.24 MB / 439.3 MB, free: 4.027 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004181/0.3781, allocations: 3.741 MB / 443.1 MB, free: 144 kB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.269e-05/0.3781, allocations: 54.83 kB / 443.1 MB, free: 80 kB / 318.1 MB Notification: Performance of pre-optimization done (n=111): time 3.808e-06/0.3781, allocations: 0 / 443.1 MB, free: 80 kB / 318.1 MB Notification: Performance of matching and sorting (n=111): time 0.04467/0.4228, allocations: 9.257 MB / 452.4 MB, free: 6.734 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001009/0.4229, allocations: 195.9 kB / 452.6 MB, free: 6.5 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00411/0.4271, allocations: 3.039 MB / 455.6 MB, free: 3.441 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001846/0.4273, allocations: 41.7 kB / 455.6 MB, free: 3.395 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001596/0.4289, allocations: 2.422 MB / 458.1 MB, free: 0.9336 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000545/0.4294, allocations: 0.494 MB / 458.6 MB, free: 444 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001261/0.4307, allocations: 1.087 MB / 459.6 MB, free: 15.34 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001157/0.4308, allocations: 310.1 kB / 459.9 MB, free: 15.03 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002138/0.433, allocations: 1.6 MB / 461.5 MB, free: 13.43 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004435/0.4374, allocations: 5.173 MB / 466.7 MB, free: 6.449 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007506/0.4449, allocations: 7.325 MB / 474 MB, free: 13.34 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.272e-05/0.445, allocations: 36 kB / 474.1 MB, free: 13.3 MB / 366.1 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.01015/0.4552, allocations: 6.438 MB / 480.5 MB, free: 6.855 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.595e-05/0.4553, allocations: 64.03 kB / 480.6 MB, free: 6.793 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001331/0.4555, allocations: 128 kB / 480.7 MB, free: 6.668 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001501/0.4556, allocations: 168 kB / 480.9 MB, free: 6.504 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004752/0.4604, allocations: 1.458 MB / 482.3 MB, free: 5.047 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001925/0.4606, allocations: 251 kB / 482.6 MB, free: 4.801 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003615/0.4642, allocations: 0.742 MB / 483.3 MB, free: 4.055 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000458/0.4647, allocations: 344 kB / 483.7 MB, free: 3.719 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.002066/0.4668, allocations: 1.579 MB / 485.2 MB, free: 2.125 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004392/0.4672, allocations: 244.8 kB / 485.5 MB, free: 1.883 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001204/0.4684, allocations: 0.8307 MB / 486.3 MB, free: 1.047 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.449e-05/0.4685, allocations: 12 kB / 486.3 MB, free: 1.035 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.482e-05/0.4685, allocations: 7.984 kB / 486.3 MB, free: 1.027 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.498e-05/0.4685, allocations: 3.984 kB / 486.3 MB, free: 1.023 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005316/0.4738, allocations: 3.398 MB / 489.7 MB, free: 13.57 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.141e-06/0.4738, allocations: 0 / 489.7 MB, free: 13.57 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0023/0.4761, allocations: 407.5 kB / 490.1 MB, free: 13.17 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.045e-05/0.4762, allocations: 8 kB / 490.1 MB, free: 13.16 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.433e-05/0.4763, allocations: 35.91 kB / 490.2 MB, free: 13.12 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.425e-06/0.4763, allocations: 7.984 kB / 490.2 MB, free: 13.12 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.41e-06/0.4763, allocations: 7.938 kB / 490.2 MB, free: 13.11 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003054/0.4794, allocations: 2.78 MB / 493 MB, free: 10.3 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005121/0.4799, allocations: 297.7 kB / 493.2 MB, free: 9.988 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002461/0.4801, allocations: 31.98 kB / 493.3 MB, free: 9.957 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008461/0.481, allocations: 43.86 kB / 493.3 MB, free: 9.914 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001286/0.4811, allocations: 67.78 kB / 493.4 MB, free: 9.848 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.762e-05/0.4812, allocations: 35.97 kB / 493.4 MB, free: 9.812 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002478/0.4837, allocations: 1.841 MB / 495.3 MB, free: 7.969 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4837, allocations: 0 / 495.3 MB, free: 7.969 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003798/0.4875, allocations: 0.8287 MB / 496.1 MB, free: 7.141 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.003834/0.4914, allocations: 3.426 MB / 499.5 MB, free: 3.691 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.005577/0.4969, allocations: 3.606 MB / 0.4913 GB, free: 120 kB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.822e-06/0.497, allocations: 0 / 0.4913 GB, free: 120 kB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009367/0.4979, allocations: 0.7157 MB / 0.492 GB, free: 15.4 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002036/0.5, allocations: 251.6 kB / 0.4923 GB, free: 15.16 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05726/0.5572, allocations: 38.11 MB / 0.5295 GB, free: 2.484 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002969/0.5603, allocations: 2.391 MB / 0.5318 GB, free: 64 kB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.151/0.7113, allocations: 1.64 MB / 0.5334 GB, free: 150.8 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001555/0.7129, allocations: 1.214 MB / 0.5346 GB, free: 150.8 MB / 430.1 MB Notification: Performance of SimCode: time 1.072e-06/0.7129, allocations: 0 / 0.5346 GB, free: 150.8 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06136/0.7742, allocations: 45.76 MB / 0.5793 GB, free: 118.5 MB / 430.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001493/0.7744, allocations: 232.8 kB / 0.5795 GB, free: 118.2 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.361/4.135, allocations: 3.938 kB / 0.5795 GB, free: 118.2 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