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.001304/0.001304, 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.001303/0.001304, allocations: 193.7 kB / 16.14 MB, free: 6.715 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.457/1.457, allocations: 222.9 MB / 239.8 MB, free: 4.617 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002996/0.002996, allocations: 279.1 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 1.081/1.081, allocations: 178.6 MB / 0.5068 GB, free: 4.77 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002776/0.002776, allocations: 96.39 kB / 0.6057 GB, free: 24.98 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1836/0.1864, allocations: 89.15 MB / 0.6928 GB, free: 4.824 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Storage.Examples.ExpansionVessel): time 0.0169/0.2033, allocations: 14.38 MB / 0.7068 GB, free: 6.406 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.006058/0.2094, allocations: 3.684 MB / 0.7104 GB, free: 2.707 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003947/0.2098, allocations: 11.94 kB / 0.7104 GB, free: 2.695 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0006258/0.2104, allocations: 171.1 kB / 0.7106 GB, free: 2.527 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.001263/0.2118, allocations: 0.5405 MB / 0.7111 GB, free: 1.984 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008431/0.2126, allocations: 350.7 kB / 0.7115 GB, free: 1.645 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.001631/0.2143, allocations: 1.457 MB / 0.7129 GB, free: 188 kB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000439/0.2147, allocations: 277.3 kB / 0.7132 GB, free: 15.91 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004549/0.2152, allocations: 318.6 kB / 0.7135 GB, free: 15.6 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003927/0.2156, allocations: 318.6 kB / 0.7138 GB, free: 15.29 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 4.858e-05/0.2156, allocations: 19.94 kB / 0.7138 GB, free: 15.27 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005338/0.2162, allocations: 243.4 kB / 0.714 GB, free: 15.03 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.0001236/0.2163, allocations: 87.66 kB / 0.7141 GB, free: 14.94 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.0002214/0.2165, allocations: 191 kB / 0.7143 GB, free: 14.75 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.0007478/0.2173, allocations: 0.5725 MB / 0.7148 GB, free: 14.18 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 4.698e-06/0.2173, allocations: 0 / 0.7148 GB, free: 14.18 MB / 0.5137 GB Notification: Performance of FrontEnd: time 8.32e-07/0.2173, allocations: 0 / 0.7148 GB, free: 14.18 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 6.833e-06/0.2173, allocations: 0 / 0.7148 GB, free: 14.18 MB / 0.5137 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.001255/0.2186, allocations: 0.7496 MB / 0.7156 GB, free: 13.38 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 4.217e-05/0.2186, allocations: 12.03 kB / 0.7156 GB, free: 13.36 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002039/0.2189, allocations: 44.47 kB / 0.7156 GB, free: 13.32 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007913/0.2197, allocations: 483.6 kB / 0.7161 GB, free: 12.81 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.677e-05/0.2197, allocations: 24.69 kB / 0.7161 GB, free: 12.79 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.737e-05/0.2198, allocations: 32 kB / 0.7161 GB, free: 12.75 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000622/0.2204, allocations: 302.2 kB / 0.7164 GB, free: 12.44 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.656e-05/0.2204, allocations: 3.938 kB / 0.7164 GB, free: 12.43 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.421e-05/0.2205, allocations: 12 kB / 0.7164 GB, free: 12.42 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.393e-05/0.2205, allocations: 8 kB / 0.7164 GB, free: 12.41 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005117/0.221, allocations: 198.1 kB / 0.7166 GB, free: 12.22 MB / 0.5137 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.00198/0.223, allocations: 1.477 MB / 0.7181 GB, free: 10.62 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004727/0.2235, allocations: 158.6 kB / 0.7182 GB, free: 10.45 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001837/0.2237, allocations: 64.81 kB / 0.7183 GB, free: 10.39 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002186/0.2239, allocations: 93.09 kB / 0.7184 GB, free: 10.28 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003167/0.2242, allocations: 131.2 kB / 0.7185 GB, free: 10.14 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=15): time 1.923e-06/0.2242, allocations: 0 / 0.7185 GB, free: 10.14 MB / 0.5137 GB Notification: Performance of matching and sorting (n=15): time 0.0006842/0.2249, allocations: 235.1 kB / 0.7187 GB, free: 9.902 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.29e-05/0.225, allocations: 59.34 kB / 0.7188 GB, free: 9.832 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003894/0.2254, allocations: 337.6 kB / 0.7191 GB, free: 9.496 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 3.483e-05/0.2254, allocations: 37.64 kB / 0.7191 GB, free: 9.453 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001804/0.2256, allocations: 211.8 kB / 0.7193 GB, free: 9.238 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 6.505e-05/0.2257, allocations: 55.2 kB / 0.7194 GB, free: 9.184 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.233e-05/0.2258, allocations: 57.69 kB / 0.7195 GB, free: 9.121 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001637/0.226, allocations: 334.8 kB / 0.7198 GB, free: 8.785 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000214/0.2262, allocations: 71.95 kB / 0.7198 GB, free: 8.715 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002528/0.2264, allocations: 145.4 kB / 0.72 GB, free: 8.539 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000474/0.2269, allocations: 248.6 kB / 0.7202 GB, free: 8.258 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.675e-06/0.2269, allocations: 0 / 0.7202 GB, free: 8.258 MB / 0.5137 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0006263/0.2276, allocations: 310.9 kB / 0.7205 GB, free: 7.941 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 4.259e-05/0.2276, allocations: 50.59 kB / 0.7206 GB, free: 7.887 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.39e-06/0.2276, allocations: 0 / 0.7206 GB, free: 7.887 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.705e-05/0.2277, allocations: 7.938 kB / 0.7206 GB, free: 7.879 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002332/0.2279, allocations: 55.91 kB / 0.7206 GB, free: 7.824 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.104e-05/0.2279, allocations: 7.938 kB / 0.7206 GB, free: 7.816 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002735/0.2282, allocations: 27.83 kB / 0.7207 GB, free: 7.789 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.602e-05/0.2282, allocations: 12 kB / 0.7207 GB, free: 7.777 MB / 0.5137 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.0001742/0.2284, allocations: 165.7 kB / 0.7208 GB, free: 7.605 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.861e-05/0.2285, allocations: 31.62 kB / 0.7209 GB, free: 7.574 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005019/0.229, allocations: 196.5 kB / 0.721 GB, free: 7.379 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.49e-06/0.229, allocations: 3.938 kB / 0.721 GB, free: 7.375 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.168e-06/0.229, allocations: 0 / 0.721 GB, free: 7.375 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005799/0.2296, allocations: 497.6 kB / 0.7215 GB, free: 6.805 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005666/0.2302, allocations: 353.4 kB / 0.7219 GB, free: 6.41 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.844e-06/0.2302, allocations: 0 / 0.7219 GB, free: 6.41 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001892/0.2304, allocations: 27.98 kB / 0.7219 GB, free: 6.383 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.879e-06/0.2304, allocations: 4 kB / 0.7219 GB, free: 6.379 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.561e-05/0.2304, allocations: 0 / 0.7219 GB, free: 6.379 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.837e-06/0.2304, allocations: 3.938 kB / 0.7219 GB, free: 6.375 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.096e-06/0.2304, allocations: 3.984 kB / 0.7219 GB, free: 6.371 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007078/0.2311, allocations: 280.6 kB / 0.7222 GB, free: 6.078 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001473/0.2313, allocations: 124.7 kB / 0.7223 GB, free: 5.938 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.866e-05/0.2314, allocations: 8 kB / 0.7223 GB, free: 5.93 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002569/0.2316, allocations: 27.75 kB / 0.7223 GB, free: 5.902 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.955e-05/0.2317, allocations: 15.98 kB / 0.7223 GB, free: 5.887 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.309e-05/0.2317, allocations: 7.984 kB / 0.7223 GB, free: 5.879 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0002695/0.232, allocations: 243.2 kB / 0.7226 GB, free: 5.641 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.3e-07/0.232, allocations: 0 / 0.7226 GB, free: 5.641 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0004396/0.2325, allocations: 116 kB / 0.7227 GB, free: 5.527 MB / 0.5137 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.0003653/0.2328, allocations: 183.1 kB / 0.7229 GB, free: 5.336 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.0005377/0.2334, allocations: 229.2 kB / 0.7231 GB, free: 5.102 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.765e-06/0.2334, allocations: 0.625 kB / 0.7231 GB, free: 5.102 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0001994/0.2336, allocations: 73.03 kB / 0.7231 GB, free: 5.031 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009863/0.2346, allocations: 212.2 kB / 0.7234 GB, free: 4.832 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001564/0.2362, allocations: 0.8538 MB / 0.7242 GB, free: 3.953 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004712/0.2367, allocations: 0.7959 MB / 0.725 GB, free: 3.133 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0002919/0.237, allocations: 67.19 kB / 0.725 GB, free: 3.07 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.045e-05/0.2371, allocations: 35.36 kB / 0.7251 GB, free: 3.035 MB / 0.5137 GB Notification: Performance of SimCode: time 2e-07/0.2371, allocations: 0 / 0.7251 GB, free: 3.035 MB / 0.5137 GB Notification: Performance of Templates: time 0.01313/0.2502, allocations: 6.56 MB / 0.7315 GB, free: 12.59 MB / 0.5294 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)