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.001281/0.001282, allocations: 115.9 kB / 17.33 MB, free: 6.008 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001281/0.001281, allocations: 205.8 kB / 18.27 MB, free: 5.09 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.259/1.259, allocations: 227.4 MB / 246.4 MB, free: 9.082 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001107/0.001107, allocations: 60.98 kB / 306.6 MB, free: 0.6172 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07693/0.07805, allocations: 50.53 MB / 357.1 MB, free: 14.09 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses): time 0.1547/0.2328, allocations: 28.76 MB / 385.9 MB, free: 4.754 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.009742/0.2425, allocations: 5.875 MB / 391.7 MB, free: 1.121 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004048/0.2466, allocations: 113.1 kB / 391.8 MB, free: 1.105 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002683/0.2493, allocations: 1.368 MB / 393.2 MB, free: 500 kB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002151/0.2515, allocations: 0.9168 MB / 394.1 MB, free: 76 kB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006859/0.2522, allocations: 237.4 kB / 394.4 MB, free: 15.95 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.002441/0.2547, allocations: 2.205 MB / 396.6 MB, free: 15.09 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001625/0.2563, allocations: 1.655 MB / 398.2 MB, free: 14.44 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008815/0.2572, allocations: 0.8317 MB / 399 MB, free: 13.98 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001302/0.2585, allocations: 1.336 MB / 400.4 MB, free: 13.23 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002199/0.2587, allocations: 159.5 kB / 400.5 MB, free: 13.23 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001062/0.2598, allocations: 0.68 MB / 401.2 MB, free: 12.93 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008542/0.2607, allocations: 1.168 MB / 402.4 MB, free: 12.28 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000983/0.2617, allocations: 1.383 MB / 403.8 MB, free: 11.22 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003196/0.2649, allocations: 4.127 MB / 407.9 MB, free: 8.398 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.168e-06/0.2649, allocations: 2.188 kB / 407.9 MB, free: 8.398 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.353e-06/0.2649, allocations: 0 / 407.9 MB, free: 8.398 MB / 318.1 MB Notification: Performance of Transformations before backend: time 3.379e-05/0.2649, allocations: 0 / 407.9 MB, free: 8.398 MB / 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.003573/0.2685, allocations: 2.926 MB / 410.8 MB, free: 5.652 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.846e-05/0.2686, allocations: 12.02 kB / 410.8 MB, free: 5.641 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005242/0.2691, allocations: 0.526 MB / 411.4 MB, free: 5.102 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006265/0.2754, allocations: 1.771 MB / 413.1 MB, free: 3.324 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001629/0.277, allocations: 1.162 MB / 414.3 MB, free: 2.117 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.519e-05/0.2771, allocations: 151.8 kB / 414.4 MB, free: 1.969 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003295/0.2774, allocations: 207.8 kB / 414.6 MB, free: 1.766 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01729/0.2947, allocations: 8.608 MB / 423.3 MB, free: 8.547 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001129/0.2949, allocations: 39.64 kB / 423.3 MB, free: 8.508 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004378/0.2953, allocations: 103.9 kB / 423.4 MB, free: 8.406 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002945/0.2983, allocations: 1.671 MB / 425.1 MB, free: 6.727 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0181/0.3164, allocations: 7.179 MB / 432.2 MB, free: 15.54 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03581/0.3522, allocations: 30.17 MB / 462.4 MB, free: 492 kB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02442/0.3767, allocations: 5.065 MB / 467.5 MB, free: 11.23 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001668/0.3784, allocations: 1.244 MB / 468.7 MB, free: 9.969 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005791/0.3842, allocations: 3.833 MB / 472.6 MB, free: 5.973 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.21e-05/0.3843, allocations: 58.81 kB / 472.6 MB, free: 5.906 MB / 382.1 MB Notification: Performance of pre-optimization done (n=111): time 3.206e-06/0.3843, allocations: 0 / 472.6 MB, free: 5.906 MB / 382.1 MB Notification: Performance of matching and sorting (n=111): time 0.04855/0.4328, allocations: 9.28 MB / 481.9 MB, free: 12.54 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.038e-05/0.433, allocations: 191.9 kB / 482.1 MB, free: 12.31 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004505/0.4375, allocations: 3.034 MB / 485.1 MB, free: 9.254 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001389/0.4376, allocations: 41.7 kB / 485.2 MB, free: 9.207 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001703/0.4393, allocations: 2.414 MB / 487.6 MB, free: 6.754 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005827/0.4399, allocations: 0.4941 MB / 488.1 MB, free: 6.254 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001392/0.4413, allocations: 1.091 MB / 489.2 MB, free: 5.152 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 9.271e-05/0.4414, allocations: 301.1 kB / 489.5 MB, free: 4.855 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002305/0.4438, allocations: 1.611 MB / 491.1 MB, free: 3.238 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004402/0.4482, allocations: 5.169 MB / 496.2 MB, free: 12.27 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007139/0.4553, allocations: 7.335 MB / 0.4918 GB, free: 3.148 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.422e-05/0.4554, allocations: 39.98 kB / 0.4918 GB, free: 3.109 MB / 414.1 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.009434/0.4649, allocations: 6.441 MB / 0.4981 GB, free: 12.66 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.807e-05/0.465, allocations: 60 kB / 0.4982 GB, free: 12.6 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001703/0.4651, allocations: 132 kB / 0.4983 GB, free: 12.47 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001653/0.4653, allocations: 168 kB / 0.4984 GB, free: 12.31 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004608/0.4699, allocations: 1.454 MB / 0.4999 GB, free: 10.85 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000219/0.4702, allocations: 251 kB / 0.5001 GB, free: 10.61 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003488/0.4737, allocations: 0.7537 MB / 0.5008 GB, free: 9.848 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006392/0.4743, allocations: 344.1 kB / 0.5012 GB, free: 9.512 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.002818/0.4771, allocations: 1.572 MB / 0.5027 GB, free: 7.93 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004555/0.4776, allocations: 252.8 kB / 0.5029 GB, free: 7.68 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005629/0.4782, allocations: 311.3 kB / 0.5032 GB, free: 7.375 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.965e-05/0.4782, allocations: 16 kB / 0.5032 GB, free: 7.359 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.42e-05/0.4782, allocations: 3.938 kB / 0.5033 GB, free: 7.355 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.091e-05/0.4782, allocations: 3.984 kB / 0.5033 GB, free: 7.352 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00582/0.4841, allocations: 3.399 MB / 0.5066 GB, free: 3.891 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.172e-05/0.4841, allocations: 4 kB / 0.5066 GB, free: 3.887 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002385/0.4865, allocations: 415.4 kB / 0.507 GB, free: 3.48 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.476e-05/0.4865, allocations: 4 kB / 0.507 GB, free: 3.477 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001024/0.4866, allocations: 39.97 kB / 0.507 GB, free: 3.438 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.127e-06/0.4866, allocations: 7.938 kB / 0.507 GB, free: 3.43 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.975e-06/0.4867, allocations: 4 kB / 0.507 GB, free: 3.426 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003315/0.49, allocations: 2.795 MB / 0.5098 GB, free: 0.6172 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006043/0.4906, allocations: 309.6 kB / 0.5101 GB, free: 300 kB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004095/0.491, allocations: 27.98 kB / 0.5101 GB, free: 272 kB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001024/0.492, allocations: 39.95 kB / 0.5101 GB, free: 232 kB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001279/0.4922, allocations: 51.92 kB / 0.5102 GB, free: 180 kB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.719e-05/0.4923, allocations: 35.98 kB / 0.5102 GB, free: 144 kB / 430.1 MB Notification: Performance of sorting global known variables: time 0.003037/0.4953, allocations: 1.84 MB / 0.512 GB, free: 14.3 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4953, allocations: 0 / 0.512 GB, free: 14.3 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003837/0.4992, allocations: 0.822 MB / 0.5128 GB, free: 13.47 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.00371/0.5029, allocations: 3.437 MB / 0.5162 GB, free: 10 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.005586/0.5085, allocations: 3.812 MB / 0.5199 GB, free: 6.215 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.957e-06/0.5085, allocations: 0 / 0.5199 GB, free: 6.215 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009004/0.5094, allocations: 0.7191 MB / 0.5206 GB, free: 5.496 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001724/0.5112, allocations: 273.1 kB / 0.5208 GB, free: 5.238 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1823/0.6935, allocations: 38.09 MB / 0.558 GB, free: 121.8 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001652/0.6952, allocations: 2.386 MB / 0.5604 GB, free: 120.7 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002971/0.6981, allocations: 1.637 MB / 0.562 GB, free: 120.6 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001035/0.6992, allocations: 1.213 MB / 0.5632 GB, free: 119.6 MB / 446.1 MB Notification: Performance of SimCode: time 5.81e-07/0.6992, allocations: 0 / 0.5632 GB, free: 119.6 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.696/1.395, allocations: 46.4 MB / 0.6085 GB, free: 76.88 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001685/1.395, allocations: 230.1 kB / 0.6087 GB, free: 76.62 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.114/4.51, allocations: 2.672 kB / 0.6087 GB, free: 76.62 MB / 446.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.0.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