Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_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_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.0009478/0.0009479, allocations: 172.2 kB / 14.1 MB, free: 1.223 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.424/1.424, allocations: 205.2 MB / 219.8 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.0009239/0.0009238, allocations: 86.62 kB / 268 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.829e-05/2.831e-05, allocations: 0 / 322.5 MB, free: 17.25 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09296/0.093, allocations: 47.58 MB / 370.1 MB, free: 1.605 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3238/0.4168, allocations: 88.36 MB / 458.5 MB, free: 5.129 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002754/0.4171, allocations: 84.45 kB / 458.6 MB, free: 5.086 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1269/0.5441, allocations: 52.69 MB / 0.4993 GB, free: 1.199 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.863e-06/0.5441, allocations: 0 / 0.4993 GB, free: 1.199 MB / 378.7 MB Notification: Performance of Transformations before backend: time 7.634e-05/0.5442, allocations: 56 kB / 0.4993 GB, free: 1.145 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.003486/0.5477, allocations: 2.459 MB / 0.5017 GB, free: 14.62 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.039e-05/0.5477, allocations: 12.03 kB / 0.5017 GB, free: 14.61 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006604/0.5484, allocations: 0.5649 MB / 0.5023 GB, free: 14.04 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007691/0.5561, allocations: 1.961 MB / 0.5042 GB, free: 12.07 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003312/0.5594, allocations: 1.423 MB / 0.5056 GB, free: 10.6 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001669/0.5596, allocations: 226 kB / 0.5058 GB, free: 10.38 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006578/0.5603, allocations: 307.8 kB / 0.5061 GB, free: 10.07 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01875/0.5791, allocations: 8.96 MB / 0.5149 GB, free: 176 kB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001171/0.5792, allocations: 55.47 kB / 0.5149 GB, free: 120 kB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004142/0.5796, allocations: 156 kB / 0.5151 GB, free: 15.96 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001165/0.5808, allocations: 0.8008 MB / 0.5158 GB, free: 15.16 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01742/0.5983, allocations: 7.151 MB / 0.5228 GB, free: 8 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.229/0.8273, allocations: 38.37 MB / 0.5603 GB, free: 77.22 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02106/0.8483, allocations: 5.356 MB / 0.5655 GB, free: 76.49 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00148/0.8499, allocations: 0.9298 MB / 0.5664 GB, free: 76.44 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005121/0.855, allocations: 3.707 MB / 0.5701 GB, free: 74.61 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.33e-05/0.8551, allocations: 52.09 kB / 0.5701 GB, free: 74.57 MB / 410.7 MB Notification: Performance of pre-optimization done (n=111): time 3.646e-06/0.8551, allocations: 0 / 0.5701 GB, free: 74.57 MB / 410.7 MB Notification: Performance of matching and sorting (n=111): time 0.03558/0.8907, allocations: 8.2 MB / 0.5781 GB, free: 74.39 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.296e-05/0.8908, allocations: 196.6 kB / 0.5783 GB, free: 74.17 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00354/0.8943, allocations: 2.682 MB / 0.5809 GB, free: 73.86 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001212/0.8944, allocations: 45.52 kB / 0.581 GB, free: 73.82 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001224/0.8957, allocations: 2.425 MB / 0.5833 GB, free: 72.47 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003571/0.896, allocations: 0.4917 MB / 0.5838 GB, free: 72.21 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001675/0.8962, allocations: 109 kB / 0.5839 GB, free: 72.21 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0002252/0.8964, allocations: 0.533 MB / 0.5844 GB, free: 71.89 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001698/0.8981, allocations: 1.459 MB / 0.5859 GB, free: 71.88 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003344/0.9015, allocations: 5.007 MB / 0.5907 GB, free: 67.24 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002931/0.9044, allocations: 2.722 MB / 0.5934 GB, free: 66.55 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.807e-05/0.9045, allocations: 34 kB / 0.5934 GB, free: 66.55 MB / 410.7 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.007819/0.9123, allocations: 6.157 MB / 0.5995 GB, free: 64.51 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.478e-05/0.9124, allocations: 60.66 kB / 0.5995 GB, free: 64.51 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.341e-05/0.9125, allocations: 126.7 kB / 0.5996 GB, free: 64.51 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001393/0.9127, allocations: 189.2 kB / 0.5998 GB, free: 64.5 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004377/0.917, allocations: 1.517 MB / 0.6013 GB, free: 64.35 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001431/0.9172, allocations: 245.3 kB / 0.6015 GB, free: 64.3 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003324/0.9205, allocations: 0.7577 MB / 0.6023 GB, free: 63.82 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003704/0.9209, allocations: 341.6 kB / 0.6026 GB, free: 63.78 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.0005376/0.9215, allocations: 0.5322 MB / 0.6031 GB, free: 63.33 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003297/0.9218, allocations: 250.2 kB / 0.6034 GB, free: 63.2 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001187/0.923, allocations: 0.7396 MB / 0.6041 GB, free: 62.89 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.536e-05/0.923, allocations: 12.05 kB / 0.6041 GB, free: 62.89 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.082e-05/0.9231, allocations: 9.375 kB / 0.6041 GB, free: 62.89 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.507e-06/0.9231, allocations: 3.797 kB / 0.6041 GB, free: 62.89 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005088/0.9282, allocations: 3.218 MB / 0.6072 GB, free: 61.66 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.821e-06/0.9282, allocations: 0 / 0.6072 GB, free: 61.66 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002364/0.9306, allocations: 475.2 kB / 0.6077 GB, free: 61.64 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.407e-05/0.9306, allocations: 3.375 kB / 0.6077 GB, free: 61.64 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.056e-05/0.9307, allocations: 38.45 kB / 0.6077 GB, free: 61.63 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.897e-06/0.9307, allocations: 10.38 kB / 0.6077 GB, free: 61.62 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.154e-06/0.9307, allocations: 0 / 0.6077 GB, free: 61.62 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002635/0.9334, allocations: 2.657 MB / 0.6103 GB, free: 59.68 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005334/0.9339, allocations: 308 kB / 0.6106 GB, free: 59.37 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002155/0.9341, allocations: 26.91 kB / 0.6107 GB, free: 59.35 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008507/0.935, allocations: 56.94 kB / 0.6107 GB, free: 59.31 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000125/0.9351, allocations: 55.03 kB / 0.6108 GB, free: 59.28 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.785e-05/0.9352, allocations: 38.8 kB / 0.6108 GB, free: 59.25 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002292/0.9375, allocations: 1.805 MB / 0.6126 GB, free: 57.64 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.81e-07/0.9375, allocations: 0 / 0.6126 GB, free: 57.64 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.003548/0.9411, allocations: 0.8427 MB / 0.6134 GB, free: 56.81 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.002739/0.9438, allocations: 3.589 MB / 0.6169 GB, free: 53.39 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.004547/0.9484, allocations: 3.359 MB / 0.6202 GB, free: 50.33 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 7.925e-06/0.9484, allocations: 0 / 0.6202 GB, free: 50.33 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006545/0.9491, allocations: 0.6261 MB / 0.6208 GB, free: 49.77 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001175/0.9502, allocations: 232.6 kB / 0.621 GB, free: 49.56 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01261/0.9629, allocations: 7.223 MB / 0.6281 GB, free: 43.39 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001883/0.9648, allocations: 2.449 MB / 0.6305 GB, free: 41.46 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.003652/0.9685, allocations: 1.647 MB / 0.6321 GB, free: 40.21 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001257/0.9697, allocations: 1.218 MB / 0.6332 GB, free: 38.99 MB / 410.7 MB Notification: Performance of SimCode: time 1.303e-06/0.9697, allocations: 0 / 0.6332 GB, free: 38.99 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06888/1.039, allocations: 51.13 MB / 0.6832 GB, free: 4.094 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002161/1.039, allocations: 181.2 kB / 0.6834 GB, free: 3.871 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.105/4.144, allocations: 3.906 kB / 0.6834 GB, free: 3.867 MB / 426.7 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravityWithPointMasses_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravityWithPointMasses.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses_res.mat does not exist to compare? outputFormat=mat