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.00129/0.00129, allocations: 116.1 kB / 17.07 MB, free: 5.992 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.001363/0.001363, allocations: 196 kB / 18 MB, free: 5.074 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.387/1.387, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001659/0.001659, allocations: 47.92 kB / 350.8 MB, free: 3.727 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2754/0.2771, allocations: 49.44 MB / 400.2 MB, free: 8.383 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses): time 0.01028/0.2874, allocations: 7.966 MB / 408.2 MB, free: 0.7891 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.005373/0.2928, allocations: 2.523 MB / 410.7 MB, free: 14.26 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001155/0.294, allocations: 39.88 kB / 410.8 MB, free: 14.22 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003119/0.2971, allocations: 1.417 MB / 412.2 MB, free: 12.79 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002572/0.2998, allocations: 0.9995 MB / 413.2 MB, free: 11.79 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007361/0.3005, allocations: 263.4 kB / 413.4 MB, free: 11.53 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002966/0.3035, allocations: 2.185 MB / 415.6 MB, free: 9.344 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001904/0.3054, allocations: 1.548 MB / 417.2 MB, free: 7.766 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001009/0.3064, allocations: 0.8328 MB / 418 MB, free: 6.93 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001532/0.308, allocations: 1.191 MB / 419.2 MB, free: 5.734 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003245/0.3083, allocations: 160 kB / 419.4 MB, free: 5.578 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001319/0.3096, allocations: 0.6747 MB / 420 MB, free: 4.902 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001154/0.3108, allocations: 1.157 MB / 421.2 MB, free: 3.742 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001473/0.3123, allocations: 1.378 MB / 422.6 MB, free: 2.355 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005004/0.3173, allocations: 4.332 MB / 426.9 MB, free: 14.01 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.989e-06/0.3173, allocations: 3.938 kB / 426.9 MB, free: 14 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.3173, allocations: 0 / 426.9 MB, free: 14 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.983e-05/0.3174, allocations: 0 / 426.9 MB, free: 14 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.004814/0.3223, allocations: 3.041 MB / 429.9 MB, free: 10.89 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.317e-05/0.3223, allocations: 8.031 kB / 430 MB, free: 10.89 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006555/0.323, allocations: 0.5299 MB / 430.5 MB, free: 10.34 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00685/0.3298, allocations: 1.793 MB / 432.3 MB, free: 8.547 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002133/0.332, allocations: 1.166 MB / 433.4 MB, free: 7.34 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001264/0.3321, allocations: 151.8 kB / 433.6 MB, free: 7.191 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004582/0.3326, allocations: 207.8 kB / 433.8 MB, free: 6.988 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01889/0.3515, allocations: 8.588 MB / 442.4 MB, free: 13.8 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.623e-05/0.3516, allocations: 47.62 kB / 442.4 MB, free: 13.75 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002882/0.3519, allocations: 103.9 kB / 442.5 MB, free: 13.65 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002934/0.3549, allocations: 1.667 MB / 444.2 MB, free: 11.98 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01806/0.373, allocations: 7.163 MB / 451.4 MB, free: 4.816 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03592/0.4089, allocations: 30.17 MB / 481.5 MB, free: 5.77 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02285/0.4318, allocations: 5.045 MB / 486.6 MB, free: 0.5469 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001797/0.4336, allocations: 1.243 MB / 487.8 MB, free: 15.29 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005602/0.4393, allocations: 3.762 MB / 491.6 MB, free: 11.38 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.884e-05/0.4393, allocations: 42.89 kB / 491.6 MB, free: 11.32 MB / 414.1 MB Notification: Performance of pre-optimization done (n=111): time 5.28e-06/0.4394, allocations: 3.984 kB / 491.6 MB, free: 11.32 MB / 414.1 MB Notification: Performance of matching and sorting (n=111): time 0.04696/0.4863, allocations: 9.283 MB / 0.4892 GB, free: 1.949 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001334/0.4865, allocations: 191.9 kB / 0.4893 GB, free: 1.719 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004339/0.4908, allocations: 3.04 MB / 0.4923 GB, free: 14.66 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001678/0.491, allocations: 41.7 kB / 0.4924 GB, free: 14.61 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001908/0.4929, allocations: 2.539 MB / 0.4948 GB, free: 12.05 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005886/0.4935, allocations: 0.5158 MB / 0.4953 GB, free: 11.53 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001369/0.4949, allocations: 1.092 MB / 0.4964 GB, free: 10.43 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001359/0.4951, allocations: 305.1 kB / 0.4967 GB, free: 10.12 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002335/0.4974, allocations: 1.599 MB / 0.4983 GB, free: 8.52 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00514/0.5026, allocations: 5.169 MB / 0.5033 GB, free: 1.547 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008679/0.5112, allocations: 7.326 MB / 0.5105 GB, free: 8.441 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.811e-05/0.5114, allocations: 40 kB / 0.5105 GB, free: 8.402 MB / 446.1 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.01065/0.522, allocations: 6.449 MB / 0.5168 GB, free: 1.949 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.754e-05/0.5221, allocations: 60 kB / 0.5169 GB, free: 1.891 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001349/0.5223, allocations: 128 kB / 0.517 GB, free: 1.766 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001713/0.5225, allocations: 167.9 kB / 0.5171 GB, free: 1.602 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004695/0.5272, allocations: 1.454 MB / 0.5186 GB, free: 148 kB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002285/0.5274, allocations: 251.7 kB / 0.5188 GB, free: 15.89 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003267/0.5307, allocations: 0.7677 MB / 0.5195 GB, free: 15.12 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000446/0.5311, allocations: 348 kB / 0.5199 GB, free: 14.79 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.002412/0.5336, allocations: 1.567 MB / 0.5214 GB, free: 13.2 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004255/0.534, allocations: 266.2 kB / 0.5217 GB, free: 12.94 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001385/0.5354, allocations: 0.833 MB / 0.5225 GB, free: 12.1 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.855e-05/0.5354, allocations: 19.94 kB / 0.5225 GB, free: 12.08 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.846e-06/0.5354, allocations: 0 / 0.5225 GB, free: 12.08 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.38e-05/0.5355, allocations: 7.984 kB / 0.5225 GB, free: 12.07 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005461/0.5409, allocations: 3.376 MB / 0.5258 GB, free: 8.637 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.917e-06/0.541, allocations: 4 kB / 0.5258 GB, free: 8.633 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002351/0.5433, allocations: 411.5 kB / 0.5262 GB, free: 8.23 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.323e-05/0.5433, allocations: 8 kB / 0.5262 GB, free: 8.223 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001047/0.5434, allocations: 47.89 kB / 0.5262 GB, free: 8.176 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.304e-06/0.5435, allocations: 4 kB / 0.5262 GB, free: 8.172 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.5435, allocations: 0 / 0.5262 GB, free: 8.172 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003507/0.547, allocations: 2.795 MB / 0.529 GB, free: 5.348 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00057/0.5476, allocations: 319.1 kB / 0.5293 GB, free: 5.016 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002487/0.5478, allocations: 31.97 kB / 0.5293 GB, free: 4.984 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008549/0.5487, allocations: 39.97 kB / 0.5294 GB, free: 4.945 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001329/0.5488, allocations: 55.91 kB / 0.5294 GB, free: 4.891 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.994e-05/0.5489, allocations: 35.98 kB / 0.5294 GB, free: 4.855 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002685/0.5516, allocations: 1.841 MB / 0.5312 GB, free: 3.012 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.5516, allocations: 3.938 kB / 0.5312 GB, free: 3.008 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003757/0.5554, allocations: 0.8421 MB / 0.5321 GB, free: 2.164 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.2284/0.7838, allocations: 3.435 MB / 0.5354 GB, free: 129.4 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006258/0.7901, allocations: 3.607 MB / 0.5389 GB, free: 128.6 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.01e-05/0.7902, allocations: 0 / 0.5389 GB, free: 128.6 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000889/0.7911, allocations: 0.7167 MB / 0.5396 GB, free: 128.4 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002274/0.7934, allocations: 265.2 kB / 0.5399 GB, free: 128.2 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0348/0.8282, allocations: 34.3 MB / 0.5734 GB, free: 95.98 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001776/0.83, allocations: 2.392 MB / 0.5757 GB, free: 93.56 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.00286/0.8329, allocations: 1.629 MB / 0.5773 GB, free: 91.92 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001161/0.8341, allocations: 1.218 MB / 0.5785 GB, free: 90.7 MB / 462.1 MB Notification: Performance of SimCode: time 8.62e-07/0.8341, allocations: 0 / 0.5785 GB, free: 90.7 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07681/0.9109, allocations: 43.4 MB / 0.6209 GB, free: 47.68 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.75/16.66, allocations: 7.875 kB / 0.6209 GB, free: 47.68 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