Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_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_ModelicaTest_Fluid_TestComponents_Vessels_TestTankWithTopPorts",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts,fileNamePrefix="ModelicaTest_3_2_3_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.001797/0.001797, allocations: 177.6 kB / 8.003 MB, free: 1.062 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.171/2.171, allocations: 205.3 MB / 213.7 MB, free: 1.668 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.001001/0.001001, allocations: 86.62 kB / 261.7 MB, free: 1.613 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.2763/0.2763, allocations: 43.5 MB / 353.2 MB, free: 272 kB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 1.873e-05/1.876e-05, allocations: 0 / 418.4 MB, free: 28.45 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1566/0.1567, allocations: 58.85 MB / 477.2 MB, free: 1.547 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.233/8.389, allocations: 2.765 GB / 3.231 GB, free: 157.4 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002819/8.39, allocations: 89.61 kB / 3.231 GB, free: 157.4 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 1.88/10.27, allocations: 0.5479 GB / 3.779 GB, free: 10.76 MB / 0.4948 GB Notification: Performance of FrontEnd: time 4.319e-06/10.27, allocations: 0 / 3.779 GB, free: 10.76 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 6.612e-05/10.27, allocations: 30.78 kB / 3.779 GB, free: 10.73 MB / 0.4948 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.007326/10.28, allocations: 2.037 MB / 3.781 GB, free: 8.676 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.609e-05/10.28, allocations: 11.97 kB / 3.781 GB, free: 8.664 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002222/10.28, allocations: 318.5 kB / 3.781 GB, free: 8.352 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001136/10.28, allocations: 0.6771 MB / 3.782 GB, free: 7.645 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001544/10.28, allocations: 271.6 kB / 3.782 GB, free: 7.332 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001127/10.28, allocations: 49.2 kB / 3.782 GB, free: 7.285 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001335/10.28, allocations: 0.9799 MB / 3.783 GB, free: 6.305 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001445/10.28, allocations: 1.163 MB / 3.784 GB, free: 5.051 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.529e-05/10.28, allocations: 4.281 kB / 3.784 GB, free: 5.047 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.222e-05/10.28, allocations: 7.953 kB / 3.784 GB, free: 5.039 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.14e-05/10.28, allocations: 38 kB / 3.784 GB, free: 5 MB / 0.4948 GB Warning: The model contains alias variables with conflicting start and/or 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.4914/10.78, allocations: 36.32 MB / 3.82 GB, free: 51.46 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001481/10.78, allocations: 0.5133 MB / 3.82 GB, free: 51.43 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007651/10.78, allocations: 337.8 kB / 3.82 GB, free: 51.42 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003429/10.78, allocations: 400.8 kB / 3.821 GB, free: 51.05 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.134e-05/10.78, allocations: 40 kB / 3.821 GB, free: 51.01 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=54): time 3.116e-06/10.78, allocations: 0 / 3.821 GB, free: 51.01 MB / 0.5105 GB Notification: Performance of matching and sorting (n=59): time 0.005217/10.78, allocations: 1.908 MB / 3.823 GB, free: 50.63 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.249e-05/10.78, allocations: 138 kB / 3.823 GB, free: 50.48 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007321/10.78, allocations: 0.4963 MB / 3.823 GB, free: 50.36 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 7.689e-05/10.78, allocations: 36 kB / 3.823 GB, free: 50.33 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003824/10.78, allocations: 465.7 kB / 3.824 GB, free: 50.12 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001859/10.78, allocations: 192.7 kB / 3.824 GB, free: 50.03 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.608e-05/10.78, allocations: 2.531 kB / 3.824 GB, free: 50.03 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001492/10.78, allocations: 380.2 kB / 3.824 GB, free: 49.72 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004667/10.79, allocations: 358.4 kB / 3.825 GB, free: 49.72 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008503/10.79, allocations: 0.5715 MB / 3.825 GB, free: 49.47 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008901/10.79, allocations: 387.5 kB / 3.826 GB, free: 49.46 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.58e-06/10.79, allocations: 3.844 kB / 3.826 GB, free: 49.46 MB / 0.5105 GB Notification: Performance of matching and sorting (n=108) (initialization): time 0.002171/10.79, allocations: 1.004 MB / 3.827 GB, free: 49.36 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 3.424e-05/10.79, allocations: 11.61 kB / 3.827 GB, free: 49.36 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.831e-05/10.79, allocations: 5.906 kB / 3.827 GB, free: 49.36 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003691/10.79, allocations: 89.09 kB / 3.827 GB, free: 49.36 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003612/10.79, allocations: 409.3 kB / 3.827 GB, free: 49.36 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005527/10.8, allocations: 6.219 MB / 3.833 GB, free: 43.79 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001386/10.8, allocations: 125.6 kB / 3.833 GB, free: 43.79 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.845e-05/10.8, allocations: 39.2 kB / 3.833 GB, free: 43.79 MB / 0.5105 GB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: tank.Wb_flow:VARIABLE(unit = "W" ) "Work flow across boundaries or source term" type: Real 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 () * 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 {2 4} Notification: Performance of prepare postOptimizeDAE: time 0.0003081/10.8, allocations: 139.1 kB / 3.833 GB, free: 43.68 MB / 0.5105 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.00127/10.8, allocations: 0.6896 MB / 3.834 GB, free: 43.59 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001108/10.8, allocations: 70.48 kB / 3.834 GB, free: 43.56 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001985/10.8, allocations: 1.572 MB / 3.836 GB, free: 43.4 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.729e-05/10.8, allocations: 21.17 kB / 3.836 GB, free: 43.4 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.405e-06/10.8, allocations: 0 / 3.836 GB, free: 43.4 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.407e-06/10.8, allocations: 3.953 kB / 3.836 GB, free: 43.4 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003512/10.81, allocations: 2.713 MB / 3.838 GB, free: 43.03 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.39e-06/10.81, allocations: 1.938 kB / 3.838 GB, free: 43.03 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003126/10.81, allocations: 347.4 kB / 3.839 GB, free: 43.03 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002701/10.81, allocations: 96.02 kB / 3.839 GB, free: 43.02 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.324e-05/10.81, allocations: 12.42 kB / 3.839 GB, free: 43.02 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004895/10.82, allocations: 6.202 MB / 3.845 GB, free: 37.46 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.471e-06/10.82, allocations: 0 / 3.845 GB, free: 37.46 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002232/10.82, allocations: 1.734 MB / 3.846 GB, free: 37.08 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003558/10.82, allocations: 219.9 kB / 3.847 GB, free: 36.94 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001744/10.82, allocations: 18.55 kB / 3.847 GB, free: 36.94 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007739/10.82, allocations: 100.8 kB / 3.847 GB, free: 36.93 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002456/10.82, allocations: 123.8 kB / 3.847 GB, free: 36.93 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.431e-05/10.82, allocations: 27.27 kB / 3.847 GB, free: 36.93 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.000611/10.82, allocations: 492.9 kB / 3.847 GB, free: 36.84 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.4e-07/10.82, allocations: 0 / 3.847 GB, free: 36.84 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.006018/10.83, allocations: 1.236 MB / 3.849 GB, free: 36.84 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 2 (tank.medium.h,tank.level) * Number of discrete variables: 17 ($cse2.phase,$cse2.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.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) * 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]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (57): * Single equations (assignments): 49 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * 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.01184/10.84, allocations: 4.612 MB / 3.853 GB, free: 35.46 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.004096/10.84, allocations: 1.091 MB / 3.854 GB, free: 35.45 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 7.334e-06/10.84, allocations: 0 / 3.854 GB, free: 35.45 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.003051/10.85, allocations: 0.7524 MB / 3.855 GB, free: 35.44 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002048/10.85, allocations: 332.3 kB / 3.855 GB, free: 35.43 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007239/10.85, allocations: 2.213 MB / 3.857 GB, free: 34.95 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000568/10.86, allocations: 1.173 MB / 3.859 GB, free: 34.23 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.001042/10.86, allocations: 0.5299 MB / 3.859 GB, free: 34.22 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000461/10.86, allocations: 390.4 kB / 3.859 GB, free: 34.21 MB / 0.5105 GB Notification: Performance of SimCode: time 8.72e-07/10.86, allocations: 0 / 3.859 GB, free: 34.21 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0959/10.95, allocations: 50.73 MB / 3.909 GB, free: 31.78 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002014/10.95, allocations: 194.2 kB / 3.909 GB, free: 31.59 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.03/14.98, allocations: 2.297 kB / 3.909 GB, free: 31.59 MB / 0.5105 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Vessels_TestTankWithTopPorts_fmu --startTime=0 --stopTime=5000 --timeout=50 --tolerance=1e-05 ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Vessels_TestTankWithTopPorts.fmu > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts_res.mat does not exist to compare? outputFormat=mat