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) 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 4.0.0+maint.om/package.mo", uses=false) 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses,fileNamePrefix="Modelica_4_0_0_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.001318/0.001318, allocations: 106.4 kB / 17.06 MB, free: 6.027 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.00148/0.00148, allocations: 195 kB / 18 MB, free: 5.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.389/1.389, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001441/0.001441, allocations: 51.92 kB / 350.8 MB, free: 3.75 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2878/0.2893, allocations: 49.44 MB / 400.2 MB, free: 8.625 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses): time 0.008586/0.2979, allocations: 7.96 MB / 408.2 MB, free: 0.9766 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.004799/0.3027, allocations: 2.528 MB / 410.7 MB, free: 14.43 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009953/0.3037, allocations: 35.94 kB / 410.8 MB, free: 14.4 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002891/0.3066, allocations: 1.429 MB / 412.2 MB, free: 12.96 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002509/0.3092, allocations: 0.9839 MB / 413.2 MB, free: 11.98 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008754/0.3101, allocations: 271.4 kB / 413.4 MB, free: 11.71 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003018/0.3132, allocations: 2.177 MB / 415.6 MB, free: 9.527 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00207/0.3153, allocations: 1.55 MB / 417.2 MB, free: 7.949 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001377/0.3167, allocations: 0.8484 MB / 418 MB, free: 7.098 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001903/0.3186, allocations: 1.187 MB / 419.2 MB, free: 5.906 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004677/0.319, allocations: 156 kB / 419.4 MB, free: 5.754 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00141/0.3205, allocations: 0.6631 MB / 420 MB, free: 5.09 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001317/0.3218, allocations: 1.173 MB / 421.2 MB, free: 3.914 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00194/0.3238, allocations: 1.37 MB / 422.6 MB, free: 2.535 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004772/0.3285, allocations: 4.316 MB / 426.9 MB, free: 14.2 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.09e-06/0.3286, allocations: 0 / 426.9 MB, free: 14.2 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.3286, allocations: 0 / 426.9 MB, free: 14.2 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001204/0.3287, allocations: 0 / 426.9 MB, free: 14.2 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.005367/0.3341, allocations: 2.953 MB / 429.8 MB, free: 11.19 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.495e-05/0.3341, allocations: 8.031 kB / 429.8 MB, free: 11.18 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001051/0.3352, allocations: 0.5338 MB / 430.4 MB, free: 10.63 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007365/0.3426, allocations: 1.771 MB / 432.1 MB, free: 8.855 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003454/0.3461, allocations: 1.177 MB / 433.3 MB, free: 7.637 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002083/0.3463, allocations: 143.8 kB / 433.5 MB, free: 7.496 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008361/0.3471, allocations: 207.8 kB / 433.7 MB, free: 7.293 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02114/0.3683, allocations: 8.596 MB / 442.3 MB, free: 14.09 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001617/0.3685, allocations: 39.66 kB / 442.3 MB, free: 14.05 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006621/0.3692, allocations: 99.89 kB / 442.4 MB, free: 13.96 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003292/0.3725, allocations: 1.667 MB / 444.1 MB, free: 12.29 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02104/0.3935, allocations: 7.167 MB / 451.2 MB, free: 5.121 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04269/0.4363, allocations: 30.11 MB / 481.3 MB, free: 6.121 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0235/0.4598, allocations: 5.037 MB / 486.4 MB, free: 0.9062 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001833/0.4617, allocations: 1.24 MB / 487.6 MB, free: 15.64 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006457/0.4682, allocations: 3.746 MB / 491.4 MB, free: 11.75 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.745e-05/0.4683, allocations: 54.81 kB / 491.4 MB, free: 11.69 MB / 414.1 MB Notification: Performance of pre-optimization done (n=111): time 7.254e-06/0.4683, allocations: 3.984 kB / 491.4 MB, free: 11.68 MB / 414.1 MB Notification: Performance of matching and sorting (n=111): time 0.04708/0.5154, allocations: 9.265 MB / 0.489 GB, free: 2.332 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001457/0.5156, allocations: 195.8 kB / 0.4891 GB, free: 2.098 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006627/0.5222, allocations: 3.035 MB / 0.4921 GB, free: 15.04 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002426/0.5225, allocations: 41.7 kB / 0.4921 GB, free: 14.99 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002293/0.5248, allocations: 2.421 MB / 0.4945 GB, free: 12.54 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008669/0.5257, allocations: 0.4942 MB / 0.495 GB, free: 12.04 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002613/0.5283, allocations: 1.083 MB / 0.4961 GB, free: 10.94 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001303/0.5285, allocations: 301.1 kB / 0.4963 GB, free: 10.64 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00297/0.5315, allocations: 1.607 MB / 0.4979 GB, free: 9.031 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00604/0.5375, allocations: 5.173 MB / 0.503 GB, free: 2.055 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009072/0.5466, allocations: 7.326 MB / 0.5101 GB, free: 8.945 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001288/0.5468, allocations: 36 kB / 0.5101 GB, free: 8.91 MB / 446.1 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.01128/0.558, allocations: 6.439 MB / 0.5164 GB, free: 2.465 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001445/0.5582, allocations: 63.5 kB / 0.5165 GB, free: 2.406 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001924/0.5584, allocations: 132 kB / 0.5166 GB, free: 2.277 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001874/0.5586, allocations: 171.9 kB / 0.5168 GB, free: 2.109 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00506/0.5637, allocations: 1.45 MB / 0.5182 GB, free: 0.6562 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002656/0.564, allocations: 247 kB / 0.5184 GB, free: 424 kB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00416/0.5681, allocations: 0.7421 MB / 0.5192 GB, free: 15.66 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006459/0.5688, allocations: 344 kB / 0.5195 GB, free: 15.33 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.002598/0.5714, allocations: 1.575 MB / 0.521 GB, free: 13.74 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005945/0.572, allocations: 252.7 kB / 0.5213 GB, free: 13.49 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001495/0.5735, allocations: 0.8291 MB / 0.5221 GB, free: 12.65 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.971e-05/0.5736, allocations: 19.94 kB / 0.5221 GB, free: 12.63 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.349e-05/0.5736, allocations: 3.938 kB / 0.5221 GB, free: 12.63 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.888e-05/0.5736, allocations: 7.984 kB / 0.5221 GB, free: 12.62 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008002/0.5816, allocations: 3.384 MB / 0.5254 GB, free: 9.176 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.462e-05/0.5817, allocations: 0 / 0.5254 GB, free: 9.176 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002393/0.5841, allocations: 411.5 kB / 0.5258 GB, free: 8.773 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.467e-05/0.5841, allocations: 4 kB / 0.5258 GB, free: 8.77 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001668/0.5843, allocations: 35.97 kB / 0.5258 GB, free: 8.734 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.204e-05/0.5843, allocations: 4 kB / 0.5258 GB, free: 8.73 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.028e-06/0.5843, allocations: 3.938 kB / 0.5259 GB, free: 8.727 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003996/0.5883, allocations: 2.781 MB / 0.5286 GB, free: 5.914 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009039/0.5892, allocations: 301.7 kB / 0.5289 GB, free: 5.598 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000602/0.5899, allocations: 35.91 kB / 0.5289 GB, free: 5.562 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001271/0.5911, allocations: 43.95 kB / 0.5289 GB, free: 5.52 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001313/0.5913, allocations: 48.3 kB / 0.529 GB, free: 5.473 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.98e-05/0.5914, allocations: 43.97 kB / 0.529 GB, free: 5.43 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.004521/0.5959, allocations: 1.841 MB / 0.5308 GB, free: 3.586 MB / 462.1 MB Notification: Performance of sort global known variables: time 4.11e-07/0.5959, allocations: 0 / 0.5308 GB, free: 3.586 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.005771/0.6017, allocations: 0.8377 MB / 0.5316 GB, free: 2.746 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.2509/0.8527, allocations: 3.42 MB / 0.535 GB, free: 130.5 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.00636/0.8591, allocations: 3.615 MB / 0.5385 GB, free: 129.6 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 7.775e-06/0.8591, allocations: 3.969 kB / 0.5385 GB, free: 129.6 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008262/0.86, allocations: 0.7101 MB / 0.5392 GB, free: 129.4 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002558/0.8625, allocations: 261.8 kB / 0.5395 GB, free: 129.3 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03632/0.8989, allocations: 34.16 MB / 0.5728 GB, free: 96.86 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001776/0.9007, allocations: 2.397 MB / 0.5752 GB, free: 94.44 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002901/0.9036, allocations: 1.626 MB / 0.5767 GB, free: 92.81 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001143/0.9048, allocations: 1.218 MB / 0.5779 GB, free: 91.59 MB / 462.1 MB Notification: Performance of SimCode: time 1.062e-06/0.9048, allocations: 0 / 0.5779 GB, free: 91.59 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.156/2.061, allocations: 44.06 MB / 0.621 GB, free: 47.91 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 18.31/20.37, allocations: 7.094 kB / 0.621 GB, free: 47.91 MB / 462.1 MB (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 --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) 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) Reference file matches