Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_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 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.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_8_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_8_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.000787/0.000787, allocations: 91.92 kB / 15.06 MB, free: 1.098 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.0008411/0.0008411, allocations: 172.7 kB / 15.95 MB, free: 208 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.673/1.673, allocations: 205.4 MB / 222.1 MB, free: 5.672 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.828/1.828, allocations: 292.7 MB / 0.5499 GB, free: 14.58 MB / 462.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.0005814/0.0005816, allocations: 16.25 kB / 0.6737 GB, free: 26.28 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3396/0.3402, allocations: 116.3 MB / 0.7873 GB, free: 11.95 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Obsolete.Utilities.IO.Python27.Functions.Examples.Exchange): time 0.0008782/0.3411, allocations: 274 kB / 0.7876 GB, free: 11.68 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001764/0.3429, allocations: 1.196 MB / 0.7887 GB, free: 10.48 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.363e-05/0.3429, allocations: 0 / 0.7887 GB, free: 10.48 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0001222/0.3431, allocations: 7.984 kB / 0.7887 GB, free: 10.47 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 5.15e-05/0.3431, allocations: 0 / 0.7887 GB, free: 10.47 MB / 0.6075 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.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.0006343/0.3438, allocations: 271.4 kB / 0.789 GB, free: 10.2 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0001058/0.3439, allocations: 59.86 kB / 0.789 GB, free: 10.14 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 5.415e-05/0.3439, allocations: 0 / 0.789 GB, free: 10.14 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 5.19e-05/0.344, allocations: 51.88 kB / 0.7891 GB, free: 10.09 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 6.028e-05/0.3441, allocations: 31.92 kB / 0.7891 GB, free: 10.06 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 1.686e-05/0.3441, allocations: 4 kB / 0.7891 GB, free: 10.06 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000402/0.3445, allocations: 191.6 kB / 0.7893 GB, free: 9.871 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 1.96e-05/0.3445, allocations: 3.984 kB / 0.7893 GB, free: 9.867 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 4.368e-05/0.3446, allocations: 37.7 kB / 0.7894 GB, free: 9.824 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.000269/0.3449, allocations: 203.6 kB / 0.7895 GB, free: 9.625 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 5.27e-06/0.3449, allocations: 0 / 0.7895 GB, free: 9.625 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.714e-06/0.3449, allocations: 0 / 0.7895 GB, free: 9.625 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 4.809e-06/0.3449, allocations: 0 / 0.7895 GB, free: 9.625 MB / 0.6075 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.0004706/0.3454, allocations: 429.2 kB / 0.79 GB, free: 9.152 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.423e-05/0.3454, allocations: 8.031 kB / 0.79 GB, free: 9.145 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.727e-05/0.3455, allocations: 8 kB / 0.79 GB, free: 9.137 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001581/0.3456, allocations: 174.9 kB / 0.7901 GB, free: 8.926 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.806e-05/0.3457, allocations: 4 kB / 0.7901 GB, free: 8.922 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.603e-05/0.3457, allocations: 12 kB / 0.7902 GB, free: 8.91 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002244/0.3459, allocations: 129.6 kB / 0.7903 GB, free: 8.777 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.815e-06/0.3459, allocations: 0 / 0.7903 GB, free: 8.777 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.867e-05/0.346, allocations: 4 kB / 0.7903 GB, free: 8.773 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.558e-06/0.346, allocations: 0 / 0.7903 GB, free: 8.773 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001014/0.3461, allocations: 59.89 kB / 0.7903 GB, free: 8.715 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001613/0.3462, allocations: 165.7 kB / 0.7905 GB, free: 8.504 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001492/0.3464, allocations: 110.5 kB / 0.7906 GB, free: 8.387 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001267/0.3465, allocations: 108.9 kB / 0.7907 GB, free: 8.277 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 9.848e-06/0.3466, allocations: 0 / 0.7907 GB, free: 8.277 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.709e-05/0.3466, allocations: 34.56 kB / 0.7907 GB, free: 8.234 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=6): time 1.032e-06/0.3466, allocations: 0 / 0.7907 GB, free: 8.234 MB / 0.6075 GB Notification: Performance of matching and sorting (n=6): time 0.0004793/0.3471, allocations: 291.1 kB / 0.791 GB, free: 7.938 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.485e-05/0.3471, allocations: 85.11 kB / 0.7911 GB, free: 7.836 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001027/0.3472, allocations: 133.6 kB / 0.7912 GB, free: 7.695 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.526e-05/0.3473, allocations: 29.7 kB / 0.7913 GB, free: 7.66 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 3.778e-05/0.3473, allocations: 88.17 kB / 0.7913 GB, free: 7.57 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 4.09e-05/0.3474, allocations: 15.81 kB / 0.7914 GB, free: 7.555 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.158e-05/0.3474, allocations: 0 / 0.7914 GB, free: 7.555 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001136/0.3475, allocations: 326.8 kB / 0.7917 GB, free: 7.227 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.316e-05/0.3476, allocations: 55.95 kB / 0.7917 GB, free: 7.172 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.768e-05/0.3477, allocations: 59.94 kB / 0.7918 GB, free: 7.113 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001045/0.3478, allocations: 93.59 kB / 0.7919 GB, free: 7.016 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.733e-06/0.3478, allocations: 0 / 0.7919 GB, free: 7.016 MB / 0.6075 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0003032/0.3481, allocations: 231.1 kB / 0.7921 GB, free: 6.777 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 4.702e-05/0.3482, allocations: 45.75 kB / 0.7921 GB, free: 6.727 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.661e-06/0.3482, allocations: 4 kB / 0.7921 GB, free: 6.723 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.643e-05/0.3482, allocations: 0 / 0.7921 GB, free: 6.723 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.01e-07/0.3482, allocations: 0 / 0.7921 GB, free: 6.723 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.855e-06/0.3482, allocations: 3.984 kB / 0.7921 GB, free: 6.719 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000284/0.3485, allocations: 19.92 kB / 0.7922 GB, free: 6.699 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.877e-05/0.3486, allocations: 19.98 kB / 0.7922 GB, free: 6.68 MB / 0.6075 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 (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.0001356/0.3487, allocations: 168.1 kB / 0.7923 GB, free: 6.5 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.8e-05/0.3488, allocations: 15.91 kB / 0.7924 GB, free: 6.484 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.663e-05/0.3488, allocations: 8.375 kB / 0.7924 GB, free: 6.477 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.283e-06/0.3488, allocations: 0 / 0.7924 GB, free: 6.477 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.368e-06/0.3488, allocations: 0 / 0.7924 GB, free: 6.477 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.745e-06/0.3488, allocations: 0 / 0.7924 GB, free: 6.477 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001285/0.3489, allocations: 177.5 kB / 0.7925 GB, free: 6.254 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.81e-07/0.3489, allocations: 0 / 0.7925 GB, free: 6.254 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.494e-06/0.349, allocations: 4.234 kB / 0.7925 GB, free: 6.25 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.543e-06/0.349, allocations: 0 / 0.7925 GB, free: 6.25 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.849e-05/0.349, allocations: 19.98 kB / 0.7926 GB, free: 6.23 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.81e-07/0.349, allocations: 0 / 0.7926 GB, free: 6.23 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.21e-07/0.349, allocations: 4 kB / 0.7926 GB, free: 6.227 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003653/0.3494, allocations: 290.5 kB / 0.7928 GB, free: 5.918 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 4.575e-05/0.3494, allocations: 93.05 kB / 0.7929 GB, free: 5.809 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.35e-05/0.3495, allocations: 7.984 kB / 0.7929 GB, free: 5.801 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001876/0.3497, allocations: 15.98 kB / 0.7929 GB, free: 5.785 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.659e-05/0.3497, allocations: 12.36 kB / 0.793 GB, free: 5.773 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.736e-05/0.3497, allocations: 15.98 kB / 0.793 GB, free: 5.758 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 5.31e-05/0.3498, allocations: 103.2 kB / 0.7931 GB, free: 5.656 MB / 0.6075 GB Notification: Performance of sort global known variables: time 9e-08/0.3498, allocations: 0 / 0.7931 GB, free: 5.656 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0003392/0.3502, allocations: 87.92 kB / 0.7932 GB, free: 5.57 MB / 0.6075 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 (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.0008446/0.351, allocations: 393.4 kB / 0.7935 GB, free: 5.277 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0003859/0.3514, allocations: 291.2 kB / 0.7938 GB, free: 4.98 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.3514, allocations: 64 / 0.7938 GB, free: 4.98 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.000213/0.3516, allocations: 219.3 kB / 0.794 GB, free: 4.754 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000166/0.3518, allocations: 11.09 kB / 0.794 GB, free: 4.746 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000581/0.3524, allocations: 294.7 kB / 0.7943 GB, free: 4.43 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002597/0.3527, allocations: 0.6809 MB / 0.795 GB, free: 3.723 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 9.944e-05/0.3528, allocations: 63.92 kB / 0.795 GB, free: 3.66 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.616e-05/0.3528, allocations: 7.438 kB / 0.795 GB, free: 3.652 MB / 0.6075 GB Notification: Performance of SimCode: time 4.2e-07/0.3528, allocations: 3.938 kB / 0.795 GB, free: 3.648 MB / 0.6075 GB Notification: Performance of Templates: time 0.007153/0.36, allocations: 3.887 MB / 0.7988 GB, free: 15.79 MB / 0.6231 GB make -j1 -f Buildings_8_Buildings.Obsolete.Utilities.IO.Python27.Functions.Examples.Exchange.makefile Environment - environmentSimulation: (rm -f Buildings_8_Buildings.Obsolete.Utilities.IO.Python27.Functions.Examples.Exchange.pipe ; mkfifo Buildings_8_Buildings.Obsolete.Utilities.IO.Python27.Functions.Examples.Exchange.pipe ; head -c 1048576 < Buildings_8_Buildings.Obsolete.Utilities.IO.Python27.Functions.Examples.Exchange.pipe >> ../files/Buildings_8_Buildings.Obsolete.Utilities.IO.Python27.Functions.Examples.Exchange.sim & ./Buildings_8_Buildings.Obsolete.Utilities.IO.Python27.Functions.Examples.Exchange -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Obsolete.Utilities.IO.Python27.Functions.Examples.Exchange.pipe 2>&1) Environment - environmentSimulation: