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.001592/0.001592, allocations: 188.8 kB / 16.4 MB, free: 5.625 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.012/2.012, allocations: 205.4 MB / 222.5 MB, free: 13.85 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.00112/0.00112, allocations: 90.88 kB / 270.9 MB, free: 13.38 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003975/0.0003976, allocations: 8 kB / 327.1 MB, free: 15 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09765/0.09808, allocations: 47.58 MB / 374.6 MB, free: 15.34 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses): time 0.2914/0.3895, allocations: 24.74 MB / 399.4 MB, free: 8.328 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.01876/0.4084, allocations: 5.919 MB / 405.3 MB, free: 5.52 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006647/0.4151, allocations: 112.1 kB / 405.4 MB, free: 5.504 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005056/0.4202, allocations: 1.203 MB / 406.6 MB, free: 5.141 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0156/0.4358, allocations: 3.518 MB / 410.1 MB, free: 3.719 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002022/0.4379, allocations: 191.4 kB / 410.3 MB, free: 3.578 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.003718/0.4416, allocations: 1.288 MB / 411.6 MB, free: 2.793 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004158/0.4458, allocations: 1.867 MB / 413.5 MB, free: 1.652 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001601/0.4475, allocations: 0.6066 MB / 414.1 MB, free: 1.34 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002057/0.4496, allocations: 0.8335 MB / 414.9 MB, free: 0.9023 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0007173/0.4503, allocations: 90.05 kB / 415 MB, free: 0.8984 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002079/0.4524, allocations: 0.509 MB / 415.5 MB, free: 0.6758 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001945/0.4544, allocations: 1.018 MB / 416.5 MB, free: 164 kB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001147/0.4556, allocations: 0.5565 MB / 417.1 MB, free: 15.76 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005924/0.4616, allocations: 3.24 MB / 420.3 MB, free: 13.61 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.348e-06/0.4616, allocations: 0 / 420.3 MB, free: 13.61 MB / 298.7 MB Notification: Performance of FrontEnd: time 3.146e-06/0.4616, allocations: 2.094 kB / 420.3 MB, free: 13.61 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.0002045/0.4618, allocations: 0 / 420.3 MB, free: 13.61 MB / 298.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.0068/0.4686, allocations: 2.445 MB / 422.8 MB, free: 11.8 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.542e-05/0.4687, allocations: 7.281 kB / 422.8 MB, free: 11.8 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001796/0.4705, allocations: 0.5248 MB / 423.3 MB, free: 11.43 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01445/0.485, allocations: 2.117 MB / 425.4 MB, free: 9.418 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003963/0.489, allocations: 1.141 MB / 426.6 MB, free: 8.23 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000222/0.4893, allocations: 147.8 kB / 426.7 MB, free: 8.086 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001137/0.4904, allocations: 215.8 kB / 426.9 MB, free: 7.875 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03332/0.5238, allocations: 8.647 MB / 435.6 MB, free: 14.63 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001613/0.524, allocations: 47.64 kB / 435.6 MB, free: 14.58 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005601/0.5246, allocations: 103.9 kB / 435.7 MB, free: 14.48 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00558/0.5302, allocations: 1.659 MB / 437.4 MB, free: 12.82 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03231/0.5625, allocations: 7.241 MB / 444.6 MB, free: 5.57 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05628/0.6188, allocations: 30.2 MB / 474.8 MB, free: 6.48 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.04367/0.6626, allocations: 5.118 MB / 479.9 MB, free: 1.184 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009293/0.6719, allocations: 3.761 MB / 483.7 MB, free: 13.27 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.332e-05/0.672, allocations: 50.81 kB / 483.7 MB, free: 13.21 MB / 362.7 MB Notification: Performance of pre-optimization done (n=111): time 4.859e-06/0.672, allocations: 0 / 483.7 MB, free: 13.21 MB / 362.7 MB Notification: Performance of matching and sorting (n=111): time 0.08932/0.7613, allocations: 9.647 MB / 493.4 MB, free: 3.426 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001322/0.7615, allocations: 195.9 kB / 493.6 MB, free: 3.191 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006408/0.7679, allocations: 3.019 MB / 496.6 MB, free: 156 kB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002447/0.7682, allocations: 42.73 kB / 496.6 MB, free: 108 kB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002647/0.7709, allocations: 2.432 MB / 499.1 MB, free: 13.64 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008635/0.7718, allocations: 0.4979 MB / 499.6 MB, free: 13.13 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003922/0.7722, allocations: 112 kB / 499.7 MB, free: 13.02 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0004607/0.7727, allocations: 0.5303 MB / 0.4885 GB, free: 12.48 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004111/0.7768, allocations: 1.592 MB / 0.49 GB, free: 10.89 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007625/0.7844, allocations: 5.114 MB / 0.495 GB, free: 3.969 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006987/0.7915, allocations: 2.809 MB / 0.4978 GB, free: 1.16 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001121/0.7916, allocations: 40 kB / 0.4978 GB, free: 1.121 MB / 378.7 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.01782/0.8095, allocations: 6.341 MB / 0.504 GB, free: 10.77 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001215/0.8096, allocations: 56 kB / 0.5041 GB, free: 10.72 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002576/0.8099, allocations: 132 kB / 0.5042 GB, free: 10.59 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002679/0.8102, allocations: 188 kB / 0.5044 GB, free: 10.41 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01007/0.8203, allocations: 1.459 MB / 0.5058 GB, free: 8.945 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003437/0.8207, allocations: 251 kB / 0.506 GB, free: 8.699 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005843/0.8265, allocations: 0.746 MB / 0.5068 GB, free: 7.945 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001201/0.8278, allocations: 344 kB / 0.5071 GB, free: 7.609 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.004581/0.8324, allocations: 1.567 MB / 0.5086 GB, free: 6.031 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006961/0.8331, allocations: 248.8 kB / 0.5089 GB, free: 5.785 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002337/0.8355, allocations: 0.8327 MB / 0.5097 GB, free: 4.945 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.382e-05/0.8355, allocations: 23.94 kB / 0.5097 GB, free: 4.922 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.138e-05/0.8356, allocations: 0 / 0.5097 GB, free: 4.922 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.069e-05/0.8356, allocations: 7.984 kB / 0.5097 GB, free: 4.914 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01025/0.8459, allocations: 3.391 MB / 0.513 GB, free: 1.461 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.38e-05/0.8459, allocations: 7.984 kB / 0.513 GB, free: 1.453 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004753/0.8507, allocations: 407.5 kB / 0.5134 GB, free: 1.055 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.145e-05/0.8507, allocations: 4 kB / 0.5134 GB, free: 1.051 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002641/0.851, allocations: 36.39 kB / 0.5135 GB, free: 1.016 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.167e-05/0.851, allocations: 4 kB / 0.5135 GB, free: 1.012 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.512e-06/0.8511, allocations: 3.984 kB / 0.5135 GB, free: 1.008 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005869/0.8569, allocations: 2.877 MB / 0.5163 GB, free: 14.05 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008969/0.8579, allocations: 317.5 kB / 0.5166 GB, free: 13.72 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005946/0.8585, allocations: 35.94 kB / 0.5166 GB, free: 13.68 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001706/0.8602, allocations: 47.86 kB / 0.5167 GB, free: 13.64 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002628/0.8605, allocations: 51.86 kB / 0.5167 GB, free: 13.59 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001407/0.8607, allocations: 35.98 kB / 0.5167 GB, free: 13.55 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.004735/0.8654, allocations: 1.833 MB / 0.5185 GB, free: 11.72 MB / 410.7 MB Notification: Performance of sort global known variables: time 6.81e-07/0.8655, allocations: 0 / 0.5185 GB, free: 11.72 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.005898/0.8714, allocations: 0.8183 MB / 0.5193 GB, free: 10.9 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 () * 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.006594/0.878, allocations: 3.821 MB / 0.5231 GB, free: 7.031 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.009695/0.8877, allocations: 3.577 MB / 0.5265 GB, free: 3.484 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.357e-05/0.8878, allocations: 0 / 0.5265 GB, free: 3.484 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001816/0.8896, allocations: 0.7162 MB / 0.5272 GB, free: 2.77 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002122/0.8918, allocations: 238.5 kB / 0.5275 GB, free: 2.539 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3655/1.257, allocations: 111.6 MB / 0.6365 GB, free: 58.85 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008045/1.265, allocations: 2.456 MB / 0.6389 GB, free: 57.77 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004355/1.27, allocations: 1.264 MB / 0.6401 GB, free: 56.81 MB / 426.7 MB Notification: Performance of SimCode: time 1.834e-06/1.27, allocations: 0 / 0.6401 GB, free: 56.81 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.097/5.366, allocations: 57.09 MB / 0.6958 GB, free: 8.551 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