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.0007971/0.0007969, allocations: 100.5 kB / 15.05 MB, free: 1.105 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.0008178/0.0008178, allocations: 177.3 kB / 15.94 MB, free: 228 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.164/1.164, allocations: 223.2 MB / 239.9 MB, free: 5.426 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001738/0.001738, allocations: 270.8 kB / 291.3 MB, free: 1.973 MB / 238.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:5:3-5:34:writable] Warning: Got element f_alp that was not referenced in the package.order file. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:6:3-6:35:writable] Warning: Elements in the package.mo-file need to be in the same relative order as the package.order file. Got element named f_lay but it was already added because it was not the next element in the list at that time. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:6:3-6:35:writable] Warning: Got element f_lay that was not referenced in the package.order file. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:7:3-7:37:writable] Warning: Elements in the package.mo-file need to be in the same relative order as the package.order file. Got element named f_loss but it was already added because it was not the next element in the list at that time. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:7:3-7:37:writable] Warning: Got element f_loss that was not referenced in the package.order file. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:8:3-8:33:writable] Warning: Elements in the package.mo-file need to be in the same relative order as the package.order file. Got element named f_pv but it was already added because it was not the next element in the list at that time. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:8:3-8:33:writable] Warning: Got element f_pv that was not referenced in the package.order file. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:2:1-34:14:writable] Warning: f_pv was referenced in the package.order file, but was not found in package.mo, f_pv/package.mo or f_pv.mo. Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.7317/0.7317, allocations: 144.6 MB / 487 MB, free: 7.164 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003684/0.0003685, allocations: 16.41 kB / 0.5683 GB, free: 38.3 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1169/0.1173, allocations: 83.09 MB / 0.6494 GB, free: 3.586 MB / 446.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Storage.Examples.ExpansionVessel): time 0.01156/0.1289, allocations: 12.11 MB / 0.6612 GB, free: 7.473 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.003947/0.1329, allocations: 3.162 MB / 0.6643 GB, free: 4.312 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003663/0.1333, allocations: 11.94 kB / 0.6643 GB, free: 4.301 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005256/0.1338, allocations: 207 kB / 0.6645 GB, free: 4.098 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001253/0.1351, allocations: 0.5764 MB / 0.6651 GB, free: 3.52 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001083/0.1362, allocations: 469.5 kB / 0.6656 GB, free: 3.066 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008833/0.1371, allocations: 0.6555 MB / 0.6662 GB, free: 2.41 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003625/0.1374, allocations: 244.6 kB / 0.6664 GB, free: 2.168 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004008/0.1379, allocations: 279 kB / 0.6667 GB, free: 1.895 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002635/0.1381, allocations: 203.1 kB / 0.6669 GB, free: 1.695 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 3.944e-05/0.1382, allocations: 12 kB / 0.6669 GB, free: 1.684 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004093/0.1386, allocations: 163.8 kB / 0.6671 GB, free: 1.523 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 8.086e-05/0.1387, allocations: 71.67 kB / 0.6671 GB, free: 1.453 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 9.894e-05/0.1388, allocations: 101.5 kB / 0.6672 GB, free: 1.348 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004518/0.1392, allocations: 415.3 kB / 0.6676 GB, free: 0.9414 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.033e-06/0.1393, allocations: 0 / 0.6676 GB, free: 0.9414 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.062e-06/0.1393, allocations: 0 / 0.6676 GB, free: 0.9414 MB / 462.1 MB Notification: Performance of Transformations before backend: time 8.566e-06/0.1393, allocations: 0 / 0.6676 GB, free: 0.9414 MB / 462.1 MB 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.000935/0.1402, allocations: 0.6832 MB / 0.6683 GB, free: 204 kB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.874e-05/0.1403, allocations: 12.03 kB / 0.6683 GB, free: 192 kB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000157/0.1404, allocations: 47.44 kB / 0.6683 GB, free: 144 kB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005935/0.141, allocations: 430.7 kB / 0.6688 GB, free: 15.68 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.298e-05/0.1411, allocations: 20.56 kB / 0.6688 GB, free: 15.66 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.567e-05/0.1411, allocations: 27.91 kB / 0.6688 GB, free: 15.63 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000514/0.1416, allocations: 310.2 kB / 0.6691 GB, free: 15.31 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.307e-05/0.1416, allocations: 4 kB / 0.6691 GB, free: 15.31 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.896e-05/0.1417, allocations: 12 kB / 0.6691 GB, free: 15.3 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.839e-05/0.1417, allocations: 11.94 kB / 0.6691 GB, free: 15.29 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004335/0.1421, allocations: 202 kB / 0.6693 GB, free: 15.09 MB / 478.1 MB 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.001629/0.1438, allocations: 1.509 MB / 0.6708 GB, free: 13.45 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003862/0.1442, allocations: 162.6 kB / 0.6709 GB, free: 13.29 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001413/0.1443, allocations: 89.09 kB / 0.671 GB, free: 13.18 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002745/0.1446, allocations: 135.3 kB / 0.6712 GB, free: 13.04 MB / 478.1 MB Notification: Performance of pre-optimization done (n=15): time 1.684e-06/0.1446, allocations: 0 / 0.6712 GB, free: 13.04 MB / 478.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005774/0.1452, allocations: 251.1 kB / 0.6714 GB, free: 12.79 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.218e-05/0.1453, allocations: 51.41 kB / 0.6714 GB, free: 12.72 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003321/0.1456, allocations: 353.7 kB / 0.6718 GB, free: 12.37 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 3.294e-05/0.1456, allocations: 33.7 kB / 0.6718 GB, free: 12.33 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001361/0.1458, allocations: 215.7 kB / 0.672 GB, free: 12.11 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.439e-05/0.1458, allocations: 59.25 kB / 0.6721 GB, free: 12.05 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.207e-05/0.1458, allocations: 7.938 kB / 0.6721 GB, free: 12.04 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001092/0.146, allocations: 346.7 kB / 0.6724 GB, free: 11.7 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001806/0.1461, allocations: 71.95 kB / 0.6725 GB, free: 11.62 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002096/0.1464, allocations: 157.3 kB / 0.6726 GB, free: 11.44 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002157/0.1466, allocations: 121.6 kB / 0.6727 GB, free: 11.31 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.555e-06/0.1466, allocations: 3.938 kB / 0.6728 GB, free: 11.31 MB / 478.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005314/0.1471, allocations: 319.7 kB / 0.6731 GB, free: 10.98 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.738e-05/0.1472, allocations: 33.7 kB / 0.6731 GB, free: 10.95 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.831e-06/0.1472, allocations: 4 kB / 0.6731 GB, free: 10.94 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.196e-05/0.1472, allocations: 4 kB / 0.6731 GB, free: 10.94 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002129/0.1474, allocations: 60.22 kB / 0.6732 GB, free: 10.88 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.706e-06/0.1474, allocations: 7.938 kB / 0.6732 GB, free: 10.87 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000253/0.1477, allocations: 47.66 kB / 0.6732 GB, free: 10.82 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.287e-05/0.1477, allocations: 12 kB / 0.6732 GB, free: 10.81 MB / 478.1 MB 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.0001372/0.1479, allocations: 161.7 kB / 0.6734 GB, free: 10.64 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.045e-05/0.1479, allocations: 31.62 kB / 0.6734 GB, free: 10.61 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004097/0.1483, allocations: 200.5 kB / 0.6736 GB, free: 10.41 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.998e-06/0.1484, allocations: 4 kB / 0.6736 GB, free: 10.41 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.396e-06/0.1484, allocations: 0 / 0.6736 GB, free: 10.41 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0004581/0.1488, allocations: 497.5 kB / 0.6741 GB, free: 9.84 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003776/0.1492, allocations: 361.3 kB / 0.6744 GB, free: 9.438 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.025e-06/0.1492, allocations: 3.953 kB / 0.6744 GB, free: 9.434 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001563/0.1494, allocations: 31.97 kB / 0.6745 GB, free: 9.402 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.504e-06/0.1494, allocations: 4 kB / 0.6745 GB, free: 9.398 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.227e-05/0.1494, allocations: 8 kB / 0.6745 GB, free: 9.391 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.593e-06/0.1494, allocations: 0 / 0.6745 GB, free: 9.391 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.1494, allocations: 0 / 0.6745 GB, free: 9.391 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005472/0.15, allocations: 297.7 kB / 0.6747 GB, free: 9.082 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001301/0.1501, allocations: 148.6 kB / 0.6749 GB, free: 8.918 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.246e-05/0.1502, allocations: 0 / 0.6749 GB, free: 8.918 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002231/0.1504, allocations: 19.98 kB / 0.6749 GB, free: 8.898 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.212e-05/0.1505, allocations: 15.97 kB / 0.6749 GB, free: 8.883 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.873e-05/0.1505, allocations: 15.98 kB / 0.6749 GB, free: 8.867 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0002272/0.1507, allocations: 251.2 kB / 0.6752 GB, free: 8.625 MB / 478.1 MB Notification: Performance of sort global known variables: time 4.01e-07/0.1507, allocations: 0 / 0.6752 GB, free: 8.625 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.0003857/0.1511, allocations: 131.9 kB / 0.6753 GB, free: 8.496 MB / 478.1 MB 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.0002719/0.1514, allocations: 191.1 kB / 0.6755 GB, free: 8.297 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.0004499/0.1519, allocations: 245.2 kB / 0.6757 GB, free: 8.047 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 2.604e-06/0.1519, allocations: 3.938 kB / 0.6757 GB, free: 8.043 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001717/0.1521, allocations: 72.53 kB / 0.6758 GB, free: 7.973 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000853/0.1529, allocations: 198.8 kB / 0.676 GB, free: 7.781 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001292/0.1542, allocations: 0.9538 MB / 0.6769 GB, free: 6.801 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002866/0.1545, allocations: 0.7962 MB / 0.6777 GB, free: 5.98 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0002458/0.1548, allocations: 71.17 kB / 0.6778 GB, free: 5.91 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.392e-05/0.1548, allocations: 31.44 kB / 0.6778 GB, free: 5.879 MB / 478.1 MB Notification: Performance of SimCode: time 2.91e-07/0.1549, allocations: 0 / 0.6778 GB, free: 5.879 MB / 478.1 MB Notification: Performance of Templates: time 0.01044/0.1653, allocations: 6.74 MB / 0.6844 GB, free: 15.26 MB / 494.1 MB make -j1 -f BuildingSystems_BuildingSystems.Fluid.Storage.Examples.ExpansionVessel.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: