Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001412/0.001412, allocations: 124.8 kB / 17.79 MB, free: 5.266 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001359/0.001359, allocations: 186.9 kB / 20.73 MB, free: 2.332 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.401/1.401, allocations: 225.6 MB / 249.1 MB, free: 3.598 MB / 190.1 MB " [Timeout remaining time 178] 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.PointGravityWithPointMasses,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravityWithPointMasses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravityWithPointMasses",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001446/0.001446, allocations: 47.92 kB / 365.6 MB, free: 0.8203 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09578/0.09723, allocations: 52.15 MB / 417.8 MB, free: 12.58 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses): time 0.009616/0.1068, allocations: 7.994 MB / 425.8 MB, free: 4.547 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005038/0.1119, allocations: 2.534 MB / 428.3 MB, free: 2.004 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009672/0.1129, allocations: 35.94 kB / 428.4 MB, free: 1.969 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002989/0.1158, allocations: 1.456 MB / 429.8 MB, free: 0.5078 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00247/0.1183, allocations: 1.019 MB / 430.8 MB, free: 15.48 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007168/0.119, allocations: 263.5 kB / 431.1 MB, free: 15.22 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.003066/0.1221, allocations: 2.191 MB / 433.3 MB, free: 13.03 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001816/0.1239, allocations: 1.341 MB / 434.6 MB, free: 11.66 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001397/0.1253, allocations: 0.8484 MB / 435.5 MB, free: 10.81 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001928/0.1272, allocations: 1.296 MB / 436.8 MB, free: 9.508 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004313/0.1277, allocations: 160 kB / 436.9 MB, free: 9.352 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001328/0.129, allocations: 0.6904 MB / 437.6 MB, free: 8.66 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001205/0.1302, allocations: 1.199 MB / 438.8 MB, free: 7.457 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001503/0.1317, allocations: 1.366 MB / 440.2 MB, free: 6.082 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005038/0.1367, allocations: 4.333 MB / 444.5 MB, free: 1.73 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.16e-06/0.1367, allocations: 0 / 444.5 MB, free: 1.73 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.164e-06/0.1367, allocations: 0 / 444.5 MB, free: 1.73 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001033/0.1369, allocations: 0 / 444.5 MB, free: 1.73 MB / 366.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.1665/0.3034, allocations: 3.03 MB / 447.5 MB, free: 28.68 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.742e-05/0.3034, allocations: 9.875 kB / 447.5 MB, free: 28.68 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004386/0.3038, allocations: 0.5278 MB / 448.1 MB, free: 28.61 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005837/0.3097, allocations: 1.792 MB / 449.9 MB, free: 28.41 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002122/0.3118, allocations: 1.166 MB / 451 MB, free: 28.16 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.807e-05/0.3119, allocations: 151.2 kB / 451.2 MB, free: 28.16 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003093/0.3122, allocations: 207.4 kB / 451.4 MB, free: 28.16 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01511/0.3273, allocations: 8.6 MB / 460 MB, free: 25 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.377e-05/0.3274, allocations: 42.2 kB / 460 MB, free: 24.97 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002256/0.3276, allocations: 103.2 kB / 460.1 MB, free: 24.94 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002452/0.3301, allocations: 1.67 MB / 461.8 MB, free: 24.64 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01506/0.3451, allocations: 7.169 MB / 469 MB, free: 21.82 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.028/0.3731, allocations: 30.16 MB / 499.1 MB, free: 9.312 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02171/0.3948, allocations: 4.984 MB / 0.4923 GB, free: 4.16 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001739/0.3966, allocations: 1.195 MB / 0.4935 GB, free: 2.949 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00597/0.4025, allocations: 3.751 MB / 0.4971 GB, free: 15.08 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.976e-05/0.4026, allocations: 50.83 kB / 0.4972 GB, free: 15.02 MB / 398.1 MB Notification: Performance of pre-optimization done (n=111): time 3.546e-06/0.4026, allocations: 0 / 0.4972 GB, free: 15.02 MB / 398.1 MB Notification: Performance of matching and sorting (n=111): time 0.04398/0.4466, allocations: 9.273 MB / 0.5062 GB, free: 5.668 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001395/0.4467, allocations: 195.9 kB / 0.5064 GB, free: 5.434 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004046/0.4507, allocations: 3.04 MB / 0.5094 GB, free: 2.375 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001305/0.4509, allocations: 41.7 kB / 0.5094 GB, free: 2.328 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001858/0.4527, allocations: 2.535 MB / 0.5119 GB, free: 15.76 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000534/0.4533, allocations: 0.5197 MB / 0.5124 GB, free: 15.24 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001286/0.4546, allocations: 1.092 MB / 0.5135 GB, free: 14.14 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001436/0.4547, allocations: 305.1 kB / 0.5138 GB, free: 13.84 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002265/0.457, allocations: 1.603 MB / 0.5153 GB, free: 12.23 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005243/0.4622, allocations: 5.173 MB / 0.5204 GB, free: 5.25 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008399/0.4706, allocations: 7.32 MB / 0.5275 GB, free: 12.15 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.132e-05/0.4707, allocations: 40 kB / 0.5276 GB, free: 12.11 MB / 430.1 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.0107/0.4814, allocations: 6.449 MB / 0.5339 GB, free: 5.664 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.336e-05/0.4815, allocations: 60.22 kB / 0.5339 GB, free: 5.605 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000149/0.4816, allocations: 128 kB / 0.534 GB, free: 5.48 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000162/0.4818, allocations: 168 kB / 0.5342 GB, free: 5.316 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004772/0.4865, allocations: 1.454 MB / 0.5356 GB, free: 3.859 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002107/0.4868, allocations: 247 kB / 0.5359 GB, free: 3.617 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003191/0.49, allocations: 0.7677 MB / 0.5366 GB, free: 2.844 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000493/0.4904, allocations: 349.3 kB / 0.5369 GB, free: 2.504 MB / 430.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.002125/0.4926, allocations: 1.577 MB / 0.5385 GB, free: 0.9141 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000444/0.493, allocations: 262.2 kB / 0.5387 GB, free: 0.6562 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001305/0.4943, allocations: 0.8369 MB / 0.5395 GB, free: 15.81 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.323e-05/0.4944, allocations: 16 kB / 0.5396 GB, free: 15.79 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.524e-06/0.4944, allocations: 0 / 0.5396 GB, free: 15.79 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.136e-05/0.4944, allocations: 7.609 kB / 0.5396 GB, free: 15.79 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0062/0.5006, allocations: 3.388 MB / 0.5429 GB, free: 12.34 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.654e-06/0.5006, allocations: 0 / 0.5429 GB, free: 12.34 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002286/0.5029, allocations: 415.5 kB / 0.5433 GB, free: 11.93 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.959e-05/0.5029, allocations: 4 kB / 0.5433 GB, free: 11.93 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001073/0.503, allocations: 31.97 kB / 0.5433 GB, free: 11.9 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.003e-05/0.503, allocations: 11.94 kB / 0.5433 GB, free: 11.89 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.17e-06/0.503, allocations: 8.672 kB / 0.5433 GB, free: 11.88 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00348/0.5065, allocations: 2.798 MB / 0.5461 GB, free: 9.066 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005904/0.5071, allocations: 307.1 kB / 0.5464 GB, free: 8.746 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003604/0.5074, allocations: 35.97 kB / 0.5464 GB, free: 8.711 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009383/0.5084, allocations: 43.91 kB / 0.5464 GB, free: 8.668 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000122/0.5085, allocations: 55.91 kB / 0.5465 GB, free: 8.613 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.893e-05/0.5086, allocations: 31.98 kB / 0.5465 GB, free: 8.582 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003162/0.5117, allocations: 1.845 MB / 0.5483 GB, free: 6.734 MB / 446.1 MB Notification: Performance of sort global known variables: time 1e-07/0.5117, allocations: 0 / 0.5483 GB, free: 6.734 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003914/0.5157, allocations: 0.8383 MB / 0.5491 GB, free: 5.895 MB / 446.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.004222/0.5199, allocations: 3.446 MB / 0.5525 GB, free: 2.414 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006026/0.5259, allocations: 3.481 MB / 0.5559 GB, free: 14.96 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 7.444e-06/0.5259, allocations: 0 / 0.5559 GB, free: 14.96 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001041/0.5269, allocations: 0.679 MB / 0.5566 GB, free: 14.28 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001903/0.5289, allocations: 266.6 kB / 0.5568 GB, free: 14.04 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05298/0.5818, allocations: 34.31 MB / 0.5903 GB, free: 6.383 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003079/0.5849, allocations: 2.383 MB / 0.5926 GB, free: 3.973 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.003826/0.5887, allocations: 1.629 MB / 0.5942 GB, free: 2.336 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00182/0.5906, allocations: 1.222 MB / 0.5954 GB, free: 1.113 MB / 494.1 MB Notification: Performance of SimCode: time 1.332e-06/0.5906, allocations: 0 / 0.5954 GB, free: 1.113 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4561/1.047, allocations: 43.73 MB / 0.6381 GB, free: 169.4 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.34/17.38, allocations: 5.094 kB / 0.6381 GB, free: 169.4 MB / 0.5137 GB " [Timeout remaining time 642] (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravityWithPointMasses_fmu --startTime=0 --stopTime=2 --stepSize=0.00039984 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravityWithPointMasses.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/PointGravityWithPointMasses/PointGravityWithPointMasses.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 20.596406932920218]