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.001299/0.001299, allocations: 111.1 kB / 20.44 MB, free: 1.176 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.001518/0.001518, allocations: 203.9 kB / 23.73 MB, free: 4.379 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.404/1.404, allocations: 230.6 MB / 257.5 MB, free: 7.793 MB / 206.1 MB " [Timeout remaining time 178] 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravityWithPointMasses",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001531/0.001531, allocations: 55.92 kB / 377.7 MB, free: 2.957 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2577/0.2592, allocations: 53.37 MB / 431.1 MB, free: 6.648 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses): time 0.009075/0.2683, allocations: 7.027 MB / 438.1 MB, free: 15.59 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004964/0.2732, allocations: 2.438 MB / 440.6 MB, free: 13.15 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006549/0.2739, allocations: 39.88 kB / 440.6 MB, free: 13.11 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002757/0.2767, allocations: 1.405 MB / 442 MB, free: 11.7 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002103/0.2788, allocations: 1.019 MB / 443 MB, free: 10.68 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006297/0.2794, allocations: 271.5 kB / 443.3 MB, free: 10.41 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002655/0.282, allocations: 2.153 MB / 445.4 MB, free: 8.25 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001507/0.2836, allocations: 1.346 MB / 446.8 MB, free: 6.879 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009529/0.2845, allocations: 0.8445 MB / 447.6 MB, free: 6.031 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001799/0.2863, allocations: 1.3 MB / 448.9 MB, free: 4.727 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002816/0.2866, allocations: 160 kB / 449.1 MB, free: 4.57 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001075/0.2877, allocations: 0.5811 MB / 449.7 MB, free: 3.988 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001064/0.2887, allocations: 1.176 MB / 450.8 MB, free: 2.809 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001019/0.2897, allocations: 0.9817 MB / 451.8 MB, free: 1.82 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004692/0.2944, allocations: 4.29 MB / 456.1 MB, free: 13.51 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.774e-06/0.2944, allocations: 8 kB / 456.1 MB, free: 13.5 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.2944, allocations: 0 / 456.1 MB, free: 13.5 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.185e-05/0.2945, allocations: 0 / 456.1 MB, free: 13.5 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.004403/0.2989, allocations: 2.934 MB / 459.1 MB, free: 10.52 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.777e-05/0.299, allocations: 12.03 kB / 459.1 MB, free: 10.51 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006279/0.2996, allocations: 0.526 MB / 459.6 MB, free: 9.969 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006423/0.306, allocations: 1.793 MB / 461.4 MB, free: 8.172 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002363/0.3084, allocations: 1.117 MB / 462.5 MB, free: 7.023 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001257/0.3085, allocations: 155.8 kB / 462.7 MB, free: 6.871 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003807/0.3089, allocations: 203.8 kB / 462.9 MB, free: 6.672 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01824/0.3271, allocations: 8.633 MB / 471.5 MB, free: 13.43 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.693e-05/0.3272, allocations: 43.64 kB / 471.5 MB, free: 13.39 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002973/0.3275, allocations: 103.9 kB / 471.6 MB, free: 13.29 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003026/0.3306, allocations: 1.667 MB / 473.3 MB, free: 11.62 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0186/0.3492, allocations: 7.174 MB / 480.5 MB, free: 4.441 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0388/0.388, allocations: 29.12 MB / 0.4976 GB, free: 6.43 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02393/0.4119, allocations: 4.544 MB / 0.5021 GB, free: 1.82 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001898/0.4138, allocations: 1.185 MB / 0.5032 GB, free: 0.6133 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006671/0.4205, allocations: 3.106 MB / 0.5063 GB, free: 13.48 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.923e-05/0.4205, allocations: 50.83 kB / 0.5063 GB, free: 13.42 MB / 430.1 MB Notification: Performance of pre-optimization done (n=111): time 3.947e-06/0.4205, allocations: 0 / 0.5063 GB, free: 13.42 MB / 430.1 MB Notification: Performance of matching and sorting (n=111): time 0.04862/0.4691, allocations: 9.007 MB / 0.5151 GB, free: 4.398 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001421/0.4693, allocations: 191.9 kB / 0.5153 GB, free: 4.168 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005001/0.4743, allocations: 3.24 MB / 0.5185 GB, free: 0.9062 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002212/0.4745, allocations: 41.7 kB / 0.5185 GB, free: 0.8594 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002179/0.4767, allocations: 2.535 MB / 0.521 GB, free: 14.29 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006311/0.4773, allocations: 0.5119 MB / 0.5215 GB, free: 13.78 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001373/0.4787, allocations: 1.096 MB / 0.5226 GB, free: 12.67 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001318/0.4788, allocations: 305.1 kB / 0.5228 GB, free: 12.37 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002451/0.4813, allocations: 1.607 MB / 0.5244 GB, free: 10.76 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005376/0.4866, allocations: 5.177 MB / 0.5295 GB, free: 3.777 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008557/0.4952, allocations: 7.328 MB / 0.5366 GB, free: 10.67 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.637e-05/0.4953, allocations: 43.98 kB / 0.5367 GB, free: 10.62 MB / 462.1 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.009797/0.5051, allocations: 6.466 MB / 0.543 GB, free: 4.152 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.259e-05/0.5052, allocations: 60 kB / 0.543 GB, free: 4.094 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001184/0.5053, allocations: 124.8 kB / 0.5432 GB, free: 3.973 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001631/0.5054, allocations: 171.8 kB / 0.5433 GB, free: 3.809 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004674/0.5101, allocations: 1.458 MB / 0.5447 GB, free: 2.348 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002407/0.5103, allocations: 251 kB / 0.545 GB, free: 2.102 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003083/0.5134, allocations: 0.7678 MB / 0.5457 GB, free: 1.328 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000437/0.5139, allocations: 344.4 kB / 0.5461 GB, free: 0.9922 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.1948/0.7087, allocations: 1.559 MB / 0.5476 GB, free: 113.1 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005284/0.7092, allocations: 265.1 kB / 0.5478 GB, free: 113.1 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005972/0.7098, allocations: 318 kB / 0.5481 GB, free: 113 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.231e-05/0.7098, allocations: 16.88 kB / 0.5482 GB, free: 113 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.016e-05/0.7098, allocations: 6.062 kB / 0.5482 GB, free: 113 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.198e-05/0.7099, allocations: 4.953 kB / 0.5482 GB, free: 113 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005542/0.7154, allocations: 3.219 MB / 0.5513 GB, free: 112.2 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.093e-06/0.7154, allocations: 1.781 kB / 0.5513 GB, free: 112.2 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002368/0.7178, allocations: 411.8 kB / 0.5517 GB, free: 112.2 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.696e-06/0.7178, allocations: 4.562 kB / 0.5517 GB, free: 112.2 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.412e-05/0.7179, allocations: 34.05 kB / 0.5517 GB, free: 112.2 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.003e-06/0.7179, allocations: 11.22 kB / 0.5518 GB, free: 112.2 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.655e-06/0.7179, allocations: 3.109 kB / 0.5518 GB, free: 112.2 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00262/0.7205, allocations: 2.818 MB / 0.5545 GB, free: 111 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004163/0.7209, allocations: 244.7 kB / 0.5547 GB, free: 110.9 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002364/0.7211, allocations: 30 kB / 0.5548 GB, free: 110.9 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008575/0.722, allocations: 45.81 kB / 0.5548 GB, free: 110.9 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001011/0.7221, allocations: 49.66 kB / 0.5549 GB, free: 110.9 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.088e-05/0.7222, allocations: 43.11 kB / 0.5549 GB, free: 110.9 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001827/0.724, allocations: 1.837 MB / 0.5567 GB, free: 110.2 MB / 462.1 MB Notification: Performance of sort global known variables: time 9e-08/0.724, allocations: 0 / 0.5567 GB, free: 110.2 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003177/0.7272, allocations: 0.8175 MB / 0.5575 GB, free: 110.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.002642/0.7298, allocations: 3.455 MB / 0.5609 GB, free: 108.2 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.003716/0.7335, allocations: 3.495 MB / 0.5643 GB, free: 106.5 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 3.597e-06/0.7335, allocations: 0 / 0.5643 GB, free: 106.5 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006437/0.7342, allocations: 0.6866 MB / 0.565 GB, free: 105.9 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001397/0.7356, allocations: 260.6 kB / 0.5652 GB, free: 105.7 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02795/0.7635, allocations: 34.29 MB / 0.5987 GB, free: 67.52 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001565/0.7651, allocations: 1.823 MB / 0.6005 GB, free: 65.67 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002661/0.7678, allocations: 1.636 MB / 0.6021 GB, free: 64.03 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001039/0.7688, allocations: 1.21 MB / 0.6032 GB, free: 62.82 MB / 462.1 MB Notification: Performance of SimCode: time 7.41e-07/0.7688, allocations: 4 kB / 0.6033 GB, free: 62.81 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1675/0.9363, allocations: 45.19 MB / 0.6474 GB, free: 18.29 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.81/14.75, allocations: 11.17 kB / 0.6474 GB, free: 18.28 MB / 462.1 MB " [Timeout remaining time 645] (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: 17.530870804999722]