Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) 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(ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Vessels_TestTankWithTopPorts",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Vessels_TestTankWithTopPorts",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.001717/0.001716, allocations: 188.4 kB / 16.41 MB, free: 5.723 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.175/2.175, allocations: 205.4 MB / 222.5 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.001112/0.001112, allocations: 90.38 kB / 270.9 MB, free: 8.367 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.5213/0.5213, allocations: 43.56 MB / 362.7 MB, free: 51.94 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006488/0.0006488, allocations: 20 kB / 431.5 MB, free: 5.828 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1456/0.1463, allocations: 58.85 MB / 490.3 MB, free: 10.89 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.926/9.073, allocations: 2.765 GB / 3.244 GB, free: 44.57 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003686/9.073, allocations: 90.58 kB / 3.244 GB, free: 44.52 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 3.046/12.12, allocations: 0.5549 GB / 3.799 GB, free: 47.36 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.815e-06/12.12, allocations: 0 / 3.799 GB, free: 47.36 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 8.253e-05/12.12, allocations: 29.42 kB / 3.799 GB, free: 47.35 MB / 0.5105 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 212 * Number of variables: 212 Notification: Performance of Generate backend data structure: time 0.01001/12.13, allocations: 2.125 MB / 3.801 GB, free: 46.24 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.126e-05/12.13, allocations: 13.22 kB / 3.801 GB, free: 46.24 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004538/12.13, allocations: 142.1 kB / 3.801 GB, free: 46.15 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003444/12.13, allocations: 323.4 kB / 3.802 GB, free: 46.09 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002164/12.14, allocations: 0.674 MB / 3.802 GB, free: 45.68 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002458/12.14, allocations: 303.9 kB / 3.803 GB, free: 45.39 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002106/12.14, allocations: 79.39 kB / 3.803 GB, free: 45.37 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005204/12.14, allocations: 1.529 MB / 3.804 GB, free: 44.72 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.232e-05/12.14, allocations: 4.281 kB / 3.804 GB, free: 44.71 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001747/12.14, allocations: 43.61 kB / 3.804 GB, free: 44.68 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.512e-05/12.14, allocations: 39 kB / 3.804 GB, free: 44.68 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005469/12.15, allocations: 1.369 MB / 3.806 GB, free: 44.32 MB / 0.5105 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01313/12.16, allocations: 6.415 MB / 3.812 GB, free: 39.52 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004811/12.17, allocations: 0.9998 MB / 3.813 GB, free: 39.24 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04978/12.21, allocations: 15.55 MB / 3.828 GB, free: 29.16 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.364e-05/12.21, allocations: 46.59 kB / 3.828 GB, free: 29.11 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=59): time 2.946e-06/12.21, allocations: 0 / 3.828 GB, free: 29.11 MB / 0.5105 GB Notification: Performance of matching and sorting (n=64): time 0.01443/12.23, allocations: 3.026 MB / 3.831 GB, free: 27.9 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.676e-05/12.23, allocations: 162.1 kB / 3.831 GB, free: 27.71 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001398/12.23, allocations: 0.7213 MB / 3.832 GB, free: 27.42 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.000263/12.23, allocations: 52.17 kB / 3.832 GB, free: 27.38 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003559/12.23, allocations: 445.8 kB / 3.832 GB, free: 26.99 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002939/12.23, allocations: 214.9 kB / 3.833 GB, free: 26.84 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001037/12.23, allocations: 15.88 kB / 3.833 GB, free: 26.82 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001006/12.23, allocations: 346 kB / 3.833 GB, free: 26.5 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001721/12.23, allocations: 446.7 kB / 3.833 GB, free: 26.36 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001923/12.24, allocations: 0.6687 MB / 3.834 GB, free: 25.94 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001763/12.24, allocations: 473.3 kB / 3.834 GB, free: 25.78 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.314e-06/12.24, allocations: 0 / 3.834 GB, free: 25.78 MB / 0.5105 GB Notification: Performance of matching and sorting (n=108) (initialization): time 0.004397/12.24, allocations: 1.184 MB / 3.836 GB, free: 25.34 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 3.447e-05/12.24, allocations: 7.812 kB / 3.836 GB, free: 25.34 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.962e-05/12.24, allocations: 7.812 kB / 3.836 GB, free: 25.34 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005563/12.24, allocations: 90.28 kB / 3.836 GB, free: 25.32 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007264/12.25, allocations: 404.8 kB / 3.836 GB, free: 25.29 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00901/12.26, allocations: 6.472 MB / 3.842 GB, free: 19.09 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00208/12.26, allocations: 141.7 kB / 3.843 GB, free: 19.06 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000167/12.26, allocations: 43.97 kB / 3.843 GB, free: 19.05 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 28 * Number of states: 0 () * Number of discrete variables: 21 (tank.heatTransfer.states[1].phase,$PRE.tank.ports_m_flow_out[1],tank.ports_m_flow_out[1],$PRE.tank.ports_m_flow_out[2],tank.ports_m_flow_out[2],$PRE.tank.ports_m_flow_out[3],tank.ports_m_flow_out[3],$PRE.tank.ports_m_flow_out[4],tank.ports_m_flow_out[4],$PRE.tank.aboveLevel[1],tank.aboveLevel[1],$PRE.tank.aboveLevel[2],tank.aboveLevel[2],$PRE.tank.aboveLevel[3],tank.aboveLevel[3],$PRE.tank.aboveLevel[4],tank.aboveLevel[4],massFlowRate[1].medium.phase,massFlowRate[2].medium.phase,Boundary_fixed.medium.phase,Boundary_fixed.state.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (103): * Single equations (assignments): 98 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 4 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 4 {1,1,1,1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 5} Notification: Performance of prepare postOptimizeDAE: time 0.0008518/12.26, allocations: 334.5 kB / 3.843 GB, free: 18.84 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003123/12.26, allocations: 87.78 kB / 3.843 GB, free: 18.8 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005215/12.27, allocations: 2.259 MB / 3.845 GB, free: 17.79 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.927e-05/12.27, allocations: 22.55 kB / 3.845 GB, free: 17.78 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.188e-06/12.27, allocations: 0 / 3.845 GB, free: 17.78 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.438e-05/12.27, allocations: 7.203 kB / 3.845 GB, free: 17.78 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008772/12.28, allocations: 3.499 MB / 3.849 GB, free: 16.25 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.085e-05/12.28, allocations: 5.984 kB / 3.849 GB, free: 16.25 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006923/12.28, allocations: 361.9 kB / 3.849 GB, free: 16.24 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000572/12.28, allocations: 105.2 kB / 3.849 GB, free: 16.2 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001821/12.28, allocations: 19.17 kB / 3.849 GB, free: 16.2 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008709/12.29, allocations: 6.446 MB / 3.855 GB, free: 10.01 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.759e-06/12.29, allocations: 0 / 3.855 GB, free: 10.01 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006181/12.3, allocations: 2.256 MB / 3.858 GB, free: 24.66 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008323/12.3, allocations: 351.8 kB / 3.858 GB, free: 24.35 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003638/12.3, allocations: 35.41 kB / 3.858 GB, free: 24.32 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001612/12.3, allocations: 108.8 kB / 3.858 GB, free: 24.24 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004283/12.3, allocations: 124.4 kB / 3.858 GB, free: 24.18 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.701e-05/12.3, allocations: 34.45 kB / 3.858 GB, free: 24.15 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.001727/12.3, allocations: 0.8795 MB / 3.859 GB, free: 23.4 MB / 0.5261 GB Notification: Performance of sort global known variables: time 6.12e-07/12.3, allocations: 0 / 3.859 GB, free: 23.4 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.007002/12.31, allocations: 1.297 MB / 3.86 GB, free: 22.14 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 2 (tank.medium.h,tank.level) * Number of discrete variables: 20 ($cse3.phase,$cse3.region,$cse7.phase,$cse7.region,$cse11.phase,$cse11.region,$cse12.phase,$cse12.region,tank.heatTransfer.states[1].phase,tank.ports_m_flow_out[1],tank.ports_m_flow_out[2],tank.ports_m_flow_out[3],tank.ports_m_flow_out[4],tank.aboveLevel[1],tank.aboveLevel[2],tank.aboveLevel[3],tank.aboveLevel[4],massFlowRate[1].medium.phase,massFlowRate[2].medium.phase,Boundary_fixed.medium.phase) * Number of discrete states: 8 (tank.aboveLevel[1],tank.ports_m_flow_out[1],tank.aboveLevel[2],tank.ports_m_flow_out[2],tank.aboveLevel[3],tank.ports_m_flow_out[3],tank.aboveLevel[4],tank.ports_m_flow_out[4]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (63): * Single equations (assignments): 54 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 4 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 4 {1,1,1,1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.01746/12.33, allocations: 4.927 MB / 3.865 GB, free: 17.9 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.008454/12.34, allocations: 1.311 MB / 3.866 GB, free: 16.82 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.05e-05/12.34, allocations: 4.25 kB / 3.866 GB, free: 16.82 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.006717/12.34, allocations: 0.9058 MB / 3.867 GB, free: 16.09 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004804/12.35, allocations: 0.5314 MB / 3.868 GB, free: 15.71 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02516/12.37, allocations: 11.83 MB / 3.879 GB, free: 4.547 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001085/12.38, allocations: 1.234 MB / 3.881 GB, free: 3.477 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001201/12.38, allocations: 494 kB / 3.881 GB, free: 3.039 MB / 0.5261 GB Notification: Performance of SimCode: time 1.633e-06/12.38, allocations: 0 / 3.881 GB, free: 3.039 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.855/17.23, allocations: 69.69 MB / 3.949 GB, free: 58.39 MB / 0.5261 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Vessels_TestTankWithTopPorts_fmu --startTime=0 --stopTime=5000 --timeout=50 --tolerance=1e-05 ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Vessels_TestTankWithTopPorts.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts_res.mat does not exist to compare? outputFormat=mat