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.0009098/0.0009098, allocations: 98.61 kB / 17.35 MB, free: 6.367 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001103/0.001103, allocations: 206 kB / 18.28 MB, free: 5.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.251/1.251, allocations: 227.7 MB / 246.8 MB, free: 11.41 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0001951/0.0001952, allocations: 11.94 kB / 307.8 MB, free: 0.7109 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0752/0.07541, allocations: 51.52 MB / 359.4 MB, free: 13.19 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses): time 0.1615/0.237, allocations: 27.88 MB / 387.3 MB, free: 5.051 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.009889/0.2469, allocations: 5.869 MB / 393.1 MB, free: 1.809 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002797/0.2497, allocations: 113.5 kB / 393.2 MB, free: 1.793 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006466/0.2504, allocations: 299.8 kB / 393.5 MB, free: 1.684 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001685/0.2521, allocations: 0.9324 MB / 394.5 MB, free: 1.273 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005099/0.2526, allocations: 237.2 kB / 394.7 MB, free: 1.145 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002771/0.2554, allocations: 3.271 MB / 398 MB, free: 152 kB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002293/0.2577, allocations: 2.049 MB / 400 MB, free: 14.96 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007/0.2584, allocations: 0.6525 MB / 400.7 MB, free: 14.61 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001239/0.2597, allocations: 1.212 MB / 401.9 MB, free: 13.95 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001533/0.2598, allocations: 85.78 kB / 402 MB, free: 13.95 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009922/0.2608, allocations: 0.639 MB / 402.6 MB, free: 13.62 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007173/0.2616, allocations: 1.097 MB / 403.7 MB, free: 13.04 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008532/0.2624, allocations: 1.309 MB / 405 MB, free: 12.04 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002797/0.2652, allocations: 3.964 MB / 409 MB, free: 9.219 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.036e-06/0.2652, allocations: 4 kB / 409 MB, free: 9.215 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.2652, allocations: 3.938 kB / 409 MB, free: 9.211 MB / 318.1 MB Notification: Performance of Transformations before backend: time 3.882e-05/0.2653, allocations: 4 kB / 409 MB, free: 9.207 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.002822/0.2681, allocations: 2.369 MB / 411.3 MB, free: 6.777 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.327e-05/0.2681, allocations: 8.031 kB / 411.4 MB, free: 6.77 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004914/0.2686, allocations: 0.5299 MB / 411.9 MB, free: 6.227 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006223/0.2749, allocations: 1.818 MB / 413.7 MB, free: 4.402 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0014/0.2763, allocations: 1.154 MB / 414.9 MB, free: 3.203 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.883e-05/0.2764, allocations: 151.8 kB / 415 MB, free: 3.055 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000334/0.2767, allocations: 207.8 kB / 415.2 MB, free: 2.852 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01531/0.292, allocations: 8.643 MB / 423.9 MB, free: 9.598 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.157e-05/0.2921, allocations: 39.66 kB / 423.9 MB, free: 9.559 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002428/0.2924, allocations: 95.89 kB / 424 MB, free: 9.465 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002589/0.295, allocations: 1.671 MB / 425.7 MB, free: 7.789 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01555/0.3105, allocations: 7.21 MB / 432.9 MB, free: 0.5781 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02798/0.3385, allocations: 30.19 MB / 463.1 MB, free: 1.496 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02153/0.3601, allocations: 5.127 MB / 468.2 MB, free: 12.19 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001459/0.3616, allocations: 1.243 MB / 469.4 MB, free: 10.92 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004351/0.366, allocations: 3.833 MB / 473.3 MB, free: 6.926 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.703e-05/0.366, allocations: 50.83 kB / 473.3 MB, free: 6.867 MB / 382.1 MB Notification: Performance of pre-optimization done (n=111): time 2.505e-06/0.366, allocations: 0 / 473.3 MB, free: 6.867 MB / 382.1 MB Notification: Performance of matching and sorting (n=111): time 0.04385/0.4099, allocations: 9.414 MB / 482.7 MB, free: 13.37 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.777e-05/0.41, allocations: 199.9 kB / 482.9 MB, free: 13.13 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004234/0.4143, allocations: 3.03 MB / 485.9 MB, free: 10.08 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001438/0.4144, allocations: 37.7 kB / 486 MB, free: 10.04 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001486/0.4159, allocations: 2.422 MB / 488.4 MB, free: 7.574 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005142/0.4164, allocations: 0.4941 MB / 488.9 MB, free: 7.074 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005593/0.417, allocations: 465.8 kB / 489.4 MB, free: 6.613 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 7.665e-05/0.4171, allocations: 305.1 kB / 489.7 MB, free: 6.312 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002093/0.4192, allocations: 1.607 MB / 491.3 MB, free: 4.699 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003905/0.4231, allocations: 5.173 MB / 496.4 MB, free: 13.72 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006456/0.4296, allocations: 7.356 MB / 0.492 GB, free: 4.586 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.542e-05/0.4296, allocations: 36 kB / 0.492 GB, free: 4.551 MB / 414.1 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.008575/0.4382, allocations: 6.434 MB / 0.4983 GB, free: 14.11 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.663e-05/0.4383, allocations: 60 kB / 0.4984 GB, free: 14.05 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001304/0.4384, allocations: 136.2 kB / 0.4985 GB, free: 13.92 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001336/0.4386, allocations: 168 kB / 0.4986 GB, free: 13.75 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004197/0.4428, allocations: 1.458 MB / 0.5001 GB, free: 12.29 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001538/0.4429, allocations: 251 kB / 0.5003 GB, free: 12.05 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002727/0.4457, allocations: 0.7538 MB / 0.501 GB, free: 11.29 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003327/0.446, allocations: 340 kB / 0.5014 GB, free: 10.95 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.00175/0.4478, allocations: 1.58 MB / 0.5029 GB, free: 9.363 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003061/0.4481, allocations: 244.8 kB / 0.5031 GB, free: 9.121 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004698/0.4486, allocations: 311.3 kB / 0.5034 GB, free: 8.816 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.881e-05/0.4486, allocations: 12 kB / 0.5035 GB, free: 8.805 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.588e-06/0.4486, allocations: 3.938 kB / 0.5035 GB, free: 8.801 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.109e-05/0.4486, allocations: 7.984 kB / 0.5035 GB, free: 8.793 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004488/0.4531, allocations: 3.411 MB / 0.5068 GB, free: 5.32 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.429e-06/0.4531, allocations: 0 / 0.5068 GB, free: 5.32 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002148/0.4553, allocations: 415.4 kB / 0.5072 GB, free: 4.914 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.013e-06/0.4553, allocations: 4 kB / 0.5072 GB, free: 4.91 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.079e-05/0.4554, allocations: 43.97 kB / 0.5072 GB, free: 4.867 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.401e-06/0.4554, allocations: 4 kB / 0.5072 GB, free: 4.863 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.685e-06/0.4554, allocations: 3.984 kB / 0.5072 GB, free: 4.859 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003007/0.4584, allocations: 2.798 MB / 0.51 GB, free: 2.043 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003332/0.4588, allocations: 313.5 kB / 0.5103 GB, free: 1.715 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002051/0.459, allocations: 35.92 kB / 0.5103 GB, free: 1.68 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008049/0.4598, allocations: 43.95 kB / 0.5104 GB, free: 1.637 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001124/0.4599, allocations: 55.91 kB / 0.5104 GB, free: 1.582 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.476e-05/0.46, allocations: 35.98 kB / 0.5104 GB, free: 1.547 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002056/0.462, allocations: 1.836 MB / 0.5122 GB, free: 15.71 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.462, allocations: 0 / 0.5122 GB, free: 15.71 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002971/0.465, allocations: 0.8221 MB / 0.513 GB, free: 14.88 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.003196/0.4682, allocations: 3.441 MB / 0.5164 GB, free: 11.41 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004432/0.4727, allocations: 3.617 MB / 0.5199 GB, free: 7.816 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.056e-06/0.4727, allocations: 0 / 0.5199 GB, free: 7.816 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008117/0.4735, allocations: 0.7195 MB / 0.5206 GB, free: 7.098 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001738/0.4752, allocations: 255.2 kB / 0.5209 GB, free: 6.848 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1918/0.6671, allocations: 38.47 MB / 0.5584 GB, free: 103.2 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001699/0.6688, allocations: 2.387 MB / 0.5608 GB, free: 102.1 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003128/0.672, allocations: 1.637 MB / 0.5624 GB, free: 101.7 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001052/0.673, allocations: 1.215 MB / 0.5636 GB, free: 100.7 MB / 446.1 MB Notification: Performance of SimCode: time 7.42e-07/0.673, allocations: 0 / 0.5636 GB, free: 100.7 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05141/0.7244, allocations: 45.29 MB / 0.6078 GB, free: 57.09 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001519/0.7246, allocations: 227.7 kB / 0.608 GB, free: 56.84 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.693/3.418, allocations: 0 / 0.608 GB, free: 56.84 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