Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_1.6_Buildings.Utilities.IO.Python27.Functions.Examples.Exchange.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 1.6.0+build.1/package.mo", uses=false) Using package Buildings with version 1.6 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 1.6.0+build.1/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(Buildings.Utilities.IO.Python27.Functions.Examples.Exchange,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Utilities.IO.Python27.Functions.Examples.Exchange") translateModel(Buildings.Utilities.IO.Python27.Functions.Examples.Exchange,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Utilities.IO.Python27.Functions.Examples.Exchange") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001289/0.001289, allocations: 109.4 kB / 15.69 MB, free: 128 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.001388/0.001388, allocations: 187.9 kB / 16.62 MB, free: 6.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.661/1.661, allocations: 205.1 MB / 222.5 MB, free: 4.559 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 1.6.0+build.1/package.mo): time 0.6443/0.6443, allocations: 95.47 MB / 365.3 MB, free: 9.797 MB / 302.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Buildings requested package Modelica of version 3.2.1. Modelica 3.2.3 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001444/0.001444, allocations: 67.89 kB / 446.1 MB, free: 8.84 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4473/0.4488, allocations: 69.09 MB / 0.5031 GB, free: 17.31 MB / 382.1 MB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Python27.Functions.Examples.Exchange): time 0.001933/0.4508, allocations: 0.5099 MB / 0.5036 GB, free: 16.81 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009317/0.4517, allocations: 441.6 kB / 0.504 GB, free: 16.38 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.292e-05/0.4518, allocations: 0 / 0.504 GB, free: 16.38 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 4.064e-05/0.4518, allocations: 0 / 0.504 GB, free: 16.38 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 6.522e-06/0.4518, allocations: 0 / 0.504 GB, free: 16.38 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 1.6.0+build.1/Utilities/IO/Python27/Functions/exchange.mo:2:1-99:13:writable] Warning: Pure function 'Buildings.Utilities.IO.Python27.Functions.exchange' contains a call to impure function 'Modelica.Utilities.System.getEnvironmentVariable'. Notification: Performance of NFTyping.typeClassSections: time 0.000659/0.4525, allocations: 191.5 kB / 0.5042 GB, free: 16.19 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001063/0.4526, allocations: 43.95 kB / 0.5043 GB, free: 16.15 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.769e-05/0.4527, allocations: 0 / 0.5043 GB, free: 16.15 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.104e-05/0.4527, allocations: 27.91 kB / 0.5043 GB, free: 16.12 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.057e-05/0.4528, allocations: 23.98 kB / 0.5043 GB, free: 16.1 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.576e-05/0.4528, allocations: 0 / 0.5043 GB, free: 16.1 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001609/0.453, allocations: 119.8 kB / 0.5044 GB, free: 15.98 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 3.036e-05/0.453, allocations: 3.984 kB / 0.5044 GB, free: 15.98 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 5.361e-05/0.4531, allocations: 15.94 kB / 0.5045 GB, free: 15.96 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002121/0.4533, allocations: 159.7 kB / 0.5046 GB, free: 15.8 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.458e-06/0.4533, allocations: 0 / 0.5046 GB, free: 15.8 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.4533, allocations: 0 / 0.5046 GB, free: 15.8 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.163e-06/0.4533, allocations: 0 / 0.5046 GB, free: 15.8 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.0003795/0.4537, allocations: 401.1 kB / 0.505 GB, free: 15.36 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.941e-05/0.4538, allocations: 11.98 kB / 0.505 GB, free: 15.34 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.753e-05/0.4538, allocations: 8.875 kB / 0.505 GB, free: 15.34 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.386e-05/0.4539, allocations: 174.1 kB / 0.5052 GB, free: 15.13 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.106e-05/0.4539, allocations: 4.375 kB / 0.5052 GB, free: 15.12 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.541e-05/0.454, allocations: 4.375 kB / 0.5052 GB, free: 15.12 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000188/0.4541, allocations: 98.17 kB / 0.5053 GB, free: 15.02 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.087e-06/0.4542, allocations: 4.188 kB / 0.5053 GB, free: 15.02 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.862e-05/0.4542, allocations: 3.938 kB / 0.5053 GB, free: 15.01 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.889e-06/0.4542, allocations: 0 / 0.5053 GB, free: 15.01 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.414e-05/0.4543, allocations: 39.97 kB / 0.5053 GB, free: 14.97 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000128/0.4544, allocations: 153.7 kB / 0.5055 GB, free: 14.77 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000103/0.4545, allocations: 94.47 kB / 0.5056 GB, free: 14.67 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.937e-05/0.4546, allocations: 68.92 kB / 0.5056 GB, free: 14.6 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.987e-06/0.4546, allocations: 0 / 0.5056 GB, free: 14.6 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.743e-05/0.4546, allocations: 38.56 kB / 0.5057 GB, free: 14.55 MB / 382.1 MB Notification: Performance of pre-optimization done (n=6): time 8.21e-07/0.4546, allocations: 0 / 0.5057 GB, free: 14.55 MB / 382.1 MB Notification: Performance of matching and sorting (n=6): time 0.000359/0.455, allocations: 219.2 kB / 0.5059 GB, free: 14.33 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.138e-05/0.455, allocations: 93.09 kB / 0.506 GB, free: 14.22 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.523e-05/0.4551, allocations: 89.86 kB / 0.506 GB, free: 14.12 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.84e-05/0.4551, allocations: 33.73 kB / 0.5061 GB, free: 14.08 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.406e-05/0.4551, allocations: 80.14 kB / 0.5062 GB, free: 14 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.672e-05/0.4552, allocations: 15.61 kB / 0.5062 GB, free: 13.99 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.213e-05/0.4552, allocations: 41.62 kB / 0.5062 GB, free: 13.94 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.535e-05/0.4553, allocations: 318.8 kB / 0.5065 GB, free: 13.62 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.105e-05/0.4554, allocations: 39.97 kB / 0.5066 GB, free: 13.58 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.279e-05/0.4554, allocations: 39.97 kB / 0.5066 GB, free: 13.54 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000144/0.4556, allocations: 140.2 kB / 0.5067 GB, free: 13.39 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.558e-06/0.4556, allocations: 4.031 kB / 0.5067 GB, free: 13.39 MB / 382.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0002033/0.4558, allocations: 187.1 kB / 0.5069 GB, free: 13.19 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.323e-05/0.4558, allocations: 41.69 kB / 0.5069 GB, free: 13.14 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.289e-06/0.4559, allocations: 0 / 0.5069 GB, free: 13.14 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.058e-05/0.4559, allocations: 7.938 kB / 0.507 GB, free: 13.14 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.02e-07/0.4559, allocations: 0 / 0.507 GB, free: 13.14 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.652e-06/0.4559, allocations: 0 / 0.507 GB, free: 13.14 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002482/0.4562, allocations: 15.92 kB / 0.507 GB, free: 13.12 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.915e-05/0.4562, allocations: 8 kB / 0.507 GB, free: 13.11 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 (yI2[2],yI2[1],yI1[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * 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 9.665e-05/0.4563, allocations: 163.5 kB / 0.5071 GB, free: 12.94 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.331e-05/0.4563, allocations: 8 kB / 0.5071 GB, free: 12.93 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.049e-05/0.4563, allocations: 7.906 kB / 0.5071 GB, free: 12.93 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.252e-06/0.4563, allocations: 0 / 0.5071 GB, free: 12.93 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.978e-06/0.4564, allocations: 0 / 0.5071 GB, free: 12.93 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.295e-06/0.4564, allocations: 0 / 0.5071 GB, free: 12.93 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.309e-05/0.4564, allocations: 165.6 kB / 0.5073 GB, free: 12.71 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.22e-07/0.4564, allocations: 3.938 kB / 0.5073 GB, free: 12.71 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.72e-07/0.4565, allocations: 256 / 0.5073 GB, free: 12.71 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.182e-06/0.4565, allocations: 0 / 0.5073 GB, free: 12.71 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.79e-05/0.4565, allocations: 23.92 kB / 0.5073 GB, free: 12.69 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.81e-07/0.4565, allocations: 0 / 0.5073 GB, free: 12.69 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.22e-07/0.4565, allocations: 0 / 0.5073 GB, free: 12.69 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002556/0.4568, allocations: 234.6 kB / 0.5076 GB, free: 12.43 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.304e-05/0.4568, allocations: 81.05 kB / 0.5076 GB, free: 12.34 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.788e-05/0.4568, allocations: 11.92 kB / 0.5076 GB, free: 12.32 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001564/0.457, allocations: 15.98 kB / 0.5077 GB, free: 12.31 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.64e-05/0.457, allocations: 11.97 kB / 0.5077 GB, free: 12.3 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.262e-05/0.457, allocations: 15.98 kB / 0.5077 GB, free: 12.28 MB / 382.1 MB Notification: Performance of sorting global known variables: time 1.615e-05/0.4571, allocations: 75.28 kB / 0.5078 GB, free: 12.21 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.4571, allocations: 0 / 0.5078 GB, free: 12.21 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002578/0.4573, allocations: 55.92 kB / 0.5078 GB, free: 12.15 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 (yI1[1],yI2[1],yI2[2]) * Number of discrete states: 3 (yI2[2],yI2[1],yI1[1]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * 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 Backend phase and start with SimCode phase: time 0.0005493/0.4579, allocations: 273.9 kB / 0.5081 GB, free: 11.93 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.000264/0.4582, allocations: 235.3 kB / 0.5083 GB, free: 11.69 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.513e-06/0.4582, allocations: 0 / 0.5083 GB, free: 11.69 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001211/0.4583, allocations: 175.3 kB / 0.5085 GB, free: 11.51 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001457/0.4584, allocations: 8 kB / 0.5085 GB, free: 11.5 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002857/0.4587, allocations: 172.1 kB / 0.5086 GB, free: 11.31 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001241/0.4589, allocations: 0.6806 MB / 0.5093 GB, free: 10.6 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 5.931e-06/0.4589, allocations: 128 / 0.5093 GB, free: 10.6 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.917e-06/0.4589, allocations: 11.44 kB / 0.5093 GB, free: 10.59 MB / 382.1 MB Notification: Performance of SimCode: time 2e-07/0.4589, allocations: 0 / 0.5093 GB, free: 10.59 MB / 382.1 MB Notification: Performance of Templates: time 0.004791/0.4637, allocations: 2.754 MB / 0.512 GB, free: 7.863 MB / 382.1 MB make -j1 -f Buildings_1.6_Buildings.Utilities.IO.Python27.Functions.Examples.Exchange.makefile (rm -f Buildings_1.6_Buildings.Utilities.IO.Python27.Functions.Examples.Exchange.pipe ; mkfifo Buildings_1.6_Buildings.Utilities.IO.Python27.Functions.Examples.Exchange.pipe ; head -c 1048576 < Buildings_1.6_Buildings.Utilities.IO.Python27.Functions.Examples.Exchange.pipe >> ../files/Buildings_1.6_Buildings.Utilities.IO.Python27.Functions.Examples.Exchange.sim & ./Buildings_1.6_Buildings.Utilities.IO.Python27.Functions.Examples.Exchange -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_1.6_Buildings.Utilities.IO.Python27.Functions.Examples.Exchange.pipe 2>&1)