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.001212/0.001211, allocations: 96.02 kB / 16.95 MB, free: 6.453 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.001425/0.001425, allocations: 186 kB / 17.84 MB, free: 6.004 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.612/1.612, allocations: 205.4 MB / 224 MB, free: 13.17 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.0004787/0.0004789, allocations: 12 kB / 280.9 MB, free: 3.625 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1161/0.1166, allocations: 47.58 MB / 328.5 MB, free: 3.977 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses): time 0.04429/0.161, allocations: 26.15 MB / 354.6 MB, free: 9.746 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0151/0.1761, allocations: 5.674 MB / 360.3 MB, free: 4.059 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005371/0.1816, allocations: 115.8 kB / 360.4 MB, free: 3.945 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00489/0.1865, allocations: 1.341 MB / 361.7 MB, free: 2.598 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01227/0.1988, allocations: 3.782 MB / 365.5 MB, free: 14.8 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001648/0.2005, allocations: 227.6 kB / 365.7 MB, free: 14.58 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.003812/0.2043, allocations: 2.578 MB / 368.3 MB, free: 11.99 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002931/0.2072, allocations: 1.896 MB / 370.2 MB, free: 10.05 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001307/0.2086, allocations: 0.7354 MB / 370.9 MB, free: 9.316 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001538/0.2101, allocations: 1.199 MB / 372.1 MB, free: 8.113 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002191/0.2103, allocations: 84 kB / 372.2 MB, free: 8.031 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001085/0.2114, allocations: 0.5266 MB / 372.8 MB, free: 7.504 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001052/0.2125, allocations: 1.079 MB / 373.8 MB, free: 6.422 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005539/0.2131, allocations: 0.5585 MB / 374.4 MB, free: 5.855 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003172/0.2162, allocations: 3.246 MB / 377.6 MB, free: 2.602 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.392e-06/0.2163, allocations: 0 / 377.6 MB, free: 2.602 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.813e-06/0.2163, allocations: 0 / 377.6 MB, free: 2.602 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.705e-05/0.2163, allocations: 0 / 377.6 MB, free: 2.602 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.00364/0.22, allocations: 2.449 MB / 380.1 MB, free: 92 kB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.089e-05/0.22, allocations: 12.03 kB / 380.1 MB, free: 80 kB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.2105/0.4305, allocations: 0.5204 MB / 380.6 MB, free: 54.11 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007241/0.4378, allocations: 1.818 MB / 382.4 MB, free: 53.95 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002832/0.4407, allocations: 1.134 MB / 383.6 MB, free: 53.49 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001385/0.4408, allocations: 150 kB / 383.7 MB, free: 53.48 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004606/0.4413, allocations: 210.8 kB / 383.9 MB, free: 53.48 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01959/0.4609, allocations: 8.599 MB / 392.5 MB, free: 49.5 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001051/0.4611, allocations: 47.64 kB / 392.6 MB, free: 49.47 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002889/0.4613, allocations: 104.1 kB / 392.7 MB, free: 49.43 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002624/0.464, allocations: 1.657 MB / 394.3 MB, free: 48.79 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0148/0.4788, allocations: 7.167 MB / 401.5 MB, free: 42.44 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02942/0.5083, allocations: 30.18 MB / 431.7 MB, free: 11.55 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01899/0.5273, allocations: 5.099 MB / 436.8 MB, free: 6.277 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001919/0.5293, allocations: 1.236 MB / 438 MB, free: 5.02 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007252/0.5366, allocations: 3.752 MB / 441.8 MB, free: 1.145 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.995e-05/0.5367, allocations: 50.88 kB / 441.8 MB, free: 1.086 MB / 318.1 MB Notification: Performance of pre-optimization done (n=111): time 6.994e-06/0.5368, allocations: 0 / 441.8 MB, free: 1.086 MB / 318.1 MB Notification: Performance of matching and sorting (n=111): time 0.04188/0.5786, allocations: 9.373 MB / 451.2 MB, free: 7.621 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001798/0.5789, allocations: 199.9 kB / 451.4 MB, free: 7.383 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006535/0.5854, allocations: 3.027 MB / 454.4 MB, free: 4.336 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002916/0.5858, allocations: 47.89 kB / 454.5 MB, free: 4.285 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002325/0.5881, allocations: 2.41 MB / 456.9 MB, free: 1.879 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007864/0.5889, allocations: 0.4964 MB / 457.4 MB, free: 1.387 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002304/0.5892, allocations: 108.7 kB / 457.5 MB, free: 1.281 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0003826/0.5896, allocations: 0.5372 MB / 458 MB, free: 0.7383 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002441/0.592, allocations: 1.58 MB / 459.6 MB, free: 15.15 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005643/0.5977, allocations: 5.145 MB / 464.7 MB, free: 8.203 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005013/0.6027, allocations: 2.805 MB / 467.5 MB, free: 5.398 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001345/0.6029, allocations: 36 kB / 467.6 MB, free: 5.363 MB / 350.1 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.0143/0.6172, allocations: 6.401 MB / 474 MB, free: 14.95 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001241/0.6174, allocations: 60 kB / 474 MB, free: 14.89 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002257/0.6176, allocations: 128 kB / 474.2 MB, free: 14.77 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002434/0.6179, allocations: 184 kB / 474.3 MB, free: 14.59 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005071/0.623, allocations: 1.454 MB / 475.8 MB, free: 13.13 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002069/0.6232, allocations: 247 kB / 476 MB, free: 12.89 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004323/0.6275, allocations: 0.7465 MB / 476.8 MB, free: 12.14 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004863/0.628, allocations: 348.5 kB / 477.1 MB, free: 11.8 MB / 366.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.002576/0.6306, allocations: 1.576 MB / 478.7 MB, free: 10.21 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004679/0.6311, allocations: 248.8 kB / 478.9 MB, free: 9.965 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00141/0.6325, allocations: 0.8216 MB / 479.8 MB, free: 9.137 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.713e-05/0.6325, allocations: 12.62 kB / 479.8 MB, free: 9.125 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.059e-05/0.6326, allocations: 4 kB / 479.8 MB, free: 9.121 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.238e-05/0.6326, allocations: 3.984 kB / 479.8 MB, free: 9.117 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005758/0.6384, allocations: 3.393 MB / 483.2 MB, free: 5.684 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.12e-05/0.6384, allocations: 4 kB / 483.2 MB, free: 5.68 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002108/0.6406, allocations: 407.5 kB / 483.6 MB, free: 5.281 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.33e-05/0.6406, allocations: 4 kB / 483.6 MB, free: 5.277 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000101/0.6407, allocations: 42.42 kB / 483.6 MB, free: 5.238 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.415e-06/0.6407, allocations: 12.81 kB / 483.6 MB, free: 5.227 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.775e-06/0.6407, allocations: 384 / 483.6 MB, free: 5.227 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003345/0.6441, allocations: 2.784 MB / 486.4 MB, free: 2.414 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006303/0.6447, allocations: 317.5 kB / 486.7 MB, free: 2.082 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002414/0.645, allocations: 27.98 kB / 486.8 MB, free: 2.055 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008201/0.6458, allocations: 39.92 kB / 486.8 MB, free: 2.016 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000107/0.6459, allocations: 59.94 kB / 486.8 MB, free: 1.957 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.853e-05/0.646, allocations: 41.89 kB / 486.9 MB, free: 1.922 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002845/0.6488, allocations: 1.821 MB / 488.7 MB, free: 100 kB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.6489, allocations: 0 / 488.7 MB, free: 100 kB / 366.1 MB Notification: Performance of remove unused functions: time 0.004573/0.6534, allocations: 0.8313 MB / 489.5 MB, free: 15.27 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.004056/0.6575, allocations: 3.425 MB / 493 MB, free: 11.82 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.006018/0.6635, allocations: 3.574 MB / 496.5 MB, free: 8.277 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.751e-06/0.6636, allocations: 0.9375 kB / 496.5 MB, free: 8.277 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009372/0.6645, allocations: 0.7158 MB / 497.3 MB, free: 7.562 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001798/0.6663, allocations: 253.7 kB / 497.5 MB, free: 7.316 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0434/0.7097, allocations: 24.01 MB / 0.5093 GB, free: 12.27 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003265/0.7131, allocations: 2.387 MB / 0.5116 GB, free: 9.852 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.004262/0.7174, allocations: 1.649 MB / 0.5132 GB, free: 8.195 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001769/0.7191, allocations: 1.218 MB / 0.5144 GB, free: 6.98 MB / 414.1 MB Notification: Performance of SimCode: time 1.232e-06/0.7192, allocations: 0 / 0.5144 GB, free: 6.98 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2777/0.9968, allocations: 50.69 MB / 0.5639 GB, free: 103.1 MB / 414.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001767/0.9971, allocations: 220.1 kB / 0.5641 GB, free: 102.8 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.494/4.491, allocations: 0 / 0.5641 GB, free: 102.8 MB / 414.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