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.0009099/0.0009098, allocations: 180.5 kB / 17.41 MB, free: 4.406 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.281/1.281, allocations: 205.4 MB / 223.6 MB, free: 8.941 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.0007747/0.0007746, allocations: 94.3 kB / 271.9 MB, free: 8.23 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.3175/0.3175, allocations: 43.55 MB / 363.7 MB, free: 51.87 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003549/0.0003549, allocations: 12 kB / 432.6 MB, free: 5.648 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1178/0.1182, allocations: 58.86 MB / 491.5 MB, free: 10.7 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.252/5.37, allocations: 2.766 GB / 3.246 GB, free: 110.2 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002795/5.37, allocations: 87.14 kB / 3.246 GB, free: 110.2 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 1.873/7.244, allocations: 0.5279 GB / 3.774 GB, free: 44.84 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.324e-06/7.244, allocations: 0 / 3.774 GB, free: 44.84 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 5.996e-05/7.244, allocations: 26.25 kB / 3.774 GB, free: 44.84 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.008164/7.252, allocations: 2.113 MB / 3.776 GB, free: 44.02 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.011e-05/7.252, allocations: 8.781 kB / 3.776 GB, free: 44.02 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002486/7.254, allocations: 318.7 kB / 3.776 GB, free: 43.97 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001418/7.256, allocations: 0.7021 MB / 3.777 GB, free: 43.68 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001772/7.256, allocations: 303 kB / 3.777 GB, free: 43.43 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001261/7.256, allocations: 78.5 kB / 3.777 GB, free: 43.43 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003031/7.259, allocations: 1.528 MB / 3.778 GB, free: 43.14 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.204e-05/7.259, allocations: 13.16 kB / 3.778 GB, free: 43.14 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000109/7.259, allocations: 37.34 kB / 3.779 GB, free: 43.14 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.61e-05/7.26, allocations: 43.92 kB / 3.779 GB, free: 43.14 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003118/7.263, allocations: 1.368 MB / 3.78 GB, free: 43.13 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.007886/7.271, allocations: 6.419 MB / 3.786 GB, free: 39.07 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002636/7.273, allocations: 0.9926 MB / 3.787 GB, free: 39.01 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000912/7.274, allocations: 456.9 kB / 3.788 GB, free: 38.99 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0287/7.303, allocations: 15.56 MB / 3.803 GB, free: 29.6 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.803e-05/7.303, allocations: 46.5 kB / 3.803 GB, free: 29.56 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=59): time 3.597e-06/7.303, allocations: 0 / 3.803 GB, free: 29.56 MB / 0.5105 GB Notification: Performance of matching and sorting (n=64): time 0.009601/7.313, allocations: 3.019 MB / 3.806 GB, free: 29.02 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.883e-05/7.313, allocations: 165.5 kB / 3.806 GB, free: 28.83 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001453/7.314, allocations: 0.8062 MB / 3.807 GB, free: 28.69 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.000133/7.314, allocations: 49.5 kB / 3.807 GB, free: 28.66 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004892/7.315, allocations: 439.1 kB / 3.807 GB, free: 28.45 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002681/7.315, allocations: 215 kB / 3.807 GB, free: 28.32 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.986e-05/7.315, allocations: 21.97 kB / 3.807 GB, free: 28.32 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.000253/7.315, allocations: 396.5 kB / 3.808 GB, free: 28.01 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001334/7.317, allocations: 449.9 kB / 3.808 GB, free: 28.01 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001395/7.318, allocations: 0.6739 MB / 3.809 GB, free: 27.75 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002048/7.32, allocations: 0.9768 MB / 3.81 GB, free: 27.52 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.414e-06/7.32, allocations: 3.094 kB / 3.81 GB, free: 27.52 MB / 0.5105 GB Notification: Performance of matching and sorting (n=108) (initialization): time 0.00293/7.323, allocations: 1.23 MB / 3.811 GB, free: 27.41 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 3.112e-05/7.323, allocations: 11.36 kB / 3.811 GB, free: 27.41 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.358e-05/7.323, allocations: 10.81 kB / 3.811 GB, free: 27.41 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00036/7.324, allocations: 87.52 kB / 3.811 GB, free: 27.41 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003415/7.327, allocations: 407.8 kB / 3.812 GB, free: 27.41 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005219/7.332, allocations: 6.434 MB / 3.818 GB, free: 21.61 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001411/7.334, allocations: 139.5 kB / 3.818 GB, free: 21.6 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.53e-05/7.334, allocations: 44.61 kB / 3.818 GB, free: 21.6 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.0005955/7.334, allocations: 330.8 kB / 3.818 GB, free: 21.48 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000169/7.335, allocations: 94.27 kB / 3.818 GB, free: 21.43 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002922/7.338, allocations: 2.243 MB / 3.821 GB, free: 21.16 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.616e-05/7.338, allocations: 18.97 kB / 3.821 GB, free: 21.16 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.258e-06/7.338, allocations: 0 / 3.821 GB, free: 21.16 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.366e-06/7.338, allocations: 3.188 kB / 3.821 GB, free: 21.16 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004875/7.342, allocations: 3.517 MB / 3.824 GB, free: 20.73 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.66e-06/7.343, allocations: 0 / 3.824 GB, free: 20.73 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003318/7.346, allocations: 370.3 kB / 3.824 GB, free: 20.73 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003178/7.346, allocations: 98.66 kB / 3.824 GB, free: 20.72 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.69e-05/7.346, allocations: 24.14 kB / 3.824 GB, free: 20.72 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005918/7.352, allocations: 6.403 MB / 3.831 GB, free: 30.92 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.427e-06/7.352, allocations: 6.375 kB / 3.831 GB, free: 30.92 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003247/7.355, allocations: 2.192 MB / 3.833 GB, free: 30.55 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006143/7.356, allocations: 343 kB / 3.833 GB, free: 30.36 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001794/7.356, allocations: 24.59 kB / 3.833 GB, free: 30.36 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000873/7.357, allocations: 120.3 kB / 3.833 GB, free: 30.36 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002959/7.358, allocations: 131.9 kB / 3.833 GB, free: 30.35 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.584e-05/7.358, allocations: 26.39 kB / 3.833 GB, free: 30.35 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.001224/7.359, allocations: 0.8879 MB / 3.834 GB, free: 30.24 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.41e-07/7.359, allocations: 0 / 3.834 GB, free: 30.24 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.006698/7.366, allocations: 1.301 MB / 3.836 GB, free: 30.08 MB / 0.5261 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.007432/7.373, allocations: 1.892 MB / 3.837 GB, free: 29.75 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.00507/7.378, allocations: 1.339 MB / 3.839 GB, free: 29.73 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 7.304e-06/7.378, allocations: 0 / 3.839 GB, free: 29.73 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.003678/7.382, allocations: 0.9476 MB / 3.84 GB, free: 29.71 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003012/7.385, allocations: 0.525 MB / 3.84 GB, free: 29.68 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00384/7.389, allocations: 3.069 MB / 3.843 GB, free: 28.28 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000701/7.389, allocations: 1.205 MB / 3.844 GB, free: 27.55 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003519/7.39, allocations: 89.33 kB / 3.844 GB, free: 27.55 MB / 0.5261 GB Notification: Performance of SimCode: time 1.042e-06/7.39, allocations: 0 / 3.844 GB, free: 27.55 MB / 0.5261 GB Notification: Performance of Templates: time 0.07074/7.461, allocations: 63.57 MB / 3.907 GB, free: 20.91 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