Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009718/0.0009718, allocations: 197.7 kB / 16.79 MB, free: 5.039 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.332/1.332, allocations: 226.5 MB / 244.1 MB, free: 8.242 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000825/0.000825, allocations: 108.6 kB / 296.1 MB, free: 6.914 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.4185/0.4185, allocations: 44.83 MB / 393 MB, free: 35.74 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000315/0.0003151, allocations: 8 kB / 465.9 MB, free: 12.74 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3943/0.3946, allocations: 62.95 MB / 0.5165 GB, free: 37.05 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.001/6.395, allocations: 2.772 GB / 3.288 GB, free: 159.4 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002818/6.396, allocations: 89.59 kB / 3.288 GB, free: 159.4 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 1.757/8.152, allocations: 0.5338 GB / 3.822 GB, free: 59.11 MB / 0.5417 GB Notification: Performance of FrontEnd: time 2.564e-06/8.152, allocations: 0 / 3.822 GB, free: 59.11 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 6.847e-05/8.152, allocations: 25.91 kB / 3.822 GB, free: 59.1 MB / 0.5417 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.007493/8.16, allocations: 2.122 MB / 3.824 GB, free: 58.03 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.424e-05/8.16, allocations: 6.312 kB / 3.824 GB, free: 58.03 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002073/8.162, allocations: 319.2 kB / 3.825 GB, free: 57.97 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001083/8.163, allocations: 0.6958 MB / 3.825 GB, free: 57.54 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001654/8.163, allocations: 301.2 kB / 3.826 GB, free: 57.25 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000126/8.163, allocations: 84.7 kB / 3.826 GB, free: 57.23 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002814/8.166, allocations: 1.529 MB / 3.827 GB, free: 56.58 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.791e-05/8.166, allocations: 10.88 kB / 3.827 GB, free: 56.57 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001048/8.166, allocations: 38.02 kB / 3.827 GB, free: 56.55 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.521e-05/8.167, allocations: 43.58 kB / 3.827 GB, free: 56.54 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002789/8.169, allocations: 1.367 MB / 3.829 GB, free: 56.19 MB / 0.5417 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.006813/8.176, allocations: 6.407 MB / 3.835 GB, free: 51.39 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002557/8.179, allocations: 0.9914 MB / 3.836 GB, free: 51.11 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008208/8.18, allocations: 459 kB / 3.836 GB, free: 50.96 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02908/8.209, allocations: 17 MB / 3.853 GB, free: 39.56 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.229e-05/8.209, allocations: 38.84 kB / 3.853 GB, free: 39.52 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=59): time 2.935e-06/8.209, allocations: 0 / 3.853 GB, free: 39.52 MB / 0.5417 GB Notification: Performance of matching and sorting (n=64): time 0.00909/8.218, allocations: 3.02 MB / 3.856 GB, free: 38.31 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.918e-05/8.218, allocations: 166.6 kB / 3.856 GB, free: 38.12 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001117/8.219, allocations: 0.8059 MB / 3.857 GB, free: 37.79 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.0001046/8.219, allocations: 48.88 kB / 3.857 GB, free: 37.75 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003215/8.22, allocations: 442.1 kB / 3.857 GB, free: 37.4 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001938/8.22, allocations: 217.4 kB / 3.857 GB, free: 37.25 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.078e-05/8.22, allocations: 15.59 kB / 3.857 GB, free: 37.23 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001407/8.22, allocations: 400.8 kB / 3.858 GB, free: 36.89 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009192/8.221, allocations: 445.9 kB / 3.858 GB, free: 36.75 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009718/8.222, allocations: 0.6703 MB / 3.859 GB, free: 36.33 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001601/8.223, allocations: 0.9802 MB / 3.86 GB, free: 35.79 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.781e-06/8.223, allocations: 0 / 3.86 GB, free: 35.79 MB / 0.5417 GB Notification: Performance of matching and sorting (n=108) (initialization): time 0.002437/8.226, allocations: 1.229 MB / 3.861 GB, free: 35.34 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 2.553e-05/8.226, allocations: 10.91 kB / 3.861 GB, free: 35.34 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.305e-05/8.226, allocations: 11.94 kB / 3.861 GB, free: 35.33 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003597/8.226, allocations: 94.41 kB / 3.861 GB, free: 35.3 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003262/8.23, allocations: 408.2 kB / 3.862 GB, free: 35.28 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005256/8.235, allocations: 6.422 MB / 3.868 GB, free: 29.09 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001291/8.236, allocations: 146.4 kB / 3.868 GB, free: 29.06 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001387/8.236, allocations: 38.06 kB / 3.868 GB, free: 29.05 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.0007304/8.237, allocations: 337.3 kB / 3.868 GB, free: 28.84 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002519/8.237, allocations: 92.78 kB / 3.868 GB, free: 28.79 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003138/8.241, allocations: 2.242 MB / 3.871 GB, free: 27.8 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.761e-05/8.241, allocations: 19.41 kB / 3.871 GB, free: 27.8 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.607e-06/8.241, allocations: 0 / 3.871 GB, free: 27.8 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.001e-05/8.241, allocations: 7.875 kB / 3.871 GB, free: 27.8 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005173/8.246, allocations: 3.503 MB / 3.874 GB, free: 26.28 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.702e-06/8.246, allocations: 3.312 kB / 3.874 GB, free: 26.28 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003237/8.249, allocations: 380.8 kB / 3.874 GB, free: 26.25 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003371/8.249, allocations: 95.77 kB / 3.875 GB, free: 26.22 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.964e-05/8.249, allocations: 20.64 kB / 3.875 GB, free: 26.21 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004936/8.254, allocations: 6.41 MB / 3.881 GB, free: 20.03 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.045e-06/8.254, allocations: 3.938 kB / 3.881 GB, free: 20.03 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003361/8.258, allocations: 2.188 MB / 3.883 GB, free: 19.01 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006472/8.258, allocations: 346.2 kB / 3.883 GB, free: 18.77 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003277/8.259, allocations: 28.64 kB / 3.883 GB, free: 18.75 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001055/8.26, allocations: 117 kB / 3.883 GB, free: 18.73 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002866/8.26, allocations: 129.5 kB / 3.884 GB, free: 18.71 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.647e-05/8.26, allocations: 25.38 kB / 3.884 GB, free: 18.71 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.001368/8.262, allocations: 0.8815 MB / 3.884 GB, free: 18.36 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.6e-07/8.262, allocations: 3.062 kB / 3.884 GB, free: 18.36 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.006739/8.268, allocations: 1.308 MB / 3.886 GB, free: 18.11 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.01045/8.279, allocations: 1.903 MB / 3.888 GB, free: 17.64 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.005399/8.284, allocations: 1.339 MB / 3.889 GB, free: 17.27 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 8.827e-06/8.284, allocations: 8 kB / 3.889 GB, free: 17.26 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.003799/8.288, allocations: 0.9437 MB / 3.89 GB, free: 16.99 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003488/8.292, allocations: 0.5208 MB / 3.89 GB, free: 16.87 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004892/8.297, allocations: 3.08 MB / 3.893 GB, free: 15.15 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007815/8.297, allocations: 1.203 MB / 3.895 GB, free: 14.39 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003759/8.298, allocations: 87.55 kB / 3.895 GB, free: 14.36 MB / 0.5417 GB Notification: Performance of SimCode: time 1.232e-06/8.298, allocations: 4 kB / 3.895 GB, free: 14.36 MB / 0.5417 GB Notification: Performance of Templates: time 0.4382/8.736, allocations: 63.71 MB / 3.957 GB, free: 74.21 MB / 0.5573 GB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_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","../files/ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches