Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001749/0.001749, allocations: 119.1 kB / 20.45 MB, free: 1.176 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002133/0.002133, allocations: 206.4 kB / 23.72 MB, free: 4.391 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.643/1.643, allocations: 230.5 MB / 257.4 MB, free: 7.727 MB / 206.1 MB " [Timeout remaining time 178] 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.PointGravityWithPointMasses,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravityWithPointMasses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravityWithPointMasses",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002039/0.002039, allocations: 59.91 kB / 377.7 MB, free: 2.781 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3024/0.3045, allocations: 53.41 MB / 431.1 MB, free: 6.441 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses): time 0.009201/0.3137, allocations: 7.024 MB / 438.2 MB, free: 15.38 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005622/0.3193, allocations: 2.442 MB / 440.6 MB, free: 12.94 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008151/0.3201, allocations: 39.88 kB / 440.7 MB, free: 12.9 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002963/0.3231, allocations: 1.405 MB / 442.1 MB, free: 11.49 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00241/0.3255, allocations: 1.015 MB / 443.1 MB, free: 10.47 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008591/0.3263, allocations: 263.5 kB / 443.3 MB, free: 10.21 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003714/0.33, allocations: 2.157 MB / 445.5 MB, free: 8.047 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001842/0.3319, allocations: 1.338 MB / 446.8 MB, free: 6.68 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001286/0.3332, allocations: 0.8445 MB / 447.7 MB, free: 5.832 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002218/0.3354, allocations: 1.245 MB / 448.9 MB, free: 4.582 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004331/0.3358, allocations: 160 kB / 449.1 MB, free: 4.426 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001325/0.3371, allocations: 0.5733 MB / 449.6 MB, free: 3.852 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001176/0.3383, allocations: 1.18 MB / 450.8 MB, free: 2.668 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001137/0.3395, allocations: 0.9817 MB / 451.8 MB, free: 1.68 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004889/0.3443, allocations: 4.294 MB / 456.1 MB, free: 13.37 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.44e-06/0.3444, allocations: 0 / 456.1 MB, free: 13.37 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.154e-06/0.3444, allocations: 0 / 456.1 MB, free: 13.37 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.384e-05/0.3444, allocations: 0 / 456.1 MB, free: 13.37 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.004782/0.3492, allocations: 2.938 MB / 459 MB, free: 10.38 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.573e-05/0.3493, allocations: 15.98 kB / 459.1 MB, free: 10.36 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006302/0.3499, allocations: 0.5299 MB / 459.6 MB, free: 9.82 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006869/0.3568, allocations: 1.789 MB / 461.4 MB, free: 8.027 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002868/0.3596, allocations: 1.113 MB / 462.5 MB, free: 6.883 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001272/0.3598, allocations: 155.8 kB / 462.6 MB, free: 6.73 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003944/0.3601, allocations: 207.8 kB / 462.8 MB, free: 6.527 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02018/0.3803, allocations: 8.633 MB / 471.5 MB, free: 13.29 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001065/0.3804, allocations: 43.64 kB / 471.5 MB, free: 13.24 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002954/0.3807, allocations: 103.9 kB / 471.6 MB, free: 13.14 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00312/0.3838, allocations: 1.667 MB / 473.3 MB, free: 11.47 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01914/0.403, allocations: 7.174 MB / 480.5 MB, free: 4.301 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03833/0.4413, allocations: 29.12 MB / 0.4976 GB, free: 6.285 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02284/0.4641, allocations: 4.534 MB / 0.5021 GB, free: 1.684 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001925/0.4661, allocations: 1.197 MB / 0.5032 GB, free: 476 kB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006007/0.4721, allocations: 3.11 MB / 0.5063 GB, free: 13.32 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.593e-05/0.4721, allocations: 46.89 kB / 0.5063 GB, free: 13.27 MB / 430.1 MB Notification: Performance of pre-optimization done (n=111): time 3.928e-06/0.4721, allocations: 0 / 0.5063 GB, free: 13.27 MB / 430.1 MB Notification: Performance of matching and sorting (n=111): time 0.04562/0.5178, allocations: 9.009 MB / 0.5151 GB, free: 4.246 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001098/0.5179, allocations: 187.9 kB / 0.5153 GB, free: 4.02 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004098/0.522, allocations: 3.24 MB / 0.5185 GB, free: 0.7578 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000132/0.5221, allocations: 41.7 kB / 0.5185 GB, free: 0.7109 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001853/0.5239, allocations: 2.535 MB / 0.521 GB, free: 14.14 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005408/0.5245, allocations: 0.508 MB / 0.5215 GB, free: 13.63 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00136/0.5258, allocations: 1.096 MB / 0.5225 GB, free: 12.53 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001363/0.526, allocations: 301.1 kB / 0.5228 GB, free: 12.23 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002406/0.5284, allocations: 1.607 MB / 0.5244 GB, free: 10.62 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00553/0.5339, allocations: 5.177 MB / 0.5294 GB, free: 3.637 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009723/0.5436, allocations: 7.335 MB / 0.5366 GB, free: 10.52 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001578/0.5438, allocations: 40 kB / 0.5367 GB, free: 10.48 MB / 462.1 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.01197/0.5558, allocations: 6.466 MB / 0.543 GB, free: 4.008 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.679e-05/0.5559, allocations: 62.34 kB / 0.543 GB, free: 3.949 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001524/0.556, allocations: 128.8 kB / 0.5431 GB, free: 3.824 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001681/0.5562, allocations: 167.8 kB / 0.5433 GB, free: 3.664 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004848/0.561, allocations: 1.462 MB / 0.5447 GB, free: 2.199 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002286/0.5613, allocations: 251 kB / 0.545 GB, free: 1.953 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003863/0.5651, allocations: 0.7678 MB / 0.5457 GB, free: 1.18 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005451/0.5657, allocations: 344 kB / 0.5461 GB, free: 0.8438 MB / 462.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.2102/0.7759, allocations: 1.564 MB / 0.5476 GB, free: 112.8 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005741/0.7764, allocations: 260.3 kB / 0.5478 GB, free: 112.8 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006281/0.7771, allocations: 317.5 kB / 0.5481 GB, free: 112.8 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.65e-05/0.7771, allocations: 13.41 kB / 0.5481 GB, free: 112.8 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.167e-05/0.7771, allocations: 5.438 kB / 0.5481 GB, free: 112.8 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.515e-05/0.7771, allocations: 6.609 kB / 0.5482 GB, free: 112.8 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00585/0.783, allocations: 3.225 MB / 0.5513 GB, free: 111.9 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.606e-06/0.783, allocations: 1.891 kB / 0.5513 GB, free: 111.9 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002282/0.7853, allocations: 410.1 kB / 0.5517 GB, free: 111.9 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.278e-05/0.7853, allocations: 4.5 kB / 0.5517 GB, free: 111.9 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.731e-05/0.7854, allocations: 38.88 kB / 0.5517 GB, free: 111.9 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.384e-06/0.7854, allocations: 9.469 kB / 0.5517 GB, free: 111.9 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.436e-06/0.7854, allocations: 1.859 kB / 0.5517 GB, free: 111.9 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002869/0.7883, allocations: 2.81 MB / 0.5545 GB, free: 110.7 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004403/0.7887, allocations: 245.9 kB / 0.5547 GB, free: 110.6 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002296/0.7889, allocations: 31.92 kB / 0.5548 GB, free: 110.6 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008424/0.7898, allocations: 39.84 kB / 0.5548 GB, free: 110.6 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001053/0.7899, allocations: 64.47 kB / 0.5549 GB, free: 110.6 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.965e-05/0.7899, allocations: 39.53 kB / 0.5549 GB, free: 110.6 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002066/0.792, allocations: 1.837 MB / 0.5567 GB, free: 109.9 MB / 462.1 MB Notification: Performance of sort global known variables: time 8e-08/0.792, allocations: 0 / 0.5567 GB, free: 109.9 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003393/0.7954, allocations: 0.8205 MB / 0.5575 GB, free: 109.8 MB / 462.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.002849/0.7983, allocations: 3.457 MB / 0.5609 GB, free: 107.9 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.004345/0.8026, allocations: 3.49 MB / 0.5643 GB, free: 106.2 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 6.412e-06/0.8026, allocations: 0 / 0.5643 GB, free: 106.2 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007336/0.8033, allocations: 0.6834 MB / 0.5649 GB, free: 105.6 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001557/0.8049, allocations: 268.4 kB / 0.5652 GB, free: 105.4 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02988/0.8348, allocations: 34.28 MB / 0.5987 GB, free: 67.2 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001681/0.8365, allocations: 1.827 MB / 0.6005 GB, free: 65.34 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002945/0.8394, allocations: 1.637 MB / 0.6021 GB, free: 63.7 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001175/0.8406, allocations: 1.21 MB / 0.6032 GB, free: 62.48 MB / 462.1 MB Notification: Performance of SimCode: time 1.042e-06/0.8406, allocations: 0 / 0.6032 GB, free: 62.48 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.617/2.458, allocations: 42.9 MB / 0.6451 GB, free: 20.14 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 18.02/20.47, allocations: 7.984 kB / 0.6451 GB, free: 20.13 MB / 462.1 MB " [Timeout remaining time 639] (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravityWithPointMasses_fmu --startTime=0 --stopTime=2 --stepSize=0.00039984 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravityWithPointMasses.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Elementary/PointGravityWithPointMasses/PointGravityWithPointMasses.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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: 23.837442432995886]