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.001129/0.001129, allocations: 90.28 kB / 15.36 MB, free: 0.7383 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.009966/0.009967, allocations: 171.7 kB / 16.26 MB, free: 6.613 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.446/1.446, allocations: 223.3 MB / 240.3 MB, free: 5.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001656/0.001656, allocations: 274.1 kB / 291.7 MB, free: 1.855 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.944/0.944, allocations: 169.5 MB / 0.5004 GB, free: 14.1 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004002/0.0004003, allocations: 14.66 kB / 0.5986 GB, free: 28.01 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1606/0.161, allocations: 88.55 MB / 0.6851 GB, free: 15.06 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Storage.Examples.ExpansionVessel): time 0.01357/0.1746, allocations: 13.87 MB / 0.6987 GB, free: 1.164 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.005247/0.1799, allocations: 3.625 MB / 0.7022 GB, free: 13.53 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005691/0.1805, allocations: 19.88 kB / 0.7022 GB, free: 13.51 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0006228/0.1812, allocations: 167.1 kB / 0.7024 GB, free: 13.34 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.001321/0.1825, allocations: 0.5366 MB / 0.7029 GB, free: 12.8 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008392/0.1833, allocations: 366.6 kB / 0.7033 GB, free: 12.45 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.001429/0.1848, allocations: 1.456 MB / 0.7047 GB, free: 10.99 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003765/0.1852, allocations: 268.2 kB / 0.7049 GB, free: 10.73 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004442/0.1856, allocations: 314.5 kB / 0.7052 GB, free: 10.42 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003419/0.186, allocations: 294.6 kB / 0.7055 GB, free: 10.13 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 3.605e-05/0.186, allocations: 12 kB / 0.7055 GB, free: 10.12 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005008/0.1865, allocations: 247.5 kB / 0.7058 GB, free: 9.879 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 9.58e-05/0.1866, allocations: 75.61 kB / 0.7058 GB, free: 9.805 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0002043/0.1868, allocations: 212.8 kB / 0.706 GB, free: 9.59 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0006228/0.1875, allocations: 0.5645 MB / 0.7066 GB, free: 9.023 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.1875, allocations: 0 / 0.7066 GB, free: 9.023 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.853e-06/0.1875, allocations: 0 / 0.7066 GB, free: 9.023 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 9.808e-06/0.1875, allocations: 0 / 0.7066 GB, free: 9.023 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.001038/0.1885, allocations: 0.6737 MB / 0.7072 GB, free: 8.293 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.856e-05/0.1886, allocations: 8.031 kB / 0.7072 GB, free: 8.285 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001731/0.1888, allocations: 48.41 kB / 0.7073 GB, free: 8.238 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000755/0.1895, allocations: 483.7 kB / 0.7078 GB, free: 7.73 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.712e-05/0.1896, allocations: 20.69 kB / 0.7078 GB, free: 7.711 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.35e-05/0.1896, allocations: 28 kB / 0.7078 GB, free: 7.684 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005579/0.1902, allocations: 318.2 kB / 0.7081 GB, free: 7.355 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.455e-05/0.1902, allocations: 0 / 0.7081 GB, free: 7.355 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.392e-05/0.1903, allocations: 12 kB / 0.7081 GB, free: 7.344 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.824e-05/0.1903, allocations: 4 kB / 0.7081 GB, free: 7.34 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004587/0.1908, allocations: 206.1 kB / 0.7083 GB, free: 7.141 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.001716/0.1925, allocations: 1.493 MB / 0.7098 GB, free: 5.516 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005144/0.193, allocations: 170.6 kB / 0.7099 GB, free: 5.34 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001803/0.1932, allocations: 72.81 kB / 0.71 GB, free: 5.266 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001831/0.1934, allocations: 85.36 kB / 0.7101 GB, free: 5.164 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003324/0.1937, allocations: 137 kB / 0.7102 GB, free: 5.02 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=15): time 1.613e-06/0.1938, allocations: 0 / 0.7102 GB, free: 5.02 MB / 0.4981 GB Notification: Performance of matching and sorting (n=15): time 0.0006561/0.1944, allocations: 253.1 kB / 0.7105 GB, free: 4.766 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.838e-05/0.1945, allocations: 55.41 kB / 0.7105 GB, free: 4.699 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003356/0.1948, allocations: 341.6 kB / 0.7108 GB, free: 4.355 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.851e-05/0.1949, allocations: 29.7 kB / 0.7109 GB, free: 4.32 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.000148/0.195, allocations: 219.8 kB / 0.7111 GB, free: 4.098 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 4.692e-05/0.1951, allocations: 55.19 kB / 0.7111 GB, free: 4.043 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.225e-05/0.1951, allocations: 29.7 kB / 0.7112 GB, free: 4.008 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001202/0.1952, allocations: 338.8 kB / 0.7115 GB, free: 3.668 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001989/0.1954, allocations: 75.95 kB / 0.7116 GB, free: 3.594 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002355/0.1957, allocations: 154.6 kB / 0.7117 GB, free: 3.41 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004323/0.1961, allocations: 270.8 kB / 0.712 GB, free: 3.105 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.005e-06/0.1961, allocations: 0 / 0.712 GB, free: 3.105 MB / 0.4981 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005938/0.1967, allocations: 324.5 kB / 0.7123 GB, free: 2.777 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 4.224e-05/0.1968, allocations: 37.69 kB / 0.7123 GB, free: 2.734 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.017e-05/0.1968, allocations: 8 kB / 0.7123 GB, free: 2.727 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.823e-05/0.1968, allocations: 7.938 kB / 0.7123 GB, free: 2.719 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002219/0.1971, allocations: 60.22 kB / 0.7124 GB, free: 2.66 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.819e-06/0.1971, allocations: 4 kB / 0.7124 GB, free: 2.656 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002764/0.1974, allocations: 35.73 kB / 0.7124 GB, free: 2.621 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.701e-05/0.1974, allocations: 15.98 kB / 0.7124 GB, free: 2.605 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.0001941/0.1976, allocations: 159 kB / 0.7126 GB, free: 2.441 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.686e-05/0.1977, allocations: 31.62 kB / 0.7126 GB, free: 2.41 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004633/0.1981, allocations: 210.8 kB / 0.7128 GB, free: 2.203 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.791e-06/0.1981, allocations: 3.938 kB / 0.7128 GB, free: 2.199 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.901e-06/0.1982, allocations: 0 / 0.7128 GB, free: 2.199 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005127/0.1987, allocations: 499.7 kB / 0.7133 GB, free: 1.625 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004381/0.1991, allocations: 353.4 kB / 0.7136 GB, free: 1.23 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.463e-06/0.1991, allocations: 0 / 0.7136 GB, free: 1.23 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001601/0.1993, allocations: 31.98 kB / 0.7137 GB, free: 1.199 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.156e-06/0.1993, allocations: 0 / 0.7137 GB, free: 1.199 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.614e-05/0.1993, allocations: 7.984 kB / 0.7137 GB, free: 1.191 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.266e-06/0.1994, allocations: 7.938 kB / 0.7137 GB, free: 1.184 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.314e-06/0.1994, allocations: 7.984 kB / 0.7137 GB, free: 1.176 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006469/0.2, allocations: 302.5 kB / 0.714 GB, free: 0.8633 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001618/0.2002, allocations: 132.7 kB / 0.7141 GB, free: 0.7148 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.796e-05/0.2002, allocations: 4 kB / 0.7141 GB, free: 0.7109 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002389/0.2005, allocations: 19.92 kB / 0.7141 GB, free: 0.6914 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.506e-05/0.2006, allocations: 19.97 kB / 0.7141 GB, free: 0.6719 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.983e-05/0.2006, allocations: 4 kB / 0.7141 GB, free: 0.668 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0002253/0.2008, allocations: 243.2 kB / 0.7144 GB, free: 448 kB / 0.4981 GB Notification: Performance of sort global known variables: time 1.41e-07/0.2008, allocations: 0 / 0.7144 GB, free: 448 kB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0004273/0.2013, allocations: 119.8 kB / 0.7145 GB, free: 328 kB / 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.0003578/0.2016, allocations: 190.9 kB / 0.7147 GB, free: 124 kB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0004977/0.2021, allocations: 235.7 kB / 0.7149 GB, free: 15.88 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.465e-06/0.2022, allocations: 0 / 0.7149 GB, free: 15.88 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.000186/0.2024, allocations: 75.89 kB / 0.715 GB, free: 15.8 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009813/0.2033, allocations: 205.8 kB / 0.7152 GB, free: 15.6 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001567/0.2049, allocations: 0.9152 MB / 0.7161 GB, free: 14.66 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003902/0.2053, allocations: 0.7921 MB / 0.7168 GB, free: 13.84 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0003043/0.2056, allocations: 71.17 kB / 0.7169 GB, free: 13.77 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.195e-05/0.2057, allocations: 31.44 kB / 0.7169 GB, free: 13.74 MB / 0.5137 GB Notification: Performance of SimCode: time 2.2e-07/0.2057, allocations: 0 / 0.7169 GB, free: 13.74 MB / 0.5137 GB Notification: Performance of Templates: time 0.01198/0.2177, allocations: 6.538 MB / 0.7233 GB, free: 7.328 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)