Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_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_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_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.001046/0.001046, allocations: 183.3 kB / 13.19 MB, free: 2.129 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.32/1.32, allocations: 205.2 MB / 218.9 MB, free: 9.207 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.0008777/0.0008778, allocations: 84.48 kB / 267 MB, free: 9.281 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.3413/0.3413, allocations: 43.47 MB / 358.6 MB, free: 51.57 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 2.659e-05/2.662e-05, allocations: 4 kB / 425.3 MB, free: 8.211 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1203/0.1203, allocations: 58.85 MB / 484.2 MB, free: 13.25 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.63/5.75, allocations: 2.765 GB / 3.238 GB, free: 59.78 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002601/5.75, allocations: 89.14 kB / 3.238 GB, free: 59.74 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 1.79/7.54, allocations: 0.5534 GB / 3.792 GB, free: 45.5 MB / 0.5105 GB Notification: Performance of FrontEnd: time 1.983e-06/7.54, allocations: 0 / 3.792 GB, free: 45.5 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0001051/7.54, allocations: 28.59 kB / 3.792 GB, free: 45.49 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.007072/7.547, allocations: 2.036 MB / 3.794 GB, free: 44.52 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 3.866e-05/7.547, allocations: 15.78 kB / 3.794 GB, free: 44.51 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0023/7.55, allocations: 316.5 kB / 3.794 GB, free: 44.46 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001343/7.551, allocations: 0.679 MB / 3.795 GB, free: 44.19 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001634/7.551, allocations: 302.4 kB / 3.795 GB, free: 43.94 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001778/7.551, allocations: 84.91 kB / 3.795 GB, free: 43.94 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002536/7.554, allocations: 1.494 MB / 3.796 GB, free: 43.66 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.489e-05/7.554, allocations: 1.031 kB / 3.796 GB, free: 43.66 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001065/7.554, allocations: 38.19 kB / 3.796 GB, free: 43.66 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.846e-05/7.554, allocations: 43.48 kB / 3.796 GB, free: 43.65 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002155/7.556, allocations: 1.276 MB / 3.798 GB, free: 43.64 MB / 0.5105 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.006251/7.562, allocations: 6.398 MB / 3.804 GB, free: 39.59 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001778/7.564, allocations: 0.8988 MB / 3.805 GB, free: 39.53 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004486/7.565, allocations: 389.3 kB / 3.805 GB, free: 39.51 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02422/7.589, allocations: 15.6 MB / 3.82 GB, free: 30.05 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.847e-05/7.589, allocations: 46.38 kB / 3.82 GB, free: 30.01 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=59): time 2.234e-06/7.589, allocations: 0 / 3.82 GB, free: 30.01 MB / 0.5105 GB Notification: Performance of matching and sorting (n=64): time 0.005413/7.594, allocations: 2.497 MB / 3.823 GB, free: 29.45 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.938e-05/7.594, allocations: 174.7 kB / 3.823 GB, free: 29.26 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007417/7.595, allocations: 0.715 MB / 3.824 GB, free: 29.12 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 7.513e-05/7.595, allocations: 47.3 kB / 3.824 GB, free: 29.09 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002249/7.595, allocations: 435.7 kB / 3.824 GB, free: 28.89 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001365/7.596, allocations: 219.2 kB / 3.824 GB, free: 28.76 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.791e-05/7.596, allocations: 20.81 kB / 3.824 GB, free: 28.76 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 9.974e-05/7.596, allocations: 392.6 kB / 3.825 GB, free: 28.45 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005008/7.596, allocations: 381.6 kB / 3.825 GB, free: 28.45 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005653/7.597, allocations: 0.6018 MB / 3.826 GB, free: 28.19 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004823/7.597, allocations: 408.4 kB / 3.826 GB, free: 28.16 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.196e-06/7.597, allocations: 0 / 3.826 GB, free: 28.16 MB / 0.5105 GB Notification: Performance of matching and sorting (n=108) (initialization): time 0.001495/7.599, allocations: 1.101 MB / 3.827 GB, free: 28.06 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.975e-05/7.599, allocations: 15.06 kB / 3.827 GB, free: 28.05 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.011e-05/7.599, allocations: 7.031 kB / 3.827 GB, free: 28.05 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002872/7.599, allocations: 88.25 kB / 3.827 GB, free: 28.05 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003174/7.602, allocations: 412.3 kB / 3.828 GB, free: 28.04 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005225/7.608, allocations: 6.412 MB / 3.834 GB, free: 38.23 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000878/7.609, allocations: 130.6 kB / 3.834 GB, free: 38.22 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.626e-05/7.609, allocations: 43.28 kB / 3.834 GB, free: 38.22 MB / 0.5261 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 () * 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.0001993/7.609, allocations: 177.2 kB / 3.834 GB, free: 38.11 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001404/7.609, allocations: 86.28 kB / 3.834 GB, free: 38.06 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002047/7.611, allocations: 2.133 MB / 3.836 GB, free: 37.77 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.518e-05/7.611, allocations: 22.25 kB / 3.836 GB, free: 37.76 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.655e-06/7.611, allocations: 0 / 3.836 GB, free: 37.76 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.342e-06/7.611, allocations: 3.75 kB / 3.837 GB, free: 37.76 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003682/7.615, allocations: 3.373 MB / 3.84 GB, free: 37.33 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.388e-06/7.615, allocations: 2.938 kB / 3.84 GB, free: 37.33 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003101/7.618, allocations: 370.3 kB / 3.84 GB, free: 37.32 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002984/7.618, allocations: 106.4 kB / 3.84 GB, free: 37.31 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.445e-05/7.618, allocations: 16.16 kB / 3.84 GB, free: 37.31 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005079/7.623, allocations: 6.385 MB / 3.847 GB, free: 31.46 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.647e-06/7.623, allocations: 11.75 kB / 3.847 GB, free: 31.45 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002088/7.625, allocations: 2.064 MB / 3.849 GB, free: 30.38 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004085/7.626, allocations: 340.7 kB / 3.849 GB, free: 30.14 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002004/7.626, allocations: 31.16 kB / 3.849 GB, free: 30.12 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008466/7.627, allocations: 118.3 kB / 3.849 GB, free: 30.1 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00023/7.627, allocations: 128.7 kB / 3.849 GB, free: 30.08 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.914e-05/7.627, allocations: 34.47 kB / 3.849 GB, free: 30.07 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.0009658/7.628, allocations: 0.865 MB / 3.85 GB, free: 29.71 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.3e-07/7.628, allocations: 3 kB / 3.85 GB, free: 29.71 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.004974/7.633, allocations: 1.3 MB / 3.851 GB, free: 29.46 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]) * 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.007695/7.641, allocations: 1.884 MB / 3.853 GB, free: 28.99 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.003645/7.645, allocations: 1.174 MB / 3.854 GB, free: 28.62 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 5.861e-06/7.645, allocations: 8.594 kB / 3.854 GB, free: 28.61 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.002914/7.648, allocations: 0.8555 MB / 3.855 GB, free: 28.34 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00234/7.65, allocations: 0.5372 MB / 3.856 GB, free: 28.2 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002762/7.653, allocations: 1.932 MB / 3.858 GB, free: 27.34 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007176/7.653, allocations: 1.245 MB / 3.859 GB, free: 26.58 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.001117/7.655, allocations: 495.8 kB / 3.859 GB, free: 26.54 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002545/7.655, allocations: 76.84 kB / 3.859 GB, free: 26.54 MB / 0.5261 GB Notification: Performance of SimCode: time 3.21e-07/7.655, allocations: 0 / 3.859 GB, free: 26.54 MB / 0.5261 GB Notification: Performance of Templates: time 0.3186/7.973, allocations: 54.31 MB / 3.912 GB, free: 59.26 MB / 0.5261 GB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts.sim & ./ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts_res.mat","/var/lib/jenkins/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_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches