Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001449/0.001449, allocations: 112.2 kB / 21.22 MB, free: 0.7305 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001557/0.001557, allocations: 212.2 kB / 24.53 MB, free: 4.07 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.333/1.333, allocations: 230.6 MB / 258.3 MB, free: 8.008 MB / 206.1 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravityWithPointMasses",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravityWithPointMasses",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001395/0.001395, allocations: 47.92 kB / 378.6 MB, free: 3.133 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2288/0.2302, allocations: 53.36 MB / 431.9 MB, free: 6.867 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses): time 0.009101/0.2393, allocations: 7.992 MB / 439.9 MB, free: 14.84 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004291/0.2436, allocations: 2.594 MB / 442.5 MB, free: 12.24 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003666/0.244, allocations: 43.81 kB / 442.6 MB, free: 12.2 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002519/0.2465, allocations: 1.471 MB / 444 MB, free: 10.72 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001708/0.2482, allocations: 1.019 MB / 445 MB, free: 9.695 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005141/0.2487, allocations: 263.4 kB / 445.3 MB, free: 9.438 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002284/0.251, allocations: 2.16 MB / 447.5 MB, free: 7.273 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0015/0.2525, allocations: 1.342 MB / 448.8 MB, free: 5.906 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001011/0.2535, allocations: 0.8523 MB / 449.7 MB, free: 5.051 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001575/0.2551, allocations: 1.292 MB / 451 MB, free: 3.754 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002529/0.2554, allocations: 160 kB / 451.1 MB, free: 3.598 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001085/0.2564, allocations: 0.6942 MB / 451.8 MB, free: 2.902 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001033/0.2575, allocations: 1.18 MB / 453 MB, free: 1.719 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001336/0.2588, allocations: 1.358 MB / 454.3 MB, free: 360 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004664/0.2635, allocations: 4.286 MB / 458.6 MB, free: 12.05 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.621e-06/0.2635, allocations: 7.938 kB / 458.6 MB, free: 12.04 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.2635, allocations: 0 / 458.6 MB, free: 12.04 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.542e-05/0.2635, allocations: 0 / 458.6 MB, free: 12.04 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.004272/0.2678, allocations: 2.927 MB / 461.6 MB, free: 9.062 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.171e-05/0.2679, allocations: 12.03 kB / 461.6 MB, free: 9.051 MB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 7.354e-05/0.2679, allocations: 72.12 kB / 461.6 MB, free: 8.98 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005588/0.2685, allocations: 0.526 MB / 462.2 MB, free: 8.441 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006423/0.2749, allocations: 1.804 MB / 464 MB, free: 6.633 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00197/0.2769, allocations: 1.101 MB / 465.1 MB, free: 5.5 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001206/0.277, allocations: 159.7 kB / 465.2 MB, free: 5.344 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003719/0.2774, allocations: 207.8 kB / 465.4 MB, free: 5.141 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01754/0.2949, allocations: 8.619 MB / 474.1 MB, free: 11.92 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.028e-05/0.295, allocations: 35.7 kB / 474.1 MB, free: 11.88 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002549/0.2953, allocations: 103.9 kB / 474.2 MB, free: 11.78 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002776/0.298, allocations: 1.667 MB / 475.9 MB, free: 10.11 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01628/0.3143, allocations: 7.179 MB / 483 MB, free: 2.934 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03303/0.3473, allocations: 30.05 MB / 0.5011 GB, free: 3.988 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02116/0.3685, allocations: 4.536 MB / 0.5055 GB, free: 15.38 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00154/0.37, allocations: 1.197 MB / 0.5067 GB, free: 14.16 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005017/0.3751, allocations: 3.294 MB / 0.5099 GB, free: 10.84 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.832e-05/0.3751, allocations: 46.83 kB / 0.5099 GB, free: 10.79 MB / 430.1 MB Notification: Performance of pre-optimization done (n=111): time 2.825e-06/0.3751, allocations: 0 / 0.5099 GB, free: 10.79 MB / 430.1 MB Notification: Performance of matching and sorting (n=111): time 0.04366/0.4188, allocations: 9.012 MB / 0.5187 GB, free: 1.766 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001135/0.4189, allocations: 191.9 kB / 0.5189 GB, free: 1.535 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004237/0.4231, allocations: 3.035 MB / 0.5219 GB, free: 14.48 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 9.525e-05/0.4232, allocations: 41.7 kB / 0.5219 GB, free: 14.43 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001903/0.4251, allocations: 2.527 MB / 0.5244 GB, free: 11.88 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005288/0.4256, allocations: 0.5119 MB / 0.5249 GB, free: 11.36 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001391/0.427, allocations: 1.103 MB / 0.526 GB, free: 10.25 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001236/0.4272, allocations: 301.1 kB / 0.5262 GB, free: 9.953 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002287/0.4295, allocations: 1.603 MB / 0.5278 GB, free: 8.344 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005351/0.4348, allocations: 5.169 MB / 0.5329 GB, free: 1.371 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008111/0.4429, allocations: 7.335 MB / 0.54 GB, free: 8.258 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.125e-05/0.443, allocations: 36 kB / 0.5401 GB, free: 8.223 MB / 462.1 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.01045/0.4534, allocations: 6.462 MB / 0.5464 GB, free: 1.754 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.127e-05/0.4535, allocations: 62.97 kB / 0.5464 GB, free: 1.695 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001416/0.4537, allocations: 131.9 kB / 0.5466 GB, free: 1.566 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001687/0.4538, allocations: 175.9 kB / 0.5467 GB, free: 1.395 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.1845/0.6384, allocations: 1.451 MB / 0.5481 GB, free: 112.9 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003422/0.6387, allocations: 247.5 kB / 0.5484 GB, free: 112.9 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003628/0.6423, allocations: 0.7653 MB / 0.5491 GB, free: 112.9 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004761/0.6428, allocations: 341.5 kB / 0.5494 GB, free: 112.9 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.001828/0.6446, allocations: 1.577 MB / 0.551 GB, free: 112.8 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004203/0.6451, allocations: 266.2 kB / 0.5512 GB, free: 112.8 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000436/0.6455, allocations: 318.8 kB / 0.5515 GB, free: 112.6 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.875e-05/0.6455, allocations: 18.75 kB / 0.5516 GB, free: 112.6 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.624e-06/0.6455, allocations: 0 / 0.5516 GB, free: 112.6 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.879e-06/0.6455, allocations: 5.203 kB / 0.5516 GB, free: 112.6 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0047/0.6502, allocations: 3.352 MB / 0.5548 GB, free: 111.4 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.451e-06/0.6502, allocations: 3.312 kB / 0.5548 GB, free: 111.4 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002011/0.6522, allocations: 417 kB / 0.5552 GB, free: 111.4 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.231e-06/0.6522, allocations: 3.938 kB / 0.5552 GB, free: 111.4 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.076e-05/0.6523, allocations: 39.09 kB / 0.5553 GB, free: 111.4 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.39e-06/0.6523, allocations: 6.25 kB / 0.5553 GB, free: 111.4 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.184e-06/0.6523, allocations: 2.906 kB / 0.5553 GB, free: 111.4 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002392/0.6547, allocations: 2.817 MB / 0.558 GB, free: 110.1 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000328/0.655, allocations: 240.9 kB / 0.5583 GB, free: 109.9 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002222/0.6553, allocations: 31.03 kB / 0.5583 GB, free: 109.9 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007825/0.6561, allocations: 45.7 kB / 0.5583 GB, free: 109.9 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001059/0.6562, allocations: 61.45 kB / 0.5584 GB, free: 109.9 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.25e-05/0.6562, allocations: 40.27 kB / 0.5584 GB, free: 109.9 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001683/0.6579, allocations: 1.838 MB / 0.5602 GB, free: 109.3 MB / 462.1 MB Notification: Performance of sort global known variables: time 6e-08/0.6579, allocations: 0.5625 kB / 0.5602 GB, free: 109.3 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003218/0.6611, allocations: 0.8173 MB / 0.561 GB, free: 109.1 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.002492/0.6636, allocations: 3.453 MB / 0.5644 GB, free: 107.3 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.003519/0.6671, allocations: 3.492 MB / 0.5678 GB, free: 105.3 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 2.965e-06/0.6671, allocations: 0 / 0.5678 GB, free: 105.3 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006157/0.6678, allocations: 0.6842 MB / 0.5685 GB, free: 104.7 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001308/0.6691, allocations: 264.8 kB / 0.5687 GB, free: 104.5 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02802/0.6971, allocations: 34.31 MB / 0.6022 GB, free: 65.64 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00159/0.6987, allocations: 2.393 MB / 0.6046 GB, free: 63.22 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002687/0.7014, allocations: 1.637 MB / 0.6062 GB, free: 61.57 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001062/0.7024, allocations: 1.214 MB / 0.6074 GB, free: 60.36 MB / 462.1 MB Notification: Performance of SimCode: time 1.252e-06/0.7024, allocations: 0 / 0.6074 GB, free: 60.36 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.9346/1.637, allocations: 47.97 MB / 0.6542 GB, free: 12.77 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 18/19.64, allocations: 8 kB / 0.6542 GB, free: 12.76 MB / 462.1 MB " [Timeout remaining time 640] (rm -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravityWithPointMasses_fmu --startTime=0 --stopTime=2 --stepSize=0.00039984 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravityWithPointMasses.fmu > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_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_4.1.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.685057914000936]