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.002389/0.002388, allocations: 186.3 kB / 16.4 MB, free: 5.75 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.941/1.941, allocations: 205.4 MB / 222.5 MB, free: 9.125 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001108/0.001108, allocations: 95.55 kB / 270.9 MB, free: 8.383 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.5023/0.5023, allocations: 43.56 MB / 362.7 MB, free: 52.12 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004758/0.0004759, allocations: 20 kB / 431.4 MB, free: 6.184 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1244/0.1249, allocations: 58.84 MB / 490.2 MB, free: 11.26 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.294/8.419, allocations: 2.765 GB / 3.244 GB, free: 49.56 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003055/8.42, allocations: 91.2 kB / 3.244 GB, free: 49.51 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 2.907/11.33, allocations: 0.555 GB / 3.799 GB, free: 48.99 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.815e-06/11.33, allocations: 0 / 3.799 GB, free: 48.99 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 9.226e-05/11.33, allocations: 27.12 kB / 3.799 GB, free: 48.99 MB / 0.5105 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.009754/11.34, allocations: 2.125 MB / 3.801 GB, free: 47.85 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.607e-05/11.34, allocations: 11.06 kB / 3.801 GB, free: 47.85 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00364/11.34, allocations: 316.2 kB / 3.801 GB, free: 47.79 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002174/11.34, allocations: 0.6817 MB / 3.802 GB, free: 47.38 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002482/11.34, allocations: 297.7 kB / 3.802 GB, free: 47.1 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002587/11.34, allocations: 90.05 kB / 3.803 GB, free: 47.07 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005323/11.35, allocations: 1.522 MB / 3.804 GB, free: 46.42 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.604e-05/11.35, allocations: 3.969 kB / 3.804 GB, free: 46.42 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001829/11.35, allocations: 38.56 kB / 3.804 GB, free: 46.4 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.545e-05/11.35, allocations: 42.73 kB / 3.804 GB, free: 46.39 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005714/11.35, allocations: 1.368 MB / 3.805 GB, free: 46.04 MB / 0.5105 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.01314/11.37, allocations: 6.409 MB / 3.812 GB, free: 41.22 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004639/11.37, allocations: 1 MB / 3.813 GB, free: 40.94 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04882/11.42, allocations: 15.56 MB / 3.828 GB, free: 30.8 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.841e-05/11.42, allocations: 46.81 kB / 3.828 GB, free: 30.76 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=59): time 3.015e-06/11.42, allocations: 3.938 kB / 3.828 GB, free: 30.75 MB / 0.5105 GB Notification: Performance of matching and sorting (n=64): time 0.0138/11.44, allocations: 3.021 MB / 3.831 GB, free: 29.54 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.614e-05/11.44, allocations: 165.9 kB / 3.831 GB, free: 29.35 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001391/11.44, allocations: 0.724 MB / 3.832 GB, free: 29.06 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0002691/11.44, allocations: 48.66 kB / 3.832 GB, free: 29.02 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003371/11.44, allocations: 451.4 kB / 3.832 GB, free: 28.63 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003325/11.44, allocations: 216 kB / 3.832 GB, free: 28.47 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000106/11.44, allocations: 15.69 kB / 3.832 GB, free: 28.46 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 9.405e-05/11.44, allocations: 349 kB / 3.833 GB, free: 28.13 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00162/11.44, allocations: 446.1 kB / 3.833 GB, free: 27.99 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001738/11.44, allocations: 0.6672 MB / 3.834 GB, free: 27.57 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001617/11.44, allocations: 468 kB / 3.834 GB, free: 27.41 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.931e-06/11.44, allocations: 0 / 3.834 GB, free: 27.41 MB / 0.5105 GB Notification: Performance of matching and sorting (n=108) (initialization): time 0.004117/11.45, allocations: 1.186 MB / 3.835 GB, free: 26.98 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 2.783e-05/11.45, allocations: 7.875 kB / 3.835 GB, free: 26.98 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.446e-05/11.45, allocations: 7.656 kB / 3.835 GB, free: 26.98 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005157/11.45, allocations: 89.77 kB / 3.836 GB, free: 26.95 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007184/11.46, allocations: 409.6 kB / 3.836 GB, free: 26.93 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008844/11.46, allocations: 6.472 MB / 3.842 GB, free: 20.72 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002055/11.47, allocations: 143 kB / 3.842 GB, free: 20.68 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001521/11.47, allocations: 44.06 kB / 3.842 GB, free: 20.68 MB / 0.5105 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.0008009/11.47, allocations: 336.2 kB / 3.843 GB, free: 20.47 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002947/11.47, allocations: 85.31 kB / 3.843 GB, free: 20.43 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005133/11.47, allocations: 2.252 MB / 3.845 GB, free: 19.42 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.707e-05/11.47, allocations: 26.53 kB / 3.845 GB, free: 19.41 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.147e-06/11.47, allocations: 0 / 3.845 GB, free: 19.41 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.411e-05/11.47, allocations: 3.656 kB / 3.845 GB, free: 19.41 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008469/11.48, allocations: 3.502 MB / 3.848 GB, free: 17.89 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.123e-05/11.48, allocations: 3.125 kB / 3.848 GB, free: 17.89 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006953/11.49, allocations: 364.8 kB / 3.849 GB, free: 17.88 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005586/11.49, allocations: 104.6 kB / 3.849 GB, free: 17.84 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001763/11.49, allocations: 22.64 kB / 3.849 GB, free: 17.83 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008734/11.5, allocations: 6.433 MB / 3.855 GB, free: 11.64 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.279e-06/11.5, allocations: 7.688 kB / 3.855 GB, free: 11.64 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005727/11.5, allocations: 2.263 MB / 3.857 GB, free: 10.54 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007112/11.5, allocations: 341.5 kB / 3.858 GB, free: 10.29 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004189/11.5, allocations: 33.12 kB / 3.858 GB, free: 10.28 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00171/11.51, allocations: 122.1 kB / 3.858 GB, free: 10.25 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004571/11.51, allocations: 129.4 kB / 3.858 GB, free: 10.23 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001053/11.51, allocations: 25.16 kB / 3.858 GB, free: 10.23 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.00174/11.51, allocations: 0.8859 MB / 3.859 GB, free: 9.883 MB / 0.5105 GB Notification: Performance of sort global known variables: time 6.51e-07/11.51, allocations: 0 / 3.859 GB, free: 9.883 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.006771/11.52, allocations: 1.302 MB / 3.86 GB, free: 9.496 MB / 0.5105 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.01079/11.53, allocations: 1.867 MB / 3.862 GB, free: 8.074 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.00833/11.54, allocations: 1.315 MB / 3.863 GB, free: 7 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.006e-05/11.54, allocations: 3.906 kB / 3.863 GB, free: 6.996 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.006619/11.54, allocations: 0.9091 MB / 3.864 GB, free: 6.266 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004557/11.55, allocations: 0.518 MB / 3.865 GB, free: 5.891 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005924/11.55, allocations: 3.069 MB / 3.868 GB, free: 3.098 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000771/11.55, allocations: 1.233 MB / 3.869 GB, free: 2.031 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005537/11.55, allocations: 90.84 kB / 3.869 GB, free: 1.949 MB / 0.5105 GB Notification: Performance of SimCode: time 1.052e-06/11.55, allocations: 0 / 3.869 GB, free: 1.949 MB / 0.5105 GB Notification: Performance of Templates: time 0.5131/12.07, allocations: 64.73 MB / 3.932 GB, free: 61.34 MB / 0.5261 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