Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Storage.Examples.ExpansionVessel.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(BuildingSystems.Fluid.Storage.Examples.ExpansionVessel,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Storage.Examples.ExpansionVessel") translateModel(BuildingSystems.Fluid.Storage.Examples.ExpansionVessel,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Storage.Examples.ExpansionVessel") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001235/0.001235, allocations: 84.38 kB / 15.06 MB, free: 1.09 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001562/0.001562, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.347/1.347, allocations: 223.3 MB / 240 MB, free: 5.391 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001808/0.001808, allocations: 273.5 kB / 291.4 MB, free: 1.941 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9544/0.9544, allocations: 169.5 MB / 0.5 GB, free: 14.22 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004279/0.0004282, allocations: 14.75 kB / 0.598 GB, free: 28.14 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1418/0.1423, allocations: 88.55 MB / 0.6845 GB, free: 15.47 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Storage.Examples.ExpansionVessel): time 0.01252/0.1548, allocations: 13.17 MB / 0.6973 GB, free: 2.273 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.004703/0.1596, allocations: 3.401 MB / 0.7007 GB, free: 14.86 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004223/0.16, allocations: 19.88 kB / 0.7007 GB, free: 14.84 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.000503/0.1605, allocations: 151.1 kB / 0.7008 GB, free: 14.7 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.00112/0.1617, allocations: 489.5 kB / 0.7013 GB, free: 14.21 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007917/0.1625, allocations: 293.2 kB / 0.7016 GB, free: 13.93 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.001288/0.1638, allocations: 1.251 MB / 0.7028 GB, free: 12.68 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003591/0.1641, allocations: 234.7 kB / 0.703 GB, free: 12.45 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000404/0.1645, allocations: 314.7 kB / 0.7033 GB, free: 12.14 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003393/0.1649, allocations: 278.8 kB / 0.7036 GB, free: 11.87 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 4.094e-05/0.1649, allocations: 15.94 kB / 0.7036 GB, free: 11.85 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003917/0.1653, allocations: 151.6 kB / 0.7037 GB, free: 11.7 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 8.797e-05/0.1654, allocations: 71.72 kB / 0.7038 GB, free: 11.63 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 9.242e-05/0.1655, allocations: 101.5 kB / 0.7039 GB, free: 11.53 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0004412/0.166, allocations: 423 kB / 0.7043 GB, free: 11.11 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.038e-06/0.166, allocations: 0 / 0.7043 GB, free: 11.11 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.162e-06/0.166, allocations: 0 / 0.7043 GB, free: 11.11 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 5.941e-06/0.166, allocations: 0 / 0.7043 GB, free: 11.11 MB / 0.4981 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 62 * Number of variables: 62 Notification: Performance of Generate backend data structure: time 0.0009637/0.167, allocations: 0.6795 MB / 0.705 GB, free: 10.38 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.346e-05/0.167, allocations: 8.031 kB / 0.705 GB, free: 10.37 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001641/0.1672, allocations: 47.53 kB / 0.705 GB, free: 10.32 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006964/0.1679, allocations: 474.5 kB / 0.7055 GB, free: 9.82 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.607e-05/0.1679, allocations: 28.5 kB / 0.7055 GB, free: 9.793 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.82e-05/0.168, allocations: 24 kB / 0.7055 GB, free: 9.77 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000553/0.1686, allocations: 318.2 kB / 0.7058 GB, free: 9.438 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.385e-05/0.1686, allocations: 4 kB / 0.7058 GB, free: 9.434 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.182e-05/0.1686, allocations: 12 kB / 0.7059 GB, free: 9.422 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.753e-05/0.1686, allocations: 4 kB / 0.7059 GB, free: 9.418 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004532/0.1691, allocations: 206 kB / 0.7061 GB, free: 9.219 MB / 0.4981 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.001688/0.1708, allocations: 1.489 MB / 0.7075 GB, free: 7.598 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004147/0.1712, allocations: 162.6 kB / 0.7077 GB, free: 7.43 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001675/0.1714, allocations: 72.83 kB / 0.7077 GB, free: 7.355 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001528/0.1716, allocations: 85.09 kB / 0.7078 GB, free: 7.254 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002823/0.1719, allocations: 135.2 kB / 0.7079 GB, free: 7.109 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=15): time 1.723e-06/0.1719, allocations: 0 / 0.7079 GB, free: 7.109 MB / 0.4981 GB Notification: Performance of matching and sorting (n=15): time 0.0005901/0.1725, allocations: 250.9 kB / 0.7082 GB, free: 6.859 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.3e-05/0.1725, allocations: 55.36 kB / 0.7082 GB, free: 6.793 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003424/0.1729, allocations: 341.6 kB / 0.7086 GB, free: 6.449 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.51e-05/0.1729, allocations: 29.7 kB / 0.7086 GB, free: 6.414 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001476/0.1731, allocations: 219.7 kB / 0.7088 GB, free: 6.191 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 4.871e-05/0.1731, allocations: 51.28 kB / 0.7088 GB, free: 6.141 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.688e-05/0.1731, allocations: 11.94 kB / 0.7089 GB, free: 6.129 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001161/0.1733, allocations: 342.8 kB / 0.7092 GB, free: 5.785 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001883/0.1735, allocations: 71.95 kB / 0.7093 GB, free: 5.715 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002252/0.1737, allocations: 158.6 kB / 0.7094 GB, free: 5.527 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00022/0.1739, allocations: 127.5 kB / 0.7095 GB, free: 5.398 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.715e-06/0.1739, allocations: 0 / 0.7095 GB, free: 5.398 MB / 0.4981 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.000579/0.1745, allocations: 311 kB / 0.7098 GB, free: 5.082 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 3.374e-05/0.1746, allocations: 41.73 kB / 0.7099 GB, free: 5.035 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.735e-06/0.1746, allocations: 4 kB / 0.7099 GB, free: 5.031 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.406e-05/0.1746, allocations: 7.984 kB / 0.7099 GB, free: 5.023 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002242/0.1748, allocations: 55.91 kB / 0.7099 GB, free: 4.969 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.244e-05/0.1748, allocations: 11.89 kB / 0.7099 GB, free: 4.957 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002613/0.1751, allocations: 39.72 kB / 0.71 GB, free: 4.918 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.498e-05/0.1751, allocations: 20 kB / 0.71 GB, free: 4.898 MB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (29): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001624/0.1753, allocations: 162.4 kB / 0.7101 GB, free: 4.73 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.49e-05/0.1754, allocations: 31.62 kB / 0.7102 GB, free: 4.699 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004526/0.1758, allocations: 200.6 kB / 0.7104 GB, free: 4.5 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.396e-06/0.1758, allocations: 0 / 0.7104 GB, free: 4.5 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.538e-06/0.1759, allocations: 0 / 0.7104 GB, free: 4.5 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000475/0.1763, allocations: 0.4938 MB / 0.7109 GB, free: 3.922 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004179/0.1768, allocations: 353.3 kB / 0.7112 GB, free: 3.527 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.1768, allocations: 4 kB / 0.7112 GB, free: 3.523 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001655/0.1769, allocations: 35.91 kB / 0.7112 GB, free: 3.488 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.605e-06/0.177, allocations: 4 kB / 0.7112 GB, free: 3.484 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.727e-05/0.177, allocations: 4 kB / 0.7112 GB, free: 3.48 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.964e-06/0.177, allocations: 0 / 0.7112 GB, free: 3.48 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.12e-07/0.177, allocations: 0 / 0.7112 GB, free: 3.48 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005798/0.1776, allocations: 300.5 kB / 0.7115 GB, free: 3.168 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001279/0.1777, allocations: 128.7 kB / 0.7116 GB, free: 3.023 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.826e-05/0.1778, allocations: 8 kB / 0.7117 GB, free: 3.016 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002273/0.178, allocations: 27.97 kB / 0.7117 GB, free: 2.988 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.578e-05/0.1781, allocations: 15.97 kB / 0.7117 GB, free: 2.973 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.971e-05/0.1781, allocations: 8 kB / 0.7117 GB, free: 2.965 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0002286/0.1783, allocations: 235.2 kB / 0.7119 GB, free: 2.742 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.8e-07/0.1783, allocations: 3.938 kB / 0.7119 GB, free: 2.738 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0004204/0.1788, allocations: 119.9 kB / 0.712 GB, free: 2.621 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (expVes.m,expVes.H,vol.dynBal.U) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002934/0.1791, allocations: 171.1 kB / 0.7122 GB, free: 2.441 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0004729/0.1796, allocations: 240.1 kB / 0.7124 GB, free: 2.195 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.1796, allocations: 0 / 0.7124 GB, free: 2.195 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001787/0.1798, allocations: 75.89 kB / 0.7125 GB, free: 2.121 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000902/0.1807, allocations: 199.7 kB / 0.7127 GB, free: 1.93 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001416/0.1821, allocations: 0.9526 MB / 0.7136 GB, free: 0.9531 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003481/0.1825, allocations: 0.7923 MB / 0.7144 GB, free: 136 kB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.000265/0.1827, allocations: 59.25 kB / 0.7145 GB, free: 76 kB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.682e-05/0.1828, allocations: 35.42 kB / 0.7145 GB, free: 40 kB / 0.4981 GB Notification: Performance of SimCode: time 2.5e-07/0.1828, allocations: 0 / 0.7145 GB, free: 40 kB / 0.4981 GB Notification: Performance of Templates: time 0.01168/0.1945, allocations: 6.348 MB / 0.7207 GB, free: 9.809 MB / 0.5137 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.Storage.Examples.ExpansionVessel.makefile (rm -f BuildingSystems_BuildingSystems.Fluid.Storage.Examples.ExpansionVessel.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Storage.Examples.ExpansionVessel.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Storage.Examples.ExpansionVessel.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Storage.Examples.ExpansionVessel.sim & ./BuildingSystems_BuildingSystems.Fluid.Storage.Examples.ExpansionVessel -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Storage.Examples.ExpansionVessel.pipe 2>&1)