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.0015/0.0015, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001753/0.001753, allocations: 195.6 kB / 16.53 MB, free: 6.664 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.381/1.381, allocations: 222.9 MB / 240.2 MB, free: 4.383 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002183/0.002183, allocations: 283 kB / 290.7 MB, free: 1.969 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9617/0.9617, allocations: 169.3 MB / 0.4982 GB, free: 13.95 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001812/0.001812, allocations: 96.81 kB / 0.5952 GB, free: 27.87 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1895/0.1914, allocations: 86.99 MB / 0.6802 GB, free: 0.6953 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Storage.Examples.ExpansionVessel): time 0.01548/0.2069, allocations: 14.41 MB / 0.6943 GB, free: 2.242 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.005149/0.2121, allocations: 3.644 MB / 0.6978 GB, free: 14.59 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005185/0.2127, allocations: 19.88 kB / 0.6978 GB, free: 14.57 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0006501/0.2134, allocations: 206.7 kB / 0.698 GB, free: 14.36 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.001349/0.2147, allocations: 0.5791 MB / 0.6986 GB, free: 13.78 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008576/0.2156, allocations: 398.4 kB / 0.699 GB, free: 13.39 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.001083/0.2167, allocations: 1.089 MB / 0.7 GB, free: 12.3 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003895/0.2171, allocations: 312.5 kB / 0.7003 GB, free: 12 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0008647/0.218, allocations: 386.3 kB / 0.7007 GB, free: 11.62 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003457/0.2183, allocations: 310.6 kB / 0.701 GB, free: 11.32 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 5.406e-05/0.2184, allocations: 32 kB / 0.701 GB, free: 11.29 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005451/0.2189, allocations: 255.5 kB / 0.7013 GB, free: 11.04 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001012/0.219, allocations: 91.69 kB / 0.7014 GB, free: 10.95 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0002033/0.2193, allocations: 218.9 kB / 0.7016 GB, free: 10.73 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0006731/0.2199, allocations: 0.5765 MB / 0.7021 GB, free: 10.16 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.789e-06/0.2199, allocations: 0 / 0.7021 GB, free: 10.16 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.032e-06/0.22, allocations: 3.938 kB / 0.7021 GB, free: 10.15 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 7.164e-06/0.22, allocations: 4 kB / 0.7021 GB, free: 10.15 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.001221/0.2212, allocations: 0.7496 MB / 0.7029 GB, free: 9.34 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.329e-05/0.2212, allocations: 8.031 kB / 0.7029 GB, free: 9.332 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000208/0.2215, allocations: 44.47 kB / 0.7029 GB, free: 9.289 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007068/0.2222, allocations: 447.7 kB / 0.7033 GB, free: 8.809 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.272e-05/0.2222, allocations: 24.94 kB / 0.7034 GB, free: 8.785 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.248e-05/0.2223, allocations: 27.94 kB / 0.7034 GB, free: 8.758 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006018/0.2229, allocations: 310.2 kB / 0.7037 GB, free: 8.438 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.693e-05/0.2229, allocations: 0 / 0.7037 GB, free: 8.438 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.691e-05/0.223, allocations: 12 kB / 0.7037 GB, free: 8.426 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.091e-05/0.223, allocations: 8 kB / 0.7037 GB, free: 8.418 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004629/0.2235, allocations: 198 kB / 0.7039 GB, free: 8.227 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.001849/0.2253, allocations: 1.493 MB / 0.7054 GB, free: 6.602 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004235/0.2257, allocations: 150.6 kB / 0.7055 GB, free: 6.445 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001737/0.2259, allocations: 76.83 kB / 0.7056 GB, free: 6.367 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001424/0.2261, allocations: 89.08 kB / 0.7057 GB, free: 6.262 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002956/0.2264, allocations: 127.3 kB / 0.7058 GB, free: 6.125 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=15): time 1.593e-06/0.2264, allocations: 0 / 0.7058 GB, free: 6.125 MB / 0.4981 GB Notification: Performance of matching and sorting (n=15): time 0.0006409/0.227, allocations: 235 kB / 0.706 GB, free: 5.891 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.227e-05/0.2271, allocations: 59.34 kB / 0.7061 GB, free: 5.82 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003717/0.2275, allocations: 353.5 kB / 0.7064 GB, free: 5.469 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 3.234e-05/0.2275, allocations: 33.7 kB / 0.7064 GB, free: 5.43 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001617/0.2277, allocations: 215.7 kB / 0.7066 GB, free: 5.215 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 4.798e-05/0.2277, allocations: 51.3 kB / 0.7067 GB, free: 5.164 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.177e-05/0.2278, allocations: 53.61 kB / 0.7067 GB, free: 5.105 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001451/0.228, allocations: 342.8 kB / 0.7071 GB, free: 4.762 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001848/0.2282, allocations: 75.89 kB / 0.7071 GB, free: 4.688 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002372/0.2284, allocations: 145.4 kB / 0.7073 GB, free: 4.512 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004091/0.2288, allocations: 248.3 kB / 0.7075 GB, free: 4.23 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.505e-06/0.2288, allocations: 4 kB / 0.7075 GB, free: 4.227 MB / 0.4981 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005749/0.2294, allocations: 308.9 kB / 0.7078 GB, free: 3.914 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 3.679e-05/0.2295, allocations: 37.64 kB / 0.7078 GB, free: 3.871 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.569e-05/0.2295, allocations: 4 kB / 0.7079 GB, free: 3.867 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.8e-05/0.2295, allocations: 0 / 0.7079 GB, free: 3.867 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002215/0.2297, allocations: 67.83 kB / 0.7079 GB, free: 3.801 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.638e-06/0.2298, allocations: 4 kB / 0.7079 GB, free: 3.797 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002404/0.23, allocations: 31.73 kB / 0.7079 GB, free: 3.766 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.24e-05/0.23, allocations: 8 kB / 0.708 GB, free: 3.758 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.0001667/0.2302, allocations: 163.2 kB / 0.7081 GB, free: 3.59 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.604e-05/0.2303, allocations: 39.61 kB / 0.7082 GB, free: 3.551 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004676/0.2307, allocations: 184.5 kB / 0.7083 GB, free: 3.367 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.517e-06/0.2308, allocations: 11.92 kB / 0.7083 GB, free: 3.355 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.342e-06/0.2308, allocations: 3.984 kB / 0.7083 GB, free: 3.352 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005109/0.2313, allocations: 489.7 kB / 0.7088 GB, free: 2.789 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004438/0.2317, allocations: 357.3 kB / 0.7091 GB, free: 2.391 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.854e-06/0.2318, allocations: 0 / 0.7091 GB, free: 2.391 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001604/0.2319, allocations: 35.97 kB / 0.7092 GB, free: 2.355 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.845e-06/0.2319, allocations: 0 / 0.7092 GB, free: 2.355 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.609e-05/0.232, allocations: 4 kB / 0.7092 GB, free: 2.352 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.508e-06/0.232, allocations: 7.922 kB / 0.7092 GB, free: 2.344 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.91e-07/0.232, allocations: 0 / 0.7092 GB, free: 2.344 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000597/0.2326, allocations: 288.5 kB / 0.7095 GB, free: 2.043 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000133/0.2327, allocations: 120.8 kB / 0.7096 GB, free: 1.906 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.76e-05/0.2328, allocations: 4 kB / 0.7096 GB, free: 1.902 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002214/0.233, allocations: 19.91 kB / 0.7096 GB, free: 1.883 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.177e-05/0.2331, allocations: 23.92 kB / 0.7096 GB, free: 1.859 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.866e-05/0.2331, allocations: 8 kB / 0.7096 GB, free: 1.852 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0002497/0.2334, allocations: 251.2 kB / 0.7099 GB, free: 1.609 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.6e-07/0.2334, allocations: 0 / 0.7099 GB, free: 1.609 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0004418/0.2338, allocations: 128 kB / 0.71 GB, free: 1.484 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.0003718/0.2342, allocations: 195 kB / 0.7102 GB, free: 1.281 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0005297/0.2347, allocations: 239.6 kB / 0.7104 GB, free: 1.035 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 3.106e-06/0.2347, allocations: 0 / 0.7104 GB, free: 1.035 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001843/0.2349, allocations: 73.72 kB / 0.7105 GB, free: 0.9648 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009321/0.2359, allocations: 212.2 kB / 0.7107 GB, free: 0.7656 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001447/0.2373, allocations: 0.7368 MB / 0.7114 GB, free: 4 kB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003836/0.2377, allocations: 0.7918 MB / 0.7122 GB, free: 15.18 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0002419/0.238, allocations: 63.19 kB / 0.7122 GB, free: 15.12 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.082e-05/0.2381, allocations: 35.42 kB / 0.7123 GB, free: 15.09 MB / 0.5137 GB Notification: Performance of SimCode: time 5.01e-07/0.2381, allocations: 0 / 0.7123 GB, free: 15.09 MB / 0.5137 GB Notification: Performance of Templates: time 0.01266/0.2507, allocations: 7.128 MB / 0.7192 GB, free: 8.082 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)