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.001193/0.001198, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001256/0.001256, allocations: 192.7 kB / 16.53 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.202/1.202, allocations: 205.1 MB / 222.4 MB, free: 4.605 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.549/1.549, allocations: 292.3 MB / 0.5489 GB, free: 12.8 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.001324/0.001324, allocations: 72.44 kB / 0.6716 GB, free: 26.44 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2001/0.2014, allocations: 114.5 MB / 0.7835 GB, free: 13.36 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Obsolete.Utilities.IO.Python27.Functions.Examples.Exchange): time 0.001686/0.2031, allocations: 0.5534 MB / 0.784 GB, free: 12.8 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001514/0.2047, allocations: 1.258 MB / 0.7853 GB, free: 11.54 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.248e-05/0.2047, allocations: 0 / 0.7853 GB, free: 11.54 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 7.594e-05/0.2048, allocations: 4 kB / 0.7853 GB, free: 11.54 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 3.798e-05/0.2048, allocations: 4 kB / 0.7853 GB, free: 11.53 MB / 0.6075 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:216:3-259:11:writable] Warning: Pure function 'Modelica.Utilities.Strings.find' contains a call to impure function 'Modelica.Utilities.Strings.length'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:310:3-383:14:writable] Warning: Pure function 'Modelica.Utilities.Strings.replace' contains a call to impure function 'Modelica.Utilities.Strings.length'. [/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.Strings.replace'. Notification: Performance of NFTyping.typeClassSections: time 0.0006042/0.2055, allocations: 299.1 kB / 0.7855 GB, free: 11.24 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.000106/0.2056, allocations: 79.8 kB / 0.7856 GB, free: 11.16 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 3.7e-05/0.2056, allocations: 8 kB / 0.7856 GB, free: 11.15 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 3.888e-05/0.2057, allocations: 35.91 kB / 0.7857 GB, free: 11.12 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 4.262e-05/0.2057, allocations: 35.91 kB / 0.7857 GB, free: 11.08 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 2.371e-05/0.2057, allocations: 4 kB / 0.7857 GB, free: 11.08 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003614/0.2061, allocations: 215.6 kB / 0.7859 GB, free: 10.87 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 2.15e-05/0.2061, allocations: 7.984 kB / 0.7859 GB, free: 10.86 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 4.889e-05/0.2062, allocations: 31.86 kB / 0.7859 GB, free: 10.83 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0003049/0.2065, allocations: 275.5 kB / 0.7862 GB, free: 10.56 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 3.496e-06/0.2065, allocations: 0 / 0.7862 GB, free: 10.56 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.303e-06/0.2065, allocations: 0 / 0.7862 GB, free: 10.56 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 3.927e-06/0.2065, allocations: 0 / 0.7862 GB, free: 10.56 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.0003748/0.2069, allocations: 459.7 kB / 0.7867 GB, free: 10.06 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.139e-05/0.2069, allocations: 8.031 kB / 0.7867 GB, free: 10.05 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.636e-05/0.207, allocations: 34.75 kB / 0.7867 GB, free: 10.01 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.54e-05/0.207, allocations: 12.92 kB / 0.7867 GB, free: 9.996 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000111/0.2071, allocations: 176.3 kB / 0.7869 GB, free: 9.785 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.259e-05/0.2072, allocations: 4.375 kB / 0.7869 GB, free: 9.781 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.893e-05/0.2072, allocations: 8.312 kB / 0.7869 GB, free: 9.773 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001912/0.2074, allocations: 129.5 kB / 0.787 GB, free: 9.641 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.252e-06/0.2074, allocations: 0 / 0.787 GB, free: 9.641 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.775e-05/0.2074, allocations: 8 kB / 0.787 GB, free: 9.633 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.528e-06/0.2074, allocations: 0 / 0.787 GB, free: 9.633 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.85e-05/0.2075, allocations: 59.89 kB / 0.7871 GB, free: 9.574 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000127/0.2077, allocations: 161.7 kB / 0.7872 GB, free: 9.367 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001378/0.2078, allocations: 114.6 kB / 0.7873 GB, free: 9.246 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001099/0.2079, allocations: 104.8 kB / 0.7874 GB, free: 9.141 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 9.558e-06/0.2079, allocations: 7.938 kB / 0.7874 GB, free: 9.133 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.077e-05/0.208, allocations: 38.56 kB / 0.7875 GB, free: 9.086 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=6): time 9.22e-07/0.208, allocations: 0 / 0.7875 GB, free: 9.086 MB / 0.6075 GB Notification: Performance of matching and sorting (n=6): time 0.0004463/0.2084, allocations: 291.1 kB / 0.7878 GB, free: 8.789 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.607e-05/0.2085, allocations: 85.11 kB / 0.7878 GB, free: 8.688 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.969e-05/0.2086, allocations: 129.7 kB / 0.788 GB, free: 8.551 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 1.992e-05/0.2086, allocations: 25.7 kB / 0.788 GB, free: 8.52 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 3.452e-05/0.2086, allocations: 88.14 kB / 0.7881 GB, free: 8.43 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 4.011e-05/0.2087, allocations: 15.75 kB / 0.7881 GB, free: 8.414 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.373e-05/0.2087, allocations: 49.72 kB / 0.7881 GB, free: 8.359 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 8.384e-05/0.2088, allocations: 318.8 kB / 0.7884 GB, free: 8.039 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.71e-05/0.2089, allocations: 55.95 kB / 0.7885 GB, free: 7.984 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.997e-05/0.209, allocations: 64.19 kB / 0.7886 GB, free: 7.922 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001853/0.2092, allocations: 180.2 kB / 0.7887 GB, free: 7.73 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.212e-06/0.2092, allocations: 0 / 0.7887 GB, free: 7.73 MB / 0.6075 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0002894/0.2095, allocations: 239.1 kB / 0.789 GB, free: 7.484 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 3.791e-05/0.2096, allocations: 45.69 kB / 0.789 GB, free: 7.434 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.306e-06/0.2096, allocations: 0 / 0.789 GB, free: 7.434 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.548e-06/0.2096, allocations: 4.062 kB / 0.789 GB, free: 7.43 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.11e-07/0.2096, allocations: 0 / 0.789 GB, free: 7.43 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.06e-06/0.2096, allocations: 3.938 kB / 0.789 GB, free: 7.426 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002727/0.2099, allocations: 31.81 kB / 0.789 GB, free: 7.395 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.01e-05/0.2099, allocations: 8 kB / 0.789 GB, free: 7.387 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.0001195/0.21, allocations: 164.2 kB / 0.7892 GB, free: 7.211 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.807e-05/0.2101, allocations: 15.84 kB / 0.7892 GB, free: 7.195 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.385e-05/0.2101, allocations: 12.36 kB / 0.7892 GB, free: 7.184 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.102e-06/0.2101, allocations: 4 kB / 0.7892 GB, free: 7.18 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.026e-06/0.2101, allocations: 0 / 0.7892 GB, free: 7.18 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.874e-06/0.2101, allocations: 0 / 0.7892 GB, free: 7.18 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001009/0.2102, allocations: 173.6 kB / 0.7894 GB, free: 6.961 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.984e-06/0.2102, allocations: 7.875 kB / 0.7894 GB, free: 6.953 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.31e-07/0.2102, allocations: 0 / 0.7894 GB, free: 6.953 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.232e-06/0.2102, allocations: 0 / 0.7894 GB, free: 6.953 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.082e-05/0.2103, allocations: 11.98 kB / 0.7894 GB, free: 6.941 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.82e-07/0.2103, allocations: 0 / 0.7894 GB, free: 6.941 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.61e-07/0.2103, allocations: 0 / 0.7894 GB, free: 6.941 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003482/0.2106, allocations: 298.6 kB / 0.7897 GB, free: 6.625 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 2.932e-05/0.2107, allocations: 81.05 kB / 0.7898 GB, free: 6.527 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.359e-05/0.2107, allocations: 4 kB / 0.7898 GB, free: 6.523 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001967/0.2109, allocations: 19.97 kB / 0.7898 GB, free: 6.504 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.22e-05/0.2109, allocations: 11.94 kB / 0.7898 GB, free: 6.492 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.34e-05/0.211, allocations: 19.98 kB / 0.7898 GB, free: 6.473 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 4.5e-05/0.211, allocations: 95.58 kB / 0.7899 GB, free: 6.379 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.1e-07/0.211, allocations: 32 / 0.7899 GB, free: 6.379 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002966/0.2113, allocations: 91.97 kB / 0.79 GB, free: 6.289 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.6207/0.832, allocations: 1.117 MB / 0.7911 GB, free: 5.242 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0004736/0.8326, allocations: 291.2 kB / 0.7914 GB, free: 4.945 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.8326, allocations: 0 / 0.7914 GB, free: 4.945 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.000208/0.8328, allocations: 219.2 kB / 0.7916 GB, free: 4.719 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001975/0.833, allocations: 10.44 kB / 0.7916 GB, free: 4.711 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.0006182/0.8336, allocations: 310.3 kB / 0.7919 GB, free: 4.367 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001979/0.8338, allocations: 0.6808 MB / 0.7926 GB, free: 3.66 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 6.126e-05/0.8339, allocations: 59.86 kB / 0.7926 GB, free: 3.602 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.179e-05/0.8339, allocations: 11.42 kB / 0.7926 GB, free: 3.59 MB / 0.6075 GB Notification: Performance of SimCode: time 2.7e-07/0.8339, allocations: 0 / 0.7926 GB, free: 3.59 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4148/1.249, allocations: 5.14 MB / 0.7976 GB, free: 14.57 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.81/8.059, allocations: 16.23 kB / 0.7977 GB, free: 14.56 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)