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.001553/0.001553, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001847/0.001847, allocations: 198.5 kB / 16.14 MB, free: 6.707 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.351/1.351, allocations: 222.9 MB / 239.8 MB, free: 4.613 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002022/0.002022, allocations: 280.2 kB / 290.2 MB, free: 2.223 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9872/0.9872, allocations: 169.2 MB / 0.4977 GB, free: 14.14 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002521/0.002522, allocations: 85.22 kB / 0.5945 GB, free: 28.33 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1499/0.1524, allocations: 86.98 MB / 0.6794 GB, free: 1.18 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Storage.Examples.ExpansionVessel): time 0.01363/0.1661, allocations: 14.38 MB / 0.6935 GB, free: 2.762 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.004719/0.1708, allocations: 3.668 MB / 0.6971 GB, free: 15.08 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004113/0.1713, allocations: 15.88 kB / 0.6971 GB, free: 15.07 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0005432/0.1718, allocations: 175.1 kB / 0.6972 GB, free: 14.89 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.001223/0.1731, allocations: 0.5483 MB / 0.6978 GB, free: 14.34 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008177/0.1739, allocations: 344.4 kB / 0.6981 GB, free: 14.01 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.001384/0.1753, allocations: 1.465 MB / 0.6995 GB, free: 12.54 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00037/0.1757, allocations: 276.2 kB / 0.6998 GB, free: 12.27 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004223/0.1761, allocations: 318.5 kB / 0.7001 GB, free: 11.96 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003471/0.1765, allocations: 310.6 kB / 0.7004 GB, free: 11.66 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 4.416e-05/0.1765, allocations: 16 kB / 0.7004 GB, free: 11.64 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005362/0.1771, allocations: 247.4 kB / 0.7006 GB, free: 11.4 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 9.716e-05/0.1772, allocations: 83.66 kB / 0.7007 GB, free: 11.32 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.000203/0.1774, allocations: 198.9 kB / 0.7009 GB, free: 11.12 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0006328/0.178, allocations: 0.5686 MB / 0.7015 GB, free: 10.55 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.546e-06/0.178, allocations: 4 kB / 0.7015 GB, free: 10.55 MB / 0.4981 GB Notification: Performance of FrontEnd: time 7.51e-07/0.178, allocations: 0 / 0.7015 GB, free: 10.55 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 5.31e-06/0.1781, allocations: 0 / 0.7015 GB, free: 10.55 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.001102/0.1792, allocations: 0.7433 MB / 0.7022 GB, free: 9.746 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.555e-05/0.1792, allocations: 12.03 kB / 0.7022 GB, free: 9.734 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001726/0.1794, allocations: 44.47 kB / 0.7023 GB, free: 9.691 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007147/0.1801, allocations: 479.8 kB / 0.7027 GB, free: 9.188 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.276e-05/0.1801, allocations: 24.69 kB / 0.7027 GB, free: 9.164 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.705e-05/0.1802, allocations: 27.91 kB / 0.7028 GB, free: 9.137 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000565/0.1808, allocations: 310.2 kB / 0.7031 GB, free: 8.816 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.347e-05/0.1808, allocations: 4 kB / 0.7031 GB, free: 8.812 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.293e-05/0.1808, allocations: 12 kB / 0.7031 GB, free: 8.801 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.788e-05/0.1809, allocations: 8 kB / 0.7031 GB, free: 8.793 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004562/0.1813, allocations: 190.1 kB / 0.7033 GB, free: 8.609 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.00171/0.183, allocations: 1.485 MB / 0.7047 GB, free: 6.992 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004375/0.1835, allocations: 158.6 kB / 0.7049 GB, free: 6.828 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001727/0.1837, allocations: 73.06 kB / 0.7049 GB, free: 6.754 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001863/0.1839, allocations: 89.09 kB / 0.705 GB, free: 6.648 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003044/0.1842, allocations: 131.2 kB / 0.7051 GB, free: 6.508 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=15): time 1.794e-06/0.1842, allocations: 3.938 kB / 0.7051 GB, free: 6.504 MB / 0.4981 GB Notification: Performance of matching and sorting (n=15): time 0.0006599/0.1849, allocations: 235.7 kB / 0.7054 GB, free: 6.27 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.052e-05/0.1849, allocations: 55.41 kB / 0.7054 GB, free: 6.203 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003509/0.1853, allocations: 341.5 kB / 0.7057 GB, free: 5.859 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 3.049e-05/0.1853, allocations: 37.69 kB / 0.7058 GB, free: 5.816 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001472/0.1855, allocations: 207.8 kB / 0.706 GB, free: 5.605 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 4.784e-05/0.1855, allocations: 59.19 kB / 0.706 GB, free: 5.547 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.997e-05/0.1856, allocations: 49.7 kB / 0.7061 GB, free: 5.492 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001281/0.1857, allocations: 342.8 kB / 0.7064 GB, free: 5.148 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001941/0.1859, allocations: 71.94 kB / 0.7065 GB, free: 5.078 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002356/0.1862, allocations: 151.1 kB / 0.7066 GB, free: 4.898 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004006/0.1866, allocations: 240.5 kB / 0.7069 GB, free: 4.625 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.475e-06/0.1866, allocations: 3.938 kB / 0.7069 GB, free: 4.621 MB / 0.4981 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005772/0.1872, allocations: 318.7 kB / 0.7072 GB, free: 4.297 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 3.409e-05/0.1872, allocations: 33.7 kB / 0.7072 GB, free: 4.258 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.061e-06/0.1872, allocations: 0 / 0.7072 GB, free: 4.258 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.668e-05/0.1873, allocations: 7.938 kB / 0.7072 GB, free: 4.25 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002286/0.1875, allocations: 59.91 kB / 0.7073 GB, free: 4.191 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.127e-06/0.1875, allocations: 4 kB / 0.7073 GB, free: 4.188 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002775/0.1878, allocations: 35.95 kB / 0.7073 GB, free: 4.152 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.688e-05/0.1878, allocations: 15.98 kB / 0.7073 GB, free: 4.137 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 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001716/0.188, allocations: 159 kB / 0.7075 GB, free: 3.973 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.131e-05/0.1881, allocations: 31.62 kB / 0.7075 GB, free: 3.941 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004601/0.1885, allocations: 200.4 kB / 0.7077 GB, free: 3.742 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.511e-06/0.1885, allocations: 7.938 kB / 0.7077 GB, free: 3.734 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.26e-06/0.1885, allocations: 0 / 0.7077 GB, free: 3.734 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0004954/0.189, allocations: 481.9 kB / 0.7082 GB, free: 3.18 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004184/0.1895, allocations: 357.3 kB / 0.7085 GB, free: 2.781 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.393e-06/0.1895, allocations: 0 / 0.7085 GB, free: 2.781 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000168/0.1897, allocations: 35.92 kB / 0.7085 GB, free: 2.746 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.395e-06/0.1897, allocations: 0 / 0.7085 GB, free: 2.746 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.545e-05/0.1897, allocations: 7.984 kB / 0.7085 GB, free: 2.738 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.177e-06/0.1897, allocations: 3.938 kB / 0.7085 GB, free: 2.734 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.1897, allocations: 7.938 kB / 0.7085 GB, free: 2.727 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005981/0.1903, allocations: 276.6 kB / 0.7088 GB, free: 2.438 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001175/0.1904, allocations: 120.8 kB / 0.7089 GB, free: 2.301 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.753e-05/0.1905, allocations: 4 kB / 0.7089 GB, free: 2.297 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002428/0.1907, allocations: 27.91 kB / 0.709 GB, free: 2.27 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.955e-05/0.1908, allocations: 15.98 kB / 0.709 GB, free: 2.254 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.119e-05/0.1908, allocations: 11.98 kB / 0.709 GB, free: 2.242 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0002256/0.1911, allocations: 239.2 kB / 0.7092 GB, free: 2.016 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1e-07/0.1911, allocations: 0 / 0.7092 GB, free: 2.016 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0004184/0.1915, allocations: 119.7 kB / 0.7093 GB, free: 1.898 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003172/0.1918, allocations: 191 kB / 0.7095 GB, free: 1.699 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0004775/0.1923, allocations: 233.4 kB / 0.7097 GB, free: 1.461 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.265e-06/0.1923, allocations: 0 / 0.7097 GB, free: 1.461 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001765/0.1925, allocations: 69.58 kB / 0.7098 GB, free: 1.395 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009181/0.1934, allocations: 202.3 kB / 0.71 GB, free: 1.199 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001337/0.1948, allocations: 0.8498 MB / 0.7108 GB, free: 332 kB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003289/0.1951, allocations: 0.7882 MB / 0.7116 GB, free: 15.51 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.000266/0.1954, allocations: 67.23 kB / 0.7117 GB, free: 15.45 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.865e-05/0.1955, allocations: 31.44 kB / 0.7117 GB, free: 15.41 MB / 0.5137 GB Notification: Performance of SimCode: time 3.11e-07/0.1955, allocations: 0 / 0.7117 GB, free: 15.41 MB / 0.5137 GB Notification: Performance of Templates: time 0.01104/0.2065, allocations: 6.559 MB / 0.7181 GB, free: 8.977 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)