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.00163/0.00163, allocations: 111.7 kB / 17.73 MB, free: 5.312 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.001772/0.001772, allocations: 188.2 kB / 18.67 MB, free: 4.387 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.389/1.389, allocations: 205.1 MB / 224.5 MB, free: 12.22 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.001744/0.001744, allocations: 55.92 kB / 328 MB, free: 3.781 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09025/0.09201, allocations: 46.62 MB / 374.7 MB, free: 5.051 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses): time 0.1911/0.2831, allocations: 7.957 MB / 382.6 MB, free: 8.609 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.004834/0.288, allocations: 2.555 MB / 385.2 MB, free: 7.508 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001203/0.2893, allocations: 34.81 kB / 385.2 MB, free: 7.504 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002873/0.2922, allocations: 1.427 MB / 386.6 MB, free: 7.07 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002786/0.295, allocations: 0.9844 MB / 387.6 MB, free: 6.719 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008231/0.2959, allocations: 265 kB / 387.9 MB, free: 6.625 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.003587/0.2995, allocations: 2.188 MB / 390.1 MB, free: 5.746 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002217/0.3017, allocations: 1.551 MB / 391.6 MB, free: 5.129 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001901/0.3037, allocations: 0.8378 MB / 392.4 MB, free: 4.77 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002423/0.3061, allocations: 1.181 MB / 393.6 MB, free: 4.316 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006715/0.3068, allocations: 163.8 kB / 393.8 MB, free: 4.312 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00196/0.3088, allocations: 0.6575 MB / 394.4 MB, free: 4.152 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001638/0.3104, allocations: 1.161 MB / 395.6 MB, free: 3.75 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001606/0.312, allocations: 1.373 MB / 397 MB, free: 2.762 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006323/0.3184, allocations: 4.329 MB / 401.3 MB, free: 404 kB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.684e-06/0.3184, allocations: 0 / 401.3 MB, free: 404 kB / 318.1 MB Notification: Performance of FrontEnd: time 3.056e-06/0.3184, allocations: 1.094 kB / 401.3 MB, free: 404 kB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001414/0.3186, allocations: 0 / 401.3 MB, free: 404 kB / 318.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.007048/0.3256, allocations: 3.039 MB / 404.4 MB, free: 14.13 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.093e-05/0.3257, allocations: 10.34 kB / 404.4 MB, free: 14.13 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001135/0.3269, allocations: 0.5324 MB / 404.9 MB, free: 13.75 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007466/0.3343, allocations: 1.792 MB / 406.7 MB, free: 12.8 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003165/0.3375, allocations: 1.165 MB / 407.9 MB, free: 11.97 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001552/0.3377, allocations: 146.9 kB / 408 MB, free: 11.9 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006286/0.3384, allocations: 209.1 kB / 408.2 MB, free: 11.82 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02054/0.3589, allocations: 8.604 MB / 416.8 MB, free: 4.781 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001119/0.3591, allocations: 43.69 kB / 416.8 MB, free: 4.738 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003348/0.3594, allocations: 103.9 kB / 416.9 MB, free: 4.637 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003173/0.3626, allocations: 1.671 MB / 418.6 MB, free: 2.965 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0192/0.3818, allocations: 7.168 MB / 425.8 MB, free: 11.8 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04011/0.422, allocations: 30.14 MB / 455.9 MB, free: 12.78 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02319/0.4452, allocations: 5.048 MB / 461 MB, free: 7.559 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001971/0.4472, allocations: 1.244 MB / 462.2 MB, free: 6.293 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006704/0.4539, allocations: 3.754 MB / 466 MB, free: 2.391 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.782e-05/0.4541, allocations: 55.14 kB / 466 MB, free: 2.328 MB / 382.1 MB Notification: Performance of pre-optimization done (n=111): time 5.671e-06/0.4541, allocations: 0 / 466 MB, free: 2.328 MB / 382.1 MB Notification: Performance of matching and sorting (n=111): time 0.04729/0.5014, allocations: 9.279 MB / 475.3 MB, free: 8.961 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001375/0.5015, allocations: 191.9 kB / 475.5 MB, free: 8.73 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006217/0.5078, allocations: 3.044 MB / 478.5 MB, free: 5.668 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002504/0.5081, allocations: 45.64 kB / 478.6 MB, free: 5.617 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002582/0.5107, allocations: 2.535 MB / 481.1 MB, free: 3.055 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009078/0.5116, allocations: 0.5119 MB / 481.6 MB, free: 2.539 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002807/0.5144, allocations: 1.092 MB / 482.7 MB, free: 1.438 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001321/0.5146, allocations: 305.1 kB / 483 MB, free: 1.137 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002928/0.5175, allocations: 1.603 MB / 484.6 MB, free: 15.53 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006537/0.5241, allocations: 5.165 MB / 489.8 MB, free: 8.559 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009714/0.5338, allocations: 7.324 MB / 497.1 MB, free: 15.45 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001377/0.534, allocations: 36 kB / 497.1 MB, free: 15.41 MB / 430.1 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.01288/0.5469, allocations: 6.463 MB / 0.4918 GB, free: 8.945 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001432/0.5471, allocations: 60 kB / 0.4919 GB, free: 8.887 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002007/0.5473, allocations: 124 kB / 0.492 GB, free: 8.766 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000215/0.5475, allocations: 168 kB / 0.4921 GB, free: 8.602 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005761/0.5533, allocations: 1.454 MB / 0.4936 GB, free: 7.145 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002885/0.5536, allocations: 252.5 kB / 0.4938 GB, free: 6.898 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004773/0.5584, allocations: 0.7717 MB / 0.4946 GB, free: 6.121 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00103/0.5595, allocations: 340.2 kB / 0.4949 GB, free: 5.789 MB / 430.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.00345/0.563, allocations: 1.583 MB / 0.4964 GB, free: 4.191 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006765/0.5636, allocations: 258.3 kB / 0.4967 GB, free: 3.938 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001788/0.5654, allocations: 0.825 MB / 0.4975 GB, free: 3.102 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.387e-05/0.5655, allocations: 12 kB / 0.4975 GB, free: 3.09 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.751e-05/0.5655, allocations: 7.938 kB / 0.4975 GB, free: 3.082 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.706e-05/0.5656, allocations: 7.984 kB / 0.4975 GB, free: 3.074 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007386/0.5729, allocations: 3.4 MB / 0.5008 GB, free: 15.61 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.569e-05/0.573, allocations: 7.938 kB / 0.5008 GB, free: 15.61 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002431/0.5754, allocations: 407.5 kB / 0.5012 GB, free: 15.21 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.714e-05/0.5755, allocations: 4 kB / 0.5012 GB, free: 15.2 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001621/0.5756, allocations: 35.97 kB / 0.5013 GB, free: 15.17 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.836e-06/0.5757, allocations: 4 kB / 0.5013 GB, free: 15.16 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.458e-06/0.5757, allocations: 8 kB / 0.5013 GB, free: 15.16 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00384/0.5795, allocations: 2.791 MB / 0.504 GB, free: 12.34 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007522/0.5803, allocations: 319 kB / 0.5043 GB, free: 12.01 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004664/0.5808, allocations: 31.92 kB / 0.5043 GB, free: 11.98 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001163/0.5819, allocations: 43.95 kB / 0.5044 GB, free: 11.93 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001511/0.5821, allocations: 55.86 kB / 0.5044 GB, free: 11.88 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.322e-05/0.5822, allocations: 35.98 kB / 0.5045 GB, free: 11.84 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003871/0.5861, allocations: 1.845 MB / 0.5063 GB, free: 9.996 MB / 446.1 MB Notification: Performance of sort global known variables: time 4.1e-07/0.5861, allocations: 0 / 0.5063 GB, free: 9.996 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005367/0.5915, allocations: 0.8305 MB / 0.5071 GB, free: 9.164 MB / 446.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.005253/0.5968, allocations: 3.442 MB / 0.5104 GB, free: 5.691 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006688/0.6035, allocations: 3.625 MB / 0.514 GB, free: 2.098 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.148e-05/0.6036, allocations: 0 / 0.514 GB, free: 2.098 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001276/0.6048, allocations: 0.7103 MB / 0.5147 GB, free: 1.387 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002802/0.6077, allocations: 270.7 kB / 0.5149 GB, free: 1.125 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0587/0.6664, allocations: 34.29 MB / 0.5484 GB, free: 9.457 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004024/0.6705, allocations: 2.391 MB / 0.5507 GB, free: 7.035 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.004617/0.6751, allocations: 1.633 MB / 0.5523 GB, free: 5.395 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003414/0.6786, allocations: 1.214 MB / 0.5535 GB, free: 4.18 MB / 494.1 MB Notification: Performance of SimCode: time 2.054e-06/0.6787, allocations: 0 / 0.5535 GB, free: 4.18 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2844/0.9631, allocations: 43.39 MB / 0.5959 GB, free: 151.4 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 18.07/19.03, allocations: 8.062 kB / 0.5959 GB, free: 151.4 MB / 494.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 & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0008 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.csv","/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