Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_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_cpp_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.002285/0.002285, allocations: 179.4 kB / 8.364 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.217/2.217, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001151/0.00115, allocations: 91.5 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.66e-05/2.661e-05, allocations: 4 kB / 314.9 MB, free: 9.066 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3442/0.3443, allocations: 47.56 MB / 362.4 MB, free: 45.73 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1403/0.4846, allocations: 86.5 MB / 448.9 MB, free: 15.7 MB / 347.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000315/0.485, allocations: 87.94 kB / 449 MB, free: 15.62 MB / 347.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.2752/0.7602, allocations: 59.44 MB / 0.4965 GB, free: 3.824 MB / 395.1 MB Notification: Performance of FrontEnd: time 2.264e-06/0.7603, allocations: 3.938 kB / 0.4965 GB, free: 3.82 MB / 395.1 MB Notification: Performance of Transformations before backend: time 0.0001538/0.7605, allocations: 44 kB / 0.4966 GB, free: 3.777 MB / 395.1 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.02731/0.7878, allocations: 3.461 MB / 0.5 GB, free: 264 kB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.654e-05/0.7879, allocations: 8.031 kB / 0.5 GB, free: 256 kB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2888/1.077, allocations: 2.344 MB / 0.5023 GB, free: 99.2 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02032/1.097, allocations: 4.859 MB / 0.507 GB, free: 98.93 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002214/1.097, allocations: 73.34 kB / 0.5071 GB, free: 98.93 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001566/1.099, allocations: 140.1 kB / 0.5072 GB, free: 98.93 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01287/1.112, allocations: 5.537 MB / 0.5126 GB, free: 98.91 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01592/1.128, allocations: 7.818 MB / 0.5203 GB, free: 96.7 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001843/1.128, allocations: 52.97 kB / 0.5203 GB, free: 96.7 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008226/1.129, allocations: 27.95 kB / 0.5203 GB, free: 96.7 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001642/1.13, allocations: 0.7269 MB / 0.521 GB, free: 96.7 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05095/1.181, allocations: 36.68 MB / 0.5569 GB, free: 69.21 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006091/1.188, allocations: 3.154 MB / 0.5599 GB, free: 67.57 MB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004423/1.192, allocations: 2.165 MB / 0.5621 GB, free: 66.7 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001611/1.192, allocations: 14.36 kB / 0.5621 GB, free: 66.7 MB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.59e-05/1.192, allocations: 54.86 kB / 0.5621 GB, free: 66.65 MB / 395.1 MB Notification: Performance of pre-optimization done (n=122): time 5.621e-06/1.192, allocations: 0 / 0.5621 GB, free: 66.65 MB / 395.1 MB Notification: Performance of matching and sorting (n=136): time 0.05472/1.247, allocations: 13.56 MB / 0.5754 GB, free: 59.11 MB / 395.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.049e-05/1.247, allocations: 162.8 kB / 0.5755 GB, free: 58.92 MB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004834/1.252, allocations: 2.324 MB / 0.5778 GB, free: 56.87 MB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005875/1.253, allocations: 29.7 kB / 0.5778 GB, free: 56.83 MB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001754/1.254, allocations: 2.122 MB / 0.5799 GB, free: 54.87 MB / 395.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001167/1.256, allocations: 0.5516 MB / 0.5804 GB, free: 54.38 MB / 395.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007379/1.256, allocations: 0 / 0.5804 GB, free: 54.38 MB / 395.1 MB Notification: Performance of setup shared object (initialization): time 0.000371/1.257, allocations: 0.526 MB / 0.5809 GB, free: 53.9 MB / 395.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005224/1.262, allocations: 2.24 MB / 0.5831 GB, free: 51.94 MB / 395.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007157/1.269, allocations: 5.231 MB / 0.5882 GB, free: 45.56 MB / 395.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00759/1.277, allocations: 3.339 MB / 0.5915 GB, free: 42.74 MB / 395.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001274/1.277, allocations: 36 kB / 0.5915 GB, free: 42.71 MB / 395.1 MB Notification: Performance of matching and sorting (n=651) (initialization): time 0.03171/1.309, allocations: 8.659 MB / 0.6 GB, free: 34.26 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.651e-05/1.309, allocations: 52 kB / 0.6 GB, free: 34.21 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01978/1.329, allocations: 4.606 MB / 0.6045 GB, free: 29.57 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01633/1.345, allocations: 2.324 MB / 0.6068 GB, free: 27.22 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007565/1.353, allocations: 1.205 MB / 0.608 GB, free: 26.02 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01102/1.364, allocations: 7.828 MB / 0.6156 GB, free: 17.75 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00832/1.372, allocations: 490.9 kB / 0.6161 GB, free: 17.27 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001475/1.374, allocations: 316 kB / 0.6164 GB, free: 16.96 MB / 395.1 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.001481/1.375, allocations: 375.4 kB / 0.6167 GB, free: 16.59 MB / 395.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.02138/1.397, allocations: 5.19 MB / 0.6218 GB, free: 11.36 MB / 395.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001168/1.398, allocations: 236.9 kB / 0.622 GB, free: 11.13 MB / 395.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001481/1.399, allocations: 389.8 kB / 0.6224 GB, free: 10.74 MB / 395.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01973/1.419, allocations: 4.515 MB / 0.6268 GB, free: 6.188 MB / 395.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.539e-05/1.419, allocations: 5.312 kB / 0.6268 GB, free: 6.184 MB / 395.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.487e-05/1.419, allocations: 3.984 kB / 0.6268 GB, free: 6.18 MB / 395.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01426/1.433, allocations: 5.012 MB / 0.6317 GB, free: 1.137 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.944e-05/1.433, allocations: 0 / 0.6317 GB, free: 1.137 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003128/1.437, allocations: 280.4 kB / 0.632 GB, free: 0.8633 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0164/1.453, allocations: 2.335 MB / 0.6343 GB, free: 14.5 MB / 411.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006398/1.454, allocations: 35.91 kB / 0.6343 GB, free: 14.47 MB / 411.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01566/1.469, allocations: 8.609 MB / 0.6427 GB, free: 5.418 MB / 411.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.002711/1.472, allocations: 2.772 MB / 0.6454 GB, free: 2.402 MB / 411.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02905/1.501, allocations: 7.99 MB / 0.6532 GB, free: 10.33 MB / 427.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001079/1.502, allocations: 313.8 kB / 0.6535 GB, free: 10 MB / 427.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001219/1.504, allocations: 19.92 kB / 0.6535 GB, free: 9.98 MB / 427.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004616/1.508, allocations: 255.5 kB / 0.6538 GB, free: 9.73 MB / 427.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000933/1.509, allocations: 103.8 kB / 0.6539 GB, free: 9.629 MB / 427.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003373/1.51, allocations: 43.97 kB / 0.6539 GB, free: 9.586 MB / 427.1 MB Notification: Performance of sorting global known variables: time 0.004262/1.514, allocations: 1.534 MB / 0.6554 GB, free: 8.043 MB / 427.1 MB Notification: Performance of sort global known variables: time 6.81e-07/1.514, allocations: 0 / 0.6554 GB, free: 8.043 MB / 427.1 MB Notification: Performance of remove unused functions: time 0.007268/1.521, allocations: 0.8786 MB / 0.6563 GB, free: 7.172 MB / 427.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 24 ($STATESET8274403721.x[3],$STATESET8274403721.x[2],$STATESET8274403721.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],$STATESET8274403720.x[3],$STATESET8274403720.x[2],$STATESET8274403720.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.3683/1.89, allocations: 8.86 MB / 0.6649 GB, free: 116.4 MB / 427.1 MB Notification: Performance of simCode: created initialization part: time 0.02708/1.917, allocations: 6.486 MB / 0.6713 GB, free: 115.5 MB / 427.1 MB Notification: Performance of simCode: created event and clocks part: time 1.155e-05/1.917, allocations: 3.531 kB / 0.6713 GB, free: 115.5 MB / 427.1 MB Notification: Performance of simCode: created simulation system equations: time 0.01332/1.93, allocations: 3.343 MB / 0.6745 GB, free: 114.7 MB / 427.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003808/1.934, allocations: 233.7 kB / 0.6748 GB, free: 114.7 MB / 427.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04837/1.983, allocations: 8.482 MB / 0.683 GB, free: 113 MB / 427.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00638/1.989, allocations: 2.354 MB / 0.6853 GB, free: 112.3 MB / 427.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005904/1.995, allocations: 1.203 MB / 0.6865 GB, free: 112.3 MB / 427.1 MB Notification: Performance of SimCode: time 2.544e-06/1.995, allocations: 3.172 kB / 0.6865 GB, free: 112.3 MB / 427.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.915/6.91, allocations: 147.7 MB / 0.8307 GB, free: 116.1 MB / 427.1 MB (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravity_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravity.fmu > Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity_res.mat does not exist to compare? outputFormat=mat