Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravityWithPointMasses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001512/0.001512, allocations: 180.8 kB / 16.38 MB, free: 5.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.316/1.316, allocations: 223.2 MB / 240.3 MB, free: 11.89 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009523/0.0009524, allocations: 95.19 kB / 291.5 MB, free: 10.93 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003504/0.0003501, allocations: 8 kB / 351.2 MB, free: 15.23 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2803/0.2807, allocations: 50.41 MB / 401.6 MB, free: 32.59 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1092/0.39, allocations: 89.84 MB / 491.4 MB, free: 6.617 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002866/0.3903, allocations: 92.45 kB / 491.5 MB, free: 6.527 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3195/0.7098, allocations: 53.5 MB / 0.5323 GB, free: 81.34 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.063e-06/0.7098, allocations: 0 / 0.5323 GB, free: 81.34 MB / 378.7 MB Notification: Performance of Transformations before backend: time 7.342e-05/0.7099, allocations: 52 kB / 0.5323 GB, free: 81.29 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.004153/0.7141, allocations: 2.54 MB / 0.5348 GB, free: 78.69 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.137e-05/0.7141, allocations: 8.031 kB / 0.5348 GB, free: 78.68 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006394/0.7148, allocations: 0.5688 MB / 0.5353 GB, free: 78.1 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00696/0.7217, allocations: 1.965 MB / 0.5373 GB, free: 76.12 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003014/0.7248, allocations: 1.411 MB / 0.5386 GB, free: 74.67 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001109/0.7249, allocations: 233.9 kB / 0.5389 GB, free: 74.44 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004862/0.7254, allocations: 307.8 kB / 0.5392 GB, free: 74.14 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.017/0.7424, allocations: 9.02 MB / 0.548 GB, free: 64.18 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001172/0.7426, allocations: 59.47 kB / 0.548 GB, free: 64.12 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003823/0.743, allocations: 155.9 kB / 0.5482 GB, free: 63.96 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00104/0.744, allocations: 0.8008 MB / 0.549 GB, free: 63.16 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01563/0.7596, allocations: 7.243 MB / 0.556 GB, free: 55.9 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03391/0.7936, allocations: 38.4 MB / 0.5935 GB, free: 16.23 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0186/0.8122, allocations: 5.352 MB / 0.5988 GB, free: 10.7 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005409/0.8177, allocations: 3.712 MB / 0.6024 GB, free: 6.836 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.938e-05/0.8178, allocations: 47.02 kB / 0.6024 GB, free: 6.781 MB / 378.7 MB Notification: Performance of pre-optimization done (n=111): time 3.527e-06/0.8178, allocations: 0 / 0.6024 GB, free: 6.781 MB / 378.7 MB Notification: Performance of matching and sorting (n=111): time 0.03927/0.8571, allocations: 10.02 MB / 0.6122 GB, free: 12.62 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001088/0.8572, allocations: 195.9 kB / 0.6124 GB, free: 12.38 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004241/0.8615, allocations: 2.709 MB / 0.615 GB, free: 9.66 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001537/0.8616, allocations: 41.7 kB / 0.6151 GB, free: 9.613 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001878/0.8635, allocations: 2.422 MB / 0.6174 GB, free: 7.152 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006137/0.8641, allocations: 0.4941 MB / 0.6179 GB, free: 6.652 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000229/0.8644, allocations: 108 kB / 0.618 GB, free: 6.547 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0004425/0.8648, allocations: 0.5333 MB / 0.6186 GB, free: 6.008 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002266/0.8671, allocations: 1.494 MB / 0.62 GB, free: 4.508 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004769/0.8719, allocations: 5.036 MB / 0.6249 GB, free: 13.67 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004205/0.8761, allocations: 2.72 MB / 0.6276 GB, free: 10.95 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.655e-05/0.8762, allocations: 36 kB / 0.6276 GB, free: 10.91 MB / 410.7 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.01205/0.8883, allocations: 6.222 MB / 0.6337 GB, free: 4.688 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.569e-05/0.8884, allocations: 60 kB / 0.6338 GB, free: 4.629 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001707/0.8886, allocations: 128 kB / 0.6339 GB, free: 4.504 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001737/0.8888, allocations: 184 kB / 0.6341 GB, free: 4.324 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005419/0.8942, allocations: 1.521 MB / 0.6355 GB, free: 2.801 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00021/0.8944, allocations: 251.2 kB / 0.6358 GB, free: 2.555 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004023/0.8985, allocations: 0.7538 MB / 0.6365 GB, free: 1.793 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006379/0.8991, allocations: 343.9 kB / 0.6368 GB, free: 1.457 MB / 410.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.002646/0.9018, allocations: 1.579 MB / 0.6384 GB, free: 15.86 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004742/0.9023, allocations: 244.8 kB / 0.6386 GB, free: 15.62 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001291/0.9036, allocations: 0.7509 MB / 0.6393 GB, free: 14.86 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.741e-05/0.9036, allocations: 16 kB / 0.6394 GB, free: 14.84 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.424e-06/0.9036, allocations: 0 / 0.6394 GB, free: 14.84 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.765e-05/0.9036, allocations: 11.98 kB / 0.6394 GB, free: 14.83 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006249/0.9099, allocations: 3.231 MB / 0.6425 GB, free: 11.54 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.973e-06/0.9099, allocations: 0 / 0.6425 GB, free: 11.54 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002608/0.9125, allocations: 475.4 kB / 0.643 GB, free: 11.08 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.037e-05/0.9126, allocations: 4 kB / 0.643 GB, free: 11.07 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.23e-05/0.9127, allocations: 39.97 kB / 0.643 GB, free: 11.04 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.865e-06/0.9127, allocations: 4 kB / 0.643 GB, free: 11.03 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.561e-06/0.9127, allocations: 4 kB / 0.643 GB, free: 11.03 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003112/0.9158, allocations: 2.673 MB / 0.6456 GB, free: 8.289 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006192/0.9164, allocations: 305.6 kB / 0.6459 GB, free: 7.969 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002406/0.9167, allocations: 27.98 kB / 0.646 GB, free: 7.941 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008845/0.9176, allocations: 51.94 kB / 0.646 GB, free: 7.891 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001152/0.9177, allocations: 59.86 kB / 0.6461 GB, free: 7.832 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.628e-05/0.9178, allocations: 35.98 kB / 0.6461 GB, free: 7.797 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.002817/0.9206, allocations: 1.829 MB / 0.6479 GB, free: 5.965 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.9206, allocations: 0 / 0.6479 GB, free: 5.965 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.003969/0.9246, allocations: 0.8493 MB / 0.6487 GB, free: 5.113 MB / 426.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.003842/0.9285, allocations: 3.606 MB / 0.6522 GB, free: 1.457 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.005918/0.9344, allocations: 3.406 MB / 0.6556 GB, free: 14.08 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 5.751e-06/0.9344, allocations: 0 / 0.6556 GB, free: 14.08 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008131/0.9352, allocations: 0.6323 MB / 0.6562 GB, free: 13.45 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001353/0.9366, allocations: 250.2 kB / 0.6564 GB, free: 13.21 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2746/1.211, allocations: 111 MB / 0.7648 GB, free: 41.98 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002085/1.213, allocations: 2.448 MB / 0.7672 GB, free: 41.23 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.003832/1.217, allocations: 1.645 MB / 0.7688 GB, free: 41.09 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001481/1.219, allocations: 1.218 MB / 0.77 GB, free: 41.08 MB / 442.7 MB Notification: Performance of SimCode: time 2.354e-06/1.219, allocations: 0 / 0.77 GB, free: 41.08 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07948/1.298, allocations: 50.94 MB / 0.8198 GB, free: 3.66 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001835/1.298, allocations: 214.4 kB / 0.82 GB, free: 3.418 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.529/4.827, allocations: 3.938 kB / 0.82 GB, free: 3.414 MB / 442.7 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravityWithPointMasses_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravityWithPointMasses.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses_res.mat does not exist to compare? outputFormat=mat