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.001004/0.001004, allocations: 177.7 kB / 8.698 MB, free: 388 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.807/1.807, allocations: 205.3 MB / 214.4 MB, free: 1.73 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001122/0.001122, allocations: 86.36 kB / 262.5 MB, free: 1.68 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 2.018e-05/2.021e-05, allocations: 4 kB / 315.6 MB, free: 22.62 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1107/0.1108, allocations: 47.6 MB / 363.2 MB, free: 6.973 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4351/0.546, allocations: 87.94 MB / 451.1 MB, free: 7.551 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002202/0.5463, allocations: 91.5 kB / 451.2 MB, free: 7.508 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1386/0.6849, allocations: 51.43 MB / 0.4909 GB, free: 9.648 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.735e-06/0.685, allocations: 0 / 0.4909 GB, free: 9.648 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001213/0.6851, allocations: 59.94 kB / 0.4909 GB, free: 9.59 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.008082/0.6932, allocations: 2.461 MB / 0.4933 GB, free: 7.07 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 8.124e-05/0.6933, allocations: 12.03 kB / 0.4933 GB, free: 7.059 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009678/0.703, allocations: 1.958 MB / 0.4952 GB, free: 5.09 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005098/0.7082, allocations: 1.421 MB / 0.4966 GB, free: 3.625 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001833/0.7084, allocations: 96 kB / 0.4967 GB, free: 3.531 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001401/0.7098, allocations: 183.9 kB / 0.4969 GB, free: 3.352 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.008848/0.7187, allocations: 4.22 MB / 0.501 GB, free: 15.12 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01481/0.7335, allocations: 6.918 MB / 0.5078 GB, free: 7.305 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001771/0.7337, allocations: 63.45 kB / 0.5078 GB, free: 7.242 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005348/0.7343, allocations: 28 kB / 0.5079 GB, free: 7.215 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001584/0.7359, allocations: 0.8016 MB / 0.5086 GB, free: 6.41 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3419/1.078, allocations: 35.98 MB / 0.5438 GB, free: 86.46 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00326/1.081, allocations: 1.972 MB / 0.5457 GB, free: 85.72 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001408/1.083, allocations: 0.893 MB / 0.5466 GB, free: 85.67 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003857/1.083, allocations: 353.1 kB / 0.5469 GB, free: 85.39 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.796e-05/1.083, allocations: 49.66 kB / 0.547 GB, free: 85.35 MB / 410.7 MB Notification: Performance of pre-optimization done (n=119): time 4.889e-06/1.083, allocations: 0 / 0.547 GB, free: 85.35 MB / 410.7 MB Notification: Performance of matching and sorting (n=119): time 0.02362/1.107, allocations: 5.274 MB / 0.5521 GB, free: 85.15 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.967e-05/1.107, allocations: 219.2 kB / 0.5523 GB, free: 84.9 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005321/1.112, allocations: 2.396 MB / 0.5547 GB, free: 84.6 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000333/1.113, allocations: 26.67 kB / 0.5547 GB, free: 84.57 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002201/1.115, allocations: 2.461 MB / 0.5571 GB, free: 83.25 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008259/1.116, allocations: 0.5055 MB / 0.5576 GB, free: 82.98 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003466/1.116, allocations: 6.031 kB / 0.5576 GB, free: 82.98 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0004215/1.116, allocations: 0.5778 MB / 0.5581 GB, free: 82.65 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002415/1.119, allocations: 1.413 MB / 0.5595 GB, free: 82.64 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004296/1.123, allocations: 5.059 MB / 0.5645 GB, free: 77.85 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004613/1.128, allocations: 2.675 MB / 0.5671 GB, free: 77.83 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001524/1.128, allocations: 37.72 kB / 0.5671 GB, free: 77.83 MB / 410.7 MB Notification: Performance of matching and sorting (n=732) (initialization): time 0.01245/1.14, allocations: 5.573 MB / 0.5726 GB, free: 77.11 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001593/1.141, allocations: 61.59 kB / 0.5726 GB, free: 77.11 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002726/1.141, allocations: 132 kB / 0.5727 GB, free: 77.11 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002696/1.141, allocations: 191.4 kB / 0.5729 GB, free: 77.11 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0061/1.147, allocations: 1.566 MB / 0.5745 GB, free: 76.99 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002185/1.148, allocations: 261.5 kB / 0.5747 GB, free: 76.93 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005274/1.153, allocations: 0.6418 MB / 0.5753 GB, free: 76.55 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001276/1.154, allocations: 355.1 kB / 0.5757 GB, free: 76.55 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 601 * 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 (708): * Single equations (assignments): 705 * 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.001203/1.155, allocations: 423.7 kB / 0.5761 GB, free: 76.23 MB / 410.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002105/1.158, allocations: 1.368 MB / 0.5774 GB, free: 75.79 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004486/1.158, allocations: 233.8 kB / 0.5776 GB, free: 75.66 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001696/1.16, allocations: 0.7131 MB / 0.5783 GB, free: 75.37 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.625e-05/1.16, allocations: 13.66 kB / 0.5783 GB, free: 75.37 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.876e-05/1.16, allocations: 3.375 kB / 0.5783 GB, free: 75.37 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.311e-05/1.16, allocations: 3.844 kB / 0.5784 GB, free: 75.37 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00621/1.166, allocations: 3.106 MB / 0.5814 GB, free: 74.09 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.244e-05/1.166, allocations: 3.062 kB / 0.5814 GB, free: 74.09 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00251/1.169, allocations: 483.9 kB / 0.5818 GB, free: 74.07 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.478e-05/1.169, allocations: 3.125 kB / 0.5819 GB, free: 74.07 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001314/1.169, allocations: 25.72 kB / 0.5819 GB, free: 74.07 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.183e-06/1.169, allocations: 3.688 kB / 0.5819 GB, free: 74.07 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.095e-06/1.169, allocations: 15.28 kB / 0.5819 GB, free: 74.06 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002636/1.171, allocations: 2.693 MB / 0.5845 GB, free: 72.64 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006499/1.172, allocations: 293.6 kB / 0.5848 GB, free: 72.4 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002613/1.172, allocations: 17.03 kB / 0.5848 GB, free: 72.39 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009181/1.173, allocations: 45.11 kB / 0.5849 GB, free: 72.39 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001127/1.173, allocations: 63.19 kB / 0.5849 GB, free: 72.38 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.928e-05/1.174, allocations: 42.81 kB / 0.585 GB, free: 72.37 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002303/1.176, allocations: 1.54 MB / 0.5865 GB, free: 71.78 MB / 410.7 MB Notification: Performance of sort global known variables: time 2.1e-07/1.176, allocations: 3.969 kB / 0.5865 GB, free: 71.78 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.004409/1.18, allocations: 0.7351 MB / 0.5872 GB, free: 71.66 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 24 (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],body2.r_0[1],body2.r_0[2],body2.r_0[3],body2.v_0[1],body2.v_0[2],body2.v_0[3],body1.r_0[1],body1.r_0[2],body1.r_0[3],body1.v_0[1],body1.v_0[2],body1.v_0[3]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (94): * Single equations (assignments): 91 * 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.003083/1.183, allocations: 3.703 MB / 0.5908 GB, free: 69.36 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.005223/1.189, allocations: 3.204 MB / 0.5939 GB, free: 67.5 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 6.342e-06/1.189, allocations: 3.828 kB / 0.5939 GB, free: 67.5 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008417/1.19, allocations: 0.6456 MB / 0.5946 GB, free: 66.92 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001449/1.191, allocations: 191.2 kB / 0.5948 GB, free: 66.74 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01663/1.208, allocations: 7.12 MB / 0.6017 GB, free: 60.67 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002164/1.21, allocations: 2.455 MB / 0.6041 GB, free: 58.74 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.004098/1.214, allocations: 1.735 MB / 0.6058 GB, free: 57.67 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001883/1.216, allocations: 1.203 MB / 0.607 GB, free: 56.56 MB / 410.7 MB Notification: Performance of SimCode: time 1.633e-06/1.216, allocations: 3.938 kB / 0.607 GB, free: 56.55 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08416/1.3, allocations: 48.4 MB / 0.6542 GB, free: 11.57 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001507/1.3, allocations: 174.2 kB / 0.6544 GB, free: 11.38 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.592/4.893, allocations: 3.938 kB / 0.6544 GB, free: 11.37 MB / 410.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