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.001227/0.001227, allocations: 87.42 kB / 15.07 MB, free: 1.082 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.001473/0.001472, allocations: 168.7 kB / 15.95 MB, free: 200 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.849/1.849, allocations: 205.4 MB / 222.1 MB, free: 5.648 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.7528/0.7528, allocations: 95.63 MB / 366 MB, free: 10.36 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.0005735/0.0005735, allocations: 12.22 kB / 446.9 MB, free: 9.348 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4485/0.4491, allocations: 70.34 MB / 0.5051 GB, free: 16.48 MB / 382.1 MB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Python27.Functions.Examples.Exchange): time 0.0006916/0.4499, allocations: 239.9 kB / 0.5053 GB, free: 16.25 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007942/0.4507, allocations: 421.9 kB / 0.5057 GB, free: 15.84 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.77e-05/0.4507, allocations: 0 / 0.5057 GB, free: 15.84 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 3.169e-05/0.4507, allocations: 0 / 0.5057 GB, free: 15.84 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 7.795e-06/0.4508, allocations: 0 / 0.5057 GB, free: 15.84 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.0005439/0.4513, allocations: 179.6 kB / 0.5059 GB, free: 15.66 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 7.303e-05/0.4514, allocations: 31.95 kB / 0.5059 GB, free: 15.63 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.389e-05/0.4514, allocations: 0 / 0.5059 GB, free: 15.63 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.631e-05/0.4515, allocations: 27.97 kB / 0.5059 GB, free: 15.61 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.007e-05/0.4515, allocations: 23.97 kB / 0.506 GB, free: 15.58 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.515e-05/0.4516, allocations: 0 / 0.506 GB, free: 15.58 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001651/0.4517, allocations: 115.8 kB / 0.5061 GB, free: 15.47 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.985e-05/0.4518, allocations: 0 / 0.5061 GB, free: 15.47 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 3.636e-05/0.4518, allocations: 33.7 kB / 0.5061 GB, free: 15.43 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001551/0.452, allocations: 115.8 kB / 0.5062 GB, free: 15.32 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.973e-06/0.452, allocations: 0 / 0.5062 GB, free: 15.32 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.615e-06/0.452, allocations: 0 / 0.5062 GB, free: 15.32 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.859e-06/0.452, allocations: 0 / 0.5062 GB, free: 15.32 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.0003563/0.4524, allocations: 377 kB / 0.5066 GB, free: 14.89 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.668e-05/0.4524, allocations: 11.98 kB / 0.5066 GB, free: 14.88 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.551e-05/0.4525, allocations: 4 kB / 0.5066 GB, free: 14.88 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.492e-05/0.4525, allocations: 173 kB / 0.5068 GB, free: 14.67 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.59e-05/0.4526, allocations: 0 / 0.5068 GB, free: 14.67 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.017e-05/0.4526, allocations: 4 kB / 0.5068 GB, free: 14.67 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001725/0.4528, allocations: 105.5 kB / 0.5069 GB, free: 14.56 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.086e-05/0.4528, allocations: 0 / 0.5069 GB, free: 14.56 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.027e-05/0.4528, allocations: 4 kB / 0.5069 GB, free: 14.55 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.839e-06/0.4528, allocations: 3.938 kB / 0.5069 GB, free: 14.55 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.877e-05/0.4529, allocations: 43.97 kB / 0.5069 GB, free: 14.51 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001191/0.453, allocations: 149.7 kB / 0.5071 GB, free: 14.31 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.312e-05/0.4531, allocations: 82.61 kB / 0.5071 GB, free: 14.22 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.871e-05/0.4532, allocations: 76.91 kB / 0.5072 GB, free: 14.14 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.111e-05/0.4532, allocations: 3.984 kB / 0.5072 GB, free: 14.14 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.891e-05/0.4532, allocations: 38.45 kB / 0.5072 GB, free: 14.09 MB / 382.1 MB Notification: Performance of pre-optimization done (n=6): time 9.22e-07/0.4532, allocations: 0 / 0.5072 GB, free: 14.09 MB / 382.1 MB Notification: Performance of matching and sorting (n=6): time 0.0003505/0.4536, allocations: 219.3 kB / 0.5075 GB, free: 13.87 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.504e-05/0.4537, allocations: 85.11 kB / 0.5075 GB, free: 13.77 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.772e-05/0.4537, allocations: 93.89 kB / 0.5076 GB, free: 13.66 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.463e-05/0.4537, allocations: 29.7 kB / 0.5077 GB, free: 13.63 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.23e-05/0.4537, allocations: 80.14 kB / 0.5077 GB, free: 13.55 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.688e-05/0.4538, allocations: 19.73 kB / 0.5078 GB, free: 13.53 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.608e-06/0.4538, allocations: 4 kB / 0.5078 GB, free: 13.52 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.715e-05/0.4539, allocations: 310.8 kB / 0.5081 GB, free: 13.21 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.692e-05/0.4539, allocations: 43.97 kB / 0.5081 GB, free: 13.17 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.855e-05/0.454, allocations: 43.89 kB / 0.5081 GB, free: 13.12 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.861e-05/0.4541, allocations: 65.69 kB / 0.5082 GB, free: 13.05 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.4541, allocations: 4.031 kB / 0.5082 GB, free: 13.05 MB / 382.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001991/0.4543, allocations: 179.2 kB / 0.5084 GB, free: 12.86 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.978e-05/0.4543, allocations: 43.88 kB / 0.5084 GB, free: 12.82 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.27e-06/0.4543, allocations: 0 / 0.5084 GB, free: 12.82 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.544e-05/0.4544, allocations: 3.953 kB / 0.5084 GB, free: 12.81 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.62e-07/0.4544, allocations: 256 / 0.5084 GB, free: 12.81 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.181e-06/0.4544, allocations: 0 / 0.5084 GB, free: 12.81 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002706/0.4547, allocations: 19.98 kB / 0.5084 GB, free: 12.79 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.579e-05/0.4547, allocations: 15.98 kB / 0.5085 GB, free: 12.78 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 (yI1[1],yI2[1],yI2[2]) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001097/0.4548, allocations: 155.6 kB / 0.5086 GB, free: 12.61 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.597e-05/0.4548, allocations: 8 kB / 0.5086 GB, free: 12.6 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.221e-05/0.4549, allocations: 3.969 kB / 0.5086 GB, free: 12.6 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.186e-06/0.4549, allocations: 11.94 kB / 0.5086 GB, free: 12.59 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.442e-06/0.4549, allocations: 0 / 0.5086 GB, free: 12.59 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.417e-06/0.4549, allocations: 0 / 0.5086 GB, free: 12.59 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.903e-05/0.455, allocations: 149.7 kB / 0.5088 GB, free: 12.39 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.31e-07/0.455, allocations: 3.938 kB / 0.5088 GB, free: 12.39 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.753e-06/0.455, allocations: 7.938 kB / 0.5088 GB, free: 12.38 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.445e-06/0.455, allocations: 0 / 0.5088 GB, free: 12.38 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.968e-05/0.455, allocations: 19.92 kB / 0.5088 GB, free: 12.36 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.81e-07/0.455, allocations: 0 / 0.5088 GB, free: 12.36 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.875e-06/0.455, allocations: 7.953 kB / 0.5088 GB, free: 12.36 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002569/0.4553, allocations: 234.6 kB / 0.509 GB, free: 12.1 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.97e-05/0.4553, allocations: 85.05 kB / 0.5091 GB, free: 12 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.673e-05/0.4554, allocations: 4 kB / 0.5091 GB, free: 12 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001345/0.4555, allocations: 11.98 kB / 0.5091 GB, free: 11.98 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.261e-05/0.4555, allocations: 12.02 kB / 0.5091 GB, free: 11.97 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.998e-05/0.4556, allocations: 15.95 kB / 0.5092 GB, free: 11.96 MB / 382.1 MB Notification: Performance of sorting global known variables: time 1.768e-05/0.4556, allocations: 75.28 kB / 0.5092 GB, free: 11.88 MB / 382.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4556, allocations: 0 / 0.5092 GB, free: 11.88 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002644/0.4559, allocations: 51.98 kB / 0.5093 GB, free: 11.83 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 (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.0006522/0.4565, allocations: 279.2 kB / 0.5095 GB, free: 11.61 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.000296/0.4568, allocations: 239.2 kB / 0.5098 GB, free: 11.36 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.4569, allocations: 0 / 0.5098 GB, free: 11.36 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001358/0.457, allocations: 179.3 kB / 0.5099 GB, free: 11.17 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001625/0.4572, allocations: 8 kB / 0.5099 GB, free: 11.16 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003398/0.4575, allocations: 166.7 kB / 0.5101 GB, free: 10.97 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001997/0.4577, allocations: 0.6811 MB / 0.5108 GB, free: 10.27 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 8.466e-06/0.4577, allocations: 3.984 kB / 0.5108 GB, free: 10.26 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.889e-06/0.4578, allocations: 7.438 kB / 0.5108 GB, free: 10.25 MB / 382.1 MB Notification: Performance of SimCode: time 6.41e-07/0.4578, allocations: 0 / 0.5108 GB, free: 10.25 MB / 382.1 MB Notification: Performance of Templates: time 0.005474/0.4632, allocations: 2.625 MB / 0.5133 GB, free: 7.652 MB / 382.1 MB make -j1 -f Buildings_1.6_Buildings.Utilities.IO.Python27.Functions.Examples.Exchange.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: