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/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 3.2.3+maint.om/package.mo", uses=false) 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 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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00101/0.001011, allocations: 95.69 kB / 16.93 MB, free: 5.984 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.001125/0.001125, allocations: 180.4 kB / 17.82 MB, free: 5.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.442/1.442, allocations: 205.4 MB / 224 MB, free: 13.16 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.000501/0.0005012, allocations: 12.22 kB / 280.8 MB, free: 3.652 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1213/0.1218, allocations: 47.58 MB / 328.4 MB, free: 4.004 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses): time 0.02808/0.15, allocations: 24.75 MB / 353.2 MB, free: 11.18 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01533/0.1654, allocations: 5.925 MB / 359.1 MB, free: 5.242 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006197/0.1717, allocations: 111.8 kB / 359.2 MB, free: 5.133 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004523/0.1762, allocations: 1.209 MB / 360.4 MB, free: 3.918 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01352/0.1898, allocations: 3.51 MB / 363.9 MB, free: 408 kB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002688/0.1925, allocations: 187.6 kB / 364.1 MB, free: 220 kB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004375/0.1969, allocations: 1.279 MB / 365.4 MB, free: 14.93 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004477/0.2014, allocations: 1.884 MB / 367.3 MB, free: 13.01 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002051/0.2035, allocations: 0.6033 MB / 367.9 MB, free: 12.4 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001914/0.2054, allocations: 0.8331 MB / 368.7 MB, free: 11.57 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005046/0.206, allocations: 88 kB / 368.8 MB, free: 11.48 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001462/0.2074, allocations: 0.5187 MB / 369.3 MB, free: 10.96 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00124/0.2087, allocations: 1.009 MB / 370.3 MB, free: 9.949 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007523/0.2095, allocations: 0.5546 MB / 370.9 MB, free: 9.387 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003965/0.2134, allocations: 3.25 MB / 374.1 MB, free: 6.129 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.038e-06/0.2135, allocations: 0 / 374.1 MB, free: 6.129 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.595e-06/0.2135, allocations: 0 / 374.1 MB, free: 6.129 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.279e-05/0.2136, allocations: 0 / 374.1 MB, free: 6.129 MB / 318.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.004047/0.2176, allocations: 2.434 MB / 376.6 MB, free: 3.633 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.717e-05/0.2177, allocations: 8.031 kB / 376.6 MB, free: 3.625 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006346/0.2183, allocations: 0.5297 MB / 377.1 MB, free: 3.082 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007706/0.226, allocations: 2.114 MB / 379.2 MB, free: 0.9609 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2552/0.4813, allocations: 1.137 MB / 380.3 MB, free: 18.02 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002644/0.4816, allocations: 151.3 kB / 380.5 MB, free: 18.02 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009843/0.4826, allocations: 205.1 kB / 380.7 MB, free: 18.02 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02294/0.5056, allocations: 8.654 MB / 389.4 MB, free: 16.4 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001291/0.5058, allocations: 44.14 kB / 389.4 MB, free: 16.4 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003304/0.5061, allocations: 101.3 kB / 389.5 MB, free: 16.4 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003178/0.5093, allocations: 1.665 MB / 391.2 MB, free: 16.38 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0193/0.5286, allocations: 7.233 MB / 398.4 MB, free: 16.35 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03392/0.5626, allocations: 30.2 MB / 428.6 MB, free: 10.96 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02175/0.5844, allocations: 5.113 MB / 433.7 MB, free: 6.125 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007037/0.5915, allocations: 3.772 MB / 437.5 MB, free: 2.789 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.807e-05/0.5916, allocations: 45.8 kB / 437.5 MB, free: 2.746 MB / 334.1 MB Notification: Performance of pre-optimization done (n=111): time 5.22e-06/0.5916, allocations: 0 / 437.5 MB, free: 2.746 MB / 334.1 MB Notification: Performance of matching and sorting (n=111): time 0.04509/0.6367, allocations: 9.649 MB / 447.2 MB, free: 9.688 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001255/0.6369, allocations: 194.1 kB / 447.4 MB, free: 9.457 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004355/0.6413, allocations: 3.026 MB / 450.4 MB, free: 7.113 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002039/0.6415, allocations: 41.7 kB / 450.4 MB, free: 7.066 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001886/0.6434, allocations: 2.423 MB / 452.9 MB, free: 4.66 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006147/0.644, allocations: 0.4967 MB / 453.3 MB, free: 4.168 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001753/0.6442, allocations: 108 kB / 453.5 MB, free: 4.062 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0003744/0.6446, allocations: 0.5333 MB / 454 MB, free: 3.523 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002446/0.647, allocations: 1.584 MB / 455.6 MB, free: 1.934 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00523/0.6523, allocations: 5.123 MB / 460.7 MB, free: 11.07 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003979/0.6563, allocations: 2.805 MB / 463.5 MB, free: 8.383 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.106e-05/0.6563, allocations: 36 kB / 463.5 MB, free: 8.348 MB / 366.1 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.01052/0.6669, allocations: 6.392 MB / 469.9 MB, free: 2.715 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.455e-05/0.667, allocations: 60 kB / 470 MB, free: 2.656 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001583/0.6672, allocations: 128.1 kB / 470.1 MB, free: 2.531 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001833/0.6674, allocations: 188 kB / 470.3 MB, free: 2.348 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004726/0.6721, allocations: 1.455 MB / 471.7 MB, free: 1.008 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002161/0.6723, allocations: 256 kB / 472 MB, free: 0.7891 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0039/0.6762, allocations: 0.7418 MB / 472.7 MB, free: 48 kB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000532/0.6768, allocations: 347.1 kB / 473.1 MB, free: 15.71 MB / 382.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.002556/0.6793, allocations: 1.579 MB / 474.7 MB, free: 14.12 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000472/0.6798, allocations: 252.7 kB / 474.9 MB, free: 13.87 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001253/0.6811, allocations: 0.825 MB / 475.7 MB, free: 13.04 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.658e-05/0.6811, allocations: 12 kB / 475.7 MB, free: 13.02 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.254e-05/0.6811, allocations: 7.984 kB / 475.7 MB, free: 13.02 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.26e-05/0.6812, allocations: 3.984 kB / 475.8 MB, free: 13.01 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005941/0.6871, allocations: 3.39 MB / 479.1 MB, free: 9.582 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.053e-06/0.6871, allocations: 1.641 kB / 479.1 MB, free: 9.582 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002196/0.6893, allocations: 411.5 kB / 479.5 MB, free: 9.18 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.249e-05/0.6894, allocations: 4 kB / 479.6 MB, free: 9.176 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.468e-05/0.6895, allocations: 31.97 kB / 479.6 MB, free: 9.145 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.267e-06/0.6895, allocations: 11.92 kB / 479.6 MB, free: 9.133 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.727e-06/0.6895, allocations: 7.953 kB / 479.6 MB, free: 9.125 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00326/0.6928, allocations: 2.878 MB / 482.5 MB, free: 6.18 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006886/0.6935, allocations: 309.6 kB / 482.8 MB, free: 5.855 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002367/0.6937, allocations: 27.98 kB / 482.8 MB, free: 5.828 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008909/0.6946, allocations: 47.88 kB / 482.9 MB, free: 5.785 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001151/0.6947, allocations: 55.88 kB / 482.9 MB, free: 5.73 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.879e-05/0.6948, allocations: 35.98 kB / 482.9 MB, free: 5.695 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002769/0.6976, allocations: 1.829 MB / 484.8 MB, free: 3.863 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.21e-07/0.6976, allocations: 4 kB / 484.8 MB, free: 3.859 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.004029/0.7016, allocations: 0.8284 MB / 485.6 MB, free: 3.035 MB / 382.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.00383/0.7055, allocations: 3.819 MB / 489.4 MB, free: 15.18 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.005862/0.7113, allocations: 3.581 MB / 493 MB, free: 11.63 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 8.947e-06/0.7114, allocations: 1.75 kB / 493 MB, free: 11.63 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000951/0.7123, allocations: 0.7109 MB / 493.7 MB, free: 10.92 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001434/0.7138, allocations: 249.8 kB / 494 MB, free: 10.68 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.254/0.9678, allocations: 111.3 MB / 0.591 GB, free: 116.3 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002491/0.9703, allocations: 2.452 MB / 0.5934 GB, free: 115.2 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003771/0.9741, allocations: 1.647 MB / 0.595 GB, free: 115.2 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001256/0.9754, allocations: 1.214 MB / 0.5962 GB, free: 114.3 MB / 446.1 MB Notification: Performance of SimCode: time 1.292e-06/0.9754, allocations: 0 / 0.5962 GB, free: 114.3 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07294/1.048, allocations: 50.66 MB / 0.6457 GB, free: 68.71 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001612/1.049, allocations: 214.3 kB / 0.6459 GB, free: 68.47 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.332/4.381, allocations: 0 / 0.6459 GB, free: 68.47 MB / 446.1 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) Environment - environmentSimulation: 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