Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Obsolete.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 7.0.3-maint.7.0.x/package.mo", uses=false) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/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.Obsolete.Utilities.IO.Python27.Functions.Examples.Exchange,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Obsolete.Utilities.IO.Python27.Functions.Examples.Exchange") translateModel(Buildings.Obsolete.Utilities.IO.Python27.Functions.Examples.Exchange,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Obsolete.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.0007505/0.0007506, allocations: 94.28 kB / 15.37 MB, free: 0.7266 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.0009008/0.0009008, allocations: 176.8 kB / 16.27 MB, free: 6.664 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.219/1.219, allocations: 205.4 MB / 222.4 MB, free: 5.555 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.408/1.408, allocations: 252 MB / 0.5105 GB, free: 4.664 MB / 414.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: Performance of FrontEnd - loaded program: time 0.0004751/0.0004753, allocations: 12 kB / 0.6249 GB, free: 0.7188 MB / 0.5137 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4305/0.4309, allocations: 106.3 MB / 0.7287 GB, free: 11.29 MB / 0.545 GB Notification: Performance of NFInst.instantiate(Buildings.Obsolete.Utilities.IO.Python27.Functions.Examples.Exchange): time 0.0007858/0.4318, allocations: 282.7 kB / 0.729 GB, free: 11.02 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.001884/0.4337, allocations: 1.265 MB / 0.7303 GB, free: 9.742 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.855e-05/0.4337, allocations: 0 / 0.7303 GB, free: 9.742 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 9.634e-05/0.4338, allocations: 4 kB / 0.7303 GB, free: 9.738 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 4.53e-05/0.4339, allocations: 0 / 0.7303 GB, free: 9.738 MB / 0.545 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/Obsolete/Utilities/IO/Python27/Functions/exchange.mo:2:1-109:13:writable] Warning: Pure function ‘Buildings.Obsolete.Utilities.IO.Python27.Functions.exchange‘ contains a call to impure function ‘Modelica.Utilities.System.getEnvironmentVariable‘. Notification: Performance of NFTyping.typeClassSections: time 0.0006812/0.4346, allocations: 271.4 kB / 0.7305 GB, free: 9.473 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.0001203/0.4347, allocations: 67.94 kB / 0.7306 GB, free: 9.406 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 4.62e-05/0.4348, allocations: 7.984 kB / 0.7306 GB, free: 9.398 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 5.751e-05/0.4348, allocations: 35.86 kB / 0.7306 GB, free: 9.363 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 6.929e-05/0.4349, allocations: 47.83 kB / 0.7307 GB, free: 9.316 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 1.98e-05/0.4349, allocations: 4 kB / 0.7307 GB, free: 9.312 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004873/0.4354, allocations: 203.7 kB / 0.7309 GB, free: 9.113 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 3.202e-05/0.4355, allocations: 7.938 kB / 0.7309 GB, free: 9.105 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 7.92e-05/0.4356, allocations: 61.55 kB / 0.7309 GB, free: 9.039 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0004769/0.436, allocations: 283.5 kB / 0.7312 GB, free: 8.762 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.4361, allocations: 0 / 0.7312 GB, free: 8.762 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.723e-06/0.4361, allocations: 0 / 0.7312 GB, free: 8.762 MB / 0.545 GB Notification: Performance of Transformations before backend: time 4.569e-06/0.4361, allocations: 0 / 0.7312 GB, free: 8.762 MB / 0.545 GB 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.0004513/0.4365, allocations: 423.1 kB / 0.7316 GB, free: 8.297 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.022e-05/0.4366, allocations: 8.031 kB / 0.7316 GB, free: 8.289 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.617e-05/0.4366, allocations: 8.844 kB / 0.7316 GB, free: 8.281 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001389/0.4368, allocations: 176.4 kB / 0.7318 GB, free: 8.07 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.67e-05/0.4368, allocations: 4.375 kB / 0.7318 GB, free: 8.066 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.982e-05/0.4368, allocations: 12.38 kB / 0.7318 GB, free: 8.055 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002342/0.4371, allocations: 125.7 kB / 0.7319 GB, free: 7.926 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.264e-06/0.4371, allocations: 0 / 0.7319 GB, free: 7.926 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.296e-05/0.4371, allocations: 4 kB / 0.7319 GB, free: 7.922 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.049e-06/0.4371, allocations: 0 / 0.7319 GB, free: 7.922 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001061/0.4372, allocations: 63.88 kB / 0.732 GB, free: 7.859 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001719/0.4374, allocations: 161.6 kB / 0.7321 GB, free: 7.652 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001436/0.4376, allocations: 114.6 kB / 0.7323 GB, free: 7.531 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000123/0.4377, allocations: 104.9 kB / 0.7324 GB, free: 7.426 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 5.09e-06/0.4377, allocations: 0 / 0.7324 GB, free: 7.426 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.092e-05/0.4378, allocations: 38.5 kB / 0.7324 GB, free: 7.379 MB / 0.545 GB Notification: Performance of pre-optimization done (n=6): time 1.112e-06/0.4378, allocations: 0 / 0.7324 GB, free: 7.379 MB / 0.545 GB Notification: Performance of matching and sorting (n=6): time 0.0005113/0.4383, allocations: 299 kB / 0.7327 GB, free: 7.074 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.827e-05/0.4384, allocations: 89.09 kB / 0.7328 GB, free: 6.969 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001043/0.4385, allocations: 121.7 kB / 0.7329 GB, free: 6.84 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 3.171e-05/0.4385, allocations: 29.7 kB / 0.7329 GB, free: 6.805 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 3.858e-05/0.4385, allocations: 92.17 kB / 0.733 GB, free: 6.711 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 4.264e-05/0.4386, allocations: 19.73 kB / 0.733 GB, free: 6.691 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.68e-05/0.4386, allocations: 13.72 kB / 0.733 GB, free: 6.672 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 8.97e-05/0.4387, allocations: 318.8 kB / 0.7333 GB, free: 6.352 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.954e-05/0.4388, allocations: 63.94 kB / 0.7334 GB, free: 6.289 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.372e-05/0.4389, allocations: 63.94 kB / 0.7334 GB, free: 6.227 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001807/0.4391, allocations: 180.1 kB / 0.7336 GB, free: 6.035 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.4391, allocations: 0 / 0.7336 GB, free: 6.035 MB / 0.545 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0002906/0.4394, allocations: 239.2 kB / 0.7338 GB, free: 5.789 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 3.993e-05/0.4395, allocations: 41.69 kB / 0.7339 GB, free: 5.742 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.589e-06/0.4395, allocations: 0 / 0.7339 GB, free: 5.742 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.226e-05/0.4395, allocations: 0 / 0.7339 GB, free: 5.742 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.22e-07/0.4395, allocations: 0 / 0.7339 GB, free: 5.742 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.619e-06/0.4395, allocations: 0 / 0.7339 GB, free: 5.742 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002879/0.4398, allocations: 24.14 kB / 0.7339 GB, free: 5.719 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.292e-05/0.4399, allocations: 15.98 kB / 0.7339 GB, free: 5.703 MB / 0.545 GB 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.0001302/0.44, allocations: 163.5 kB / 0.7341 GB, free: 5.527 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.933e-05/0.44, allocations: 19.88 kB / 0.7341 GB, free: 5.508 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.583e-05/0.4401, allocations: 16.36 kB / 0.7341 GB, free: 5.492 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.512e-06/0.4401, allocations: 0 / 0.7341 GB, free: 5.492 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.276e-06/0.4401, allocations: 0 / 0.7341 GB, free: 5.492 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.328e-06/0.4401, allocations: 3.984 kB / 0.7341 GB, free: 5.488 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001044/0.4402, allocations: 165.7 kB / 0.7343 GB, free: 5.277 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.81e-07/0.4402, allocations: 0 / 0.7343 GB, free: 5.277 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.347e-06/0.4402, allocations: 7.922 kB / 0.7343 GB, free: 5.27 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.944e-06/0.4402, allocations: 0 / 0.7343 GB, free: 5.27 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.077e-05/0.4402, allocations: 12 kB / 0.7343 GB, free: 5.258 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.515e-06/0.4402, allocations: 3.938 kB / 0.7343 GB, free: 5.254 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.4402, allocations: 4 kB / 0.7343 GB, free: 5.25 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000358/0.4406, allocations: 294.6 kB / 0.7346 GB, free: 4.938 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 5.109e-05/0.4407, allocations: 97.25 kB / 0.7347 GB, free: 4.824 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.2e-05/0.4407, allocations: 4 kB / 0.7347 GB, free: 4.82 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002057/0.4409, allocations: 23.97 kB / 0.7347 GB, free: 4.797 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.469e-05/0.441, allocations: 4 kB / 0.7347 GB, free: 4.793 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.719e-05/0.441, allocations: 23.95 kB / 0.7347 GB, free: 4.77 MB / 0.545 GB Notification: Performance of sorting global known variables: time 5.72e-05/0.4411, allocations: 95.27 kB / 0.7348 GB, free: 4.676 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.2e-07/0.4411, allocations: 0 / 0.7348 GB, free: 4.676 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0003486/0.4414, allocations: 91.92 kB / 0.7349 GB, free: 4.586 MB / 0.545 GB 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.0008465/0.4423, allocations: 396.5 kB / 0.7353 GB, free: 4.293 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.000347/0.4426, allocations: 291.2 kB / 0.7356 GB, free: 3.996 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.4426, allocations: 4.062 kB / 0.7356 GB, free: 3.992 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0001834/0.4428, allocations: 207.3 kB / 0.7358 GB, free: 3.777 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001616/0.443, allocations: 11.94 kB / 0.7358 GB, free: 3.766 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005272/0.4435, allocations: 314.7 kB / 0.7361 GB, free: 3.43 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001966/0.4437, allocations: 0.6809 MB / 0.7367 GB, free: 2.723 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 7.557e-05/0.4438, allocations: 59.86 kB / 0.7368 GB, free: 2.664 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.88e-05/0.4438, allocations: 11.44 kB / 0.7368 GB, free: 2.652 MB / 0.545 GB Notification: Performance of SimCode: time 2.31e-07/0.4439, allocations: 0 / 0.7368 GB, free: 2.652 MB / 0.545 GB Notification: Performance of Templates: time 0.006825/0.4507, allocations: 3.945 MB / 0.7407 GB, free: 14.75 MB / 0.5606 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Obsolete.Utilities.IO.Python27.Functions.Examples.Exchange.makefile Environment - environmentSimulation: (rm -f Buildings_maint.7.0.x_Buildings.Obsolete.Utilities.IO.Python27.Functions.Examples.Exchange.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Obsolete.Utilities.IO.Python27.Functions.Examples.Exchange.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Obsolete.Utilities.IO.Python27.Functions.Examples.Exchange.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Obsolete.Utilities.IO.Python27.Functions.Examples.Exchange.sim & ./Buildings_maint.7.0.x_Buildings.Obsolete.Utilities.IO.Python27.Functions.Examples.Exchange -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Obsolete.Utilities.IO.Python27.Functions.Examples.Exchange.pipe 2>&1) Environment - environmentSimulation: