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.0009984/0.0009986, allocations: 108 kB / 15.6 MB, free: 132 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.0009771/0.0009772, allocations: 193 kB / 16.53 MB, free: 6.391 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.292/1.292, allocations: 205.1 MB / 222.4 MB, free: 4.566 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.62/1.62, 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.001325/0.001325, allocations: 70.09 kB / 0.6716 GB, free: 26.19 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1905/0.1918, allocations: 114.5 MB / 0.7835 GB, free: 13.34 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Obsolete.Utilities.IO.Python27.Functions.Examples.Exchange): time 0.001841/0.1937, allocations: 0.5564 MB / 0.784 GB, free: 12.79 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.00167/0.1954, allocations: 1.258 MB / 0.7853 GB, free: 11.52 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.11e-05/0.1955, allocations: 0 / 0.7853 GB, free: 11.52 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 8.29e-05/0.1956, allocations: 7.984 kB / 0.7853 GB, free: 11.51 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 3.815e-05/0.1956, allocations: 4 kB / 0.7853 GB, free: 11.51 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.0007221/0.1963, allocations: 299.2 kB / 0.7856 GB, free: 11.21 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0001236/0.1965, allocations: 75.86 kB / 0.7856 GB, free: 11.14 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 4.09e-05/0.1965, allocations: 4 kB / 0.7856 GB, free: 11.14 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 4.529e-05/0.1966, allocations: 39.86 kB / 0.7857 GB, free: 11.1 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 4.736e-05/0.1966, allocations: 35.91 kB / 0.7857 GB, free: 11.06 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 2.282e-05/0.1966, allocations: 4 kB / 0.7857 GB, free: 11.06 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004258/0.1971, allocations: 215.6 kB / 0.7859 GB, free: 10.85 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 2.451e-05/0.1971, allocations: 7.984 kB / 0.7859 GB, free: 10.84 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 5.709e-05/0.1972, allocations: 31.86 kB / 0.786 GB, free: 10.81 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0003503/0.1975, allocations: 275.5 kB / 0.7862 GB, free: 10.54 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.128e-06/0.1975, allocations: 0 / 0.7862 GB, free: 10.54 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.062e-06/0.1975, allocations: 0 / 0.7862 GB, free: 10.54 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 4.919e-06/0.1976, allocations: 0 / 0.7862 GB, free: 10.54 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.0004182/0.198, allocations: 449.3 kB / 0.7866 GB, free: 10.05 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.625e-05/0.198, allocations: 12.03 kB / 0.7867 GB, free: 10.04 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.1e-05/0.1981, allocations: 38.73 kB / 0.7867 GB, free: 9.988 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.921e-05/0.1981, allocations: 8.938 kB / 0.7867 GB, free: 9.98 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001238/0.1983, allocations: 176.3 kB / 0.7869 GB, free: 9.77 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.057e-05/0.1983, allocations: 4.375 kB / 0.7869 GB, free: 9.766 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.339e-05/0.1983, allocations: 4.375 kB / 0.7869 GB, free: 9.762 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002222/0.1985, allocations: 129.5 kB / 0.787 GB, free: 9.629 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.943e-06/0.1985, allocations: 3.984 kB / 0.787 GB, free: 9.625 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.903e-05/0.1986, allocations: 4 kB / 0.787 GB, free: 9.621 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.399e-06/0.1986, allocations: 4 kB / 0.787 GB, free: 9.617 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001065/0.1987, allocations: 55.95 kB / 0.7871 GB, free: 9.562 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001405/0.1988, allocations: 161.7 kB / 0.7872 GB, free: 9.355 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001405/0.199, allocations: 122.5 kB / 0.7873 GB, free: 9.227 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001129/0.1991, allocations: 104.8 kB / 0.7874 GB, free: 9.121 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 5.22e-06/0.1991, allocations: 7.938 kB / 0.7874 GB, free: 9.113 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.182e-05/0.1991, allocations: 34.56 kB / 0.7875 GB, free: 9.07 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=6): time 1.002e-06/0.1991, allocations: 4 kB / 0.7875 GB, free: 9.066 MB / 0.6075 GB Notification: Performance of matching and sorting (n=6): time 0.0004544/0.1996, allocations: 291.1 kB / 0.7878 GB, free: 8.77 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.662e-05/0.1997, allocations: 89.09 kB / 0.7878 GB, free: 8.664 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.06e-05/0.1998, allocations: 121.8 kB / 0.788 GB, free: 8.535 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.099e-05/0.1998, allocations: 25.7 kB / 0.788 GB, free: 8.504 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 3.738e-05/0.1998, allocations: 92.12 kB / 0.7881 GB, free: 8.41 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 3.52e-05/0.1999, allocations: 11.81 kB / 0.7881 GB, free: 8.398 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.958e-05/0.1999, allocations: 45.69 kB / 0.7881 GB, free: 8.348 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 8.79e-05/0.2, allocations: 322.8 kB / 0.7884 GB, free: 8.023 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.413e-05/0.2001, allocations: 63.94 kB / 0.7885 GB, free: 7.961 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.807e-05/0.2002, allocations: 55.95 kB / 0.7885 GB, free: 7.906 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00019/0.2004, allocations: 180.2 kB / 0.7887 GB, free: 7.715 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.413e-06/0.2004, allocations: 4 kB / 0.7887 GB, free: 7.711 MB / 0.6075 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0003079/0.2007, allocations: 231.4 kB / 0.7889 GB, free: 7.473 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 4.065e-05/0.2008, allocations: 50.61 kB / 0.789 GB, free: 7.418 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.49e-06/0.2008, allocations: 4 kB / 0.789 GB, free: 7.414 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.356e-05/0.2008, allocations: 0 / 0.789 GB, free: 7.414 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.02e-07/0.2008, allocations: 4.062 kB / 0.789 GB, free: 7.41 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.228e-06/0.2008, allocations: 0 / 0.789 GB, free: 7.41 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002912/0.2011, allocations: 27.83 kB / 0.789 GB, free: 7.383 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.121e-05/0.2012, allocations: 15.92 kB / 0.789 GB, free: 7.367 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.0001215/0.2013, allocations: 163.5 kB / 0.7892 GB, free: 7.191 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.021e-05/0.2013, allocations: 15.84 kB / 0.7892 GB, free: 7.176 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.115e-05/0.2014, allocations: 8.375 kB / 0.7892 GB, free: 7.168 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.392e-06/0.2014, allocations: 0 / 0.7892 GB, free: 7.168 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.146e-06/0.2014, allocations: 4 kB / 0.7892 GB, free: 7.164 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.355e-06/0.2014, allocations: 0 / 0.7892 GB, free: 7.164 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001039/0.2015, allocations: 173.6 kB / 0.7894 GB, free: 6.945 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.254e-06/0.2015, allocations: 4.312 kB / 0.7894 GB, free: 6.941 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.21e-07/0.2015, allocations: 0 / 0.7894 GB, free: 6.941 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.026e-06/0.2015, allocations: 0 / 0.7894 GB, free: 6.941 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.008e-05/0.2015, allocations: 15.92 kB / 0.7894 GB, free: 6.926 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.292e-06/0.2015, allocations: 3.938 kB / 0.7894 GB, free: 6.922 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.2015, allocations: 0 / 0.7894 GB, free: 6.922 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000358/0.2019, allocations: 294.6 kB / 0.7897 GB, free: 6.609 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 3.126e-05/0.202, allocations: 85.03 kB / 0.7898 GB, free: 6.508 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.228e-05/0.202, allocations: 4 kB / 0.7898 GB, free: 6.504 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001933/0.2022, allocations: 19.98 kB / 0.7898 GB, free: 6.484 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.732e-05/0.2022, allocations: 11.92 kB / 0.7898 GB, free: 6.473 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.517e-05/0.2023, allocations: 19.98 kB / 0.7898 GB, free: 6.453 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 4.601e-05/0.2023, allocations: 91.27 kB / 0.7899 GB, free: 6.363 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2023, allocations: 0 / 0.7899 GB, free: 6.363 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0003379/0.2027, allocations: 83.98 kB / 0.79 GB, free: 6.281 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.003018/0.2057, allocations: 1.132 MB / 0.7911 GB, free: 5.219 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0003526/0.206, allocations: 291.2 kB / 0.7914 GB, free: 4.922 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.2061, allocations: 64 / 0.7914 GB, free: 4.922 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.000191/0.2062, allocations: 215.3 kB / 0.7916 GB, free: 4.699 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000185/0.2064, allocations: 10.92 kB / 0.7916 GB, free: 4.691 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.0005632/0.207, allocations: 318.2 kB / 0.7919 GB, free: 4.34 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001897/0.2072, allocations: 0.6846 MB / 0.7926 GB, free: 3.629 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 6.804e-05/0.2073, allocations: 51.98 kB / 0.7926 GB, free: 3.578 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.378e-05/0.2073, allocations: 7.438 kB / 0.7926 GB, free: 3.57 MB / 0.6075 GB Notification: Performance of SimCode: time 2.31e-07/0.2073, allocations: 4 kB / 0.7926 GB, free: 3.566 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4414/0.6488, allocations: 5.145 MB / 0.7977 GB, free: 14.55 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.894/7.543, allocations: 20.23 kB / 0.7977 GB, free: 14.53 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 & python3 -m fmpy simulate --output-file Buildings_8_Buildings.Obsolete.Utilities.IO.Python27.Functions.Examples.Exchange_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-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)