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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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/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 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001185/0.001185, allocations: 110.7 kB / 18.46 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001165/0.001165, allocations: 179.1 kB / 19.38 MB, free: 3.664 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.314/1.314, allocations: 222.9 MB / 243.1 MB, free: 15.06 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1926/0.1926, allocations: 44.18 MB / 337.4 MB, free: 2.645 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001319/0.001319, allocations: 59.91 kB / 471.2 MB, free: 13.15 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3117/0.3131, allocations: 60.82 MB / 0.5196 GB, free: 3.59 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts): time 0.05847/0.3716, allocations: 59.13 MB / 0.5773 GB, free: 0.7266 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.02056/0.3922, allocations: 16.39 MB / 0.5933 GB, free: 288 kB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009866/0.3932, allocations: 15.94 kB / 0.5933 GB, free: 272 kB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001663/0.3949, allocations: 453.2 kB / 0.5938 GB, free: 15.82 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01619/0.4111, allocations: 5.002 MB / 0.5986 GB, free: 10.82 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006708/0.4178, allocations: 2.341 MB / 0.6009 GB, free: 8.48 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.003211/0.4211, allocations: 2.754 MB / 0.6036 GB, free: 5.715 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001383/0.4225, allocations: 0.8913 MB / 0.6045 GB, free: 4.805 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006076/0.4286, allocations: 2.715 MB / 0.6071 GB, free: 2.062 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005156/0.4337, allocations: 2.431 MB / 0.6095 GB, free: 15.6 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003777/0.4341, allocations: 104 kB / 0.6096 GB, free: 15.5 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01429/0.4484, allocations: 7.348 MB / 0.6168 GB, free: 8.145 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005607/0.449, allocations: 335 kB / 0.6171 GB, free: 7.816 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001177/0.4502, allocations: 0.5873 MB / 0.6177 GB, free: 7.227 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01266/0.4629, allocations: 5.453 MB / 0.623 GB, free: 1.762 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.372e-06/0.4629, allocations: 0 / 0.623 GB, free: 1.762 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.4629, allocations: 8 kB / 0.623 GB, free: 1.754 MB / 478.1 MB Notification: Performance of Transformations before backend: time 6.086e-05/0.463, allocations: 0 / 0.623 GB, free: 1.754 MB / 478.1 MB 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.005564/0.4686, allocations: 1.866 MB / 0.6248 GB, free: 15.83 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.95e-05/0.4686, allocations: 8.031 kB / 0.6249 GB, free: 15.82 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002403/0.471, allocations: 307.4 kB / 0.6251 GB, free: 15.53 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001259/0.4723, allocations: 0.6727 MB / 0.6258 GB, free: 14.82 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002264/0.4726, allocations: 304.1 kB / 0.6261 GB, free: 14.47 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001586/0.4727, allocations: 88.12 kB / 0.6262 GB, free: 14.39 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003339/0.4761, allocations: 1.5 MB / 0.6276 GB, free: 12.8 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.688e-05/0.4761, allocations: 4 kB / 0.6276 GB, free: 12.8 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001132/0.4762, allocations: 36 kB / 0.6277 GB, free: 12.76 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5e-05/0.4763, allocations: 41.98 kB / 0.6277 GB, free: 12.72 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00342/0.4797, allocations: 1.346 MB / 0.629 GB, free: 11.38 MB / 494.1 MB 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.008657/0.4884, allocations: 6.393 MB / 0.6353 GB, free: 4.5 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002845/0.4913, allocations: 0.9546 MB / 0.6362 GB, free: 3.527 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009439/0.4922, allocations: 455 kB / 0.6366 GB, free: 3.078 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03266/0.5249, allocations: 15.76 MB / 0.652 GB, free: 1.461 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.122e-05/0.525, allocations: 43.12 kB / 0.6521 GB, free: 1.41 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=59): time 2.715e-06/0.525, allocations: 0 / 0.6521 GB, free: 1.41 MB / 0.4981 GB Notification: Performance of matching and sorting (n=64): time 0.008532/0.5335, allocations: 2.95 MB / 0.655 GB, free: 14.4 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001194/0.5336, allocations: 162.8 kB / 0.6551 GB, free: 14.2 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00114/0.5348, allocations: 0.8129 MB / 0.6559 GB, free: 13.38 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 9.605e-05/0.5349, allocations: 49.69 kB / 0.656 GB, free: 13.32 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003827/0.5353, allocations: 447.4 kB / 0.6564 GB, free: 12.88 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002103/0.5355, allocations: 213 kB / 0.6566 GB, free: 12.66 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003077/0.5358, allocations: 178.5 kB / 0.6568 GB, free: 12.48 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001884/0.536, allocations: 398.7 kB / 0.6571 GB, free: 12.09 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000928/0.537, allocations: 437.7 kB / 0.6576 GB, free: 11.66 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001069/0.538, allocations: 0.6688 MB / 0.6582 GB, free: 10.89 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001766/0.5398, allocations: 0.9687 MB / 0.6592 GB, free: 9.836 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.058e-06/0.5398, allocations: 0 / 0.6592 GB, free: 9.836 MB / 0.5137 GB Notification: Performance of matching and sorting (n=108) (initialization): time 0.00256/0.5424, allocations: 1.219 MB / 0.6603 GB, free: 8.605 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 1.88e-05/0.5424, allocations: 8 kB / 0.6603 GB, free: 8.598 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.304e-05/0.5425, allocations: 8 kB / 0.6604 GB, free: 8.59 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003544/0.5428, allocations: 92.73 kB / 0.6604 GB, free: 8.496 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003295/0.5461, allocations: 335.8 kB / 0.6608 GB, free: 8.168 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005687/0.5518, allocations: 6.792 MB / 0.6674 GB, free: 0.8008 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000924/0.5528, allocations: 83.83 kB / 0.6675 GB, free: 0.7188 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001049/0.5529, allocations: 39.98 kB / 0.6675 GB, free: 0.6797 MB / 0.5137 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 (Boundary_fixed.medium.phase,massFlowRate[2].medium.phase,massFlowRate[1].medium.phase,tank.aboveLevel[4],$PRE.tank.aboveLevel[4],tank.aboveLevel[3],$PRE.tank.aboveLevel[3],tank.aboveLevel[2],$PRE.tank.aboveLevel[2],tank.aboveLevel[1],$PRE.tank.aboveLevel[1],tank.ports_m_flow_out[4],$PRE.tank.ports_m_flow_out[4],tank.ports_m_flow_out[3],$PRE.tank.ports_m_flow_out[3],tank.ports_m_flow_out[2],$PRE.tank.ports_m_flow_out[2],tank.ports_m_flow_out[1],$PRE.tank.ports_m_flow_out[1],tank.heatTransfer.states[1].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 (not torn): 4 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 4 systems {1, 1, 1, 1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0005494/0.5534, allocations: 339.8 kB / 0.6678 GB, free: 348 kB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002507/0.5537, allocations: 90.91 kB / 0.6679 GB, free: 256 kB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003446/0.5572, allocations: 2.177 MB / 0.6701 GB, free: 14.05 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.192e-05/0.5572, allocations: 3.984 kB / 0.6701 GB, free: 14.05 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.891e-06/0.5572, allocations: 4 kB / 0.6701 GB, free: 14.05 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002615/0.5575, allocations: 171.8 kB / 0.6702 GB, free: 13.86 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002538/0.5577, allocations: 83.27 kB / 0.6703 GB, free: 13.78 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008395/0.5586, allocations: 91.88 kB / 0.6704 GB, free: 13.69 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002432/0.5588, allocations: 104.4 kB / 0.6705 GB, free: 13.58 MB / 0.5294 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.004904/0.5637, allocations: 1.591 MB / 0.672 GB, free: 11.97 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.003289/0.567, allocations: 2.095 MB / 0.6741 GB, free: 9.855 MB / 0.5294 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001018/0.5681, allocations: 0.5985 MB / 0.6747 GB, free: 9.254 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.001296/0.5694, allocations: 0.8884 MB / 0.6755 GB, free: 8.359 MB / 0.5294 GB Notification: Performance of Backend: time 4.7e-07/0.5694, allocations: 3.938 kB / 0.6755 GB, free: 8.355 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01063/0.58, allocations: 2.308 MB / 0.6778 GB, free: 6.047 MB / 0.5294 GB Notification: Performance of SimCode: time 0.004523/0.5846, allocations: 2.941 MB / 0.6807 GB, free: 3.055 MB / 0.5294 GB Notification: Performance of Templates: time 0.3273/0.9119, allocations: 59.08 MB / 0.7384 GB, free: 171.8 MB / 0.5606 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestComponents/Vessels/TestTankWithTopPorts/TestTankWithTopPorts.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches