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.002056/0.002056, allocations: 101.5 kB / 21.21 MB, free: 0.6289 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.002142/0.002142, allocations: 192.8 kB / 24.49 MB, free: 3.941 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.387/1.387, allocations: 225.7 MB / 253.3 MB, free: 12.81 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravityWithPointMasses",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001509/0.001509, allocations: 43.92 kB / 371.2 MB, free: 9.66 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2579/0.2594, allocations: 52.18 MB / 423.4 MB, free: 14.38 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses): time 0.009151/0.2686, allocations: 7.002 MB / 430.4 MB, free: 7.34 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00523/0.2738, allocations: 2.399 MB / 432.8 MB, free: 4.934 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008304/0.2746, allocations: 39.88 kB / 432.8 MB, free: 4.895 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002807/0.2774, allocations: 1.39 MB / 434.2 MB, free: 3.5 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002383/0.2798, allocations: 1.031 MB / 435.2 MB, free: 2.465 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007044/0.2805, allocations: 271.4 kB / 435.5 MB, free: 2.199 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002853/0.2834, allocations: 2.191 MB / 437.7 MB, free: 4 kB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001642/0.285, allocations: 1.343 MB / 439 MB, free: 14.63 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001125/0.2861, allocations: 0.8562 MB / 439.9 MB, free: 13.77 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001729/0.2879, allocations: 1.304 MB / 441.2 MB, free: 12.46 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003132/0.2882, allocations: 160 kB / 441.3 MB, free: 12.31 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00119/0.2894, allocations: 0.5812 MB / 441.9 MB, free: 11.73 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001163/0.2905, allocations: 1.188 MB / 443.1 MB, free: 10.54 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001149/0.2917, allocations: 0.9933 MB / 444.1 MB, free: 9.535 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00491/0.2966, allocations: 4.337 MB / 448.4 MB, free: 5.18 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.881e-06/0.2966, allocations: 4 kB / 448.4 MB, free: 5.176 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.973e-06/0.2966, allocations: 0 / 448.4 MB, free: 5.176 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.968e-05/0.2967, allocations: 3.938 kB / 448.4 MB, free: 5.172 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.004705/0.3014, allocations: 2.954 MB / 451.4 MB, free: 2.168 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.129e-05/0.3014, allocations: 12.03 kB / 451.4 MB, free: 2.156 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 8.425e-05/0.3015, allocations: 72.12 kB / 451.5 MB, free: 2.086 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005922/0.3021, allocations: 0.526 MB / 452 MB, free: 1.547 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006465/0.3086, allocations: 1.8 MB / 453.8 MB, free: 15.74 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002247/0.3108, allocations: 1.121 MB / 454.9 MB, free: 14.59 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001331/0.311, allocations: 155.8 kB / 455.1 MB, free: 14.44 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000394/0.3114, allocations: 199.8 kB / 455.3 MB, free: 14.24 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01899/0.3303, allocations: 8.621 MB / 463.9 MB, free: 5.016 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.616e-05/0.3304, allocations: 39.7 kB / 463.9 MB, free: 4.977 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002838/0.3307, allocations: 107.9 kB / 464 MB, free: 4.871 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002976/0.3337, allocations: 1.667 MB / 465.7 MB, free: 3.199 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01816/0.3519, allocations: 7.167 MB / 472.9 MB, free: 12.04 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03573/0.3876, allocations: 29.15 MB / 0.4903 GB, free: 13.99 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02208/0.4097, allocations: 4.511 MB / 0.4947 GB, free: 9.414 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001708/0.4114, allocations: 1.193 MB / 0.4958 GB, free: 8.199 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005068/0.4164, allocations: 3.088 MB / 0.4988 GB, free: 5.086 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.434e-05/0.4165, allocations: 50.83 kB / 0.4989 GB, free: 5.027 MB / 414.1 MB Notification: Performance of pre-optimization done (n=111): time 2.985e-06/0.4165, allocations: 0 / 0.4989 GB, free: 5.027 MB / 414.1 MB Notification: Performance of matching and sorting (n=111): time 0.04478/0.4613, allocations: 8.983 MB / 0.5077 GB, free: 12.04 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001161/0.4614, allocations: 195.9 kB / 0.5079 GB, free: 11.8 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00396/0.4654, allocations: 3.044 MB / 0.5108 GB, free: 8.738 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001197/0.4655, allocations: 42.73 kB / 0.5109 GB, free: 8.691 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001776/0.4672, allocations: 2.535 MB / 0.5133 GB, free: 6.129 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004798/0.4677, allocations: 0.5119 MB / 0.5138 GB, free: 5.613 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001272/0.469, allocations: 1.096 MB / 0.5149 GB, free: 4.508 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001159/0.4691, allocations: 305.1 kB / 0.5152 GB, free: 4.207 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00215/0.4713, allocations: 1.596 MB / 0.5168 GB, free: 2.605 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004908/0.4762, allocations: 5.177 MB / 0.5218 GB, free: 11.62 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008213/0.4844, allocations: 7.319 MB / 0.529 GB, free: 2.523 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.739e-05/0.4845, allocations: 36 kB / 0.529 GB, free: 2.488 MB / 446.1 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.01025/0.4947, allocations: 6.444 MB / 0.5353 GB, free: 12.04 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.944e-05/0.4948, allocations: 60 kB / 0.5353 GB, free: 11.98 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001406/0.4949, allocations: 128 kB / 0.5355 GB, free: 11.85 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001671/0.4951, allocations: 167.9 kB / 0.5356 GB, free: 11.69 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004859/0.5, allocations: 1.463 MB / 0.5371 GB, free: 10.23 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002064/0.5002, allocations: 247 kB / 0.5373 GB, free: 9.984 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003578/0.5038, allocations: 0.7678 MB / 0.538 GB, free: 9.211 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000501/0.5043, allocations: 344 kB / 0.5384 GB, free: 8.875 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.002286/0.5065, allocations: 1.575 MB / 0.5399 GB, free: 7.289 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004511/0.507, allocations: 266.2 kB / 0.5402 GB, free: 7.027 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001331/0.5083, allocations: 0.8291 MB / 0.541 GB, free: 6.188 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.825e-05/0.5084, allocations: 20 kB / 0.541 GB, free: 6.168 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.243e-05/0.5084, allocations: 3.984 kB / 0.541 GB, free: 6.164 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.489e-05/0.5084, allocations: 7.984 kB / 0.541 GB, free: 6.156 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005701/0.5141, allocations: 3.236 MB / 0.5442 GB, free: 2.863 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.344e-06/0.5141, allocations: 7.938 kB / 0.5442 GB, free: 2.855 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002333/0.5164, allocations: 407.5 kB / 0.5446 GB, free: 2.457 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.375e-05/0.5164, allocations: 4 kB / 0.5446 GB, free: 2.453 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001054/0.5165, allocations: 35.97 kB / 0.5446 GB, free: 2.418 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.144e-05/0.5165, allocations: 4 kB / 0.5446 GB, free: 2.414 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.118e-06/0.5166, allocations: 7.984 kB / 0.5446 GB, free: 2.406 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2158/0.7323, allocations: 2.794 MB / 0.5473 GB, free: 122.3 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007605/0.7331, allocations: 236.6 kB / 0.5476 GB, free: 122.3 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003631/0.7335, allocations: 30.95 kB / 0.5476 GB, free: 122.3 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009795/0.7344, allocations: 40.12 kB / 0.5476 GB, free: 122.3 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001643/0.7346, allocations: 56.5 kB / 0.5477 GB, free: 122.3 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001121/0.7347, allocations: 35.91 kB / 0.5477 GB, free: 122.3 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002911/0.7376, allocations: 1.844 MB / 0.5495 GB, free: 121.9 MB / 462.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.7376, allocations: 1.156 kB / 0.5495 GB, free: 121.9 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.00356/0.7412, allocations: 0.8327 MB / 0.5503 GB, free: 121.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.002951/0.7441, allocations: 3.443 MB / 0.5537 GB, free: 120 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.004405/0.7485, allocations: 3.486 MB / 0.5571 GB, free: 119 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.761e-06/0.7485, allocations: 0 / 0.5571 GB, free: 119 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006603/0.7492, allocations: 0.6781 MB / 0.5578 GB, free: 118.8 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001631/0.7508, allocations: 265.2 kB / 0.558 GB, free: 118.6 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03088/0.7817, allocations: 34.28 MB / 0.5915 GB, free: 81.96 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001509/0.7832, allocations: 1.821 MB / 0.5933 GB, free: 80.1 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002761/0.786, allocations: 1.637 MB / 0.5949 GB, free: 78.46 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001102/0.7871, allocations: 1.218 MB / 0.5961 GB, free: 77.24 MB / 462.1 MB Notification: Performance of SimCode: time 8.41e-07/0.7871, allocations: 4 kB / 0.5961 GB, free: 77.23 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07179/0.8589, allocations: 45.18 MB / 0.6402 GB, free: 32.77 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 18.11/18.97, allocations: 19.23 kB / 0.6402 GB, free: 32.75 MB / 462.1 MB " [Timeout remaining time 641] (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.64981599804014]