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.00116/0.00116, allocations: 180.1 kB / 14.15 MB, free: 1.176 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.451/1.451, allocations: 221.3 MB / 236 MB, free: 2.961 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.0009352/0.0009355, allocations: 91.67 kB / 287 MB, free: 244 kB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.217/0.217, allocations: 44.16 MB / 382 MB, free: 14.67 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 2.999e-05/3.002e-05, allocations: 224 / 451.8 MB, free: 9.418 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1389/0.1389, allocations: 61.91 MB / 0.5017 GB, free: 11.45 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.975/7.114, allocations: 2.771 GB / 3.272 GB, free: 95.82 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00021/7.114, allocations: 83.16 kB / 3.272 GB, free: 95.79 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 2.12/9.234, allocations: 0.5593 GB / 3.832 GB, free: 49.61 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.395e-06/9.234, allocations: 0 / 3.832 GB, free: 49.61 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 5.86e-05/9.234, allocations: 19.22 kB / 3.832 GB, free: 49.61 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.007538/9.242, allocations: 2.044 MB / 3.834 GB, free: 48.8 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.955e-05/9.242, allocations: 7.438 kB / 3.834 GB, free: 48.8 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00247/9.244, allocations: 325.9 kB / 3.834 GB, free: 48.75 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001463/9.246, allocations: 0.6824 MB / 3.835 GB, free: 48.47 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001643/9.246, allocations: 297.8 kB / 3.835 GB, free: 48.22 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001243/9.246, allocations: 82.5 kB / 3.835 GB, free: 48.22 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002701/9.249, allocations: 1.487 MB / 3.836 GB, free: 47.94 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.647e-05/9.249, allocations: 3.781 kB / 3.836 GB, free: 47.94 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001025/9.249, allocations: 41.2 kB / 3.836 GB, free: 47.94 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.938e-05/9.249, allocations: 35.75 kB / 3.837 GB, free: 47.94 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002269/9.251, allocations: 1.281 MB / 3.838 GB, free: 47.93 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.007231/9.258, allocations: 6.411 MB / 3.844 GB, free: 43.86 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001962/9.26, allocations: 0.897 MB / 3.845 GB, free: 43.81 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004899/9.261, allocations: 389.5 kB / 3.845 GB, free: 43.8 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02746/9.288, allocations: 15.61 MB / 3.861 GB, free: 34.4 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.281e-05/9.288, allocations: 44.12 kB / 3.861 GB, free: 34.36 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=59): time 2.675e-06/9.288, allocations: 0 / 3.861 GB, free: 34.36 MB / 0.5261 GB Notification: Performance of matching and sorting (n=64): time 0.006082/9.295, allocations: 2.509 MB / 3.863 GB, free: 33.82 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.912e-05/9.295, allocations: 163.9 kB / 3.863 GB, free: 33.64 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007953/9.295, allocations: 0.7125 MB / 3.864 GB, free: 33.5 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 7.697e-05/9.295, allocations: 50.05 kB / 3.864 GB, free: 33.47 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.000262/9.296, allocations: 434.5 kB / 3.864 GB, free: 33.27 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001472/9.296, allocations: 217 kB / 3.865 GB, free: 33.15 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.791e-05/9.296, allocations: 21.97 kB / 3.865 GB, free: 33.15 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001194/9.296, allocations: 400.2 kB / 3.865 GB, free: 32.83 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005108/9.297, allocations: 374.8 kB / 3.865 GB, free: 32.83 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006288/9.297, allocations: 0.6012 MB / 3.866 GB, free: 32.58 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005177/9.298, allocations: 399.7 kB / 3.866 GB, free: 32.57 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.935e-06/9.298, allocations: 4.984 kB / 3.866 GB, free: 32.57 MB / 0.5261 GB Notification: Performance of matching and sorting (n=108) (initialization): time 0.0016/9.299, allocations: 1.101 MB / 3.867 GB, free: 32.47 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 2.125e-05/9.299, allocations: 7.844 kB / 3.867 GB, free: 32.47 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.17e-05/9.299, allocations: 7.781 kB / 3.867 GB, free: 32.47 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003398/9.3, allocations: 92.19 kB / 3.867 GB, free: 32.46 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003328/9.303, allocations: 411 kB / 3.868 GB, free: 32.46 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004701/9.308, allocations: 6.407 MB / 3.874 GB, free: 26.67 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001331/9.309, allocations: 136.8 kB / 3.874 GB, free: 26.66 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.119e-05/9.309, allocations: 40.52 kB / 3.874 GB, free: 26.66 MB / 0.5261 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 () * 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.0002472/9.31, allocations: 174.7 kB / 3.874 GB, free: 26.54 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001485/9.31, allocations: 89.31 kB / 3.875 GB, free: 26.5 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0022/9.312, allocations: 2.129 MB / 3.877 GB, free: 26.22 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.426e-05/9.312, allocations: 19.61 kB / 3.877 GB, free: 26.22 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.128e-06/9.312, allocations: 7.859 kB / 3.877 GB, free: 26.21 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.253e-06/9.312, allocations: 3.516 kB / 3.877 GB, free: 26.21 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003982/9.316, allocations: 3.376 MB / 3.88 GB, free: 25.79 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.823e-06/9.316, allocations: 0 / 3.88 GB, free: 25.79 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003179/9.319, allocations: 366.5 kB / 3.88 GB, free: 25.79 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003376/9.32, allocations: 104.3 kB / 3.88 GB, free: 25.79 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.247e-05/9.32, allocations: 21.8 kB / 3.88 GB, free: 25.79 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004641/9.324, allocations: 6.394 MB / 3.887 GB, free: 19.98 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.009e-06/9.324, allocations: 5.188 kB / 3.887 GB, free: 19.98 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002472/9.327, allocations: 2.067 MB / 3.889 GB, free: 19.53 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005168/9.327, allocations: 344.1 kB / 3.889 GB, free: 19.34 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001731/9.328, allocations: 27.52 kB / 3.889 GB, free: 19.34 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008457/9.328, allocations: 114.9 kB / 3.889 GB, free: 19.34 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002657/9.329, allocations: 135.7 kB / 3.889 GB, free: 19.33 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.773e-05/9.329, allocations: 26.14 kB / 3.889 GB, free: 19.33 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.001072/9.33, allocations: 0.8673 MB / 3.89 GB, free: 19.21 MB / 0.5261 GB Notification: Performance of sort global known variables: time 2.71e-07/9.33, allocations: 3.938 kB / 3.89 GB, free: 19.21 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.006468/9.336, allocations: 1.3 MB / 3.891 GB, free: 19.05 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]) * 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.01084/9.347, allocations: 1.896 MB / 3.893 GB, free: 18.73 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.004028/9.351, allocations: 1.18 MB / 3.894 GB, free: 18.71 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 9.037e-06/9.351, allocations: 3.312 kB / 3.894 GB, free: 18.71 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.003079/9.354, allocations: 0.8462 MB / 3.895 GB, free: 18.7 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002923/9.357, allocations: 0.5282 MB / 3.896 GB, free: 18.66 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003387/9.361, allocations: 1.93 MB / 3.898 GB, free: 18.11 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001539/9.362, allocations: 1.252 MB / 3.899 GB, free: 33.38 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.001246/9.364, allocations: 487.8 kB / 3.899 GB, free: 33.36 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002981/9.364, allocations: 85.31 kB / 3.899 GB, free: 33.35 MB / 0.5417 GB Notification: Performance of SimCode: time 1.783e-06/9.364, allocations: 0 / 3.899 GB, free: 33.35 MB / 0.5417 GB Notification: Performance of Templates: time 0.06713/9.431, allocations: 54.33 MB / 3.952 GB, free: 23.31 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