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.00145/0.00145, allocations: 118.8 kB / 17.79 MB, free: 5.246 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002462/0.002462, allocations: 197.2 kB / 18.73 MB, free: 4.309 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.652/1.652, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001277/0.001278, allocations: 55.91 kB / 358.2 MB, free: 13.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3437/0.345, allocations: 50.54 MB / 408.8 MB, free: 1.508 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses): time 0.0089/0.354, allocations: 7.938 MB / 416.7 MB, free: 9.527 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004924/0.3589, allocations: 2.558 MB / 419.3 MB, free: 6.965 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006428/0.3596, allocations: 35.94 kB / 419.3 MB, free: 6.93 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002962/0.3626, allocations: 1.444 MB / 420.7 MB, free: 5.48 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002401/0.365, allocations: 0.9762 MB / 421.7 MB, free: 4.5 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005382/0.3656, allocations: 263.4 kB / 422 MB, free: 4.242 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002191/0.3678, allocations: 2.165 MB / 424.1 MB, free: 2.074 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001707/0.3695, allocations: 1.55 MB / 425.7 MB, free: 0.4922 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001218/0.3707, allocations: 0.8328 MB / 426.5 MB, free: 15.66 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00137/0.3721, allocations: 1.183 MB / 427.7 MB, free: 14.47 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002573/0.3724, allocations: 160 kB / 427.9 MB, free: 14.31 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001522/0.3739, allocations: 0.6631 MB / 428.5 MB, free: 13.65 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008305/0.3748, allocations: 1.153 MB / 429.7 MB, free: 12.49 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009415/0.3757, allocations: 1.362 MB / 431 MB, free: 11.12 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004524/0.3802, allocations: 4.266 MB / 435.3 MB, free: 6.84 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.255e-05/0.3803, allocations: 3.984 kB / 435.3 MB, free: 6.836 MB / 350.1 MB Notification: Performance of FrontEnd: time 4.809e-06/0.3803, allocations: 0 / 435.3 MB, free: 6.836 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001622/0.3805, allocations: 0 / 435.3 MB, free: 6.836 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.004644/0.3852, allocations: 2.929 MB / 438.2 MB, free: 3.844 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.259e-05/0.3852, allocations: 12.03 kB / 438.2 MB, free: 3.832 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005517/0.3858, allocations: 0.526 MB / 438.8 MB, free: 3.293 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007015/0.3928, allocations: 1.775 MB / 440.5 MB, free: 1.512 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002338/0.3952, allocations: 1.154 MB / 441.7 MB, free: 324 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.858e-05/0.3953, allocations: 155.8 kB / 441.9 MB, free: 168 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003412/0.3957, allocations: 207.8 kB / 442.1 MB, free: 15.96 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01836/0.414, allocations: 8.608 MB / 450.7 MB, free: 6.746 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.563e-05/0.4141, allocations: 51.58 kB / 450.7 MB, free: 6.695 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002604/0.4144, allocations: 99.89 kB / 450.8 MB, free: 6.598 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002819/0.4172, allocations: 1.663 MB / 452.5 MB, free: 4.938 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01738/0.4347, allocations: 7.194 MB / 459.7 MB, free: 13.74 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03421/0.4689, allocations: 30.07 MB / 489.7 MB, free: 14.77 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02243/0.4914, allocations: 5.06 MB / 494.8 MB, free: 9.535 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001805/0.4932, allocations: 1.251 MB / 496.1 MB, free: 8.262 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005216/0.4984, allocations: 3.828 MB / 499.9 MB, free: 4.27 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.652e-05/0.4985, allocations: 46.89 kB / 499.9 MB, free: 4.215 MB / 414.1 MB Notification: Performance of pre-optimization done (n=111): time 3.066e-06/0.4985, allocations: 4 kB / 499.9 MB, free: 4.211 MB / 414.1 MB Notification: Performance of matching and sorting (n=111): time 0.04636/0.5449, allocations: 9.289 MB / 0.4973 GB, free: 10.84 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.821e-05/0.545, allocations: 187.9 kB / 0.4975 GB, free: 10.61 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004654/0.5497, allocations: 3.027 MB / 0.5004 GB, free: 7.562 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001659/0.5498, allocations: 49.69 kB / 0.5005 GB, free: 7.508 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001526/0.5514, allocations: 2.422 MB / 0.5028 GB, free: 5.047 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005341/0.5519, allocations: 498 kB / 0.5033 GB, free: 4.555 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00125/0.5532, allocations: 1.091 MB / 0.5044 GB, free: 3.453 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 9.089e-05/0.5533, allocations: 301.1 kB / 0.5047 GB, free: 3.156 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002448/0.5557, allocations: 1.607 MB / 0.5062 GB, free: 1.543 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004275/0.56, allocations: 5.177 MB / 0.5113 GB, free: 10.56 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007768/0.5678, allocations: 7.336 MB / 0.5184 GB, free: 1.445 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.46e-05/0.5679, allocations: 36 kB / 0.5185 GB, free: 1.41 MB / 446.1 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.009051/0.5769, allocations: 6.438 MB / 0.5248 GB, free: 10.96 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.855e-05/0.577, allocations: 59.98 kB / 0.5248 GB, free: 10.9 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001565/0.5772, allocations: 128.1 kB / 0.5249 GB, free: 10.78 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001566/0.5774, allocations: 175.9 kB / 0.5251 GB, free: 10.61 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005057/0.5824, allocations: 1.458 MB / 0.5265 GB, free: 9.145 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000182/0.5826, allocations: 243.5 kB / 0.5268 GB, free: 8.906 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00375/0.5864, allocations: 0.7459 MB / 0.5275 GB, free: 8.156 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004793/0.5869, allocations: 344 kB / 0.5278 GB, free: 7.82 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.002353/0.5893, allocations: 1.575 MB / 0.5294 GB, free: 6.23 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004087/0.5897, allocations: 260.6 kB / 0.5296 GB, free: 5.973 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004447/0.5901, allocations: 311.3 kB / 0.5299 GB, free: 5.668 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.465e-05/0.5902, allocations: 23.92 kB / 0.5299 GB, free: 5.645 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.949e-06/0.5902, allocations: 0 / 0.5299 GB, free: 5.645 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.255e-05/0.5902, allocations: 7.984 kB / 0.5299 GB, free: 5.637 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005477/0.5957, allocations: 3.392 MB / 0.5333 GB, free: 2.184 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.366e-06/0.5957, allocations: 4 kB / 0.5333 GB, free: 2.18 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002454/0.5982, allocations: 407.5 kB / 0.5336 GB, free: 1.781 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.015e-06/0.5982, allocations: 4 kB / 0.5337 GB, free: 1.777 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.96e-05/0.5983, allocations: 35.97 kB / 0.5337 GB, free: 1.742 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.514e-06/0.5983, allocations: 7.984 kB / 0.5337 GB, free: 1.734 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.294e-06/0.5983, allocations: 4 kB / 0.5337 GB, free: 1.73 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2208/0.8191, allocations: 2.799 MB / 0.5364 GB, free: 123.7 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007322/0.8199, allocations: 300.1 kB / 0.5367 GB, free: 123.6 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002684/0.8202, allocations: 28.92 kB / 0.5367 GB, free: 123.6 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001004/0.8212, allocations: 41.23 kB / 0.5368 GB, free: 123.6 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001359/0.8213, allocations: 63.47 kB / 0.5368 GB, free: 123.6 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.746e-05/0.8214, allocations: 38.31 kB / 0.5369 GB, free: 123.6 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003009/0.8244, allocations: 1.842 MB / 0.5387 GB, free: 123 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.8244, allocations: 0 / 0.5387 GB, free: 123 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003581/0.828, allocations: 0.8153 MB / 0.5395 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.003302/0.8313, allocations: 3.438 MB / 0.5428 GB, free: 121.1 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.004008/0.8353, allocations: 3.615 MB / 0.5464 GB, free: 120 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.067e-06/0.8354, allocations: 0 / 0.5464 GB, free: 120 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007022/0.8361, allocations: 0.7253 MB / 0.5471 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.001352/0.8374, allocations: 273.5 kB / 0.5473 GB, free: 119.6 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03192/0.8694, allocations: 34.17 MB / 0.5807 GB, free: 83.61 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002071/0.8715, allocations: 2.383 MB / 0.583 GB, free: 81.2 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002984/0.8745, allocations: 1.629 MB / 0.5846 GB, free: 79.56 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001027/0.8755, allocations: 1.218 MB / 0.5858 GB, free: 78.34 MB / 462.1 MB Notification: Performance of SimCode: time 9.92e-07/0.8755, allocations: 0 / 0.5858 GB, free: 78.34 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0641/0.9396, allocations: 43.9 MB / 0.6287 GB, free: 34.78 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.68/16.62, allocations: 11.8 kB / 0.6287 GB, free: 34.77 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.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