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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009156/0.0009157, allocations: 88.39 kB / 16.31 MB, free: 6.449 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008407/0.0008409, allocations: 183.1 kB / 17.21 MB, free: 6.316 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.37/1.37, allocations: 223.3 MB / 241.2 MB, free: 5.168 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002842/0.0002843, allocations: 5.844 kB / 300.9 MB, free: 5.531 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1051/0.1054, allocations: 50.43 MB / 351.3 MB, free: 11.22 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses): time 0.02522/0.1307, allocations: 26.17 MB / 377.5 MB, free: 0.9727 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01375/0.1445, allocations: 5.63 MB / 383.1 MB, free: 11.33 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005563/0.1501, allocations: 111.8 kB / 383.2 MB, free: 11.22 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004669/0.1548, allocations: 1.338 MB / 384.6 MB, free: 9.875 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01077/0.1656, allocations: 3.79 MB / 388.4 MB, free: 6.07 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001662/0.1673, allocations: 235.7 kB / 388.6 MB, free: 5.84 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.004383/0.1717, allocations: 2.585 MB / 391.2 MB, free: 3.246 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003838/0.1756, allocations: 1.872 MB / 393.1 MB, free: 1.336 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001616/0.1772, allocations: 0.7315 MB / 393.8 MB, free: 0.6016 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00213/0.1793, allocations: 1.199 MB / 395 MB, free: 15.4 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00055/0.1799, allocations: 88 kB / 395.1 MB, free: 15.31 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001571/0.1815, allocations: 0.5382 MB / 395.6 MB, free: 14.77 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001521/0.183, allocations: 1.083 MB / 396.7 MB, free: 13.69 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001095/0.1841, allocations: 0.5701 MB / 397.3 MB, free: 13.11 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0038/0.188, allocations: 3.238 MB / 400.5 MB, free: 9.863 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.095e-05/0.188, allocations: 4 kB / 400.5 MB, free: 9.859 MB / 334.1 MB Notification: Performance of FrontEnd: time 4.097e-06/0.188, allocations: 0 / 400.5 MB, free: 9.859 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001079/0.1881, allocations: 0 / 400.5 MB, free: 9.859 MB / 334.1 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.004318/0.1924, allocations: 2.438 MB / 402.9 MB, free: 7.359 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.561e-05/0.1925, allocations: 12.03 kB / 403 MB, free: 7.348 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001015/0.1935, allocations: 0.5297 MB / 403.5 MB, free: 6.805 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006097/0.1996, allocations: 1.821 MB / 405.3 MB, free: 4.977 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002106/0.2018, allocations: 1.138 MB / 406.4 MB, free: 3.793 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001049/0.2019, allocations: 151.8 kB / 406.6 MB, free: 3.645 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003339/0.2022, allocations: 203.8 kB / 406.8 MB, free: 3.445 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01745/0.2197, allocations: 8.604 MB / 415.4 MB, free: 10.24 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.387e-05/0.2198, allocations: 43.64 kB / 415.4 MB, free: 10.2 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002752/0.2201, allocations: 103.8 kB / 415.5 MB, free: 10.1 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002602/0.2227, allocations: 1.667 MB / 417.2 MB, free: 8.43 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01645/0.2392, allocations: 7.163 MB / 424.4 MB, free: 1.258 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2398/0.479, allocations: 30.17 MB / 454.5 MB, free: 44.73 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01897/0.498, allocations: 5.103 MB / 459.6 MB, free: 42.22 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001423/0.4995, allocations: 1.241 MB / 460.9 MB, free: 41.64 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004598/0.5041, allocations: 3.741 MB / 464.6 MB, free: 38.8 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.609e-05/0.5041, allocations: 59.06 kB / 464.7 MB, free: 38.75 MB / 350.1 MB Notification: Performance of pre-optimization done (n=111): time 3.216e-06/0.5042, allocations: 0 / 464.7 MB, free: 38.75 MB / 350.1 MB Notification: Performance of matching and sorting (n=111): time 0.03662/0.5408, allocations: 9.371 MB / 474.1 MB, free: 30.07 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.3e-05/0.5409, allocations: 199.8 kB / 474.3 MB, free: 29.84 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003449/0.5443, allocations: 3.023 MB / 477.3 MB, free: 26.79 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001955/0.5445, allocations: 39.11 kB / 477.3 MB, free: 26.75 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001231/0.5458, allocations: 2.43 MB / 479.7 MB, free: 24.32 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004326/0.5462, allocations: 499.7 kB / 480.2 MB, free: 23.84 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001922/0.5464, allocations: 104 kB / 480.3 MB, free: 23.74 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002109/0.5466, allocations: 0.5333 MB / 480.9 MB, free: 23.2 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001782/0.5484, allocations: 1.584 MB / 482.5 MB, free: 21.61 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003027/0.5515, allocations: 5.142 MB / 487.6 MB, free: 14.66 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002977/0.5544, allocations: 2.811 MB / 490.4 MB, free: 11.86 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.572e-05/0.5545, allocations: 36 kB / 490.4 MB, free: 11.82 MB / 350.1 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.007954/0.5625, allocations: 6.401 MB / 496.8 MB, free: 5.418 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.348e-05/0.5626, allocations: 60 kB / 496.9 MB, free: 5.359 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.307e-05/0.5627, allocations: 128.9 kB / 497 MB, free: 5.234 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001279/0.5628, allocations: 184 kB / 497.2 MB, free: 5.055 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004004/0.5668, allocations: 1.458 MB / 498.7 MB, free: 3.594 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001234/0.5669, allocations: 248.6 kB / 498.9 MB, free: 3.352 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003006/0.57, allocations: 0.7504 MB / 499.7 MB, free: 2.594 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003451/0.5703, allocations: 340.9 kB / 500 MB, free: 2.262 MB / 350.1 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.001749/0.5721, allocations: 1.568 MB / 0.4898 GB, free: 0.6836 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003501/0.5724, allocations: 260.7 kB / 0.49 GB, free: 436 kB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001222/0.5737, allocations: 0.8288 MB / 0.4909 GB, free: 15.59 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.678e-05/0.5737, allocations: 12.94 kB / 0.4909 GB, free: 15.58 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.257e-06/0.5737, allocations: 4.625 kB / 0.4909 GB, free: 15.57 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.113e-05/0.5737, allocations: 3.984 kB / 0.4909 GB, free: 15.57 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005709/0.5794, allocations: 3.389 MB / 0.4942 GB, free: 12.14 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.084e-05/0.5795, allocations: 7.984 kB / 0.4942 GB, free: 12.14 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002203/0.5817, allocations: 404.1 kB / 0.4946 GB, free: 11.74 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.371e-05/0.5817, allocations: 4 kB / 0.4946 GB, free: 11.74 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000104/0.5818, allocations: 39.97 kB / 0.4946 GB, free: 11.7 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.694e-06/0.5818, allocations: 4 kB / 0.4946 GB, free: 11.7 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.637e-06/0.5819, allocations: 2.312 kB / 0.4946 GB, free: 11.7 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003265/0.5851, allocations: 2.785 MB / 0.4973 GB, free: 8.895 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005904/0.5857, allocations: 305.6 kB / 0.4976 GB, free: 8.574 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002302/0.586, allocations: 31.92 kB / 0.4977 GB, free: 8.543 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008347/0.5868, allocations: 42.05 kB / 0.4977 GB, free: 8.504 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001081/0.5869, allocations: 67.89 kB / 0.4978 GB, free: 8.438 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.47e-05/0.587, allocations: 31.98 kB / 0.4978 GB, free: 8.406 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.00266/0.5897, allocations: 1.829 MB / 0.4996 GB, free: 6.574 MB / 366.1 MB Notification: Performance of sort global known variables: time 3.11e-07/0.5897, allocations: 3.938 kB / 0.4996 GB, free: 6.57 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.003697/0.5934, allocations: 0.834 MB / 0.5004 GB, free: 5.738 MB / 366.1 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.003654/0.5971, allocations: 3.416 MB / 0.5037 GB, free: 2.297 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.005471/0.6025, allocations: 3.577 MB / 0.5072 GB, free: 14.75 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.829e-06/0.6026, allocations: 0 / 0.5072 GB, free: 14.75 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009282/0.6035, allocations: 0.7143 MB / 0.5079 GB, free: 14.04 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001651/0.6052, allocations: 257.8 kB / 0.5082 GB, free: 13.79 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04209/0.6473, allocations: 24.02 MB / 0.5316 GB, free: 2.727 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002813/0.6501, allocations: 2.394 MB / 0.534 GB, free: 308 kB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.004075/0.6542, allocations: 1.645 MB / 0.5356 GB, free: 14.65 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001821/0.6561, allocations: 1.218 MB / 0.5368 GB, free: 13.43 MB / 414.1 MB Notification: Performance of SimCode: time 1.653e-06/0.6561, allocations: 0 / 0.5368 GB, free: 13.43 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2948/0.9508, allocations: 50.69 MB / 0.5863 GB, free: 135.3 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001693/0.9511, allocations: 220.4 kB / 0.5865 GB, free: 135.1 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.77/4.721, allocations: 0.5 kB / 0.5865 GB, free: 135.1 MB / 446.1 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