Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravityWithPointMasses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses,fileNamePrefix="Modelica_3_2_3_cpp_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 3.2.3+maint.om/package.mo): time 0.001526/0.001526, allocations: 185.9 kB / 16.41 MB, free: 5.727 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.042/2.042, allocations: 205.4 MB / 222.5 MB, free: 9.145 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00123/0.00123, allocations: 90.92 kB / 270.9 MB, free: 8.395 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004133/0.0004133, allocations: 12 kB / 327.1 MB, free: 124 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3388/0.3392, allocations: 47.57 MB / 374.6 MB, free: 45.34 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1465/0.4858, allocations: 88.46 MB / 463.1 MB, free: 8.188 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003657/0.4862, allocations: 91.95 kB / 463.2 MB, free: 8.098 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4964/0.9827, allocations: 52.62 MB / 0.5037 GB, free: 93.43 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.675e-06/0.9827, allocations: 0 / 0.5037 GB, free: 93.43 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001158/0.9828, allocations: 49.56 kB / 0.5038 GB, free: 93.43 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.008363/0.9912, allocations: 2.541 MB / 0.5062 GB, free: 92.12 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.354e-05/0.9913, allocations: 13.48 kB / 0.5063 GB, free: 92.12 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00212/0.9934, allocations: 0.5703 MB / 0.5068 GB, free: 92.05 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01477/1.008, allocations: 1.949 MB / 0.5087 GB, free: 91.86 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004813/1.013, allocations: 1.436 MB / 0.5101 GB, free: 91.46 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002473/1.013, allocations: 222.6 kB / 0.5103 GB, free: 91.46 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001588/1.015, allocations: 307.1 kB / 0.5106 GB, free: 91.45 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03163/1.047, allocations: 9.02 MB / 0.5194 GB, free: 88.3 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002133/1.047, allocations: 58.09 kB / 0.5195 GB, free: 88.27 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001/1.048, allocations: 152.5 kB / 0.5196 GB, free: 88.2 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002119/1.05, allocations: 0.8096 MB / 0.5204 GB, free: 88.05 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02792/1.078, allocations: 7.24 MB / 0.5275 GB, free: 85.16 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04995/1.128, allocations: 38.38 MB / 0.565 GB, free: 45.71 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03749/1.166, allocations: 5.373 MB / 0.5702 GB, free: 40.16 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007887/1.174, allocations: 3.696 MB / 0.5738 GB, free: 36.34 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.35e-05/1.174, allocations: 55.02 kB / 0.5739 GB, free: 36.27 MB / 378.7 MB Notification: Performance of pre-optimization done (n=111): time 6.212e-06/1.174, allocations: 0 / 0.5739 GB, free: 36.27 MB / 378.7 MB Notification: Performance of matching and sorting (n=111): time 0.07746/1.251, allocations: 10.02 MB / 0.5837 GB, free: 26.11 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.775e-05/1.251, allocations: 199.8 kB / 0.5839 GB, free: 25.88 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00548/1.257, allocations: 2.705 MB / 0.5865 GB, free: 23.16 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000231/1.257, allocations: 42.08 kB / 0.5865 GB, free: 23.11 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001748/1.259, allocations: 2.435 MB / 0.5889 GB, free: 20.68 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006654/1.259, allocations: 0.4891 MB / 0.5894 GB, free: 20.2 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004121/1.26, allocations: 115 kB / 0.5895 GB, free: 20.09 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0003175/1.26, allocations: 0.5458 MB / 0.59 GB, free: 19.53 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003328/1.264, allocations: 1.494 MB / 0.5915 GB, free: 18.03 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005376/1.269, allocations: 5.032 MB / 0.5964 GB, free: 11.2 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005876/1.275, allocations: 2.717 MB / 0.5991 GB, free: 8.48 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001067/1.275, allocations: 36 kB / 0.5991 GB, free: 8.445 MB / 378.7 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.0153/1.29, allocations: 6.174 MB / 0.6051 GB, free: 2.266 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.149e-05/1.291, allocations: 61 kB / 0.6052 GB, free: 2.207 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001634/1.291, allocations: 128 kB / 0.6053 GB, free: 2.082 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001852/1.291, allocations: 188 kB / 0.6055 GB, free: 1.898 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009669/1.301, allocations: 1.52 MB / 0.607 GB, free: 388 kB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002139/1.301, allocations: 247.1 kB / 0.6072 GB, free: 140 kB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005637/1.306, allocations: 0.7547 MB / 0.6079 GB, free: 15.38 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001224/1.308, allocations: 344 kB / 0.6083 GB, free: 15.04 MB / 394.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.004441/1.312, allocations: 1.58 MB / 0.6098 GB, free: 13.45 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006748/1.313, allocations: 248.7 kB / 0.6101 GB, free: 13.2 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002382/1.315, allocations: 0.743 MB / 0.6108 GB, free: 12.45 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.704e-05/1.315, allocations: 16.38 kB / 0.6108 GB, free: 12.44 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.025e-05/1.315, allocations: 0 / 0.6108 GB, free: 12.44 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.878e-05/1.315, allocations: 7.984 kB / 0.6108 GB, free: 12.43 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01052/1.326, allocations: 3.24 MB / 0.614 GB, free: 9.152 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.741e-05/1.326, allocations: 3.938 kB / 0.614 GB, free: 9.148 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005193/1.331, allocations: 475.4 kB / 0.6144 GB, free: 8.684 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.937e-05/1.331, allocations: 4 kB / 0.6144 GB, free: 8.68 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002191/1.332, allocations: 35.97 kB / 0.6145 GB, free: 8.645 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.275e-05/1.332, allocations: 7.938 kB / 0.6145 GB, free: 8.637 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.13e-06/1.332, allocations: 4 kB / 0.6145 GB, free: 8.633 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00532/1.337, allocations: 2.668 MB / 0.6171 GB, free: 5.891 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008574/1.338, allocations: 309.5 kB / 0.6174 GB, free: 5.566 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005049/1.338, allocations: 31.98 kB / 0.6174 GB, free: 5.535 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001618/1.34, allocations: 51.94 kB / 0.6175 GB, free: 5.484 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002262/1.34, allocations: 55.88 kB / 0.6175 GB, free: 5.43 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00013/1.34, allocations: 35.5 kB / 0.6175 GB, free: 5.398 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.004859/1.345, allocations: 1.837 MB / 0.6193 GB, free: 3.559 MB / 394.7 MB Notification: Performance of sort global known variables: time 7.11e-07/1.345, allocations: 0 / 0.6193 GB, free: 3.559 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.005826/1.351, allocations: 0.8377 MB / 0.6202 GB, free: 2.719 MB / 394.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.006159/1.357, allocations: 3.605 MB / 0.6237 GB, free: 15.07 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.008957/1.366, allocations: 3.408 MB / 0.627 GB, free: 11.7 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 8.466e-06/1.366, allocations: 0 / 0.627 GB, free: 11.7 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001611/1.368, allocations: 0.6371 MB / 0.6276 GB, free: 11.06 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001917/1.37, allocations: 236 kB / 0.6279 GB, free: 10.83 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3629/1.733, allocations: 111.3 MB / 0.7366 GB, free: 47.11 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004841/1.738, allocations: 2.45 MB / 0.739 GB, free: 46.36 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003154/1.741, allocations: 1.262 MB / 0.7402 GB, free: 46.36 MB / 426.7 MB Notification: Performance of SimCode: time 1.342e-06/1.741, allocations: 0.7656 kB / 0.7402 GB, free: 46.36 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.649/5.39, allocations: 57.22 MB / 0.7961 GB, free: 9.18 MB / 426.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravityWithPointMasses_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravityWithPointMasses.fmu > Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses_res.mat does not exist to compare? outputFormat=mat