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.001428/0.001428, 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.001442/0.001442, allocations: 194.9 kB / 16.14 MB, free: 6.711 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.782/1.782, allocations: 205.1 MB / 222 MB, free: 4.793 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.6496/0.6496, allocations: 95.48 MB / 364.8 MB, free: 10.08 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.002261/0.002262, allocations: 67.86 kB / 444.7 MB, free: 10.05 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4281/0.4304, allocations: 69.07 MB / 0.5017 GB, free: 17.59 MB / 382.1 MB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Python27.Functions.Examples.Exchange): time 0.001747/0.4322, allocations: 0.5654 MB / 0.5023 GB, free: 17.02 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008884/0.4331, allocations: 453.7 kB / 0.5027 GB, free: 16.58 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.999e-05/0.4331, allocations: 0 / 0.5027 GB, free: 16.58 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 3.745e-05/0.4332, allocations: 4 kB / 0.5027 GB, free: 16.58 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 6.733e-06/0.4332, allocations: 3.938 kB / 0.5027 GB, free: 16.57 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.0005563/0.4338, allocations: 175.6 kB / 0.5029 GB, free: 16.4 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 9.039e-05/0.4339, allocations: 47.95 kB / 0.5029 GB, free: 16.36 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.52e-05/0.4339, allocations: 0 / 0.5029 GB, free: 16.36 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.697e-05/0.434, allocations: 27.97 kB / 0.5029 GB, free: 16.33 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.09e-05/0.434, allocations: 19.98 kB / 0.503 GB, free: 16.31 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.192e-05/0.4341, allocations: 0 / 0.503 GB, free: 16.31 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001874/0.4343, allocations: 107.8 kB / 0.5031 GB, free: 16.2 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 2.91e-05/0.4343, allocations: 7.938 kB / 0.5031 GB, free: 16.2 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 5.545e-05/0.4344, allocations: 19.97 kB / 0.5031 GB, free: 16.18 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002174/0.4346, allocations: 151.8 kB / 0.5032 GB, free: 16.03 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.374e-06/0.4346, allocations: 3.984 kB / 0.5032 GB, free: 16.02 MB / 382.1 MB Notification: Performance of FrontEnd: time 9.02e-07/0.4346, allocations: 0 / 0.5032 GB, free: 16.02 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.667e-06/0.4346, allocations: 4 kB / 0.5032 GB, free: 16.02 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.0003927/0.435, allocations: 409.1 kB / 0.5036 GB, free: 15.56 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.463e-05/0.4351, allocations: 11.98 kB / 0.5036 GB, free: 15.55 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.099e-05/0.4351, allocations: 4.938 kB / 0.5036 GB, free: 15.55 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.055e-05/0.4352, allocations: 162.4 kB / 0.5038 GB, free: 15.35 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.661e-05/0.4352, allocations: 4.375 kB / 0.5038 GB, free: 15.35 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.302e-05/0.4352, allocations: 8.359 kB / 0.5038 GB, free: 15.34 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001936/0.4354, allocations: 98.17 kB / 0.5039 GB, free: 15.24 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.816e-06/0.4355, allocations: 4.188 kB / 0.5039 GB, free: 15.23 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.999e-05/0.4355, allocations: 7.938 kB / 0.5039 GB, free: 15.23 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.809e-06/0.4355, allocations: 0 / 0.5039 GB, free: 15.23 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.837e-05/0.4356, allocations: 43.95 kB / 0.504 GB, free: 15.18 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000136/0.4357, allocations: 157.6 kB / 0.5041 GB, free: 14.98 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001053/0.4358, allocations: 82.61 kB / 0.5042 GB, free: 14.89 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.846e-05/0.4359, allocations: 72.92 kB / 0.5043 GB, free: 14.82 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.864e-06/0.4359, allocations: 0 / 0.5043 GB, free: 14.82 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.847e-05/0.4359, allocations: 34.56 kB / 0.5043 GB, free: 14.77 MB / 382.1 MB Notification: Performance of pre-optimization done (n=6): time 6.81e-07/0.436, allocations: 0 / 0.5043 GB, free: 14.77 MB / 382.1 MB Notification: Performance of matching and sorting (n=6): time 0.0004243/0.4364, allocations: 227.1 kB / 0.5045 GB, free: 14.54 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.717e-05/0.4364, allocations: 89.03 kB / 0.5046 GB, free: 14.43 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.811e-05/0.4365, allocations: 93.86 kB / 0.5047 GB, free: 14.33 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.701e-05/0.4365, allocations: 25.7 kB / 0.5047 GB, free: 14.3 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.649e-05/0.4365, allocations: 84.14 kB / 0.5048 GB, free: 14.21 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.607e-05/0.4366, allocations: 15.75 kB / 0.5048 GB, free: 14.2 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.531e-05/0.4366, allocations: 45.72 kB / 0.5048 GB, free: 14.15 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.155e-05/0.4367, allocations: 310.8 kB / 0.5051 GB, free: 13.84 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.089e-05/0.4368, allocations: 39.97 kB / 0.5052 GB, free: 13.8 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.552e-05/0.4368, allocations: 43.95 kB / 0.5052 GB, free: 13.75 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001429/0.437, allocations: 140.2 kB / 0.5054 GB, free: 13.6 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.437, allocations: 0 / 0.5054 GB, free: 13.6 MB / 382.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0002265/0.4372, allocations: 187.1 kB / 0.5055 GB, free: 13.41 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.75e-05/0.4373, allocations: 41.69 kB / 0.5056 GB, free: 13.36 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.15e-06/0.4373, allocations: 0 / 0.5056 GB, free: 13.36 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.357e-05/0.4373, allocations: 8 kB / 0.5056 GB, free: 13.35 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.11e-07/0.4373, allocations: 0 / 0.5056 GB, free: 13.35 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.139e-06/0.4373, allocations: 0 / 0.5056 GB, free: 13.35 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000287/0.4376, allocations: 15.98 kB / 0.5056 GB, free: 13.34 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.201e-05/0.4376, allocations: 15.98 kB / 0.5056 GB, free: 13.32 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 0.0001002/0.4378, allocations: 151.5 kB / 0.5058 GB, free: 13.16 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.364e-05/0.4378, allocations: 4 kB / 0.5058 GB, free: 13.15 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.233e-05/0.4378, allocations: 8.156 kB / 0.5058 GB, free: 13.15 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.353e-06/0.4378, allocations: 4 kB / 0.5058 GB, free: 13.14 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.739e-06/0.4378, allocations: 4 kB / 0.5058 GB, free: 13.14 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.965e-06/0.4378, allocations: 4 kB / 0.5058 GB, free: 13.14 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.55e-05/0.4379, allocations: 157.7 kB / 0.5059 GB, free: 12.93 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.62e-07/0.4379, allocations: 0 / 0.5059 GB, free: 12.93 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.2e-07/0.4379, allocations: 0 / 0.5059 GB, free: 12.93 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.182e-06/0.4379, allocations: 0 / 0.5059 GB, free: 12.93 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.157e-05/0.438, allocations: 19.92 kB / 0.506 GB, free: 12.91 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.112e-06/0.438, allocations: 0 / 0.506 GB, free: 12.91 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.438, allocations: 0 / 0.506 GB, free: 12.91 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002644/0.4382, allocations: 238.6 kB / 0.5062 GB, free: 12.66 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.142e-05/0.4383, allocations: 93.03 kB / 0.5063 GB, free: 12.55 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.099e-05/0.4383, allocations: 7.938 kB / 0.5063 GB, free: 12.54 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001535/0.4385, allocations: 15.92 kB / 0.5063 GB, free: 12.52 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.895e-05/0.4385, allocations: 7.984 kB / 0.5063 GB, free: 12.52 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.954e-05/0.4385, allocations: 12 kB / 0.5063 GB, free: 12.5 MB / 382.1 MB Notification: Performance of sorting global known variables: time 1.401e-05/0.4385, allocations: 75.28 kB / 0.5064 GB, free: 12.43 MB / 382.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4385, allocations: 0 / 0.5064 GB, free: 12.43 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002617/0.4388, allocations: 56.02 kB / 0.5064 GB, free: 12.38 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.0005806/0.4394, allocations: 288.7 kB / 0.5067 GB, free: 12.15 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002637/0.4397, allocations: 235.3 kB / 0.5069 GB, free: 11.91 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.026e-06/0.4397, allocations: 4.062 kB / 0.5069 GB, free: 11.9 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001256/0.4398, allocations: 183.3 kB / 0.5071 GB, free: 11.71 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00015/0.44, allocations: 8 kB / 0.5071 GB, free: 11.7 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003208/0.4403, allocations: 162.7 kB / 0.5073 GB, free: 11.52 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001473/0.4405, allocations: 0.677 MB / 0.5079 GB, free: 10.81 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 6.913e-06/0.4405, allocations: 0 / 0.5079 GB, free: 10.81 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.078e-05/0.4405, allocations: 11.44 kB / 0.5079 GB, free: 10.8 MB / 382.1 MB Notification: Performance of SimCode: time 2.21e-07/0.4405, allocations: 0 / 0.5079 GB, free: 10.8 MB / 382.1 MB Notification: Performance of Templates: time 0.00537/0.4459, allocations: 2.681 MB / 0.5106 GB, free: 8.141 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)