Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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_4.0.0_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_4.0.0_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001895/0.001895, allocations: 174.4 kB / 8.74 MB, free: 348 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.476/1.476, allocations: 221.5 MB / 230.7 MB, free: 7.531 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001082/0.001082, allocations: 82.84 kB / 281.6 MB, free: 5.281 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2408/0.2408, allocations: 44.15 MB / 376.5 MB, free: 3.051 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 1.583e-05/1.587e-05, allocations: 224 / 444.6 MB, free: 15.25 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1651/0.1651, allocations: 61.93 MB / 0.4947 GB, free: 1.258 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.254/8.42, allocations: 2.77 GB / 3.265 GB, free: 115 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002359/8.42, allocations: 86.62 kB / 3.265 GB, free: 115 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 2.429/10.85, allocations: 0.5538 GB / 3.818 GB, free: 53.64 MB / 0.5261 GB Notification: Performance of FrontEnd: time 3.146e-06/10.85, allocations: 0.5625 kB / 3.818 GB, free: 53.64 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 6.967e-05/10.85, allocations: 23.55 kB / 3.819 GB, free: 53.64 MB / 0.5261 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.008378/10.86, allocations: 2.037 MB / 3.821 GB, free: 52.99 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 5.406e-05/10.86, allocations: 13.55 kB / 3.821 GB, free: 52.98 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00237/10.86, allocations: 318.3 kB / 3.821 GB, free: 52.93 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001516/10.86, allocations: 0.6878 MB / 3.821 GB, free: 52.69 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002064/10.86, allocations: 276.6 kB / 3.822 GB, free: 52.44 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001475/10.86, allocations: 54 kB / 3.822 GB, free: 52.44 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001924/10.86, allocations: 0.9792 MB / 3.823 GB, free: 52.43 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001573/10.87, allocations: 1.164 MB / 3.824 GB, free: 52.16 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.957e-05/10.87, allocations: 3.75 kB / 3.824 GB, free: 52.16 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.414e-05/10.87, allocations: 5.641 kB / 3.824 GB, free: 52.16 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.864e-05/10.87, allocations: 41.53 kB / 3.824 GB, free: 52.16 MB / 0.5261 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.07026/10.94, allocations: 36.33 MB / 3.859 GB, free: 30.45 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008371/10.94, allocations: 0.5041 MB / 3.86 GB, free: 30.42 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004078/10.94, allocations: 332.1 kB / 3.86 GB, free: 30.41 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002995/10.94, allocations: 403 kB / 3.861 GB, free: 30.04 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.862e-05/10.94, allocations: 44.78 kB / 3.861 GB, free: 30 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=54): time 3.186e-06/10.94, allocations: 0 / 3.861 GB, free: 30 MB / 0.5261 GB Notification: Performance of matching and sorting (n=59): time 0.00458/10.94, allocations: 1.898 MB / 3.863 GB, free: 29.55 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.218e-05/10.94, allocations: 135.5 kB / 3.863 GB, free: 29.4 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000555/10.94, allocations: 0.5057 MB / 3.863 GB, free: 29.27 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 7.584e-05/10.94, allocations: 32.48 kB / 3.863 GB, free: 29.24 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003212/10.94, allocations: 471 kB / 3.864 GB, free: 28.98 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001497/10.94, allocations: 193.2 kB / 3.864 GB, free: 28.87 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.612e-05/10.94, allocations: 2.375 kB / 3.864 GB, free: 28.87 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001307/10.94, allocations: 386.6 kB / 3.864 GB, free: 28.55 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004528/10.94, allocations: 353.4 kB / 3.865 GB, free: 28.55 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005776/10.94, allocations: 0.5784 MB / 3.865 GB, free: 28.3 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006644/10.95, allocations: 381.2 kB / 3.865 GB, free: 28.29 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.407e-06/10.95, allocations: 3.75 kB / 3.865 GB, free: 28.29 MB / 0.5261 GB Notification: Performance of matching and sorting (n=108) (initialization): time 0.001698/10.95, allocations: 1.007 MB / 3.866 GB, free: 28.2 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 2.763e-05/10.95, allocations: 7.406 kB / 3.866 GB, free: 28.2 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.287e-05/10.95, allocations: 7.594 kB / 3.866 GB, free: 28.2 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003155/10.95, allocations: 87.23 kB / 3.867 GB, free: 28.19 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003395/10.95, allocations: 409.5 kB / 3.867 GB, free: 28.18 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004753/10.96, allocations: 6.194 MB / 3.873 GB, free: 22.63 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001379/10.96, allocations: 134.9 kB / 3.873 GB, free: 22.62 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.233e-05/10.96, allocations: 46.19 kB / 3.873 GB, free: 22.62 MB / 0.5261 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.0003252/10.96, allocations: 143.9 kB / 3.873 GB, free: 22.51 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001399/10.96, allocations: 75.27 kB / 3.873 GB, free: 22.47 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001975/10.96, allocations: 1.571 MB / 3.875 GB, free: 22.3 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.363e-05/10.96, allocations: 19.16 kB / 3.875 GB, free: 22.3 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.974e-06/10.96, allocations: 0 / 3.875 GB, free: 22.3 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.103e-06/10.96, allocations: 3.844 kB / 3.875 GB, free: 22.3 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003621/10.96, allocations: 2.726 MB / 3.878 GB, free: 21.9 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.792e-06/10.96, allocations: 1.875 kB / 3.878 GB, free: 21.9 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003225/10.97, allocations: 342.5 kB / 3.878 GB, free: 21.9 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002917/10.97, allocations: 97.42 kB / 3.878 GB, free: 21.89 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.756e-05/10.97, allocations: 11.73 kB / 3.878 GB, free: 21.89 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006774/10.97, allocations: 6.183 MB / 3.884 GB, free: 32.34 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.806e-06/10.97, allocations: 5.156 kB / 3.884 GB, free: 32.34 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00242/10.98, allocations: 1.739 MB / 3.886 GB, free: 31.96 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003638/10.98, allocations: 215.2 kB / 3.886 GB, free: 31.8 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001431/10.98, allocations: 24.2 kB / 3.886 GB, free: 31.8 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007355/10.98, allocations: 93.11 kB / 3.886 GB, free: 31.8 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002398/10.98, allocations: 126.8 kB / 3.886 GB, free: 31.8 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.394e-05/10.98, allocations: 27.5 kB / 3.886 GB, free: 31.8 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.0005963/10.98, allocations: 491.5 kB / 3.887 GB, free: 31.7 MB / 0.5417 GB Notification: Performance of sort global known variables: time 2.204e-06/10.98, allocations: 0 / 3.887 GB, free: 31.7 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.006446/10.98, allocations: 1.242 MB / 3.888 GB, free: 31.54 MB / 0.5417 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.00843/10.99, allocations: 2.026 MB / 3.89 GB, free: 31.22 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.003869/11, allocations: 1.089 MB / 3.891 GB, free: 31.21 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 6.512e-06/11, allocations: 2.125 kB / 3.891 GB, free: 31.21 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.002977/11, allocations: 0.7543 MB / 3.892 GB, free: 31.21 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00222/11, allocations: 333.8 kB / 3.892 GB, free: 31.2 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00297/11.01, allocations: 1.639 MB / 3.894 GB, free: 30.8 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006772/11.01, allocations: 1.168 MB / 3.895 GB, free: 30.09 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.001033/11.01, allocations: 0.5329 MB / 3.895 GB, free: 30.08 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001921/11.01, allocations: 71.64 kB / 3.895 GB, free: 30.07 MB / 0.5417 GB Notification: Performance of SimCode: time 7.72e-07/11.01, allocations: 0 / 3.895 GB, free: 30.07 MB / 0.5417 GB Notification: Performance of Templates: time 0.05339/11.06, allocations: 39.93 MB / 3.934 GB, free: 27.65 MB / 0.5417 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts.sim & ./ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestComponents/Vessels/TestTankWithTopPorts/TestTankWithTopPorts.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches