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.001537/0.001537, allocations: 105.5 kB / 20.43 MB, free: 1.473 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.001625/0.001625, allocations: 185.1 kB / 23.72 MB, free: 4.719 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.357/1.357, allocations: 225.6 MB / 252.5 MB, free: 13.04 MB / 206.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.001492/0.001492, allocations: 47.92 kB / 370.5 MB, free: 9.855 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2652/0.2667, allocations: 52.18 MB / 422.6 MB, free: 14.61 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses): time 0.01102/0.2777, allocations: 8.015 MB / 430.6 MB, free: 6.539 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006012/0.2837, allocations: 2.571 MB / 433.2 MB, free: 3.961 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001168/0.2849, allocations: 39.88 kB / 433.3 MB, free: 3.922 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003189/0.2881, allocations: 1.444 MB / 434.7 MB, free: 2.473 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002892/0.291, allocations: 1.035 MB / 435.7 MB, free: 1.434 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008652/0.2918, allocations: 259.4 kB / 436 MB, free: 1.18 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003705/0.2956, allocations: 2.192 MB / 438.2 MB, free: 14.98 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002434/0.298, allocations: 1.348 MB / 439.5 MB, free: 13.61 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001594/0.2996, allocations: 0.8678 MB / 440.4 MB, free: 12.74 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002264/0.3018, allocations: 1.292 MB / 441.7 MB, free: 11.44 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005725/0.3024, allocations: 160 kB / 441.8 MB, free: 11.29 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001722/0.3041, allocations: 0.6981 MB / 442.5 MB, free: 10.59 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001594/0.3057, allocations: 1.188 MB / 443.7 MB, free: 9.395 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002294/0.308, allocations: 1.378 MB / 445.1 MB, free: 8.008 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00627/0.3143, allocations: 4.322 MB / 449.4 MB, free: 3.668 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.971e-06/0.3143, allocations: 4 kB / 449.4 MB, free: 3.664 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.412e-06/0.3143, allocations: 0 / 449.4 MB, free: 3.664 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001898/0.3145, allocations: 0 / 449.4 MB, free: 3.664 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: 1113 * Number of variables: 1113 Notification: Performance of Generate backend data structure: time 0.00644/0.3209, allocations: 2.965 MB / 452.4 MB, free: 0.6484 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.892e-05/0.321, allocations: 12.03 kB / 452.4 MB, free: 0.6367 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008424/0.3218, allocations: 0.5221 MB / 452.9 MB, free: 104 kB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006992/0.3288, allocations: 1.798 MB / 454.7 MB, free: 14.3 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002973/0.3318, allocations: 1.107 MB / 455.8 MB, free: 13.16 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003927/0.3322, allocations: 159.8 kB / 456 MB, free: 13 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006005/0.3328, allocations: 199.8 kB / 456.2 MB, free: 12.81 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01967/0.3525, allocations: 8.6 MB / 464.8 MB, free: 3.609 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001009/0.3526, allocations: 39.64 kB / 464.8 MB, free: 3.57 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002994/0.3529, allocations: 103.9 kB / 464.9 MB, free: 3.469 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003026/0.3559, allocations: 1.667 MB / 466.6 MB, free: 1.797 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01851/0.3744, allocations: 7.164 MB / 473.8 MB, free: 10.64 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04059/0.415, allocations: 30.07 MB / 0.492 GB, free: 11.67 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02288/0.4379, allocations: 4.523 MB / 0.4964 GB, free: 7.082 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001857/0.4397, allocations: 1.193 MB / 0.4976 GB, free: 5.867 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006398/0.4461, allocations: 3.282 MB / 0.5008 GB, free: 2.555 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.063e-05/0.4462, allocations: 54.88 kB / 0.5009 GB, free: 2.492 MB / 414.1 MB Notification: Performance of pre-optimization done (n=111): time 4.989e-06/0.4462, allocations: 0 / 0.5009 GB, free: 2.492 MB / 414.1 MB Notification: Performance of matching and sorting (n=111): time 0.04539/0.4916, allocations: 8.978 MB / 0.5096 GB, free: 9.504 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001474/0.4917, allocations: 195.9 kB / 0.5098 GB, free: 9.27 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005966/0.4977, allocations: 3.04 MB / 0.5128 GB, free: 6.211 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002124/0.4979, allocations: 45.69 kB / 0.5128 GB, free: 6.16 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002429/0.5003, allocations: 2.527 MB / 0.5153 GB, free: 3.605 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001056/0.5014, allocations: 0.5158 MB / 0.5158 GB, free: 3.086 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002814/0.5042, allocations: 1.096 MB / 0.5169 GB, free: 1.98 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001737/0.5044, allocations: 301.1 kB / 0.5172 GB, free: 1.684 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002898/0.5073, allocations: 1.607 MB / 0.5187 GB, free: 72 kB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006126/0.5134, allocations: 5.165 MB / 0.5238 GB, free: 9.102 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009653/0.5231, allocations: 7.321 MB / 0.5309 GB, free: 16 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001516/0.5232, allocations: 39.94 kB / 0.531 GB, free: 15.96 MB / 462.1 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.01283/0.536, allocations: 6.456 MB / 0.5373 GB, free: 9.496 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002532/0.5363, allocations: 64.03 kB / 0.5373 GB, free: 9.434 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002649/0.5365, allocations: 124 kB / 0.5374 GB, free: 9.312 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000275/0.5368, allocations: 168 kB / 0.5376 GB, free: 9.148 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005309/0.5421, allocations: 1.454 MB / 0.539 GB, free: 7.691 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003085/0.5424, allocations: 247 kB / 0.5393 GB, free: 7.449 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003992/0.5464, allocations: 0.7717 MB / 0.54 GB, free: 6.672 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008754/0.5473, allocations: 344 kB / 0.5403 GB, free: 6.336 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.003516/0.5508, allocations: 1.575 MB / 0.5419 GB, free: 4.75 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006629/0.5515, allocations: 262.3 kB / 0.5421 GB, free: 4.492 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001832/0.5533, allocations: 0.8289 MB / 0.5429 GB, free: 3.652 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.347e-05/0.5534, allocations: 12 kB / 0.543 GB, free: 3.641 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.101e-05/0.5534, allocations: 4 kB / 0.543 GB, free: 3.637 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.625e-05/0.5534, allocations: 3.984 kB / 0.543 GB, free: 3.633 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007581/0.561, allocations: 3.376 MB / 0.5463 GB, free: 208 kB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.21e-05/0.561, allocations: 0 / 0.5463 GB, free: 208 kB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.2486/0.8096, allocations: 406.2 kB / 0.5466 GB, free: 121.1 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.225e-05/0.8096, allocations: 4.5 kB / 0.5466 GB, free: 121.1 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002521/0.8099, allocations: 38.67 kB / 0.5467 GB, free: 121.1 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.556e-05/0.8099, allocations: 6.125 kB / 0.5467 GB, free: 121.1 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.09e-06/0.8099, allocations: 2 kB / 0.5467 GB, free: 121.1 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004363/0.8143, allocations: 2.793 MB / 0.5494 GB, free: 120.5 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007133/0.815, allocations: 239.1 kB / 0.5496 GB, free: 120.4 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002605/0.8152, allocations: 32.45 kB / 0.5497 GB, free: 120.3 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008406/0.8161, allocations: 36.89 kB / 0.5497 GB, free: 120.3 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001418/0.8162, allocations: 69.86 kB / 0.5498 GB, free: 120.3 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.699e-05/0.8163, allocations: 32.97 kB / 0.5498 GB, free: 120.3 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.00256/0.8189, allocations: 1.841 MB / 0.5516 GB, free: 119.7 MB / 462.1 MB Notification: Performance of sort global known variables: time 9e-08/0.8189, allocations: 1.312 kB / 0.5516 GB, free: 119.7 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003501/0.8224, allocations: 0.8429 MB / 0.5524 GB, free: 119.5 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.002697/0.8251, allocations: 3.438 MB / 0.5558 GB, free: 117.7 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.004372/0.8294, allocations: 3.483 MB / 0.5592 GB, free: 116.6 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 6.843e-06/0.8294, allocations: 0 / 0.5592 GB, free: 116.6 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006739/0.8301, allocations: 0.6816 MB / 0.5599 GB, free: 116.5 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001449/0.8316, allocations: 263.6 kB / 0.5601 GB, free: 116.3 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03511/0.8667, allocations: 34.29 MB / 0.5936 GB, free: 79.53 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001925/0.8686, allocations: 2.394 MB / 0.5959 GB, free: 77.09 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002922/0.8715, allocations: 1.639 MB / 0.5975 GB, free: 75.45 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001171/0.8727, allocations: 1.21 MB / 0.5987 GB, free: 74.24 MB / 462.1 MB Notification: Performance of SimCode: time 1.202e-06/0.8727, allocations: 3.938 kB / 0.5987 GB, free: 74.23 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09734/0.97, allocations: 48.07 MB / 0.6457 GB, free: 26.53 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 18.53/19.5, allocations: 0 / 0.6457 GB, free: 26.53 MB / 462.1 MB " [Timeout remaining time 640] (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/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/PointGravityWithPointMasses/PointGravityWithPointMasses.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/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: 22.442469627130777]