Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravityWithPointMasses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravityWithPointMasses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00158/0.00158, allocations: 99.95 kB / 17.58 MB, free: 5.418 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002228/0.002228, allocations: 192 kB / 18.51 MB, free: 4.508 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.445/1.445, allocations: 205.1 MB / 224.4 MB, free: 12.3 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001177/0.001177, allocations: 47.94 kB / 280.7 MB, free: 3.082 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08924/0.09043, allocations: 46.64 MB / 327.4 MB, free: 4.371 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses): time 0.008242/0.09873, allocations: 7.958 MB / 335.3 MB, free: 12.36 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.004577/0.1033, allocations: 2.56 MB / 337.9 MB, free: 9.789 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006675/0.104, allocations: 31.94 kB / 337.9 MB, free: 9.758 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00242/0.1065, allocations: 1.417 MB / 339.4 MB, free: 8.336 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001945/0.1085, allocations: 0.9878 MB / 340.3 MB, free: 7.344 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006022/0.1091, allocations: 259.5 kB / 340.6 MB, free: 7.09 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.002236/0.1113, allocations: 2.185 MB / 342.8 MB, free: 4.898 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001595/0.1129, allocations: 1.56 MB / 344.3 MB, free: 3.32 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001019/0.114, allocations: 0.8328 MB / 345.2 MB, free: 2.484 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001322/0.1153, allocations: 1.191 MB / 346.4 MB, free: 1.289 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000282/0.1156, allocations: 164 kB / 346.5 MB, free: 1.129 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001184/0.1168, allocations: 0.6591 MB / 347.2 MB, free: 480 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009244/0.1177, allocations: 1.165 MB / 348.3 MB, free: 15.3 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001126/0.1189, allocations: 1.37 MB / 349.7 MB, free: 13.92 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003623/0.1225, allocations: 4.108 MB / 353.8 MB, free: 9.801 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.692e-06/0.1225, allocations: 4 kB / 353.8 MB, free: 9.797 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.774e-06/0.1225, allocations: 0 / 353.8 MB, free: 9.797 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.195e-05/0.1226, allocations: 0 / 353.8 MB, free: 9.797 MB / 302.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.004127/0.1267, allocations: 2.964 MB / 356.8 MB, free: 6.77 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.647e-05/0.1268, allocations: 8.031 kB / 356.8 MB, free: 6.762 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000532/0.1273, allocations: 0.526 MB / 357.3 MB, free: 6.223 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006523/0.1339, allocations: 1.771 MB / 359.1 MB, free: 4.445 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001763/0.1356, allocations: 1.161 MB / 360.3 MB, free: 3.238 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.766e-05/0.1357, allocations: 151.8 kB / 360.4 MB, free: 3.09 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003467/0.1361, allocations: 207.8 kB / 360.6 MB, free: 2.887 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01767/0.1538, allocations: 8.596 MB / 369.2 MB, free: 9.688 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001662/0.154, allocations: 39.64 kB / 369.2 MB, free: 9.648 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007001/0.1547, allocations: 111.9 kB / 369.4 MB, free: 9.539 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002937/0.1577, allocations: 1.663 MB / 371 MB, free: 7.871 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01833/0.176, allocations: 7.159 MB / 378.2 MB, free: 0.7109 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1984/0.3744, allocations: 30.18 MB / 408.4 MB, free: 26.95 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02062/0.3951, allocations: 5.047 MB / 413.4 MB, free: 24.33 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00121/0.3963, allocations: 1.245 MB / 414.6 MB, free: 23.75 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003947/0.4003, allocations: 3.752 MB / 418.4 MB, free: 20.91 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.693e-05/0.4003, allocations: 57.23 kB / 418.5 MB, free: 20.86 MB / 318.1 MB Notification: Performance of pre-optimization done (n=111): time 2.995e-06/0.4003, allocations: 0 / 418.5 MB, free: 20.86 MB / 318.1 MB Notification: Performance of matching and sorting (n=111): time 0.0423/0.4426, allocations: 9.255 MB / 427.7 MB, free: 12.12 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.084e-05/0.4428, allocations: 195.8 kB / 427.9 MB, free: 11.89 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00353/0.4463, allocations: 3.035 MB / 430.9 MB, free: 8.832 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001396/0.4464, allocations: 41.64 kB / 431 MB, free: 8.785 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001095/0.4475, allocations: 2.427 MB / 433.4 MB, free: 6.363 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000373/0.4479, allocations: 0.49 MB / 433.9 MB, free: 5.875 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001022/0.449, allocations: 1.088 MB / 435 MB, free: 4.781 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.092e-05/0.449, allocations: 301.1 kB / 435.3 MB, free: 4.484 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001678/0.4507, allocations: 1.603 MB / 436.9 MB, free: 2.875 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004132/0.4548, allocations: 5.169 MB / 442 MB, free: 11.9 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007017/0.4619, allocations: 7.322 MB / 449.4 MB, free: 2.793 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.198e-05/0.462, allocations: 40 kB / 449.4 MB, free: 2.754 MB / 334.1 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.009748/0.4717, allocations: 6.437 MB / 455.8 MB, free: 12.31 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.647e-05/0.4718, allocations: 68.84 kB / 455.9 MB, free: 12.25 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001767/0.472, allocations: 124 kB / 456 MB, free: 12.12 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001739/0.4722, allocations: 172 kB / 456.2 MB, free: 11.96 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004605/0.4768, allocations: 1.458 MB / 457.7 MB, free: 10.5 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001998/0.477, allocations: 247 kB / 457.9 MB, free: 10.25 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003457/0.4805, allocations: 0.7421 MB / 458.6 MB, free: 9.504 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004923/0.481, allocations: 344.9 kB / 459 MB, free: 9.168 MB / 350.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.002214/0.4832, allocations: 1.575 MB / 460.6 MB, free: 7.582 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004917/0.4837, allocations: 252.7 kB / 460.8 MB, free: 7.332 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00132/0.4851, allocations: 0.825 MB / 461.6 MB, free: 6.5 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.876e-05/0.4851, allocations: 15.83 kB / 461.6 MB, free: 6.488 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.157e-05/0.4851, allocations: 4 kB / 461.6 MB, free: 6.484 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.322e-05/0.4851, allocations: 8.297 kB / 461.7 MB, free: 6.477 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006242/0.4914, allocations: 3.396 MB / 465 MB, free: 3.039 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-05/0.4914, allocations: 0 / 465 MB, free: 3.039 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002282/0.4937, allocations: 414.2 kB / 465.5 MB, free: 2.637 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.08e-05/0.4937, allocations: 7.984 kB / 465.5 MB, free: 2.629 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001191/0.4939, allocations: 35.95 kB / 465.5 MB, free: 2.594 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.013e-05/0.4939, allocations: 8.703 kB / 465.5 MB, free: 2.586 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.875e-06/0.4939, allocations: 0 / 465.5 MB, free: 2.586 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003107/0.497, allocations: 2.787 MB / 468.3 MB, free: 15.78 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000547/0.4976, allocations: 301.6 kB / 468.6 MB, free: 15.46 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004736/0.4981, allocations: 33.94 kB / 468.6 MB, free: 15.43 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001115/0.4992, allocations: 39.95 kB / 468.7 MB, free: 15.39 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001277/0.4993, allocations: 63.8 kB / 468.7 MB, free: 15.33 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.636e-05/0.4994, allocations: 31.98 kB / 468.8 MB, free: 15.3 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002533/0.5019, allocations: 1.845 MB / 470.6 MB, free: 13.45 MB / 366.1 MB Notification: Performance of sort global known variables: time 3.8e-07/0.5019, allocations: 0 / 470.6 MB, free: 13.45 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.003904/0.5059, allocations: 0.8333 MB / 471.4 MB, free: 12.62 MB / 366.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.003491/0.5094, allocations: 3.435 MB / 474.9 MB, free: 9.164 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.006076/0.5154, allocations: 3.787 MB / 478.7 MB, free: 5.414 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 7.003e-06/0.5155, allocations: 4.688 kB / 478.7 MB, free: 5.41 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009732/0.5165, allocations: 0.7188 MB / 479.4 MB, free: 4.691 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002106/0.5186, allocations: 262.5 kB / 479.6 MB, free: 4.441 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05481/0.5734, allocations: 36.89 MB / 0.5044 GB, free: 9.012 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00456/0.578, allocations: 2.387 MB / 0.5067 GB, free: 6.598 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.005145/0.5832, allocations: 1.637 MB / 0.5083 GB, free: 4.953 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001784/0.585, allocations: 1.214 MB / 0.5095 GB, free: 3.738 MB / 414.1 MB Notification: Performance of SimCode: time 1.222e-06/0.585, allocations: 4 kB / 0.5095 GB, free: 3.734 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2698/0.8548, allocations: 46.64 MB / 0.5551 GB, free: 139.1 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.494/10.35, allocations: 4.375 kB / 0.5551 GB, free: 139.1 MB / 430.1 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravityWithPointMasses_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravityWithPointMasses.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Elementary/PointGravityWithPointMasses/PointGravityWithPointMasses.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches