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.001101/0.001102, allocations: 96.86 kB / 16.99 MB, free: 5.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001258/0.001258, allocations: 208.7 kB / 17.9 MB, free: 5.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.283/1.283, allocations: 227.3 MB / 245.9 MB, free: 10.31 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002315/0.0002315, allocations: 4 kB / 306.7 MB, free: 1.277 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08397/0.08422, allocations: 51.49 MB / 358.2 MB, free: 13.79 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses): time 0.1811/0.2654, allocations: 24.77 MB / 383 MB, free: 8.156 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01053/0.276, allocations: 5.935 MB / 388.9 MB, free: 4.348 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003156/0.2792, allocations: 114.1 kB / 389 MB, free: 4.332 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002461/0.2816, allocations: 1.201 MB / 390.2 MB, free: 3.941 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009159/0.2908, allocations: 3.538 MB / 393.8 MB, free: 2.277 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001447/0.2923, allocations: 181.3 kB / 393.9 MB, free: 2.184 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002917/0.2952, allocations: 1.287 MB / 395.2 MB, free: 1.52 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00259/0.2978, allocations: 1.888 MB / 397.1 MB, free: 376 kB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009188/0.2987, allocations: 0.6064 MB / 397.7 MB, free: 56 kB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001123/0.2999, allocations: 0.8331 MB / 398.5 MB, free: 15.61 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001893/0.3001, allocations: 86.69 kB / 398.6 MB, free: 15.61 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009533/0.301, allocations: 0.534 MB / 399.2 MB, free: 15.38 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008058/0.3018, allocations: 1.006 MB / 400.2 MB, free: 14.87 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000472/0.3023, allocations: 0.5553 MB / 400.7 MB, free: 14.47 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002605/0.3049, allocations: 3.25 MB / 404 MB, free: 12.32 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.405e-06/0.305, allocations: 2.312 kB / 404 MB, free: 12.32 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.305, allocations: 0 / 404 MB, free: 12.32 MB / 318.1 MB Notification: Performance of Transformations before backend: time 3.58e-05/0.305, allocations: 0 / 404 MB, free: 12.32 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.002966/0.308, allocations: 2.445 MB / 406.4 MB, free: 10.5 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.338e-05/0.308, allocations: 10.28 kB / 406.4 MB, free: 10.5 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004999/0.3085, allocations: 0.5231 MB / 407 MB, free: 10.13 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006795/0.3153, allocations: 2.119 MB / 409.1 MB, free: 8.512 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001976/0.3173, allocations: 1.134 MB / 410.2 MB, free: 7.332 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.747e-05/0.3174, allocations: 155.8 kB / 410.4 MB, free: 7.18 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003153/0.3177, allocations: 203.8 kB / 410.6 MB, free: 6.98 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01532/0.3331, allocations: 8.678 MB / 419.2 MB, free: 13.7 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.109e-05/0.3332, allocations: 39.66 kB / 419.3 MB, free: 13.66 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002501/0.3334, allocations: 104.8 kB / 419.4 MB, free: 13.56 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002551/0.336, allocations: 1.659 MB / 421 MB, free: 11.9 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01519/0.3512, allocations: 7.256 MB / 428.3 MB, free: 4.641 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02978/0.381, allocations: 30.2 MB / 458.5 MB, free: 5.562 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01999/0.401, allocations: 5.136 MB / 463.6 MB, free: 256 kB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004747/0.4058, allocations: 3.856 MB / 467.5 MB, free: 12.22 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.511e-05/0.4058, allocations: 46.83 kB / 467.5 MB, free: 12.17 MB / 382.1 MB Notification: Performance of pre-optimization done (n=111): time 2.725e-06/0.4058, allocations: 0 / 467.5 MB, free: 12.17 MB / 382.1 MB Notification: Performance of matching and sorting (n=111): time 0.04067/0.4465, allocations: 9.678 MB / 477.2 MB, free: 2.348 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.119e-05/0.4466, allocations: 187.9 kB / 477.4 MB, free: 2.121 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003289/0.4499, allocations: 3.031 MB / 480.4 MB, free: 15.07 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 6.139e-05/0.45, allocations: 37.7 kB / 480.5 MB, free: 15.03 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001371/0.4514, allocations: 2.433 MB / 482.9 MB, free: 12.55 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003378/0.4517, allocations: 0.4902 MB / 483.4 MB, free: 12.06 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001736/0.4519, allocations: 108 kB / 483.5 MB, free: 11.95 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002823/0.4522, allocations: 0.5255 MB / 484 MB, free: 11.42 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00195/0.4541, allocations: 1.592 MB / 485.6 MB, free: 9.824 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003945/0.4581, allocations: 5.134 MB / 490.7 MB, free: 2.887 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003128/0.4612, allocations: 2.825 MB / 493.6 MB, free: 68 kB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.156e-05/0.4613, allocations: 36 kB / 493.6 MB, free: 32 kB / 398.1 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.007838/0.4691, allocations: 6.395 MB / 500 MB, free: 9.625 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.279e-05/0.4692, allocations: 60 kB / 0.4883 GB, free: 9.566 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001021/0.4693, allocations: 128 kB / 0.4885 GB, free: 9.441 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001546/0.4695, allocations: 184 kB / 0.4886 GB, free: 9.262 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004229/0.4737, allocations: 1.459 MB / 0.4901 GB, free: 7.801 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001742/0.4739, allocations: 251 kB / 0.4903 GB, free: 7.555 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002818/0.4767, allocations: 0.7499 MB / 0.491 GB, free: 6.797 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003387/0.4771, allocations: 355.8 kB / 0.4914 GB, free: 6.453 MB / 414.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001876/0.4789, allocations: 1.571 MB / 0.4929 GB, free: 4.867 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003392/0.4793, allocations: 248.7 kB / 0.4931 GB, free: 4.621 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004843/0.4798, allocations: 319.5 kB / 0.4934 GB, free: 4.309 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.148e-05/0.4798, allocations: 12 kB / 0.4935 GB, free: 4.297 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.036e-05/0.4798, allocations: 4 kB / 0.4935 GB, free: 4.293 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.948e-06/0.4798, allocations: 3.984 kB / 0.4935 GB, free: 4.289 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005647/0.4855, allocations: 3.399 MB / 0.4968 GB, free: 0.8281 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.272e-06/0.4855, allocations: 4 kB / 0.4968 GB, free: 0.8242 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002083/0.4876, allocations: 411.5 kB / 0.4972 GB, free: 432 kB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.33e-05/0.4876, allocations: 4 kB / 0.4972 GB, free: 428 kB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.097e-05/0.4877, allocations: 43.89 kB / 0.4972 GB, free: 384 kB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.548e-06/0.4877, allocations: 7.953 kB / 0.4972 GB, free: 376 kB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.234e-06/0.4877, allocations: 0 / 0.4972 GB, free: 376 kB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003088/0.4908, allocations: 2.899 MB / 0.5001 GB, free: 13.39 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000534/0.4914, allocations: 305.6 kB / 0.5004 GB, free: 13.07 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002538/0.4917, allocations: 35.97 kB / 0.5004 GB, free: 13.04 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008126/0.4925, allocations: 43.95 kB / 0.5004 GB, free: 13 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001106/0.4926, allocations: 63.81 kB / 0.5005 GB, free: 12.93 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.422e-05/0.4927, allocations: 39.92 kB / 0.5005 GB, free: 12.89 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002438/0.4951, allocations: 1.825 MB / 0.5023 GB, free: 11.07 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.4951, allocations: 0 / 0.5023 GB, free: 11.07 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.003427/0.4986, allocations: 0.8338 MB / 0.5031 GB, free: 10.23 MB / 430.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 (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.00351/0.5021, allocations: 3.844 MB / 0.5069 GB, free: 6.34 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.004731/0.5068, allocations: 3.588 MB / 0.5104 GB, free: 2.785 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.156e-06/0.5068, allocations: 4 kB / 0.5104 GB, free: 2.781 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008427/0.5077, allocations: 0.7226 MB / 0.5111 GB, free: 2.059 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009496/0.5086, allocations: 247.6 kB / 0.5113 GB, free: 1.82 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1985/0.7072, allocations: 111.3 MB / 0.62 GB, free: 40.87 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001998/0.7092, allocations: 2.446 MB / 0.6224 GB, free: 40.11 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003447/0.7127, allocations: 1.651 MB / 0.624 GB, free: 39.98 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001133/0.7138, allocations: 1.212 MB / 0.6252 GB, free: 39.97 MB / 446.1 MB Notification: Performance of SimCode: time 6.11e-07/0.7138, allocations: 0 / 0.6252 GB, free: 39.97 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1013/0.8152, allocations: 50.6 MB / 0.6746 GB, free: 11.29 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000168/0.8154, allocations: 213.4 kB / 0.6748 GB, free: 11.05 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.596/4.411, allocations: 0 / 0.6748 GB, free: 11.05 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/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