Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Vessels_TestTankWithTopPorts",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Vessels_TestTankWithTopPorts",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001213/0.001213, allocations: 198.8 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.503/1.503, allocations: 225.6 MB / 234.8 MB, free: 3.258 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008786/0.0008787, allocations: 97.75 kB / 286.7 MB, free: 5.238 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2916/0.2916, allocations: 45.15 MB / 383.8 MB, free: 280 kB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 1.837e-05/1.876e-05, allocations: 0 / 453.3 MB, free: 75.73 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1443/0.1444, allocations: 63.25 MB / 0.5045 GB, free: 12.54 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.147/8.291, allocations: 2.771 GB / 3.275 GB, free: 139.4 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002749/8.292, allocations: 83.3 kB / 3.275 GB, free: 139.3 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 2.474/10.77, allocations: 0.5539 GB / 3.829 GB, free: 57.96 MB / 0.5417 GB Notification: Performance of FrontEnd: time 4.509e-06/10.77, allocations: 0 / 3.829 GB, free: 57.96 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 0.000125/10.77, allocations: 21.12 kB / 3.829 GB, free: 57.96 MB / 0.5417 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.01126/10.78, allocations: 2.051 MB / 3.831 GB, free: 57.32 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 6.095e-05/10.78, allocations: 9.5 kB / 3.831 GB, free: 57.32 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002887/10.78, allocations: 317.2 kB / 3.832 GB, free: 57.27 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001588/10.78, allocations: 0.6815 MB / 3.832 GB, free: 57.03 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001807/10.78, allocations: 274.8 kB / 3.833 GB, free: 56.78 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001251/10.78, allocations: 48.73 kB / 3.833 GB, free: 56.78 MB / 0.5417 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0016/10.78, allocations: 0.9846 MB / 3.834 GB, free: 56.78 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001575/10.79, allocations: 1.158 MB / 3.835 GB, free: 56.5 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.194e-05/10.79, allocations: 2.625 kB / 3.835 GB, free: 56.5 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.557e-05/10.79, allocations: 3.031 kB / 3.835 GB, free: 56.5 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.156e-05/10.79, allocations: 46.2 kB / 3.835 GB, free: 56.49 MB / 0.5417 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.08502/10.87, allocations: 39.18 MB / 3.873 GB, free: 31.8 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001204/10.87, allocations: 0.51 MB / 3.874 GB, free: 31.77 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006034/10.87, allocations: 332.2 kB / 3.874 GB, free: 31.76 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000386/10.87, allocations: 398.8 kB / 3.874 GB, free: 31.38 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3e-05/10.87, allocations: 42.59 kB / 3.874 GB, free: 31.34 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=54): time 4.518e-06/10.87, allocations: 0.7656 kB / 3.874 GB, free: 31.34 MB / 0.5417 GB Notification: Performance of matching and sorting (n=59): time 0.005995/10.88, allocations: 1.903 MB / 3.876 GB, free: 30.9 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.485e-05/10.88, allocations: 142.4 kB / 3.876 GB, free: 30.74 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001044/10.88, allocations: 0.4958 MB / 3.877 GB, free: 30.62 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.0001431/10.88, allocations: 45.05 kB / 3.877 GB, free: 30.59 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006655/10.88, allocations: 462.1 kB / 3.877 GB, free: 30.33 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002882/10.88, allocations: 193.6 kB / 3.877 GB, free: 30.21 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.849e-05/10.88, allocations: 0 / 3.877 GB, free: 30.21 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0002089/10.88, allocations: 386.8 kB / 3.878 GB, free: 29.9 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008179/10.88, allocations: 354 kB / 3.878 GB, free: 29.89 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009187/10.88, allocations: 0.5721 MB / 3.879 GB, free: 29.64 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001118/10.88, allocations: 387.3 kB / 3.879 GB, free: 29.63 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.522e-06/10.88, allocations: 0 / 3.879 GB, free: 29.63 MB / 0.5417 GB Notification: Performance of matching and sorting (n=108) (initialization): time 0.002778/10.89, allocations: 1.008 MB / 3.88 GB, free: 29.54 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 3.253e-05/10.89, allocations: 6.719 kB / 3.88 GB, free: 29.54 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.081e-05/10.89, allocations: 6.375 kB / 3.88 GB, free: 29.54 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004394/10.89, allocations: 96.5 kB / 3.88 GB, free: 29.53 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004661/10.89, allocations: 410.3 kB / 3.881 GB, free: 29.53 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006521/10.9, allocations: 6.196 MB / 3.887 GB, free: 23.97 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001613/10.9, allocations: 129.5 kB / 3.887 GB, free: 23.96 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002721/10.9, allocations: 47.12 kB / 3.887 GB, free: 23.96 MB / 0.5417 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.0005034/10.9, allocations: 144.5 kB / 3.887 GB, free: 23.85 MB / 0.5417 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001581/10.9, allocations: 0.6839 MB / 3.888 GB, free: 23.76 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002385/10.9, allocations: 74.92 kB / 3.888 GB, free: 23.72 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002193/10.91, allocations: 1.57 MB / 3.889 GB, free: 23.55 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.69e-05/10.91, allocations: 11.84 kB / 3.889 GB, free: 23.55 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.357e-06/10.91, allocations: 0 / 3.889 GB, free: 23.55 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.456e-06/10.91, allocations: 5.516 kB / 3.889 GB, free: 23.55 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003926/10.91, allocations: 2.719 MB / 3.892 GB, free: 23.17 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.236e-06/10.91, allocations: 3.844 kB / 3.892 GB, free: 23.17 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003231/10.91, allocations: 347.3 kB / 3.892 GB, free: 23.16 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002832/10.91, allocations: 100.6 kB / 3.892 GB, free: 23.15 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.967e-05/10.91, allocations: 13.48 kB / 3.892 GB, free: 23.15 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006046/10.92, allocations: 6.19 MB / 3.898 GB, free: 33.59 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.053e-06/10.92, allocations: 3.781 kB / 3.898 GB, free: 33.59 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00255/10.92, allocations: 1.735 MB / 3.9 GB, free: 33.21 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003878/10.92, allocations: 218.3 kB / 3.9 GB, free: 33.06 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001843/10.92, allocations: 22.56 kB / 3.9 GB, free: 33.06 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007751/10.92, allocations: 98.02 kB / 3.9 GB, free: 33.05 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002829/10.92, allocations: 130.7 kB / 3.901 GB, free: 33.05 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.541e-05/10.92, allocations: 24.09 kB / 3.901 GB, free: 33.05 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.0006186/10.92, allocations: 488 kB / 3.901 GB, free: 32.96 MB / 0.5573 GB Notification: Performance of sort global known variables: time 1.9e-07/10.92, allocations: 0 / 3.901 GB, free: 32.96 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.006172/10.93, allocations: 1.245 MB / 3.902 GB, free: 32.79 MB / 0.5573 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.01224/10.94, allocations: 4.644 MB / 3.907 GB, free: 31.25 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.004393/10.95, allocations: 1.092 MB / 3.908 GB, free: 31.24 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 9.858e-06/10.95, allocations: 2.734 kB / 3.908 GB, free: 31.24 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.003115/10.95, allocations: 0.7448 MB / 3.909 GB, free: 31.24 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002213/10.95, allocations: 331.5 kB / 3.909 GB, free: 31.23 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007701/10.96, allocations: 2.229 MB / 3.911 GB, free: 30.62 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007338/10.96, allocations: 1.165 MB / 3.912 GB, free: 29.92 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.001187/10.96, allocations: 0.5288 MB / 3.913 GB, free: 29.91 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000496/10.96, allocations: 390.8 kB / 3.913 GB, free: 29.9 MB / 0.5573 GB Notification: Performance of SimCode: time 9.12e-07/10.96, allocations: 0 / 3.913 GB, free: 29.9 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09733/11.06, allocations: 50.83 MB / 3.963 GB, free: 27.1 MB / 0.5573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002214/11.06, allocations: 192.7 kB / 3.963 GB, free: 26.91 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.84/14.9, allocations: 4 kB / 3.963 GB, free: 26.9 MB / 0.5573 GB (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Vessels_TestTankWithTopPorts_fmu --startTime=0 --stopTime=5000 --timeout=50 --tolerance=1e-05 ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Vessels_TestTankWithTopPorts.fmu > ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts_res.mat does not exist to compare? outputFormat=mat