Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_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_cpp_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_cpp_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.002061/0.002061, allocations: 178 kB / 8.363 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.053/2.053, allocations: 205.3 MB / 214.1 MB, free: 14.13 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001138/0.001137, allocations: 89.08 kB / 262.1 MB, free: 13.86 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2994/0.2994, allocations: 43.48 MB / 353.6 MB, free: 2.273 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 2.103e-05/2.116e-05, allocations: 4.219 kB / 418.2 MB, free: 41.04 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4153/0.4153, allocations: 58.85 MB / 477.1 MB, free: 5.266 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.006/8.421, allocations: 2.765 GB / 3.23 GB, free: 24.95 MB / 0.4952 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000266/8.421, allocations: 86.58 kB / 3.231 GB, free: 24.91 MB / 0.4952 GB Notification: Performance of FrontEnd - DAE generated: time 2.936/11.36, allocations: 0.5479 GB / 3.778 GB, free: 38.61 MB / 0.4952 GB Notification: Performance of FrontEnd: time 2.444e-06/11.36, allocations: 0 / 3.778 GB, free: 38.61 MB / 0.4952 GB Notification: Performance of Transformations before backend: time 0.000116/11.36, allocations: 26.78 kB / 3.779 GB, free: 38.6 MB / 0.4952 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.01168/11.37, allocations: 2.037 MB / 3.781 GB, free: 37.5 MB / 0.4952 GB Notification: Performance of prepare preOptimizeDAE: time 5.747e-05/11.37, allocations: 13.12 kB / 3.781 GB, free: 37.5 MB / 0.4952 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005173/11.37, allocations: 328.3 kB / 3.781 GB, free: 37.43 MB / 0.4952 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002816/11.38, allocations: 0.6702 MB / 3.781 GB, free: 37.02 MB / 0.4952 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003634/11.38, allocations: 272.2 kB / 3.782 GB, free: 36.76 MB / 0.4952 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000449/11.38, allocations: 49.8 kB / 3.782 GB, free: 36.76 MB / 0.4952 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003693/11.38, allocations: 0.9838 MB / 3.783 GB, free: 36.45 MB / 0.4952 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002619/11.38, allocations: 1.154 MB / 3.784 GB, free: 35.89 MB / 0.4952 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.53e-05/11.38, allocations: 10.03 kB / 3.784 GB, free: 35.88 MB / 0.4952 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001421/11.38, allocations: 7.859 kB / 3.784 GB, free: 35.88 MB / 0.4952 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.41e-05/11.38, allocations: 47.14 kB / 3.784 GB, free: 35.88 MB / 0.4952 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.1093/11.49, allocations: 36.32 MB / 3.819 GB, free: 15.27 MB / 0.5108 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001459/11.5, allocations: 0.507 MB / 3.82 GB, free: 14.75 MB / 0.5108 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008161/11.5, allocations: 329.9 kB / 3.82 GB, free: 14.43 MB / 0.5108 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005298/11.5, allocations: 404.5 kB / 3.821 GB, free: 13.96 MB / 0.5108 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.678e-05/11.5, allocations: 39 kB / 3.821 GB, free: 13.91 MB / 0.5108 GB Notification: Performance of pre-optimization done (n=54): time 3.055e-06/11.5, allocations: 3.828 kB / 3.821 GB, free: 13.91 MB / 0.5108 GB Notification: Performance of matching and sorting (n=59): time 0.007582/11.5, allocations: 1.9 MB / 3.823 GB, free: 11.96 MB / 0.5108 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.407e-05/11.5, allocations: 137.1 kB / 3.823 GB, free: 11.8 MB / 0.5108 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001019/11.51, allocations: 0.498 MB / 3.823 GB, free: 11.29 MB / 0.5108 GB Notification: Performance of collectPreVariables (initialization): time 0.0001445/11.51, allocations: 37.7 kB / 3.823 GB, free: 11.25 MB / 0.5108 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005244/11.51, allocations: 496.9 kB / 3.824 GB, free: 10.76 MB / 0.5108 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002817/11.51, allocations: 203.4 kB / 3.824 GB, free: 10.56 MB / 0.5108 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.622e-05/11.51, allocations: 0 / 3.824 GB, free: 10.56 MB / 0.5108 GB Notification: Performance of setup shared object (initialization): time 0.0001856/11.51, allocations: 342.8 kB / 3.824 GB, free: 10.22 MB / 0.5108 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009489/11.51, allocations: 354.5 kB / 3.824 GB, free: 9.871 MB / 0.5108 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001182/11.51, allocations: 0.5799 MB / 3.825 GB, free: 9.199 MB / 0.5108 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001263/11.51, allocations: 387.8 kB / 3.825 GB, free: 8.824 MB / 0.5108 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.907e-06/11.51, allocations: 4 kB / 3.825 GB, free: 8.82 MB / 0.5108 GB Notification: Performance of matching and sorting (n=108) (initialization): time 0.003144/11.51, allocations: 0.9689 MB / 3.826 GB, free: 7.84 MB / 0.5108 GB Notification: Performance of prepare postOptimizeDAE: time 3.017e-05/11.51, allocations: 8 kB / 3.826 GB, free: 7.832 MB / 0.5108 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.663e-05/11.51, allocations: 4 kB / 3.826 GB, free: 7.828 MB / 0.5108 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004944/11.51, allocations: 93.39 kB / 3.826 GB, free: 7.734 MB / 0.5108 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007278/11.52, allocations: 403.3 kB / 3.827 GB, free: 7.34 MB / 0.5108 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009605/11.53, allocations: 6.206 MB / 3.833 GB, free: 0.668 MB / 0.5108 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002007/11.53, allocations: 127.9 kB / 3.833 GB, free: 0.543 MB / 0.5108 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001365/11.53, allocations: 43.94 kB / 3.833 GB, free: 0.5 MB / 0.5108 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.0004342/11.53, allocations: 150.7 kB / 3.833 GB, free: 356 kB / 0.5108 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002083/11.53, allocations: 67.25 kB / 3.833 GB, free: 288 kB / 0.5108 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003517/11.54, allocations: 1.576 MB / 3.835 GB, free: 14.7 MB / 0.5265 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.88e-05/11.54, allocations: 15.98 kB / 3.835 GB, free: 14.68 MB / 0.5265 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.019e-05/11.54, allocations: 3.953 kB / 3.835 GB, free: 14.68 MB / 0.5265 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.143e-05/11.54, allocations: 3.984 kB / 3.835 GB, free: 14.68 MB / 0.5265 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006629/11.54, allocations: 2.715 MB / 3.838 GB, free: 11.91 MB / 0.5265 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.486e-06/11.54, allocations: 0 / 3.838 GB, free: 11.91 MB / 0.5265 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006882/11.55, allocations: 351.5 kB / 3.838 GB, free: 11.56 MB / 0.5265 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005195/11.55, allocations: 92.78 kB / 3.838 GB, free: 11.47 MB / 0.5265 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001497/11.55, allocations: 15.98 kB / 3.838 GB, free: 11.45 MB / 0.5265 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009589/11.56, allocations: 6.194 MB / 3.844 GB, free: 4.785 MB / 0.5265 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.092e-06/11.56, allocations: 0 / 3.844 GB, free: 4.785 MB / 0.5265 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004062/11.57, allocations: 1.74 MB / 3.846 GB, free: 2.969 MB / 0.5265 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005018/11.57, allocations: 223.2 kB / 3.846 GB, free: 2.734 MB / 0.5265 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002353/11.57, allocations: 22.89 kB / 3.846 GB, free: 2.715 MB / 0.5265 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001414/11.57, allocations: 95.88 kB / 3.846 GB, free: 2.621 MB / 0.5265 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004322/11.57, allocations: 128.3 kB / 3.846 GB, free: 2.496 MB / 0.5265 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.775e-05/11.57, allocations: 27.97 kB / 3.846 GB, free: 2.469 MB / 0.5265 GB Notification: Performance of sorting global known variables: time 0.0009978/11.57, allocations: 487.1 kB / 3.847 GB, free: 1.988 MB / 0.5265 GB Notification: Performance of sort global known variables: time 5.91e-07/11.57, allocations: 0 / 3.847 GB, free: 1.988 MB / 0.5265 GB Notification: Performance of remove unused functions: time 0.007061/11.58, allocations: 1.232 MB / 3.848 GB, free: 0.7578 MB / 0.5265 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.396/11.97, allocations: 2.013 MB / 3.85 GB, free: 75.68 MB / 0.5265 GB Notification: Performance of simCode: created initialization part: time 0.006956/11.98, allocations: 1.089 MB / 3.851 GB, free: 75.66 MB / 0.5265 GB Notification: Performance of simCode: created event and clocks part: time 6.242e-06/11.98, allocations: 0 / 3.851 GB, free: 75.66 MB / 0.5265 GB Notification: Performance of simCode: created simulation system equations: time 0.005823/11.99, allocations: 0.7445 MB / 3.852 GB, free: 75.66 MB / 0.5265 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003052/11.99, allocations: 346.1 kB / 3.852 GB, free: 75.66 MB / 0.5265 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004341/11.99, allocations: 1.661 MB / 3.854 GB, free: 75.23 MB / 0.5265 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008659/11.99, allocations: 1.158 MB / 3.855 GB, free: 74.54 MB / 0.5265 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005583/11.99, allocations: 77.2 kB / 3.855 GB, free: 74.53 MB / 0.5265 GB Notification: Performance of SimCode: time 1.002e-06/11.99, allocations: 2.578 kB / 3.855 GB, free: 74.53 MB / 0.5265 GB Notification: Performance of Templates: time 0.1108/12.11, allocations: 58.38 MB / 3.912 GB, free: 72.13 MB / 0.5265 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts_res.mat","/var/lib/jenkins1/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_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches