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.001114/0.001114, allocations: 76.08 kB / 20.67 MB, free: 3.895 MB / 18.57 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.001112/0.001112, allocations: 153.1 kB / 23.93 MB, free: 0.6328 MB / 18.57 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 0.9148/0.9148, allocations: 173.4 MB / 200.4 MB, free: 9.445 MB / 186.7 MB " [Timeout remaining time 179] 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 3.277e-06/3.277e-06, allocations: 0 / 318.4 MB, free: 6.371 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.465e-05/2.792e-05, allocations: 6.219 kB / 318.5 MB, free: 6.363 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses): time 0.008998/0.009026, allocations: 7.044 MB / 325.5 MB, free: 15.28 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00626/0.01529, allocations: 2.403 MB / 327.9 MB, free: 12.87 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001049/0.01634, allocations: 47.81 kB / 327.9 MB, free: 12.82 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002101/0.01844, allocations: 1.456 MB / 329.4 MB, free: 11.36 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002333/0.02077, allocations: 1.065 MB / 330.5 MB, free: 10.29 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006674/0.02144, allocations: 271.3 kB / 330.7 MB, free: 10.03 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.002754/0.02419, allocations: 2.238 MB / 333 MB, free: 7.777 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001904/0.0261, allocations: 1.36 MB / 334.3 MB, free: 6.395 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00157/0.02767, allocations: 1.251 MB / 335.6 MB, free: 5.141 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001442/0.02911, allocations: 1.204 MB / 336.8 MB, free: 3.934 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002187/0.02933, allocations: 156 kB / 336.9 MB, free: 3.781 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008484/0.03017, allocations: 0.6123 MB / 337.5 MB, free: 3.168 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0007276/0.0309, allocations: 1.242 MB / 338.8 MB, free: 1.922 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005904/0.03149, allocations: 0.7318 MB / 339.5 MB, free: 1.188 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003159/0.03465, allocations: 4.243 MB / 343.8 MB, free: 12.93 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.341e-06/0.03466, allocations: 0 / 343.8 MB, free: 12.93 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.455e-06/0.03466, allocations: 0 / 343.8 MB, free: 12.93 MB / 314.7 MB Notification: Performance of Transformations before backend: time 9.049e-05/0.03475, allocations: 0 / 343.8 MB, free: 12.93 MB / 314.7 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.003057/0.03781, allocations: 2.926 MB / 346.7 MB, free: 9.949 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.468e-05/0.03787, allocations: 8.922 kB / 346.7 MB, free: 9.941 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000421/0.03829, allocations: 0.5338 MB / 347.2 MB, free: 9.395 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003792/0.04208, allocations: 1.941 MB / 349.2 MB, free: 7.449 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001374/0.04346, allocations: 1.105 MB / 350.3 MB, free: 6.312 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.121e-05/0.04354, allocations: 155.8 kB / 350.4 MB, free: 6.16 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002482/0.04379, allocations: 203.8 kB / 350.6 MB, free: 5.961 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00857/0.05236, allocations: 8.231 MB / 358.9 MB, free: 13.12 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.199e-05/0.05242, allocations: 51.62 kB / 358.9 MB, free: 13.07 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001796/0.0526, allocations: 99.88 kB / 359 MB, free: 12.98 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001456/0.05405, allocations: 1.558 MB / 360.6 MB, free: 11.42 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008672/0.06273, allocations: 6.765 MB / 367.3 MB, free: 4.648 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01786/0.08059, allocations: 28.16 MB / 395.5 MB, free: 7.594 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009342/0.08993, allocations: 4.452 MB / 399.9 MB, free: 3.074 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009175/0.09085, allocations: 0.8247 MB / 400.8 MB, free: 2.23 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00291/0.09376, allocations: 2.643 MB / 403.4 MB, free: 15.56 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.894e-05/0.0938, allocations: 46.89 kB / 403.5 MB, free: 15.5 MB / 378.7 MB Notification: Performance of pre-optimization done (n=111): time 3.988e-06/0.0938, allocations: 4 kB / 403.5 MB, free: 15.5 MB / 378.7 MB Notification: Performance of matching and sorting (n=111): time 0.01843/0.1122, allocations: 8.464 MB / 411.9 MB, free: 7.023 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.252e-05/0.1123, allocations: 187.9 kB / 412.1 MB, free: 6.797 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002793/0.1151, allocations: 3.257 MB / 415.4 MB, free: 3.52 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.406e-05/0.1152, allocations: 37.7 kB / 415.4 MB, free: 3.477 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001058/0.1162, allocations: 2.504 MB / 417.9 MB, free: 0.9453 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002746/0.1165, allocations: 0.5159 MB / 418.4 MB, free: 436 kB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008279/0.1173, allocations: 1.068 MB / 419.5 MB, free: 15.35 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 7.751e-05/0.1174, allocations: 301.1 kB / 419.8 MB, free: 15.05 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001393/0.1188, allocations: 1.478 MB / 421.3 MB, free: 13.57 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003286/0.1221, allocations: 5.044 MB / 426.3 MB, free: 6.719 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005202/0.1273, allocations: 7.074 MB / 433.4 MB, free: 13.86 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.482e-05/0.1273, allocations: 39.94 kB / 433.4 MB, free: 13.82 MB / 410.7 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.005517/0.1328, allocations: 6.195 MB / 439.6 MB, free: 7.625 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.052e-05/0.1329, allocations: 63.98 kB / 439.7 MB, free: 7.562 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.7e-05/0.133, allocations: 132.1 kB / 439.8 MB, free: 7.434 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.935e-05/0.1331, allocations: 164 kB / 440 MB, free: 7.273 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002471/0.1355, allocations: 1.447 MB / 441.4 MB, free: 5.824 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001173/0.1356, allocations: 247 kB / 441.7 MB, free: 5.582 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001829/0.1375, allocations: 0.7678 MB / 442.4 MB, free: 4.809 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002528/0.1377, allocations: 347.9 kB / 442.8 MB, free: 4.469 MB / 410.7 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.001492/0.1392, allocations: 1.575 MB / 444.3 MB, free: 2.883 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002352/0.1395, allocations: 266.6 kB / 444.6 MB, free: 2.621 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007249/0.1402, allocations: 0.6922 MB / 445.3 MB, free: 1.922 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.93e-05/0.1402, allocations: 19.94 kB / 445.3 MB, free: 1.902 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.058e-05/0.1402, allocations: 0 / 445.3 MB, free: 1.902 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.188e-05/0.1402, allocations: 15.86 kB / 445.3 MB, free: 1.887 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2236/0.3638, allocations: 2.968 MB / 448.3 MB, free: 117.5 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.012e-05/0.3639, allocations: 2.672 kB / 448.3 MB, free: 117.5 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001622/0.3655, allocations: 411.2 kB / 448.7 MB, free: 117.5 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.796e-05/0.3655, allocations: 7.75 kB / 448.7 MB, free: 117.5 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001034/0.3656, allocations: 32.84 kB / 448.7 MB, free: 117.5 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.036e-05/0.3656, allocations: 5.281 kB / 448.7 MB, free: 117.5 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.988e-06/0.3656, allocations: 2.219 kB / 448.7 MB, free: 117.5 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002095/0.3677, allocations: 2.49 MB / 451.2 MB, free: 116.5 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004614/0.3682, allocations: 240.7 kB / 451.5 MB, free: 116.4 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001673/0.3684, allocations: 28.45 kB / 451.5 MB, free: 116.4 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005185/0.3689, allocations: 45.45 kB / 451.5 MB, free: 116.4 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.483e-05/0.369, allocations: 59.84 kB / 451.6 MB, free: 116.4 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.252e-05/0.369, allocations: 34.92 kB / 451.6 MB, free: 116.4 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001884/0.3709, allocations: 1.841 MB / 453.5 MB, free: 115.7 MB / 410.7 MB Notification: Performance of sort global known variables: time 5.92e-07/0.3709, allocations: 0 / 453.5 MB, free: 115.7 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002963/0.3739, allocations: 0.836 MB / 454.3 MB, free: 115.6 MB / 410.7 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.002156/0.376, allocations: 3.128 MB / 457.4 MB, free: 113.8 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.00335/0.3794, allocations: 3.237 MB / 460.7 MB, free: 112.5 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 5.019e-06/0.3794, allocations: 0 / 460.7 MB, free: 112.5 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004525/0.3798, allocations: 0.553 MB / 461.2 MB, free: 112 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00106/0.3809, allocations: 263.9 kB / 461.5 MB, free: 111.8 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02651/0.4074, allocations: 33.05 MB / 494.5 MB, free: 74.73 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001418/0.4088, allocations: 1.832 MB / 496.4 MB, free: 72.87 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.002128/0.4109, allocations: 1.626 MB / 498 MB, free: 71.23 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008063/0.4117, allocations: 1.219 MB / 499.2 MB, free: 70.02 MB / 410.7 MB Notification: Performance of SimCode: time 1.042e-06/0.4117, allocations: 0 / 499.2 MB, free: 70.02 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05905/0.4708, allocations: 42.87 MB / 0.5294 GB, free: 27.79 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.189/9.66, allocations: 3.516 kB / 0.5294 GB, free: 27.79 MB / 410.7 MB " [Timeout remaining time 650] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/PointGravityWithPointMasses/PointGravityWithPointMasses.csv","/var/lib/jenkins/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: 11.754266574978828]