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.001488/0.001488, allocations: 175.6 kB / 13.63 MB, free: 1.684 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.526/1.526, allocations: 221.4 MB / 235.5 MB, free: 2.871 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009289/0.0009287, allocations: 96.72 kB / 286.5 MB, free: 160 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.06e-05/4.117e-05, allocations: 4 kB / 343.9 MB, free: 4.188 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1169/0.1169, allocations: 50.41 MB / 394.3 MB, free: 1.742 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3622/0.4791, allocations: 89.78 MB / 484.1 MB, free: 13.64 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003171/0.4795, allocations: 91.94 kB / 484.2 MB, free: 13.55 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1446/0.6242, allocations: 53.55 MB / 0.5252 GB, free: 7.562 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.285e-06/0.6242, allocations: 0 / 0.5252 GB, free: 7.562 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001223/0.6244, allocations: 55.98 kB / 0.5252 GB, free: 7.508 MB / 410.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.006558/0.6309, allocations: 2.467 MB / 0.5276 GB, free: 4.98 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.401e-05/0.631, allocations: 8.031 kB / 0.5276 GB, free: 4.973 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001574/0.6326, allocations: 0.5688 MB / 0.5282 GB, free: 4.391 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008553/0.6411, allocations: 1.958 MB / 0.5301 GB, free: 2.426 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003381/0.6445, allocations: 1.407 MB / 0.5315 GB, free: 0.9727 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002133/0.6448, allocations: 230 kB / 0.5317 GB, free: 0.7461 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009318/0.6457, allocations: 307.8 kB / 0.532 GB, free: 456 kB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02028/0.666, allocations: 8.964 MB / 0.5407 GB, free: 6.535 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001723/0.6662, allocations: 59.47 kB / 0.5408 GB, free: 6.477 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008389/0.6671, allocations: 151.9 kB / 0.5409 GB, free: 6.328 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001355/0.6684, allocations: 0.8124 MB / 0.5417 GB, free: 5.512 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2749/0.9433, allocations: 7.145 MB / 0.5487 GB, free: 104.7 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04303/0.9864, allocations: 38.38 MB / 0.5862 GB, free: 79.07 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02284/1.009, allocations: 5.354 MB / 0.5914 GB, free: 78.33 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001555/1.011, allocations: 0.9224 MB / 0.5923 GB, free: 78.28 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005082/1.016, allocations: 3.711 MB / 0.5959 GB, free: 76 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.866e-05/1.016, allocations: 51.83 kB / 0.596 GB, free: 75.95 MB / 426.7 MB Notification: Performance of pre-optimization done (n=111): time 2.605e-06/1.016, allocations: 0 / 0.596 GB, free: 75.95 MB / 426.7 MB Notification: Performance of matching and sorting (n=111): time 0.03666/1.053, allocations: 8.204 MB / 0.604 GB, free: 75.44 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.594e-05/1.053, allocations: 198.9 kB / 0.6042 GB, free: 75.21 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003256/1.056, allocations: 2.684 MB / 0.6068 GB, free: 74.23 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 9.863e-05/1.056, allocations: 41.27 kB / 0.6068 GB, free: 74.19 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00102/1.057, allocations: 2.428 MB / 0.6092 GB, free: 72.37 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003558/1.058, allocations: 0.4901 MB / 0.6097 GB, free: 72.03 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001553/1.058, allocations: 108.6 kB / 0.6098 GB, free: 71.95 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002092/1.058, allocations: 0.5275 MB / 0.6103 GB, free: 71.55 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001647/1.06, allocations: 1.464 MB / 0.6117 GB, free: 71.08 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003112/1.063, allocations: 5.012 MB / 0.6166 GB, free: 65.75 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002886/1.066, allocations: 2.719 MB / 0.6193 GB, free: 64.83 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.763e-05/1.066, allocations: 37.22 kB / 0.6193 GB, free: 64.83 MB / 426.7 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.00797/1.074, allocations: 6.145 MB / 0.6253 GB, free: 62.55 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.378e-05/1.074, allocations: 60.91 kB / 0.6254 GB, free: 62.55 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.686e-05/1.074, allocations: 128.1 kB / 0.6255 GB, free: 62.55 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001452/1.074, allocations: 187 kB / 0.6257 GB, free: 62.55 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004506/1.078, allocations: 1.521 MB / 0.6272 GB, free: 62.39 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001579/1.079, allocations: 249.2 kB / 0.6274 GB, free: 62.34 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0034/1.082, allocations: 0.7549 MB / 0.6282 GB, free: 61.86 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003556/1.082, allocations: 344.8 kB / 0.6285 GB, free: 61.81 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 () * 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.0005103/1.083, allocations: 0.5251 MB / 0.629 GB, free: 61.37 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003227/1.083, allocations: 258.4 kB / 0.6292 GB, free: 61.23 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001151/1.084, allocations: 0.7385 MB / 0.63 GB, free: 60.93 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.496e-05/1.084, allocations: 15.17 kB / 0.63 GB, free: 60.93 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.001e-05/1.084, allocations: 2.656 kB / 0.63 GB, free: 60.93 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.101e-05/1.085, allocations: 6.047 kB / 0.63 GB, free: 60.93 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004935/1.089, allocations: 3.232 MB / 0.6331 GB, free: 58.86 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.533e-06/1.089, allocations: 3.938 kB / 0.6331 GB, free: 58.86 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002418/1.092, allocations: 474.9 kB / 0.6336 GB, free: 58.52 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.075e-05/1.092, allocations: 8 kB / 0.6336 GB, free: 58.51 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.817e-05/1.092, allocations: 31.73 kB / 0.6336 GB, free: 58.49 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.092e-06/1.092, allocations: 4 kB / 0.6336 GB, free: 58.48 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.434e-06/1.092, allocations: 4 kB / 0.6336 GB, free: 58.48 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002291/1.094, allocations: 2.642 MB / 0.6362 GB, free: 55.99 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003903/1.095, allocations: 313.7 kB / 0.6365 GB, free: 55.67 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002206/1.095, allocations: 29.02 kB / 0.6365 GB, free: 55.64 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008675/1.096, allocations: 51.23 kB / 0.6366 GB, free: 55.61 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000107/1.096, allocations: 55.34 kB / 0.6367 GB, free: 55.57 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.623e-05/1.096, allocations: 48.98 kB / 0.6367 GB, free: 55.54 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.002/1.098, allocations: 1.804 MB / 0.6385 GB, free: 53.93 MB / 426.7 MB Notification: Performance of sort global known variables: time 2.11e-07/1.098, allocations: 0 / 0.6385 GB, free: 53.93 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.003656/1.102, allocations: 0.8457 MB / 0.6393 GB, free: 53.1 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 () * 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.00273/1.104, allocations: 3.585 MB / 0.6428 GB, free: 49.7 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.004589/1.109, allocations: 3.362 MB / 0.6461 GB, free: 46.62 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.577e-06/1.109, allocations: 1.812 kB / 0.6461 GB, free: 46.62 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000659/1.11, allocations: 0.6177 MB / 0.6467 GB, free: 46.06 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001066/1.111, allocations: 236.3 kB / 0.6469 GB, free: 45.85 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01207/1.123, allocations: 7.219 MB / 0.654 GB, free: 39.44 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002003/1.125, allocations: 2.455 MB / 0.6563 GB, free: 36.97 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.003767/1.129, allocations: 1.652 MB / 0.658 GB, free: 35.32 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00137/1.13, allocations: 1.21 MB / 0.6591 GB, free: 34.11 MB / 426.7 MB Notification: Performance of SimCode: time 1.633e-06/1.13, allocations: 0 / 0.6591 GB, free: 34.11 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3111/1.441, allocations: 51.17 MB / 0.7091 GB, free: 96.88 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001566/1.441, allocations: 189 kB / 0.7093 GB, free: 96.66 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.809/5.251, allocations: 0 / 0.7093 GB, free: 96.66 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