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.0009355/0.0009354, allocations: 180.9 kB / 17.01 MB, free: 5.125 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.185/1.185, allocations: 205.4 MB / 223.1 MB, free: 9.117 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.0009287/0.0009285, allocations: 88.16 kB / 271.5 MB, free: 8.367 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002597/0.0002597, allocations: 8 kB / 328.3 MB, free: 15.43 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2045/0.2048, allocations: 47.57 MB / 375.9 MB, free: 45.63 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.0933/0.2982, allocations: 88.46 MB / 464.4 MB, free: 8.176 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002522/0.2985, allocations: 87.95 kB / 464.5 MB, free: 8.09 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2649/0.5634, allocations: 52.63 MB / 0.505 GB, free: 93.68 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.654e-06/0.5635, allocations: 0 / 0.505 GB, free: 93.68 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.916e-05/0.5635, allocations: 51.88 kB / 0.505 GB, free: 93.68 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.002919/0.5664, allocations: 2.537 MB / 0.5075 GB, free: 92.36 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.066e-05/0.5665, allocations: 9.594 kB / 0.5075 GB, free: 92.36 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005509/0.5671, allocations: 0.5694 MB / 0.5081 GB, free: 92.29 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006605/0.5737, allocations: 1.963 MB / 0.51 GB, free: 92.1 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002557/0.5762, allocations: 1.419 MB / 0.5114 GB, free: 91.71 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001089/0.5764, allocations: 230.4 kB / 0.5116 GB, free: 91.7 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003935/0.5768, allocations: 307.5 kB / 0.5119 GB, free: 91.7 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0145/0.5913, allocations: 9.016 MB / 0.5207 GB, free: 88.55 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.949e-05/0.5914, allocations: 58.97 kB / 0.5207 GB, free: 88.52 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003249/0.5917, allocations: 154.3 kB / 0.5209 GB, free: 88.44 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009624/0.5927, allocations: 0.8056 MB / 0.5217 GB, free: 88.3 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01489/0.6076, allocations: 7.25 MB / 0.5287 GB, free: 85.19 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02984/0.6375, allocations: 38.38 MB / 0.5662 GB, free: 45.74 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01791/0.6554, allocations: 5.372 MB / 0.5715 GB, free: 40.19 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004486/0.6599, allocations: 3.707 MB / 0.5751 GB, free: 36.36 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.214e-05/0.66, allocations: 51.02 kB / 0.5751 GB, free: 36.3 MB / 378.7 MB Notification: Performance of pre-optimization done (n=111): time 3.897e-06/0.66, allocations: 0 / 0.5751 GB, free: 36.3 MB / 378.7 MB Notification: Performance of matching and sorting (n=111): time 0.03679/0.6968, allocations: 10.01 MB / 0.5849 GB, free: 26.14 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.288e-05/0.6969, allocations: 199.9 kB / 0.5851 GB, free: 25.9 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00374/0.7007, allocations: 2.709 MB / 0.5878 GB, free: 23.18 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001703/0.7009, allocations: 37.7 kB / 0.5878 GB, free: 23.14 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009977/0.7019, allocations: 2.428 MB / 0.5902 GB, free: 20.71 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004131/0.7023, allocations: 0.492 MB / 0.5906 GB, free: 20.23 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001639/0.7025, allocations: 108 kB / 0.5907 GB, free: 20.12 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002333/0.7027, allocations: 0.5372 MB / 0.5913 GB, free: 19.58 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001598/0.7043, allocations: 1.498 MB / 0.5927 GB, free: 18.07 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002631/0.707, allocations: 5.032 MB / 0.5976 GB, free: 11.24 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002577/0.7096, allocations: 2.712 MB / 0.6003 GB, free: 8.527 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.734e-05/0.7096, allocations: 40 kB / 0.6003 GB, free: 8.488 MB / 378.7 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.007111/0.7167, allocations: 6.229 MB / 0.6064 GB, free: 2.254 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.177e-05/0.7168, allocations: 60 kB / 0.6065 GB, free: 2.195 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.224e-05/0.7169, allocations: 128 kB / 0.6066 GB, free: 2.07 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001246/0.717, allocations: 184 kB / 0.6068 GB, free: 1.891 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004284/0.7213, allocations: 1.521 MB / 0.6083 GB, free: 376 kB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001101/0.7215, allocations: 243.1 kB / 0.6085 GB, free: 132 kB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003446/0.7249, allocations: 0.7579 MB / 0.6092 GB, free: 15.36 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000488/0.7254, allocations: 344 kB / 0.6096 GB, free: 15.02 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.002539/0.728, allocations: 1.582 MB / 0.6111 GB, free: 13.44 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004791/0.7285, allocations: 248.8 kB / 0.6113 GB, free: 13.19 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001433/0.7299, allocations: 0.743 MB / 0.6121 GB, free: 12.44 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.621e-05/0.73, allocations: 12 kB / 0.6121 GB, free: 12.43 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.083e-05/0.73, allocations: 4 kB / 0.6121 GB, free: 12.43 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.345e-05/0.73, allocations: 3.984 kB / 0.6121 GB, free: 12.42 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005781/0.7358, allocations: 3.241 MB / 0.6152 GB, free: 9.141 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.943e-06/0.7358, allocations: 3.844 kB / 0.6153 GB, free: 9.141 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002516/0.7384, allocations: 475.4 kB / 0.6157 GB, free: 8.676 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.365e-05/0.7384, allocations: 4 kB / 0.6157 GB, free: 8.672 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001124/0.7385, allocations: 39.97 kB / 0.6157 GB, free: 8.633 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.925e-06/0.7385, allocations: 7.938 kB / 0.6158 GB, free: 8.625 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.731e-06/0.7385, allocations: 7.938 kB / 0.6158 GB, free: 8.617 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002912/0.7414, allocations: 2.661 MB / 0.6184 GB, free: 5.883 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006719/0.7421, allocations: 313.6 kB / 0.6187 GB, free: 5.555 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002379/0.7424, allocations: 27.98 kB / 0.6187 GB, free: 5.527 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008851/0.7433, allocations: 51.94 kB / 0.6187 GB, free: 5.477 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001113/0.7434, allocations: 51.88 kB / 0.6188 GB, free: 5.426 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.74e-05/0.7435, allocations: 32.36 kB / 0.6188 GB, free: 5.395 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.002662/0.7461, allocations: 1.837 MB / 0.6206 GB, free: 3.555 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.7462, allocations: 0 / 0.6206 GB, free: 3.555 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.003516/0.7497, allocations: 0.8454 MB / 0.6214 GB, free: 2.707 MB / 394.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.003467/0.7532, allocations: 3.609 MB / 0.625 GB, free: 15.06 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.005226/0.7584, allocations: 3.405 MB / 0.6283 GB, free: 11.68 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.559e-06/0.7584, allocations: 0 / 0.6283 GB, free: 11.68 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008089/0.7592, allocations: 0.6327 MB / 0.6289 GB, free: 11.05 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001218/0.7605, allocations: 240.1 kB / 0.6291 GB, free: 10.82 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2058/0.9663, allocations: 111 MB / 0.7375 GB, free: 47.68 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001767/0.9681, allocations: 2.447 MB / 0.7399 GB, free: 46.93 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.003453/0.9715, allocations: 1.65 MB / 0.7415 GB, free: 46.86 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001118/0.9727, allocations: 1.21 MB / 0.7427 GB, free: 46.86 MB / 426.7 MB Notification: Performance of SimCode: time 7.92e-07/0.9727, allocations: 0 / 0.7427 GB, free: 46.86 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0653/1.038, allocations: 50.9 MB / 0.7924 GB, free: 13.69 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001465/1.038, allocations: 219.8 kB / 0.7926 GB, free: 13.44 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.139/4.177, allocations: 0 / 0.7926 GB, free: 13.44 MB / 426.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