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/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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/Complex trunk/package.mo): time 0.001436/0.001436, allocations: 198.2 kB / 17.08 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.293/1.293, allocations: 227.2 MB / 245 MB, free: 7.508 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008989/0.0008987, allocations: 101.8 kB / 297.3 MB, free: 6.199 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003348/0.0003349, allocations: 12 kB / 358 MB, free: 9.441 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.215/0.2153, allocations: 51.48 MB / 409.5 MB, free: 26.73 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1034/0.3188, allocations: 90.67 MB / 0.4885 GB, free: 15.94 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002327/0.3191, allocations: 87.95 kB / 0.4885 GB, free: 15.85 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.285/0.6041, allocations: 53.54 MB / 0.5408 GB, free: 70.19 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.275e-06/0.6041, allocations: 0 / 0.5408 GB, free: 70.19 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001/0.6043, allocations: 56 kB / 0.5409 GB, free: 70.13 MB / 378.7 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.005879/0.6101, allocations: 2.542 MB / 0.5434 GB, free: 67.53 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.784e-05/0.6102, allocations: 8.031 kB / 0.5434 GB, free: 67.52 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002274/0.6125, allocations: 0.5688 MB / 0.5439 GB, free: 66.94 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008317/0.6208, allocations: 1.958 MB / 0.5458 GB, free: 64.97 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004661/0.6255, allocations: 1.423 MB / 0.5472 GB, free: 63.5 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002655/0.6259, allocations: 225.9 kB / 0.5474 GB, free: 63.28 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002084/0.628, allocations: 315.8 kB / 0.5477 GB, free: 62.97 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02169/0.6497, allocations: 9.018 MB / 0.5565 GB, free: 53.01 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001847/0.6499, allocations: 59.45 kB / 0.5566 GB, free: 52.95 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007302/0.6507, allocations: 151.9 kB / 0.5567 GB, free: 52.8 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001242/0.6519, allocations: 0.8086 MB / 0.5575 GB, free: 51.99 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01651/0.6684, allocations: 7.248 MB / 0.5646 GB, free: 44.73 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0379/0.7064, allocations: 38.39 MB / 0.6021 GB, free: 5.062 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.019/0.7254, allocations: 5.36 MB / 0.6073 GB, free: 15.52 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006302/0.7318, allocations: 3.704 MB / 0.611 GB, free: 11.67 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.201e-05/0.7319, allocations: 58.83 kB / 0.611 GB, free: 11.6 MB / 394.7 MB Notification: Performance of pre-optimization done (n=111): time 5.941e-06/0.7319, allocations: 0 / 0.611 GB, free: 11.6 MB / 394.7 MB Notification: Performance of matching and sorting (n=111): time 0.04202/0.774, allocations: 10.01 MB / 0.6208 GB, free: 1.449 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.068e-05/0.7741, allocations: 195.9 kB / 0.621 GB, free: 1.215 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004179/0.7783, allocations: 2.709 MB / 0.6236 GB, free: 14.49 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001844/0.7785, allocations: 49.61 kB / 0.6237 GB, free: 14.44 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001495/0.78, allocations: 2.422 MB / 0.626 GB, free: 11.98 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005959/0.7806, allocations: 0.498 MB / 0.6265 GB, free: 11.47 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001985/0.7808, allocations: 104 kB / 0.6266 GB, free: 11.37 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0003098/0.7811, allocations: 0.5333 MB / 0.6271 GB, free: 10.83 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00211/0.7832, allocations: 1.494 MB / 0.6286 GB, free: 9.332 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004265/0.7875, allocations: 5.033 MB / 0.6335 GB, free: 2.496 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004012/0.7915, allocations: 2.725 MB / 0.6362 GB, free: 15.77 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001054/0.7917, allocations: 36 kB / 0.6362 GB, free: 15.73 MB / 426.7 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.01243/0.8041, allocations: 6.222 MB / 0.6423 GB, free: 9.508 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001546/0.8043, allocations: 60 kB / 0.6423 GB, free: 9.449 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002018/0.8045, allocations: 132.1 kB / 0.6425 GB, free: 9.32 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002098/0.8047, allocations: 184 kB / 0.6426 GB, free: 9.141 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005571/0.8103, allocations: 1.525 MB / 0.6441 GB, free: 7.613 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000233/0.8106, allocations: 251 kB / 0.6444 GB, free: 7.367 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004439/0.8151, allocations: 0.7538 MB / 0.6451 GB, free: 6.605 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001132/0.8162, allocations: 343.9 kB / 0.6454 GB, free: 6.27 MB / 426.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003515/0.8198, allocations: 1.579 MB / 0.647 GB, free: 4.676 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006007/0.8204, allocations: 248.7 kB / 0.6472 GB, free: 4.43 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001642/0.822, allocations: 0.7432 MB / 0.6479 GB, free: 3.68 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.083e-05/0.8221, allocations: 12 kB / 0.648 GB, free: 3.668 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.031e-05/0.8221, allocations: 4 kB / 0.648 GB, free: 3.664 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.373e-05/0.8221, allocations: 3.984 kB / 0.648 GB, free: 3.66 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008537/0.8307, allocations: 3.235 MB / 0.6511 GB, free: 372 kB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.127e-05/0.8307, allocations: 0 / 0.6511 GB, free: 372 kB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002759/0.8335, allocations: 479.3 kB / 0.6516 GB, free: 15.89 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.461e-05/0.8336, allocations: 4 kB / 0.6516 GB, free: 15.89 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001326/0.8337, allocations: 35.97 kB / 0.6516 GB, free: 15.86 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.166e-06/0.8337, allocations: 7.984 kB / 0.6516 GB, free: 15.85 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.647e-06/0.8337, allocations: 7.953 kB / 0.6516 GB, free: 15.84 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003154/0.8369, allocations: 2.666 MB / 0.6542 GB, free: 13.1 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006731/0.8376, allocations: 309.5 kB / 0.6545 GB, free: 12.78 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002403/0.8378, allocations: 31.98 kB / 0.6546 GB, free: 12.75 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009533/0.8388, allocations: 59.91 kB / 0.6546 GB, free: 12.69 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001032/0.8389, allocations: 59.8 kB / 0.6547 GB, free: 12.63 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.62e-05/0.839, allocations: 39.98 kB / 0.6547 GB, free: 12.59 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.003165/0.8422, allocations: 1.833 MB / 0.6565 GB, free: 10.75 MB / 442.7 MB Notification: Performance of sort global known variables: time 5.11e-07/0.8422, allocations: 0 / 0.6565 GB, free: 10.75 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.005039/0.8472, allocations: 0.8378 MB / 0.6573 GB, free: 9.914 MB / 442.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00424/0.8515, allocations: 3.604 MB / 0.6608 GB, free: 6.258 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.006549/0.8581, allocations: 3.411 MB / 0.6642 GB, free: 2.875 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.086e-05/0.8582, allocations: 0 / 0.6642 GB, free: 2.875 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009685/0.8591, allocations: 0.6301 MB / 0.6648 GB, free: 2.246 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001726/0.8609, allocations: 237.7 kB / 0.665 GB, free: 2.012 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2871/1.148, allocations: 111 MB / 0.7734 GB, free: 28.53 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002371/1.15, allocations: 2.445 MB / 0.7758 GB, free: 27.78 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.004043/1.155, allocations: 1.647 MB / 0.7774 GB, free: 27.64 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001522/1.156, allocations: 1.213 MB / 0.7786 GB, free: 27.41 MB / 442.7 MB Notification: Performance of SimCode: time 9.21e-07/1.156, allocations: 2.938 kB / 0.7786 GB, free: 27.41 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0836/1.24, allocations: 50.94 MB / 0.8284 GB, free: 4.758 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002055/1.24, allocations: 213.7 kB / 0.8286 GB, free: 4.516 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.39/4.63, allocations: 6.703 kB / 0.8286 GB, free: 4.516 MB / 458.7 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/linux/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) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses_res.mat does not exist to compare? outputFormat=mat