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: "" <> buildModelFMU(Buildings.Obsolete.Utilities.IO.Python27.Functions.Examples.Exchange,fileNamePrefix="Buildings_8_Buildings_Obsolete_Utilities_IO_Python27_Functions_Examples_Exchange",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Obsolete.Utilities.IO.Python27.Functions.Examples.Exchange,fileNamePrefix="Buildings_8_Buildings_Obsolete_Utilities_IO_Python27_Functions_Examples_Exchange",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008332/0.0008334, allocations: 98.19 kB / 15.36 MB, free: 0.7344 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.005094/0.005094, allocations: 171 kB / 16.27 MB, free: 6.332 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.231/1.231, allocations: 205.4 MB / 222.5 MB, free: 5.762 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.524/1.524, allocations: 292.7 MB / 0.5502 GB, free: 14.47 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.0004594/0.0004594, allocations: 12.84 kB / 0.6744 GB, free: 26.11 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1801/0.1806, allocations: 116.3 MB / 0.788 GB, free: 11.49 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Obsolete.Utilities.IO.Python27.Functions.Examples.Exchange): time 0.0006603/0.1813, allocations: 286 kB / 0.7883 GB, free: 11.21 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001525/0.1828, allocations: 1.258 MB / 0.7895 GB, free: 9.945 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.403e-05/0.1829, allocations: 4 kB / 0.7895 GB, free: 9.941 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 7.738e-05/0.1829, allocations: 0 / 0.7895 GB, free: 9.941 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 3.344e-05/0.183, allocations: 3.938 kB / 0.7895 GB, free: 9.938 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.0005179/0.1835, allocations: 267.5 kB / 0.7898 GB, free: 9.676 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 9.469e-05/0.1836, allocations: 71.86 kB / 0.7898 GB, free: 9.605 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 3.716e-05/0.1837, allocations: 8 kB / 0.7899 GB, free: 9.598 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 4.213e-05/0.1837, allocations: 35.91 kB / 0.7899 GB, free: 9.562 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 4.888e-05/0.1838, allocations: 43.84 kB / 0.7899 GB, free: 9.52 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 1.68e-05/0.1838, allocations: 4 kB / 0.7899 GB, free: 9.516 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003623/0.1842, allocations: 211.7 kB / 0.7901 GB, free: 9.309 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 1.825e-05/0.1842, allocations: 3.984 kB / 0.7901 GB, free: 9.305 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 5.689e-05/0.1842, allocations: 61.5 kB / 0.7902 GB, free: 9.238 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0003039/0.1846, allocations: 275.5 kB / 0.7905 GB, free: 8.969 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 3.337e-06/0.1846, allocations: 0 / 0.7905 GB, free: 8.969 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.283e-06/0.1846, allocations: 4 kB / 0.7905 GB, free: 8.965 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 3.206e-06/0.1846, allocations: 0 / 0.7905 GB, free: 8.965 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.0003254/0.1849, allocations: 421.3 kB / 0.7909 GB, free: 8.5 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.271e-05/0.185, allocations: 11.97 kB / 0.7909 GB, free: 8.488 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.606e-05/0.185, allocations: 38.75 kB / 0.7909 GB, free: 8.441 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.223e-05/0.185, allocations: 8.938 kB / 0.7909 GB, free: 8.434 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000104/0.1851, allocations: 172.3 kB / 0.7911 GB, free: 8.227 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.146e-05/0.1852, allocations: 8.359 kB / 0.7911 GB, free: 8.219 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.206e-05/0.1852, allocations: 4.375 kB / 0.7911 GB, free: 8.215 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001827/0.1854, allocations: 133.5 kB / 0.7912 GB, free: 8.078 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.989e-06/0.1854, allocations: 0 / 0.7912 GB, free: 8.078 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.736e-05/0.1854, allocations: 4 kB / 0.7912 GB, free: 8.074 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.387e-06/0.1854, allocations: 0 / 0.7912 GB, free: 8.074 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.941e-05/0.1855, allocations: 67.88 kB / 0.7913 GB, free: 8.008 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001172/0.1856, allocations: 153.7 kB / 0.7914 GB, free: 7.809 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001375/0.1858, allocations: 114.5 kB / 0.7916 GB, free: 7.688 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001109/0.1859, allocations: 112.8 kB / 0.7917 GB, free: 7.574 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 1.048e-05/0.1859, allocations: 7.938 kB / 0.7917 GB, free: 7.566 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.847e-05/0.1859, allocations: 34.56 kB / 0.7917 GB, free: 7.523 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=6): time 8.82e-07/0.186, allocations: 0 / 0.7917 GB, free: 7.523 MB / 0.6075 GB Notification: Performance of matching and sorting (n=6): time 0.0004239/0.1864, allocations: 295 kB / 0.792 GB, free: 7.223 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.47e-05/0.1864, allocations: 89.11 kB / 0.7921 GB, free: 7.117 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.224e-05/0.1865, allocations: 125.7 kB / 0.7922 GB, free: 6.984 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.14e-05/0.1865, allocations: 25.7 kB / 0.7922 GB, free: 6.953 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 3.25e-05/0.1866, allocations: 92.17 kB / 0.7923 GB, free: 6.859 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 3.543e-05/0.1866, allocations: 19.72 kB / 0.7923 GB, free: 6.84 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.377e-05/0.1867, allocations: 17.7 kB / 0.7923 GB, free: 6.816 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 8.258e-05/0.1868, allocations: 318.8 kB / 0.7926 GB, free: 6.496 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.732e-05/0.1868, allocations: 59.94 kB / 0.7927 GB, free: 6.438 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.301e-05/0.1869, allocations: 55.95 kB / 0.7928 GB, free: 6.383 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001742/0.1871, allocations: 180.2 kB / 0.7929 GB, free: 6.191 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.005e-06/0.1871, allocations: 4 kB / 0.7929 GB, free: 6.188 MB / 0.6075 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0002779/0.1874, allocations: 235.1 kB / 0.7932 GB, free: 5.945 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 3.928e-05/0.1875, allocations: 45.75 kB / 0.7932 GB, free: 5.895 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.377e-06/0.1875, allocations: 0 / 0.7932 GB, free: 5.895 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.297e-06/0.1875, allocations: 3.984 kB / 0.7932 GB, free: 5.891 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.41e-07/0.1875, allocations: 0 / 0.7932 GB, free: 5.891 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.888e-06/0.1875, allocations: 0 / 0.7932 GB, free: 5.891 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000259/0.1878, allocations: 27.83 kB / 0.7932 GB, free: 5.863 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.082e-05/0.1878, allocations: 11.98 kB / 0.7932 GB, free: 5.852 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 (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.0001196/0.1879, allocations: 163.5 kB / 0.7934 GB, free: 5.676 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.516e-05/0.188, allocations: 23.84 kB / 0.7934 GB, free: 5.652 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.081e-05/0.188, allocations: 8.375 kB / 0.7934 GB, free: 5.645 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.042e-06/0.188, allocations: 0 / 0.7934 GB, free: 5.645 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.745e-06/0.188, allocations: 0 / 0.7934 GB, free: 5.645 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.493e-06/0.188, allocations: 0 / 0.7934 GB, free: 5.645 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001/0.1881, allocations: 169.6 kB / 0.7936 GB, free: 5.43 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.983e-06/0.1881, allocations: 3.938 kB / 0.7936 GB, free: 5.426 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.51e-07/0.1881, allocations: 0 / 0.7936 GB, free: 5.426 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.475e-06/0.1881, allocations: 0 / 0.7936 GB, free: 5.426 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.945e-05/0.1881, allocations: 15.92 kB / 0.7936 GB, free: 5.41 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.012e-06/0.1881, allocations: 0 / 0.7936 GB, free: 5.41 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.31e-07/0.1881, allocations: 8.25 kB / 0.7936 GB, free: 5.402 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003402/0.1885, allocations: 294.5 kB / 0.7939 GB, free: 5.09 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 3.982e-05/0.1885, allocations: 89.03 kB / 0.794 GB, free: 4.984 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.08e-05/0.1886, allocations: 11.98 kB / 0.794 GB, free: 4.973 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001958/0.1888, allocations: 15.98 kB / 0.794 GB, free: 4.957 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.52e-05/0.1888, allocations: 11.98 kB / 0.794 GB, free: 4.945 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.375e-05/0.1888, allocations: 15.98 kB / 0.794 GB, free: 4.93 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 4.724e-05/0.1889, allocations: 103.6 kB / 0.7941 GB, free: 4.828 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.3e-07/0.1889, allocations: 0 / 0.7941 GB, free: 4.828 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002987/0.1892, allocations: 91.89 kB / 0.7942 GB, free: 4.738 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 (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.1175/0.3067, allocations: 1.122 MB / 0.7953 GB, free: 3.684 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0004641/0.3072, allocations: 295.2 kB / 0.7956 GB, free: 3.383 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.976e-06/0.3072, allocations: 4 kB / 0.7956 GB, free: 3.379 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0002246/0.3075, allocations: 203.3 kB / 0.7958 GB, free: 3.168 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002089/0.3077, allocations: 12 kB / 0.7958 GB, free: 3.156 MB / 0.6075 GB Warning: Could not resolve URI ("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/legal.html") at compile-time; copying all loaded packages into the FMU Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008931/0.3086, allocations: 376.2 kB / 0.7962 GB, free: 2.746 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002191/0.3088, allocations: 0.6809 MB / 0.7968 GB, free: 2.039 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 7.747e-05/0.3089, allocations: 56.11 kB / 0.7969 GB, free: 1.984 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.331e-05/0.3089, allocations: 7.438 kB / 0.7969 GB, free: 1.977 MB / 0.6075 GB Notification: Performance of SimCode: time 3.81e-07/0.3089, allocations: 0 / 0.7969 GB, free: 1.977 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4055/0.7144, allocations: 4.791 MB / 0.8016 GB, free: 13.38 MB / 0.6231 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002556/0.7147, allocations: 290.4 kB / 0.8018 GB, free: 13 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.694/2.408, allocations: 9.062 kB / 0.8019 GB, free: 13 MB / 0.6231 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Obsolete_Utilities_IO_Python27_Functions_Examples_Exchange_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Obsolete_Utilities_IO_Python27_Functions_Examples_Exchange.fmu > Buildings_8_Buildings.Obsolete.Utilities.IO.Python27.Functions.Examples.Exchange.pipe 2>&1)