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.001775/0.00178, allocations: 108 kB / 15.6 MB, free: 132 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.001655/0.001655, allocations: 193.8 kB / 16.53 MB, free: 6.391 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.703/1.703, allocations: 205.1 MB / 222.4 MB, free: 4.551 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.6485/0.6485, allocations: 95.48 MB / 365.2 MB, free: 9.879 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.001702/0.001702, allocations: 75.89 kB / 445.4 MB, free: 9.594 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3951/0.3968, allocations: 69.08 MB / 0.5024 GB, free: 17.38 MB / 382.1 MB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Python27.Functions.Examples.Exchange): time 0.002037/0.3989, allocations: 0.5045 MB / 0.5029 GB, free: 16.87 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009683/0.3999, allocations: 441.7 kB / 0.5033 GB, free: 16.44 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.347e-05/0.4, allocations: 0 / 0.5033 GB, free: 16.44 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 3.567e-05/0.4, allocations: 0 / 0.5033 GB, free: 16.44 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 7.153e-06/0.4, allocations: 0 / 0.5033 GB, free: 16.44 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.0007264/0.4007, allocations: 203.4 kB / 0.5035 GB, free: 16.24 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.000107/0.4009, allocations: 39.95 kB / 0.5035 GB, free: 16.2 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.583e-05/0.4009, allocations: 4 kB / 0.5035 GB, free: 16.2 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.291e-05/0.401, allocations: 31.91 kB / 0.5036 GB, free: 16.17 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.39e-05/0.401, allocations: 15.98 kB / 0.5036 GB, free: 16.15 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.993e-05/0.401, allocations: 0 / 0.5036 GB, free: 16.15 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002068/0.4013, allocations: 107.8 kB / 0.5037 GB, free: 16.05 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 3.195e-05/0.4013, allocations: 15.97 kB / 0.5037 GB, free: 16.03 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 4.957e-05/0.4014, allocations: 11.94 kB / 0.5037 GB, free: 16.02 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002225/0.4016, allocations: 155.7 kB / 0.5039 GB, free: 15.87 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.43e-06/0.4016, allocations: 0 / 0.5039 GB, free: 15.87 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.472e-06/0.4016, allocations: 0 / 0.5039 GB, free: 15.87 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.051e-06/0.4016, allocations: 0 / 0.5039 GB, free: 15.87 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.0004033/0.402, allocations: 405.1 kB / 0.5042 GB, free: 15.41 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.525e-05/0.4021, allocations: 11.98 kB / 0.5043 GB, free: 15.4 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.425e-05/0.4021, allocations: 8.875 kB / 0.5043 GB, free: 15.39 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.229e-05/0.4022, allocations: 166.3 kB / 0.5044 GB, free: 15.2 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.644e-05/0.4023, allocations: 8.375 kB / 0.5044 GB, free: 15.19 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.009e-05/0.4023, allocations: 4.375 kB / 0.5044 GB, free: 15.18 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002135/0.4025, allocations: 94.17 kB / 0.5045 GB, free: 15.09 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.317e-05/0.4025, allocations: 4.172 kB / 0.5045 GB, free: 15.08 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.057e-05/0.4025, allocations: 7.938 kB / 0.5045 GB, free: 15.07 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.38e-06/0.4026, allocations: 0 / 0.5045 GB, free: 15.07 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.838e-05/0.4026, allocations: 39.97 kB / 0.5046 GB, free: 15.04 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001501/0.4028, allocations: 161.7 kB / 0.5047 GB, free: 14.83 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001099/0.4029, allocations: 86.47 kB / 0.5048 GB, free: 14.73 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.164e-05/0.403, allocations: 72.92 kB / 0.5049 GB, free: 14.66 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.181e-06/0.403, allocations: 0 / 0.5049 GB, free: 14.66 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.466e-05/0.403, allocations: 34.56 kB / 0.5049 GB, free: 14.62 MB / 382.1 MB Notification: Performance of pre-optimization done (n=6): time 9.02e-07/0.4031, allocations: 0 / 0.5049 GB, free: 14.62 MB / 382.1 MB Notification: Performance of matching and sorting (n=6): time 0.0003817/0.4034, allocations: 223.1 kB / 0.5051 GB, free: 14.39 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.789e-05/0.4035, allocations: 89.09 kB / 0.5052 GB, free: 14.28 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.769e-05/0.4035, allocations: 93.86 kB / 0.5053 GB, free: 14.18 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.826e-05/0.4036, allocations: 33.73 kB / 0.5053 GB, free: 14.14 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.609e-05/0.4036, allocations: 80.14 kB / 0.5054 GB, free: 14.06 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.168e-05/0.4036, allocations: 15.75 kB / 0.5054 GB, free: 14.04 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.463e-05/0.4037, allocations: 37.69 kB / 0.5055 GB, free: 14 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 7.991e-05/0.4038, allocations: 318.8 kB / 0.5058 GB, free: 13.68 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.225e-05/0.4038, allocations: 39.97 kB / 0.5058 GB, free: 13.64 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.193e-05/0.4039, allocations: 39.95 kB / 0.5058 GB, free: 13.6 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001254/0.404, allocations: 144.2 kB / 0.506 GB, free: 13.45 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.404, allocations: 4.031 kB / 0.506 GB, free: 13.44 MB / 382.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0002044/0.4043, allocations: 187.1 kB / 0.5062 GB, free: 13.25 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.794e-05/0.4043, allocations: 45.69 kB / 0.5062 GB, free: 13.2 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.641e-06/0.4043, allocations: 0 / 0.5062 GB, free: 13.2 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.705e-05/0.4043, allocations: 3.938 kB / 0.5062 GB, free: 13.19 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.854e-06/0.4043, allocations: 4 kB / 0.5062 GB, free: 13.19 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.422e-06/0.4043, allocations: 0 / 0.5062 GB, free: 13.19 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002841/0.4046, allocations: 11.98 kB / 0.5062 GB, free: 13.18 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.12e-05/0.4047, allocations: 11.98 kB / 0.5062 GB, free: 13.16 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.0001024/0.4048, allocations: 159.6 kB / 0.5064 GB, free: 12.99 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.284e-05/0.4048, allocations: 8 kB / 0.5064 GB, free: 12.98 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.286e-05/0.4048, allocations: 7.906 kB / 0.5064 GB, free: 12.98 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.203e-06/0.4048, allocations: 0 / 0.5064 GB, free: 12.98 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.569e-06/0.4048, allocations: 0 / 0.5064 GB, free: 12.98 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.426e-06/0.4049, allocations: 0 / 0.5064 GB, free: 12.98 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.577e-05/0.4049, allocations: 157.9 kB / 0.5065 GB, free: 12.78 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.62e-07/0.4049, allocations: 0 / 0.5065 GB, free: 12.78 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.062e-06/0.4049, allocations: 4 kB / 0.5066 GB, free: 12.77 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.182e-06/0.405, allocations: 0 / 0.5066 GB, free: 12.77 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.212e-05/0.405, allocations: 23.92 kB / 0.5066 GB, free: 12.75 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.001e-06/0.405, allocations: 0 / 0.5066 GB, free: 12.75 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.92e-07/0.405, allocations: 0 / 0.5066 GB, free: 12.75 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002582/0.4053, allocations: 238.6 kB / 0.5068 GB, free: 12.49 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.74e-05/0.4053, allocations: 81.05 kB / 0.5069 GB, free: 12.39 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.999e-05/0.4053, allocations: 11.92 kB / 0.5069 GB, free: 12.38 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001596/0.4055, allocations: 15.98 kB / 0.5069 GB, free: 12.37 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.596e-05/0.4055, allocations: 8.031 kB / 0.5069 GB, free: 12.36 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.829e-05/0.4055, allocations: 11.98 kB / 0.5069 GB, free: 12.35 MB / 382.1 MB Notification: Performance of sorting global known variables: time 2.068e-05/0.4056, allocations: 75.28 kB / 0.507 GB, free: 12.27 MB / 382.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4056, allocations: 0 / 0.507 GB, free: 12.27 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002632/0.4058, allocations: 55.92 kB / 0.5071 GB, free: 12.22 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.0005772/0.4064, allocations: 280.7 kB / 0.5073 GB, free: 11.99 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002779/0.4067, allocations: 231.3 kB / 0.5075 GB, free: 11.75 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.723e-06/0.4067, allocations: 0 / 0.5075 GB, free: 11.75 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001207/0.4069, allocations: 171.4 kB / 0.5077 GB, free: 11.57 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001565/0.407, allocations: 15.92 kB / 0.5077 GB, free: 11.56 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002987/0.4073, allocations: 164.9 kB / 0.5079 GB, free: 11.37 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001393/0.4075, allocations: 0.6847 MB / 0.5085 GB, free: 10.66 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 7.605e-06/0.4075, allocations: 0 / 0.5085 GB, free: 10.66 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.907e-06/0.4075, allocations: 7.438 kB / 0.5085 GB, free: 10.65 MB / 382.1 MB Notification: Performance of SimCode: time 2.2e-07/0.4075, allocations: 0 / 0.5085 GB, free: 10.65 MB / 382.1 MB Notification: Performance of Templates: time 0.005305/0.4128, allocations: 2.757 MB / 0.5112 GB, free: 7.922 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)