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.007176/0.007177, allocations: 102.3 kB / 15.73 MB, free: 6.008 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.001253/0.001253, allocations: 198.5 kB / 16.68 MB, free: 5.93 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.766/1.766, allocations: 205.1 MB / 222.6 MB, free: 4.48 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.7116/0.7116, allocations: 95.48 MB / 365.4 MB, free: 9.777 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.002102/0.002102, allocations: 70.08 kB / 0.5036 GB, free: 13.51 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2054/0.2075, allocations: 69.1 MB / 0.5711 GB, free: 8.348 MB / 446.1 MB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Python27.Functions.Examples.Exchange): time 0.002213/0.2097, allocations: 0.5075 MB / 0.5716 GB, free: 7.84 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.001164/0.2109, allocations: 450.8 kB / 0.572 GB, free: 7.398 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.913e-05/0.211, allocations: 0 / 0.572 GB, free: 7.398 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 3.693e-05/0.2111, allocations: 0 / 0.572 GB, free: 7.398 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 7.624e-06/0.2111, allocations: 0 / 0.572 GB, free: 7.398 MB / 446.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.000931/0.212, allocations: 187.5 kB / 0.5722 GB, free: 7.215 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001419/0.2122, allocations: 43.95 kB / 0.5722 GB, free: 7.172 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.898e-05/0.2122, allocations: 3.984 kB / 0.5722 GB, free: 7.168 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.787e-05/0.2123, allocations: 23.98 kB / 0.5723 GB, free: 7.145 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.725e-05/0.2124, allocations: 27.91 kB / 0.5723 GB, free: 7.117 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 1.789e-05/0.2124, allocations: 0 / 0.5723 GB, free: 7.117 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002457/0.2127, allocations: 111.8 kB / 0.5724 GB, free: 7.008 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 3.469e-05/0.2127, allocations: 3.984 kB / 0.5724 GB, free: 7.004 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 5.846e-05/0.2128, allocations: 19.92 kB / 0.5724 GB, free: 6.984 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003323/0.2131, allocations: 159.7 kB / 0.5726 GB, free: 6.828 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.52e-06/0.2131, allocations: 0 / 0.5726 GB, free: 6.828 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.813e-06/0.2131, allocations: 0 / 0.5726 GB, free: 6.828 MB / 446.1 MB Notification: Performance of Transformations before backend: time 6.342e-06/0.2131, allocations: 0 / 0.5726 GB, free: 6.828 MB / 446.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.0005292/0.2137, allocations: 397.2 kB / 0.5729 GB, free: 6.383 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.684e-05/0.2137, allocations: 15.92 kB / 0.573 GB, free: 6.367 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.084e-05/0.2138, allocations: 12.94 kB / 0.573 GB, free: 6.355 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000117/0.214, allocations: 164.4 kB / 0.5731 GB, free: 6.156 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.858e-05/0.214, allocations: 384 / 0.5731 GB, free: 6.156 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.018e-05/0.214, allocations: 8.375 kB / 0.5731 GB, free: 6.148 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002725/0.2143, allocations: 102.1 kB / 0.5732 GB, free: 6.043 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.19e-05/0.2143, allocations: 192 / 0.5732 GB, free: 6.043 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.525e-05/0.2143, allocations: 3.938 kB / 0.5732 GB, free: 6.039 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.072e-06/0.2144, allocations: 0 / 0.5732 GB, free: 6.039 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001015/0.2145, allocations: 39.97 kB / 0.5733 GB, free: 6 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002037/0.2147, allocations: 157.7 kB / 0.5734 GB, free: 5.797 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001393/0.2148, allocations: 86.59 kB / 0.5735 GB, free: 5.703 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000102/0.2149, allocations: 76.86 kB / 0.5736 GB, free: 5.625 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.065e-05/0.215, allocations: 0 / 0.5736 GB, free: 5.625 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.167e-05/0.215, allocations: 38.5 kB / 0.5736 GB, free: 5.578 MB / 446.1 MB Notification: Performance of pre-optimization done (n=6): time 1.292e-06/0.215, allocations: 0 / 0.5736 GB, free: 5.578 MB / 446.1 MB Notification: Performance of matching and sorting (n=6): time 0.0004501/0.2155, allocations: 223.1 kB / 0.5738 GB, free: 5.348 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.965e-05/0.2155, allocations: 89.09 kB / 0.5739 GB, free: 5.242 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.593e-05/0.2156, allocations: 89.86 kB / 0.574 GB, free: 5.145 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 2.697e-05/0.2156, allocations: 29.7 kB / 0.574 GB, free: 5.109 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.867e-05/0.2157, allocations: 84.17 kB / 0.5741 GB, free: 5.023 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.497e-05/0.2157, allocations: 23.73 kB / 0.5741 GB, free: 5 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.581e-05/0.2158, allocations: 37.69 kB / 0.5742 GB, free: 4.957 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001566/0.216, allocations: 314.8 kB / 0.5745 GB, free: 4.641 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.335e-05/0.2161, allocations: 35.97 kB / 0.5745 GB, free: 4.605 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.334e-05/0.2162, allocations: 43.95 kB / 0.5746 GB, free: 4.562 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000176/0.2163, allocations: 140.2 kB / 0.5747 GB, free: 4.41 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.345e-06/0.2164, allocations: 0 / 0.5747 GB, free: 4.41 MB / 446.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0002545/0.2166, allocations: 183.3 kB / 0.5749 GB, free: 4.219 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.416e-05/0.2167, allocations: 41.75 kB / 0.5749 GB, free: 4.172 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.624e-06/0.2167, allocations: 4 kB / 0.5749 GB, free: 4.168 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.685e-05/0.2167, allocations: 3.938 kB / 0.5749 GB, free: 4.164 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.402e-06/0.2167, allocations: 0 / 0.5749 GB, free: 4.164 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.394e-06/0.2167, allocations: 0 / 0.5749 GB, free: 4.164 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003343/0.2171, allocations: 15.97 kB / 0.5749 GB, free: 4.148 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.096e-05/0.2171, allocations: 19.92 kB / 0.5749 GB, free: 4.129 MB / 446.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.0001632/0.2173, allocations: 151.5 kB / 0.5751 GB, free: 3.965 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.209e-05/0.2173, allocations: 15.91 kB / 0.5751 GB, free: 3.949 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.915e-05/0.2174, allocations: 7.906 kB / 0.5751 GB, free: 3.934 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.984e-06/0.2174, allocations: 0 / 0.5751 GB, free: 3.934 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.402e-06/0.2174, allocations: 0 / 0.5751 GB, free: 3.934 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.35e-06/0.2174, allocations: 0 / 0.5751 GB, free: 3.934 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001356/0.2175, allocations: 165.8 kB / 0.5753 GB, free: 3.723 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.383e-06/0.2175, allocations: 0 / 0.5753 GB, free: 3.723 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.665e-06/0.2176, allocations: 4 kB / 0.5753 GB, free: 3.719 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.447e-06/0.2176, allocations: 0 / 0.5753 GB, free: 3.719 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.388e-05/0.2176, allocations: 15.92 kB / 0.5753 GB, free: 3.703 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.903e-06/0.2176, allocations: 0 / 0.5753 GB, free: 3.703 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.2176, allocations: 4 kB / 0.5753 GB, free: 3.699 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003282/0.2179, allocations: 230.7 kB / 0.5755 GB, free: 3.449 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.581e-05/0.218, allocations: 77.11 kB / 0.5756 GB, free: 3.355 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.371e-05/0.218, allocations: 15.92 kB / 0.5756 GB, free: 3.34 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001869/0.2182, allocations: 11.98 kB / 0.5756 GB, free: 3.328 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.74e-05/0.2183, allocations: 4 kB / 0.5756 GB, free: 3.324 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.618e-05/0.2183, allocations: 19.92 kB / 0.5756 GB, free: 3.305 MB / 446.1 MB Notification: Performance of sorting global known variables: time 3.429e-05/0.2183, allocations: 79.31 kB / 0.5757 GB, free: 3.227 MB / 446.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2183, allocations: 0 / 0.5757 GB, free: 3.227 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0003216/0.2187, allocations: 51.98 kB / 0.5758 GB, free: 3.176 MB / 446.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.0007125/0.2194, allocations: 287.1 kB / 0.576 GB, free: 2.949 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0003468/0.2197, allocations: 243.2 kB / 0.5763 GB, free: 2.699 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.2198, allocations: 0 / 0.5763 GB, free: 2.699 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001762/0.2199, allocations: 171.4 kB / 0.5764 GB, free: 2.52 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001611/0.2201, allocations: 11.98 kB / 0.5764 GB, free: 2.508 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003513/0.2205, allocations: 164.9 kB / 0.5766 GB, free: 2.32 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002706/0.2207, allocations: 0.6768 MB / 0.5773 GB, free: 1.617 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 7.263e-06/0.2208, allocations: 0 / 0.5773 GB, free: 1.617 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.331e-05/0.2208, allocations: 11.44 kB / 0.5773 GB, free: 1.609 MB / 446.1 MB Notification: Performance of SimCode: time 7.02e-07/0.2208, allocations: 4.125 kB / 0.5773 GB, free: 1.605 MB / 446.1 MB Notification: Performance of Templates: time 0.00657/0.2274, allocations: 2.747 MB / 0.58 GB, free: 14.89 MB / 462.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)