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.009305/0.009305, allocations: 109.8 kB / 15.74 MB, free: 6.449 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.001793/0.001793, allocations: 196 kB / 16.67 MB, free: 6.355 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.722/1.722, allocations: 205.1 MB / 222.5 MB, free: 4.527 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.6823/0.6823, allocations: 95.48 MB / 365.4 MB, free: 9.797 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.002574/0.002574, allocations: 79.89 kB / 0.5036 GB, free: 13.48 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1762/0.1788, allocations: 69.07 MB / 0.5711 GB, free: 8.344 MB / 446.1 MB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Python27.Functions.Examples.Exchange): time 0.002125/0.181, allocations: 0.5191 MB / 0.5716 GB, free: 7.824 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.001063/0.1821, allocations: 442.9 kB / 0.572 GB, free: 7.391 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.043e-05/0.1821, allocations: 4 kB / 0.572 GB, free: 7.387 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 2.988e-05/0.1822, allocations: 4 kB / 0.572 GB, free: 7.383 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 8.035e-06/0.1822, allocations: 0 / 0.572 GB, free: 7.383 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.0007532/0.1829, allocations: 187.5 kB / 0.5722 GB, free: 7.199 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001157/0.1831, allocations: 47.94 kB / 0.5722 GB, free: 7.152 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.084e-05/0.1831, allocations: 0 / 0.5722 GB, free: 7.152 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.633e-05/0.1832, allocations: 27.98 kB / 0.5723 GB, free: 7.125 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.7e-05/0.1833, allocations: 27.91 kB / 0.5723 GB, free: 7.098 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 1.614e-05/0.1833, allocations: 4 kB / 0.5723 GB, free: 7.094 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000208/0.1835, allocations: 111.8 kB / 0.5724 GB, free: 6.984 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 2.5e-05/0.1835, allocations: 4 kB / 0.5724 GB, free: 6.98 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 5.367e-05/0.1836, allocations: 19.92 kB / 0.5724 GB, free: 6.961 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000298/0.1839, allocations: 151.7 kB / 0.5726 GB, free: 6.812 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.887e-06/0.1839, allocations: 0 / 0.5726 GB, free: 6.812 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.1839, allocations: 4 kB / 0.5726 GB, free: 6.809 MB / 446.1 MB Notification: Performance of Transformations before backend: time 6.071e-06/0.1839, allocations: 0 / 0.5726 GB, free: 6.809 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.0004892/0.1844, allocations: 409.1 kB / 0.573 GB, free: 6.352 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.189e-05/0.1845, allocations: 11.98 kB / 0.573 GB, free: 6.34 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.429e-05/0.1845, allocations: 4.938 kB / 0.573 GB, free: 6.336 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001227/0.1847, allocations: 160.4 kB / 0.5731 GB, free: 6.141 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2e-05/0.1847, allocations: 4.375 kB / 0.5731 GB, free: 6.137 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.304e-05/0.1847, allocations: 8.312 kB / 0.5731 GB, free: 6.129 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000218/0.185, allocations: 94.17 kB / 0.5732 GB, free: 6.031 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.286e-06/0.185, allocations: 192 / 0.5732 GB, free: 6.031 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.998e-05/0.185, allocations: 7.938 kB / 0.5732 GB, free: 6.023 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.901e-06/0.185, allocations: 4 kB / 0.5732 GB, free: 6.02 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000106/0.1851, allocations: 43.95 kB / 0.5733 GB, free: 5.977 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001926/0.1853, allocations: 153.7 kB / 0.5734 GB, free: 5.777 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001273/0.1855, allocations: 82.59 kB / 0.5735 GB, free: 5.688 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.243e-05/0.1856, allocations: 76.86 kB / 0.5736 GB, free: 5.609 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.66e-06/0.1856, allocations: 3.938 kB / 0.5736 GB, free: 5.605 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.294e-05/0.1856, allocations: 34.55 kB / 0.5736 GB, free: 5.562 MB / 446.1 MB Notification: Performance of pre-optimization done (n=6): time 1.323e-06/0.1856, allocations: 4 kB / 0.5736 GB, free: 5.559 MB / 446.1 MB Notification: Performance of matching and sorting (n=6): time 0.0004738/0.1861, allocations: 223.1 kB / 0.5738 GB, free: 5.328 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.313e-05/0.1862, allocations: 89.09 kB / 0.5739 GB, free: 5.223 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.711e-05/0.1863, allocations: 89.86 kB / 0.574 GB, free: 5.125 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 2.172e-05/0.1863, allocations: 25.7 kB / 0.574 GB, free: 5.094 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.057e-05/0.1864, allocations: 84.14 kB / 0.5741 GB, free: 5.008 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.766e-05/0.1864, allocations: 23.73 kB / 0.5741 GB, free: 4.984 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.003e-05/0.1865, allocations: 37.69 kB / 0.5742 GB, free: 4.941 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001322/0.1866, allocations: 314.9 kB / 0.5745 GB, free: 4.625 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.627e-05/0.1867, allocations: 43.91 kB / 0.5745 GB, free: 4.582 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.548e-05/0.1868, allocations: 43.95 kB / 0.5746 GB, free: 4.539 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001813/0.187, allocations: 144.5 kB / 0.5747 GB, free: 4.383 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.995e-06/0.187, allocations: 0 / 0.5747 GB, free: 4.383 MB / 446.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0002673/0.1873, allocations: 175.3 kB / 0.5749 GB, free: 4.199 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.961e-05/0.1873, allocations: 41.69 kB / 0.5749 GB, free: 4.152 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.212e-06/0.1873, allocations: 0 / 0.5749 GB, free: 4.152 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.79e-05/0.1874, allocations: 3.938 kB / 0.5749 GB, free: 4.148 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.745e-06/0.1874, allocations: 0 / 0.5749 GB, free: 4.148 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.211e-06/0.1874, allocations: 8 kB / 0.5749 GB, free: 4.141 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002581/0.1877, allocations: 15.98 kB / 0.5749 GB, free: 4.125 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.011e-05/0.1877, allocations: 15.98 kB / 0.5749 GB, free: 4.109 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.0001345/0.1879, allocations: 155.5 kB / 0.5751 GB, free: 3.941 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.565e-05/0.1879, allocations: 7.906 kB / 0.5751 GB, free: 3.934 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.146e-05/0.1879, allocations: 11.91 kB / 0.5751 GB, free: 3.914 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.834e-06/0.1879, allocations: 0 / 0.5751 GB, free: 3.914 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.439e-06/0.1879, allocations: 0 / 0.5751 GB, free: 3.914 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.629e-06/0.1879, allocations: 7.984 kB / 0.5751 GB, free: 3.906 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001315/0.1881, allocations: 153.7 kB / 0.5753 GB, free: 3.707 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.106e-06/0.1881, allocations: 4 kB / 0.5753 GB, free: 3.703 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.51e-07/0.1881, allocations: 0 / 0.5753 GB, free: 3.703 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.665e-06/0.1881, allocations: 0 / 0.5753 GB, free: 3.703 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.509e-05/0.1881, allocations: 11.92 kB / 0.5753 GB, free: 3.691 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.086e-06/0.1881, allocations: 4 kB / 0.5753 GB, free: 3.688 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.1881, allocations: 0 / 0.5753 GB, free: 3.688 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003515/0.1885, allocations: 238.7 kB / 0.5755 GB, free: 3.43 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.665e-05/0.1885, allocations: 77.11 kB / 0.5756 GB, free: 3.336 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.725e-05/0.1886, allocations: 7.938 kB / 0.5756 GB, free: 3.328 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001635/0.1888, allocations: 19.98 kB / 0.5756 GB, free: 3.309 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.05e-05/0.1888, allocations: 11.98 kB / 0.5756 GB, free: 3.297 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.635e-05/0.1888, allocations: 8 kB / 0.5756 GB, free: 3.289 MB / 446.1 MB Notification: Performance of sorting global known variables: time 3.043e-05/0.1889, allocations: 83.16 kB / 0.5757 GB, free: 3.207 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1889, allocations: 0 / 0.5757 GB, free: 3.207 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0003049/0.1892, allocations: 47.98 kB / 0.5758 GB, free: 3.16 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.0008303/0.19, allocations: 296.7 kB / 0.576 GB, free: 2.926 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0003547/0.1904, allocations: 235.3 kB / 0.5763 GB, free: 2.684 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.176e-06/0.1904, allocations: 0 / 0.5763 GB, free: 2.684 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001777/0.1906, allocations: 175.3 kB / 0.5764 GB, free: 2.5 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001487/0.1907, allocations: 12.12 kB / 0.5764 GB, free: 2.488 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003309/0.1911, allocations: 160.9 kB / 0.5766 GB, free: 2.305 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000286/0.1914, allocations: 0.6807 MB / 0.5773 GB, free: 1.598 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 6.653e-06/0.1914, allocations: 0 / 0.5773 GB, free: 1.598 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.233e-05/0.1914, allocations: 7.438 kB / 0.5773 GB, free: 1.594 MB / 446.1 MB Notification: Performance of SimCode: time 3.21e-07/0.1914, allocations: 3.938 kB / 0.5773 GB, free: 1.59 MB / 446.1 MB Notification: Performance of Templates: time 0.007288/0.1987, allocations: 2.754 MB / 0.58 GB, free: 14.86 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)