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.001831/0.001831, allocations: 177 kB / 17.06 MB, free: 5.094 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.291/1.291, allocations: 223.2 MB / 241 MB, free: 11.88 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008989/0.0008988, allocations: 93.38 kB / 292.2 MB, free: 10.91 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.3553/0.3553, allocations: 44.22 MB / 387.5 MB, free: 38.8 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003072/0.0003072, allocations: 8 kB / 459.9 MB, free: 1.531 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3529/0.3532, allocations: 61.89 MB / 0.5096 GB, free: 37.89 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.506/6.86, allocations: 2.771 GB / 3.28 GB, free: 88.48 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003107/6.86, allocations: 91.92 kB / 3.28 GB, free: 88.39 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 2.614/9.474, allocations: 0.5609 GB / 3.841 GB, free: 44.61 MB / 0.5261 GB Notification: Performance of FrontEnd: time 5.05e-06/9.474, allocations: 0 / 3.841 GB, free: 44.61 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.000206/9.475, allocations: 24 kB / 3.841 GB, free: 44.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.01233/9.487, allocations: 2.137 MB / 3.843 GB, free: 43.61 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 5.911e-05/9.487, allocations: 7.188 kB / 3.843 GB, free: 43.61 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003111/9.49, allocations: 313.4 kB / 3.844 GB, free: 43.55 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003037/9.493, allocations: 0.6817 MB / 3.844 GB, free: 43.28 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004509/9.494, allocations: 303 kB / 3.845 GB, free: 43.03 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006457/9.494, allocations: 78.03 kB / 3.845 GB, free: 43.03 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00596/9.5, allocations: 1.523 MB / 3.846 GB, free: 42.75 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.198e-05/9.5, allocations: 8.953 kB / 3.846 GB, free: 42.75 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003537/9.501, allocations: 38.62 kB / 3.846 GB, free: 42.75 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.855e-05/9.501, allocations: 39.47 kB / 3.846 GB, free: 42.75 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004571/9.505, allocations: 1.367 MB / 3.847 GB, free: 42.74 MB / 0.5261 GB Warning: The model contains alias variables with redundant start and/or conflicting 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.01027/9.516, allocations: 6.417 MB / 3.854 GB, free: 38.68 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002578/9.518, allocations: 0.9924 MB / 3.855 GB, free: 38.62 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02673/9.545, allocations: 15.56 MB / 3.87 GB, free: 29.22 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.538e-05/9.545, allocations: 51.5 kB / 3.87 GB, free: 29.18 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=59): time 2.244e-06/9.545, allocations: 0 / 3.87 GB, free: 29.18 MB / 0.5261 GB Notification: Performance of matching and sorting (n=64): time 0.007918/9.553, allocations: 3.024 MB / 3.873 GB, free: 28.63 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.283e-05/9.553, allocations: 162 kB / 3.873 GB, free: 28.45 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008633/9.554, allocations: 0.7196 MB / 3.874 GB, free: 28.32 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 7.771e-05/9.554, allocations: 47.47 kB / 3.874 GB, free: 28.29 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002919/9.555, allocations: 438 kB / 3.874 GB, free: 28.08 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001567/9.555, allocations: 215.6 kB / 3.874 GB, free: 27.96 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.023e-05/9.555, allocations: 18.41 kB / 3.874 GB, free: 27.96 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001344/9.555, allocations: 401.8 kB / 3.875 GB, free: 27.64 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007873/9.556, allocations: 445.3 kB / 3.875 GB, free: 27.64 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008887/9.557, allocations: 0.6699 MB / 3.876 GB, free: 27.38 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008118/9.557, allocations: 464.7 kB / 3.876 GB, free: 27.38 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.218e-06/9.557, allocations: 10.78 kB / 3.876 GB, free: 27.37 MB / 0.5261 GB Notification: Performance of matching and sorting (n=108) (initialization): time 0.002186/9.56, allocations: 1.227 MB / 3.878 GB, free: 27.27 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 2.59e-05/9.56, allocations: 9.812 kB / 3.878 GB, free: 27.27 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.155e-05/9.56, allocations: 8.812 kB / 3.878 GB, free: 27.27 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000349/9.56, allocations: 95.88 kB / 3.878 GB, free: 27.26 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003575/9.564, allocations: 409.2 kB / 3.878 GB, free: 27.26 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006666/9.57, allocations: 6.464 MB / 3.884 GB, free: 37.46 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001442/9.572, allocations: 136.6 kB / 3.885 GB, free: 37.46 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.442e-05/9.572, allocations: 43.05 kB / 3.885 GB, free: 37.45 MB / 0.5417 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 () * Number of clocked 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.0006677/9.573, allocations: 340.7 kB / 3.885 GB, free: 37.34 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001633/9.573, allocations: 89.59 kB / 3.885 GB, free: 37.29 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002968/9.576, allocations: 2.246 MB / 3.887 GB, free: 37.02 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.796e-05/9.576, allocations: 27.94 kB / 3.887 GB, free: 37.02 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.747e-06/9.576, allocations: 5.734 kB / 3.887 GB, free: 37.02 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.943e-06/9.576, allocations: 3.609 kB / 3.887 GB, free: 37.02 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005056/9.581, allocations: 3.503 MB / 3.891 GB, free: 36.59 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.614e-06/9.581, allocations: 3.938 kB / 3.891 GB, free: 36.59 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003668/9.584, allocations: 367 kB / 3.891 GB, free: 36.59 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003822/9.585, allocations: 101.7 kB / 3.891 GB, free: 36.58 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.088e-05/9.585, allocations: 20.41 kB / 3.891 GB, free: 36.58 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00635/9.591, allocations: 6.446 MB / 3.897 GB, free: 30.78 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.858e-06/9.591, allocations: 6.562 kB / 3.897 GB, free: 30.78 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003339/9.595, allocations: 2.254 MB / 3.9 GB, free: 30.34 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000587/9.595, allocations: 345.7 kB / 3.9 GB, free: 30.14 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001789/9.595, allocations: 28.36 kB / 3.9 GB, free: 30.14 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008551/9.596, allocations: 116.4 kB / 3.9 GB, free: 30.14 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002638/9.597, allocations: 128.3 kB / 3.9 GB, free: 30.13 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.021e-05/9.597, allocations: 32.83 kB / 3.9 GB, free: 30.13 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.001105/9.598, allocations: 0.8732 MB / 3.901 GB, free: 30.02 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.483e-06/9.598, allocations: 0 / 3.901 GB, free: 30.02 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.006447/9.604, allocations: 1.316 MB / 3.902 GB, free: 29.86 MB / 0.5417 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]) * Number of clocked states: 0 () * 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.00847/9.613, allocations: 1.883 MB / 3.904 GB, free: 29.42 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.004929/9.618, allocations: 1.313 MB / 3.905 GB, free: 29.39 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 7.945e-06/9.618, allocations: 8.156 kB / 3.905 GB, free: 29.39 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.003612/9.621, allocations: 0.9112 MB / 3.906 GB, free: 29.38 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00261/9.624, allocations: 0.5248 MB / 3.907 GB, free: 29.34 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003955/9.628, allocations: 3.026 MB / 3.91 GB, free: 27.98 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007129/9.629, allocations: 1.242 MB / 3.911 GB, free: 27.25 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.001149/9.63, allocations: 495.1 kB / 3.912 GB, free: 27.22 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002262/9.63, allocations: 82.81 kB / 3.912 GB, free: 27.21 MB / 0.5417 GB Notification: Performance of SimCode: time 1.173e-06/9.63, allocations: 0 / 3.912 GB, free: 27.21 MB / 0.5417 GB Notification: Performance of Templates: time 0.07013/9.7, allocations: 51.63 MB / 3.962 GB, free: 11.09 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