Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravityWithPointMasses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001672/0.001672, allocations: 121.1 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001929/0.001929, allocations: 204.6 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.408/1.408, allocations: 227.4 MB / 247 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001719/0.001719, allocations: 68.12 kB / 358.3 MB, free: 13.38 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2378/0.2396, allocations: 50.54 MB / 408.8 MB, free: 1.621 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses): time 0.009188/0.2488, allocations: 7.953 MB / 416.8 MB, free: 9.629 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004786/0.2536, allocations: 2.559 MB / 419.3 MB, free: 7.062 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006741/0.2543, allocations: 35.94 kB / 419.4 MB, free: 7.027 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002658/0.257, allocations: 1.436 MB / 420.8 MB, free: 5.586 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002083/0.2591, allocations: 0.9762 MB / 421.8 MB, free: 4.605 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006172/0.2597, allocations: 267.4 kB / 422 MB, free: 4.344 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002616/0.2624, allocations: 2.161 MB / 424.2 MB, free: 2.18 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001795/0.2642, allocations: 1.544 MB / 425.7 MB, free: 0.6055 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001034/0.2652, allocations: 0.8328 MB / 426.6 MB, free: 15.77 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001503/0.2667, allocations: 1.183 MB / 427.8 MB, free: 14.58 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003396/0.2671, allocations: 160 kB / 427.9 MB, free: 14.43 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001234/0.2683, allocations: 0.6669 MB / 428.6 MB, free: 13.76 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001017/0.2694, allocations: 1.149 MB / 429.7 MB, free: 12.61 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00129/0.2707, allocations: 1.355 MB / 431.1 MB, free: 11.24 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004444/0.2751, allocations: 4.289 MB / 435.4 MB, free: 6.938 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.689e-06/0.2751, allocations: 0 / 435.4 MB, free: 6.938 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.994e-06/0.2751, allocations: 4 kB / 435.4 MB, free: 6.934 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.424e-05/0.2752, allocations: 0 / 435.4 MB, free: 6.934 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.00438/0.2796, allocations: 3.006 MB / 438.4 MB, free: 3.859 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.863e-05/0.2797, allocations: 12.03 kB / 438.4 MB, free: 3.848 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006114/0.2803, allocations: 0.5299 MB / 438.9 MB, free: 3.305 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006449/0.2868, allocations: 1.797 MB / 440.7 MB, free: 1.504 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001962/0.2887, allocations: 1.162 MB / 441.9 MB, free: 308 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001181/0.2889, allocations: 147.8 kB / 442 MB, free: 160 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004078/0.2893, allocations: 211.9 kB / 442.2 MB, free: 15.95 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01753/0.3068, allocations: 8.615 MB / 450.9 MB, free: 6.727 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.599e-05/0.3069, allocations: 43.64 kB / 450.9 MB, free: 6.684 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000273/0.3072, allocations: 99.89 kB / 451 MB, free: 6.586 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002811/0.31, allocations: 1.671 MB / 452.7 MB, free: 4.918 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01718/0.3272, allocations: 7.186 MB / 459.9 MB, free: 13.73 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03429/0.3615, allocations: 30.14 MB / 490 MB, free: 14.71 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02183/0.3834, allocations: 5.063 MB / 495.1 MB, free: 9.469 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001784/0.3852, allocations: 1.247 MB / 496.3 MB, free: 8.199 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005412/0.3907, allocations: 3.837 MB / 0.4884 GB, free: 4.199 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.035e-05/0.3907, allocations: 50.89 kB / 0.4885 GB, free: 4.141 MB / 414.1 MB Notification: Performance of pre-optimization done (n=111): time 3.587e-06/0.3907, allocations: 0 / 0.4885 GB, free: 4.141 MB / 414.1 MB Notification: Performance of matching and sorting (n=111): time 0.04439/0.4351, allocations: 9.292 MB / 0.4975 GB, free: 10.76 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001068/0.4353, allocations: 191.9 kB / 0.4977 GB, free: 10.53 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004118/0.4394, allocations: 3.035 MB / 0.5007 GB, free: 7.477 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001444/0.4396, allocations: 41.7 kB / 0.5007 GB, free: 7.43 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001829/0.4414, allocations: 2.539 MB / 0.5032 GB, free: 4.863 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005478/0.4419, allocations: 0.5082 MB / 0.5037 GB, free: 4.352 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001296/0.4433, allocations: 1.096 MB / 0.5048 GB, free: 3.246 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001188/0.4434, allocations: 305.1 kB / 0.5051 GB, free: 2.945 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002296/0.4457, allocations: 1.607 MB / 0.5066 GB, free: 1.332 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005065/0.4508, allocations: 5.173 MB / 0.5117 GB, free: 10.36 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008366/0.4591, allocations: 7.332 MB / 0.5188 GB, free: 1.242 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.962e-05/0.4593, allocations: 36 kB / 0.5189 GB, free: 1.207 MB / 446.1 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.0103/0.4696, allocations: 6.466 MB / 0.5252 GB, free: 10.74 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.521e-05/0.4697, allocations: 60 kB / 0.5252 GB, free: 10.68 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001486/0.4698, allocations: 128 kB / 0.5254 GB, free: 10.55 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001747/0.47, allocations: 172.3 kB / 0.5255 GB, free: 10.39 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004552/0.4746, allocations: 1.458 MB / 0.527 GB, free: 8.926 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002042/0.4748, allocations: 243.1 kB / 0.5272 GB, free: 8.688 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003158/0.478, allocations: 0.7719 MB / 0.5279 GB, free: 7.91 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004166/0.4784, allocations: 347.9 kB / 0.5283 GB, free: 7.57 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.002156/0.4806, allocations: 1.575 MB / 0.5298 GB, free: 5.98 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004145/0.481, allocations: 266.2 kB / 0.5301 GB, free: 5.719 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005342/0.4815, allocations: 311.3 kB / 0.5304 GB, free: 5.414 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.685e-05/0.4816, allocations: 19.94 kB / 0.5304 GB, free: 5.395 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.082e-05/0.4816, allocations: 0 / 0.5304 GB, free: 5.395 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.153e-05/0.4816, allocations: 7.984 kB / 0.5304 GB, free: 5.387 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005415/0.487, allocations: 3.404 MB / 0.5337 GB, free: 1.922 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.56e-06/0.487, allocations: 0 / 0.5337 GB, free: 1.922 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002211/0.4892, allocations: 411.5 kB / 0.5341 GB, free: 1.52 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.099e-05/0.4893, allocations: 4 kB / 0.5341 GB, free: 1.516 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.606e-05/0.4894, allocations: 35.97 kB / 0.5341 GB, free: 1.48 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.735e-06/0.4894, allocations: 8 kB / 0.5342 GB, free: 1.473 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.783e-06/0.4894, allocations: 0 / 0.5342 GB, free: 1.473 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1918/0.6812, allocations: 2.813 MB / 0.5369 GB, free: 123.8 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005662/0.6818, allocations: 313.1 kB / 0.5372 GB, free: 123.7 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002604/0.6821, allocations: 28.59 kB / 0.5372 GB, free: 123.7 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008787/0.683, allocations: 42.7 kB / 0.5373 GB, free: 123.7 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001521/0.6832, allocations: 57.45 kB / 0.5373 GB, free: 123.7 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.627e-05/0.6832, allocations: 39.36 kB / 0.5374 GB, free: 123.7 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002346/0.6856, allocations: 1.842 MB / 0.5392 GB, free: 123 MB / 462.1 MB Notification: Performance of sort global known variables: time 1e-07/0.6856, allocations: 0 / 0.5392 GB, free: 123 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003284/0.6889, allocations: 0.827 MB / 0.54 GB, free: 122.9 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.003009/0.6919, allocations: 3.446 MB / 0.5433 GB, free: 121.1 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.004345/0.6963, allocations: 3.617 MB / 0.5469 GB, free: 120 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 6.071e-06/0.6963, allocations: 5.781 kB / 0.5469 GB, free: 120 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006884/0.697, allocations: 0.7224 MB / 0.5476 GB, free: 119.8 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001389/0.6984, allocations: 278.8 kB / 0.5478 GB, free: 119.7 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02952/0.7279, allocations: 34.3 MB / 0.5813 GB, free: 83.2 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001611/0.7296, allocations: 2.383 MB / 0.5837 GB, free: 80.79 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002591/0.7322, allocations: 1.633 MB / 0.5853 GB, free: 79.15 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001018/0.7332, allocations: 1.214 MB / 0.5864 GB, free: 77.93 MB / 462.1 MB Notification: Performance of SimCode: time 7.22e-07/0.7332, allocations: 0 / 0.5864 GB, free: 77.93 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7542/1.487, allocations: 43.26 MB / 0.6287 GB, free: 35 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 18.36/19.84, allocations: 3.859 kB / 0.6287 GB, free: 35 MB / 462.1 MB (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravityWithPointMasses_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravityWithPointMasses.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Elementary/PointGravityWithPointMasses/PointGravityWithPointMasses.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches