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: translateModel(ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts,tolerance=1e-05,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank.level|tank.medium.h|tank.aboveLevel.1.|tank.aboveLevel.2.|tank.aboveLevel.3.|tank.aboveLevel.4.|tank.ports_m_flow_out.1.|tank.ports_m_flow_out.2.|tank.ports_m_flow_out.3.|tank.ports_m_flow_out.4.",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts") translateModel(ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts,tolerance=1e-05,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank.level|tank.medium.h|tank.aboveLevel.1.|tank.aboveLevel.2.|tank.aboveLevel.3.|tank.aboveLevel.4.|tank.ports_m_flow_out.1.|tank.ports_m_flow_out.2.|tank.ports_m_flow_out.3.|tank.ports_m_flow_out.4.",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009952/0.0009954, allocations: 177.6 kB / 8.002 MB, free: 1.07 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.532/1.532, allocations: 205.3 MB / 213.7 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.0008782/0.0008781, allocations: 86.16 kB / 261.7 MB, free: 1.617 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.2175/0.2175, allocations: 43.5 MB / 353.2 MB, free: 276 kB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 1.499e-05/1.501e-05, allocations: 4 kB / 418.3 MB, free: 28.55 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1211/0.1211, allocations: 58.86 MB / 477.1 MB, free: 1.645 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.476/6.597, allocations: 2.765 GB / 3.23 GB, free: 104.2 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001945/6.598, allocations: 94.08 kB / 3.231 GB, free: 104.2 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 1.778/8.376, allocations: 0.5479 GB / 3.779 GB, free: 54.27 MB / 0.5105 GB Notification: Performance of FrontEnd: time 1.843e-06/8.376, allocations: 0 / 3.779 GB, free: 54.27 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 5.759e-05/8.376, allocations: 23.59 kB / 3.779 GB, free: 54.27 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.006763/8.383, allocations: 2.041 MB / 3.781 GB, free: 53.46 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.001e-05/8.383, allocations: 9.531 kB / 3.781 GB, free: 53.46 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00213/8.385, allocations: 321.7 kB / 3.781 GB, free: 53.41 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001136/8.386, allocations: 0.6805 MB / 3.782 GB, free: 53.14 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001685/8.386, allocations: 274.7 kB / 3.782 GB, free: 52.89 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001081/8.386, allocations: 51.14 kB / 3.782 GB, free: 52.89 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001393/8.388, allocations: 0.979 MB / 3.783 GB, free: 52.88 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001645/8.389, allocations: 1.156 MB / 3.784 GB, free: 52.61 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.673e-05/8.39, allocations: 2 kB / 3.784 GB, free: 52.61 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.138e-05/8.39, allocations: 11.97 kB / 3.784 GB, free: 52.61 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.589e-05/8.39, allocations: 43.67 kB / 3.784 GB, free: 52.61 MB / 0.5105 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.05828/8.448, allocations: 36.33 MB / 3.819 GB, free: 30.64 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007524/8.449, allocations: 0.5179 MB / 3.82 GB, free: 30.61 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003679/8.449, allocations: 326.9 kB / 3.82 GB, free: 30.6 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002524/8.449, allocations: 406.2 kB / 3.821 GB, free: 30.23 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.432e-05/8.449, allocations: 39.28 kB / 3.821 GB, free: 30.19 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=54): time 2.384e-06/8.449, allocations: 0 / 3.821 GB, free: 30.19 MB / 0.5105 GB Notification: Performance of matching and sorting (n=59): time 0.004098/8.454, allocations: 1.906 MB / 3.823 GB, free: 29.74 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.605e-05/8.454, allocations: 132.2 kB / 3.823 GB, free: 29.59 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005124/8.454, allocations: 0.5011 MB / 3.823 GB, free: 29.46 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 6.801e-05/8.454, allocations: 37.7 kB / 3.823 GB, free: 29.43 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002673/8.454, allocations: 463.8 kB / 3.824 GB, free: 29.17 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001372/8.455, allocations: 191.2 kB / 3.824 GB, free: 29.06 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.768e-05/8.455, allocations: 4 kB / 3.824 GB, free: 29.05 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 9.483e-05/8.455, allocations: 376.4 kB / 3.824 GB, free: 28.74 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004287/8.455, allocations: 362.1 kB / 3.825 GB, free: 28.74 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005311/8.456, allocations: 0.5701 MB / 3.825 GB, free: 28.48 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006333/8.456, allocations: 390 kB / 3.825 GB, free: 28.46 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.286e-06/8.456, allocations: 4 kB / 3.825 GB, free: 28.46 MB / 0.5105 GB Notification: Performance of matching and sorting (n=108) (initialization): time 0.001552/8.458, allocations: 1.005 MB / 3.826 GB, free: 28.36 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.937e-05/8.458, allocations: 8.172 kB / 3.826 GB, free: 28.36 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.086e-05/8.458, allocations: 7.625 kB / 3.826 GB, free: 28.36 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002717/8.458, allocations: 85.02 kB / 3.827 GB, free: 28.35 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003268/8.462, allocations: 415.4 kB / 3.827 GB, free: 28.34 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004679/8.466, allocations: 6.201 MB / 3.833 GB, free: 22.78 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001223/8.468, allocations: 131.6 kB / 3.833 GB, free: 22.76 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.039e-05/8.468, allocations: 38.47 kB / 3.833 GB, free: 22.76 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.0003531/8.468, allocations: 152.1 kB / 3.833 GB, free: 22.64 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001281/8.468, allocations: 68.94 kB / 3.833 GB, free: 22.61 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001953/8.47, allocations: 1.573 MB / 3.835 GB, free: 22.42 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.633e-05/8.47, allocations: 17.52 kB / 3.835 GB, free: 22.42 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.69e-06/8.47, allocations: 2.938 kB / 3.835 GB, free: 22.42 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.027e-06/8.47, allocations: 7.703 kB / 3.835 GB, free: 22.42 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003705/8.474, allocations: 2.71 MB / 3.838 GB, free: 22.03 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.813e-06/8.474, allocations: 4.156 kB / 3.838 GB, free: 22.03 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003109/8.477, allocations: 347.9 kB / 3.838 GB, free: 22.02 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002557/8.477, allocations: 93.8 kB / 3.838 GB, free: 22.01 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.393e-05/8.477, allocations: 13.41 kB / 3.838 GB, free: 22.01 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005271/8.483, allocations: 6.206 MB / 3.844 GB, free: 32.43 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.269e-06/8.483, allocations: 3.781 kB / 3.844 GB, free: 32.43 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00196/8.485, allocations: 1.731 MB / 3.846 GB, free: 32.05 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002874/8.485, allocations: 220.7 kB / 3.846 GB, free: 31.89 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001324/8.485, allocations: 17.55 kB / 3.846 GB, free: 31.89 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006994/8.486, allocations: 97.55 kB / 3.846 GB, free: 31.88 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002177/8.486, allocations: 130.4 kB / 3.846 GB, free: 31.88 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.974e-05/8.486, allocations: 22.58 kB / 3.846 GB, free: 31.88 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.0005122/8.487, allocations: 496.4 kB / 3.847 GB, free: 31.77 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.4e-07/8.487, allocations: 2.25 kB / 3.847 GB, free: 31.77 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.00513/8.492, allocations: 1.229 MB / 3.848 GB, free: 31.61 MB / 0.5261 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.007083/8.499, allocations: 2.025 MB / 3.85 GB, free: 31.18 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.003709/8.503, allocations: 1.082 MB / 3.851 GB, free: 31.16 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 5.43e-06/8.503, allocations: 0 / 3.851 GB, free: 31.16 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.002827/8.505, allocations: 0.7607 MB / 3.852 GB, free: 31.15 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001652/8.507, allocations: 328.5 kB / 3.852 GB, free: 31.13 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002399/8.509, allocations: 1.64 MB / 3.854 GB, free: 30.64 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006758/8.51, allocations: 1.173 MB / 3.855 GB, free: 29.92 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.0009984/8.511, allocations: 0.5179 MB / 3.855 GB, free: 29.89 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002065/8.511, allocations: 71.47 kB / 3.855 GB, free: 29.88 MB / 0.5261 GB Notification: Performance of SimCode: time 1.082e-06/8.511, allocations: 0 / 3.855 GB, free: 29.88 MB / 0.5261 GB Notification: Performance of Templates: time 0.04625/8.558, allocations: 39.93 MB / 3.894 GB, free: 23.78 MB / 0.5261 GB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts.makefile (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 & ./ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Fluid/TestComponents/Vessels/TestTankWithTopPorts/TestTankWithTopPorts.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches