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.001626/0.001626, allocations: 181.2 kB / 13.66 MB, free: 1.664 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.13/2.13, allocations: 205.2 MB / 219.4 MB, free: 14.2 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.001199/0.001198, allocations: 90.7 kB / 267.5 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.319e-05/3.33e-05, allocations: 4 kB / 321.6 MB, free: 17.73 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1082/0.1082, allocations: 47.56 MB / 369.2 MB, free: 2.105 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4517/0.56, allocations: 88.37 MB / 457.6 MB, free: 4.961 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003231/0.5604, allocations: 93.5 kB / 457.6 MB, free: 4.914 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2248/0.7853, allocations: 52.69 MB / 0.4984 GB, free: 1.512 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.786e-06/0.7854, allocations: 0 / 0.4984 GB, free: 1.512 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001529/0.7855, allocations: 56 kB / 0.4984 GB, free: 1.457 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.008631/0.7942, allocations: 2.459 MB / 0.5008 GB, free: 14.93 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.121e-05/0.7943, allocations: 8.031 kB / 0.5008 GB, free: 14.93 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002084/0.7964, allocations: 0.5649 MB / 0.5014 GB, free: 14.35 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01552/0.8119, allocations: 1.961 MB / 0.5033 GB, free: 12.38 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005537/0.8175, allocations: 1.418 MB / 0.5047 GB, free: 10.92 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000359/0.8179, allocations: 234 kB / 0.5049 GB, free: 10.69 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001796/0.8197, allocations: 303.8 kB / 0.5052 GB, free: 10.39 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03563/0.8554, allocations: 8.96 MB / 0.5139 GB, free: 500 kB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002125/0.8557, allocations: 47.53 kB / 0.514 GB, free: 452 kB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001118/0.8568, allocations: 163.9 kB / 0.5141 GB, free: 288 kB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002532/0.8593, allocations: 0.8007 MB / 0.5149 GB, free: 15.47 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03162/0.891, allocations: 7.151 MB / 0.5219 GB, free: 8.316 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3617/1.253, allocations: 38.37 MB / 0.5594 GB, free: 76.74 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.04121/1.294, allocations: 5.366 MB / 0.5646 GB, free: 76 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002587/1.297, allocations: 0.9262 MB / 0.5655 GB, free: 75.95 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008991/1.306, allocations: 3.698 MB / 0.5691 GB, free: 74.14 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.098e-05/1.306, allocations: 52.05 kB / 0.5692 GB, free: 74.1 MB / 410.7 MB Notification: Performance of pre-optimization done (n=111): time 6.923e-06/1.306, allocations: 0 / 0.5692 GB, free: 74.1 MB / 410.7 MB Notification: Performance of matching and sorting (n=111): time 0.072/1.378, allocations: 8.203 MB / 0.5772 GB, free: 73.92 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.636e-05/1.378, allocations: 199.6 kB / 0.5774 GB, free: 73.7 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006128/1.384, allocations: 2.683 MB / 0.58 GB, free: 73.38 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002462/1.384, allocations: 41.47 kB / 0.58 GB, free: 73.35 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002181/1.387, allocations: 2.434 MB / 0.5824 GB, free: 71.93 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008098/1.387, allocations: 0.4903 MB / 0.5829 GB, free: 71.67 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005612/1.388, allocations: 112.2 kB / 0.583 GB, free: 71.67 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0003582/1.388, allocations: 0.5332 MB / 0.5835 GB, free: 71.35 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003813/1.392, allocations: 1.462 MB / 0.585 GB, free: 71.34 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006556/1.399, allocations: 5.009 MB / 0.5899 GB, free: 66.7 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006243/1.405, allocations: 2.72 MB / 0.5925 GB, free: 66.1 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001852/1.405, allocations: 34.12 kB / 0.5925 GB, free: 66.1 MB / 410.7 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.01662/1.422, allocations: 6.1 MB / 0.5985 GB, free: 64.09 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001156/1.422, allocations: 58.62 kB / 0.5986 GB, free: 64.09 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002278/1.422, allocations: 128.3 kB / 0.5987 GB, free: 64.09 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002201/1.423, allocations: 187.2 kB / 0.5989 GB, free: 64.08 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01023/1.433, allocations: 1.52 MB / 0.6003 GB, free: 63.92 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002713/1.433, allocations: 251.5 kB / 0.6006 GB, free: 63.87 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005997/1.439, allocations: 0.7574 MB / 0.6013 GB, free: 63.39 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001266/1.441, allocations: 349.4 kB / 0.6017 GB, free: 63.35 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 () * 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.001184/1.442, allocations: 0.522 MB / 0.6022 GB, free: 62.91 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006538/1.442, allocations: 257.8 kB / 0.6024 GB, free: 62.77 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001997/1.444, allocations: 0.7354 MB / 0.6031 GB, free: 62.46 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.916e-05/1.445, allocations: 10.53 kB / 0.6031 GB, free: 62.46 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.376e-05/1.445, allocations: 6.844 kB / 0.6031 GB, free: 62.46 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.604e-05/1.445, allocations: 6.266 kB / 0.6031 GB, free: 62.46 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009435/1.454, allocations: 3.222 MB / 0.6063 GB, free: 61.23 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.727e-05/1.454, allocations: 0 / 0.6063 GB, free: 61.23 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005134/1.459, allocations: 480.9 kB / 0.6068 GB, free: 61.21 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.27e-05/1.459, allocations: 3.875 kB / 0.6068 GB, free: 61.21 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002567/1.46, allocations: 33.8 kB / 0.6068 GB, free: 61.2 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.112e-05/1.46, allocations: 7.422 kB / 0.6068 GB, free: 61.2 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.05e-06/1.46, allocations: 3.562 kB / 0.6068 GB, free: 61.2 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004795/1.464, allocations: 2.646 MB / 0.6094 GB, free: 59.29 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008415/1.465, allocations: 312.2 kB / 0.6097 GB, free: 58.97 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004772/1.466, allocations: 38.47 kB / 0.6097 GB, free: 58.95 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001675/1.467, allocations: 50.3 kB / 0.6098 GB, free: 58.91 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001922/1.468, allocations: 52.34 kB / 0.6098 GB, free: 58.88 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001193/1.468, allocations: 39.97 kB / 0.6099 GB, free: 58.85 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.00369/1.472, allocations: 1.804 MB / 0.6116 GB, free: 57.24 MB / 410.7 MB Notification: Performance of sort global known variables: time 6.31e-07/1.472, allocations: 0 / 0.6116 GB, free: 57.24 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.005454/1.477, allocations: 0.8403 MB / 0.6124 GB, free: 56.41 MB / 410.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 () * 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.004801/1.482, allocations: 3.591 MB / 0.6159 GB, free: 53 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.00757/1.489, allocations: 3.36 MB / 0.6192 GB, free: 49.93 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 8.186e-06/1.49, allocations: 0 / 0.6192 GB, free: 49.93 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001342/1.491, allocations: 0.6258 MB / 0.6198 GB, free: 49.36 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001765/1.493, allocations: 244.9 kB / 0.6201 GB, free: 49.15 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02113/1.514, allocations: 7.548 MB / 0.6274 GB, free: 42.71 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003211/1.517, allocations: 2.452 MB / 0.6298 GB, free: 40.78 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002573/1.52, allocations: 1.258 MB / 0.6311 GB, free: 39.62 MB / 410.7 MB Notification: Performance of SimCode: time 1.243e-06/1.52, allocations: 3.938 kB / 0.6311 GB, free: 39.62 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.924/5.444, allocations: 56.94 MB / 0.6867 GB, free: 101.6 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