Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.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.PointGravity,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravity",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravity",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.001462/0.001462, allocations: 177.7 kB / 8.697 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.79/1.79, allocations: 205.3 MB / 214.4 MB, free: 1.664 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.0008793/0.0008795, allocations: 91.95 kB / 262.4 MB, free: 1.609 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 2.087e-05/2.07e-05, allocations: 7.984 kB / 315.6 MB, free: 22.61 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1104/0.1104, allocations: 47.59 MB / 363.2 MB, free: 6.965 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3778/0.4883, allocations: 86.74 MB / 449.9 MB, free: 8.785 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000232/0.4886, allocations: 83.89 kB / 450 MB, free: 8.742 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1613/0.6499, allocations: 59.44 MB / 0.4975 GB, free: 2.863 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.442e-06/0.65, allocations: 0 / 0.4975 GB, free: 2.863 MB / 378.7 MB Notification: Performance of Transformations before backend: time 9.058e-05/0.6501, allocations: 44 kB / 0.4975 GB, free: 2.82 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: 911 * Number of variables: 911 Notification: Performance of Generate backend data structure: time 0.01575/0.6658, allocations: 3.464 MB / 0.5009 GB, free: 15.29 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.268e-05/0.6659, allocations: 12.03 kB / 0.5009 GB, free: 15.28 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01229/0.6782, allocations: 2.344 MB / 0.5032 GB, free: 12.93 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01314/0.6914, allocations: 4.867 MB / 0.508 GB, free: 8.012 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002022/0.6916, allocations: 72 kB / 0.508 GB, free: 7.941 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001463/0.6931, allocations: 143.8 kB / 0.5082 GB, free: 7.801 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.009089/0.7022, allocations: 5.536 MB / 0.5136 GB, free: 2.258 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01171/0.7139, allocations: 7.816 MB / 0.5212 GB, free: 9.59 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001068/0.7141, allocations: 55.45 kB / 0.5213 GB, free: 9.535 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003373/0.7144, allocations: 28 kB / 0.5213 GB, free: 9.508 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001093/0.7155, allocations: 0.7224 MB / 0.522 GB, free: 8.781 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.286/1.002, allocations: 36.67 MB / 0.5578 GB, free: 83.93 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004932/1.007, allocations: 3.142 MB / 0.5609 GB, free: 83.25 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003586/1.01, allocations: 2.169 MB / 0.563 GB, free: 83.21 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001121/1.01, allocations: 18.34 kB / 0.563 GB, free: 83.21 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.712e-05/1.01, allocations: 47.16 kB / 0.5631 GB, free: 83.17 MB / 410.7 MB Notification: Performance of pre-optimization done (n=122): time 4.188e-06/1.01, allocations: 1.031 kB / 0.5631 GB, free: 83.17 MB / 410.7 MB Notification: Performance of matching and sorting (n=136): time 0.03561/1.046, allocations: 13.58 MB / 0.5763 GB, free: 80.85 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.927e-05/1.046, allocations: 170.2 kB / 0.5765 GB, free: 80.66 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003529/1.05, allocations: 2.309 MB / 0.5787 GB, free: 79.91 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006175/1.05, allocations: 25.7 kB / 0.5788 GB, free: 79.88 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001136/1.051, allocations: 2.127 MB / 0.5808 GB, free: 78.45 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006612/1.052, allocations: 0.5568 MB / 0.5814 GB, free: 78.04 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002241/1.052, allocations: 0 / 0.5814 GB, free: 78.04 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0002334/1.053, allocations: 0.5178 MB / 0.5819 GB, free: 77.65 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002517/1.055, allocations: 2.241 MB / 0.5841 GB, free: 76.9 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003705/1.059, allocations: 5.237 MB / 0.5892 GB, free: 72.1 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00373/1.063, allocations: 3.329 MB / 0.5924 GB, free: 71.12 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.752e-05/1.063, allocations: 29.19 kB / 0.5925 GB, free: 71.12 MB / 410.7 MB Notification: Performance of matching and sorting (n=651) (initialization): time 0.01792/1.081, allocations: 8.724 MB / 0.601 GB, free: 68.65 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.784e-05/1.081, allocations: 51.53 kB / 0.601 GB, free: 68.65 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01059/1.091, allocations: 4.592 MB / 0.6055 GB, free: 67.55 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008924/1.1, allocations: 2.327 MB / 0.6078 GB, free: 67.15 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004445/1.105, allocations: 1.205 MB / 0.609 GB, free: 66.13 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006251/1.111, allocations: 7.841 MB / 0.6166 GB, free: 58.65 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005751/1.117, allocations: 484.2 kB / 0.6171 GB, free: 58.34 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009438/1.118, allocations: 313.5 kB / 0.6174 GB, free: 58.05 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 490 * Number of states: 0 () * Number of discrete variables: 18 (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 (599): * Single equations (assignments): 584 * Array equations: 7 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 6 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 4 {(3,100.0%),(4,100.0%),(3,100.0%),(4,100.0%)} * Non-linear Jacobian: 2 {4,4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0008738/1.119, allocations: 375.9 kB / 0.6177 GB, free: 57.68 MB / 410.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01119/1.13, allocations: 5.19 MB / 0.6228 GB, free: 53.73 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008602/1.131, allocations: 240.6 kB / 0.623 GB, free: 53.5 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001426/1.132, allocations: 385.1 kB / 0.6234 GB, free: 53.15 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01022/1.142, allocations: 4.511 MB / 0.6278 GB, free: 49.84 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.361e-05/1.142, allocations: 7.625 kB / 0.6278 GB, free: 49.83 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.515e-05/1.143, allocations: 6.75 kB / 0.6278 GB, free: 49.83 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009954/1.152, allocations: 5.007 MB / 0.6327 GB, free: 45.01 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-05/1.153, allocations: 0 / 0.6327 GB, free: 45.01 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001587/1.154, allocations: 283.5 kB / 0.633 GB, free: 44.73 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008456/1.163, allocations: 2.339 MB / 0.6353 GB, free: 42.37 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005807/1.163, allocations: 40.56 kB / 0.6353 GB, free: 42.33 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007866/1.171, allocations: 8.606 MB / 0.6437 GB, free: 33.28 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.00148/1.173, allocations: 2.773 MB / 0.6464 GB, free: 30.26 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01539/1.188, allocations: 7.987 MB / 0.6542 GB, free: 22.2 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009094/1.189, allocations: 309.9 kB / 0.6545 GB, free: 21.88 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001008/1.19, allocations: 23.88 kB / 0.6545 GB, free: 21.85 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002729/1.193, allocations: 247.5 kB / 0.6548 GB, free: 21.61 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005356/1.193, allocations: 108.2 kB / 0.6549 GB, free: 21.5 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002672/1.194, allocations: 43.95 kB / 0.6549 GB, free: 21.46 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.00313/1.197, allocations: 1.538 MB / 0.6564 GB, free: 19.91 MB / 410.7 MB Notification: Performance of sort global known variables: time 4.01e-07/1.197, allocations: 0 / 0.6564 GB, free: 19.91 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.005671/1.202, allocations: 0.868 MB / 0.6573 GB, free: 19.05 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 24 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],body2.frame_a.r_0[1],body2.frame_a.r_0[2],body2.frame_a.r_0[3],body2.v_0[1],body2.v_0[2],body2.v_0[3],body2.w_a[1],body2.w_a[2],body2.w_a[3],$STATESET0.x[3],$STATESET0.x[2],$STATESET0.x[1],body1.frame_a.r_0[1],body1.frame_a.r_0[2],body1.frame_a.r_0[3],body1.v_0[1],body1.v_0[2],body1.v_0[3],body1.w_a[1],body1.w_a[2],body1.w_a[3]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (92): * Single equations (assignments): 81 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 6 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 4 {(3,100.0%),(4,100.0%),(3,100.0%),(4,100.0%)} * Non-linear Jacobian: 2 {4,4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01529/1.218, allocations: 8.885 MB / 0.6659 GB, free: 10.1 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0117/1.229, allocations: 6.471 MB / 0.6723 GB, free: 3.516 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 7.014e-06/1.23, allocations: 0 / 0.6723 GB, free: 3.516 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005617/1.235, allocations: 3.336 MB / 0.6755 GB, free: 48 kB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002184/1.237, allocations: 241.7 kB / 0.6758 GB, free: 15.82 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02374/1.261, allocations: 8.18 MB / 0.6837 GB, free: 7.672 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003566/1.265, allocations: 2.353 MB / 0.686 GB, free: 5.301 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.005281/1.27, allocations: 1.67 MB / 0.6877 GB, free: 3.629 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002371/1.272, allocations: 1.163 MB / 0.6888 GB, free: 2.465 MB / 426.7 MB Notification: Performance of SimCode: time 7.82e-07/1.272, allocations: 0 / 0.6888 GB, free: 2.465 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3532/1.626, allocations: 62.37 MB / 0.7497 GB, free: 93.78 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001497/1.626, allocations: 159.5 kB / 0.7499 GB, free: 93.59 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.929/5.555, allocations: 0 / 0.7499 GB, free: 93.59 MB / 426.7 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravity_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravity.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity_res.mat does not exist to compare? outputFormat=mat