Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_Buildings.Obsolete.Utilities.IO.Python27.Functions.Examples.ExchangeWithPassPythonObject.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.ExchangeWithPassPythonObject,fileNamePrefix="Buildings_8_Buildings_Obsolete_Utilities_IO_Python27_Functions_Examples_ExchangeWithPassPythonObject",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Obsolete.Utilities.IO.Python27.Functions.Examples.ExchangeWithPassPythonObject,fileNamePrefix="Buildings_8_Buildings_Obsolete_Utilities_IO_Python27_Functions_Examples_ExchangeWithPassPythonObject",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.001263/0.001268, 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.001346/0.001346, allocations: 194.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.252/1.252, allocations: 205.1 MB / 222.4 MB, free: 4.59 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.568/1.568, allocations: 292.3 MB / 0.5489 GB, free: 12.83 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.001305/0.001305, allocations: 67.62 kB / 0.6716 GB, free: 26.26 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1833/0.1846, allocations: 114.5 MB / 0.7835 GB, free: 13.38 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Obsolete.Utilities.IO.Python27.Functions.Examples.ExchangeWithPassPythonObject): time 0.001887/0.1865, allocations: 0.5495 MB / 0.784 GB, free: 12.82 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001358/0.1879, allocations: 1.125 MB / 0.7851 GB, free: 11.69 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.097e-05/0.1879, allocations: 0 / 0.7851 GB, free: 11.69 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 8.112e-05/0.188, allocations: 0 / 0.7851 GB, free: 11.69 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 4.339e-05/0.1881, allocations: 3.938 kB / 0.7851 GB, free: 11.69 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.0004713/0.1886, allocations: 171.4 kB / 0.7853 GB, free: 11.52 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 5.373e-05/0.1886, allocations: 11.98 kB / 0.7853 GB, free: 11.51 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 4.385e-05/0.1887, allocations: 8 kB / 0.7853 GB, free: 11.5 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 2.714e-05/0.1887, allocations: 15.91 kB / 0.7853 GB, free: 11.48 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 4.779e-05/0.1888, allocations: 8 kB / 0.7853 GB, free: 11.48 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 1.397e-05/0.1888, allocations: 3.938 kB / 0.7853 GB, free: 11.47 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003395/0.1891, allocations: 183.7 kB / 0.7855 GB, free: 11.29 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 3.128e-05/0.1892, allocations: 4 kB / 0.7855 GB, free: 11.29 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 2.697e-05/0.1892, allocations: 7.938 kB / 0.7855 GB, free: 11.28 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0002475/0.1895, allocations: 183.7 kB / 0.7857 GB, free: 11.1 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.518e-06/0.1895, allocations: 0 / 0.7857 GB, free: 11.1 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.222e-06/0.1895, allocations: 4 kB / 0.7857 GB, free: 11.1 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 5.39e-06/0.1895, allocations: 4 kB / 0.7857 GB, free: 11.09 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: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.0003225/0.1898, allocations: 367.5 kB / 0.7861 GB, free: 10.69 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.379e-05/0.1899, allocations: 8.031 kB / 0.7861 GB, free: 10.68 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.972e-05/0.1899, allocations: 30.75 kB / 0.7861 GB, free: 10.64 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.946e-05/0.1899, allocations: 12.83 kB / 0.7861 GB, free: 10.63 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.284e-05/0.19, allocations: 164.7 kB / 0.7863 GB, free: 10.43 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.027e-06/0.19, allocations: 384 / 0.7863 GB, free: 10.43 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.256e-06/0.1901, allocations: 4.359 kB / 0.7863 GB, free: 10.43 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001019/0.1902, allocations: 57.56 kB / 0.7863 GB, free: 10.36 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.432e-06/0.1902, allocations: 0 / 0.7863 GB, free: 10.36 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.608e-06/0.1902, allocations: 0 / 0.7863 GB, free: 10.36 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.345e-05/0.1902, allocations: 3.984 kB / 0.7863 GB, free: 10.36 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.492e-05/0.1903, allocations: 8 kB / 0.7863 GB, free: 10.35 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001418/0.1904, allocations: 157.6 kB / 0.7865 GB, free: 10.15 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 5.412e-05/0.1905, allocations: 30.59 kB / 0.7865 GB, free: 10.11 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.301e-05/0.1905, allocations: 8.922 kB / 0.7865 GB, free: 10.1 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 1.03e-05/0.1905, allocations: 11.88 kB / 0.7865 GB, free: 10.09 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.935e-05/0.1905, allocations: 30.56 kB / 0.7866 GB, free: 10.05 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=2): time 1.062e-06/0.1905, allocations: 0 / 0.7866 GB, free: 10.05 MB / 0.6075 GB Notification: Performance of matching and sorting (n=2): time 0.0001506/0.1907, allocations: 61.67 kB / 0.7866 GB, free: 9.98 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.192e-05/0.1907, allocations: 51.41 kB / 0.7867 GB, free: 9.918 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.857e-05/0.1908, allocations: 93.86 kB / 0.7868 GB, free: 9.816 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 1.441e-05/0.1908, allocations: 29.7 kB / 0.7868 GB, free: 9.781 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 2.2e-05/0.1908, allocations: 84.39 kB / 0.7869 GB, free: 9.695 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 2.073e-05/0.1909, allocations: 3.906 kB / 0.7869 GB, free: 9.691 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.096e-05/0.1909, allocations: 25.62 kB / 0.7869 GB, free: 9.66 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 8.221e-05/0.191, allocations: 310.8 kB / 0.7872 GB, free: 9.348 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.741e-05/0.191, allocations: 8 kB / 0.7872 GB, free: 9.34 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.92e-05/0.191, allocations: 15.92 kB / 0.7872 GB, free: 9.324 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.14e-05/0.1911, allocations: 20.84 kB / 0.7872 GB, free: 9.301 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.383e-06/0.1911, allocations: 4.062 kB / 0.7872 GB, free: 9.297 MB / 0.6075 GB Notification: Performance of matching and sorting (n=2) (initialization): time 7.346e-05/0.1912, allocations: 53.62 kB / 0.7873 GB, free: 9.238 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.4e-05/0.1912, allocations: 8 kB / 0.7873 GB, free: 9.23 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.219e-06/0.1912, allocations: 0 / 0.7873 GB, free: 9.23 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.108e-05/0.1912, allocations: 0 / 0.7873 GB, free: 9.23 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.084e-06/0.1912, allocations: 0 / 0.7873 GB, free: 9.23 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.589e-06/0.1912, allocations: 3.938 kB / 0.7873 GB, free: 9.227 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.216e-05/0.1913, allocations: 0 / 0.7873 GB, free: 9.227 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.254e-05/0.1913, allocations: 4 kB / 0.7873 GB, free: 9.223 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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 0 * Array equations: 2 * Algorithm blocks: 0 * 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 7.547e-05/0.1914, allocations: 110.5 kB / 0.7874 GB, free: 9.105 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.598e-05/0.1914, allocations: 15.86 kB / 0.7874 GB, free: 9.09 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.04e-05/0.1914, allocations: 3.125 kB / 0.7874 GB, free: 9.082 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.221e-05/0.1914, allocations: 0 / 0.7874 GB, free: 9.082 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.2e-06/0.1914, allocations: 4 kB / 0.7874 GB, free: 9.078 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.297e-06/0.1914, allocations: 4 kB / 0.7874 GB, free: 9.074 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.996e-05/0.1915, allocations: 149.7 kB / 0.7876 GB, free: 8.879 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.375e-06/0.1915, allocations: 3.938 kB / 0.7876 GB, free: 8.875 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.31e-07/0.1915, allocations: 0 / 0.7876 GB, free: 8.875 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.152e-06/0.1915, allocations: 0 / 0.7876 GB, free: 8.875 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.694e-06/0.1915, allocations: 4 kB / 0.7876 GB, free: 8.871 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.22e-07/0.1916, allocations: 4 kB / 0.7876 GB, free: 8.867 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.41e-07/0.1916, allocations: 0 / 0.7876 GB, free: 8.867 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.376e-05/0.1917, allocations: 84.98 kB / 0.7877 GB, free: 8.766 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 3.271e-05/0.1917, allocations: 85.05 kB / 0.7878 GB, free: 8.664 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.233e-05/0.1917, allocations: 0 / 0.7878 GB, free: 8.664 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.92e-05/0.1918, allocations: 0 / 0.7878 GB, free: 8.664 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.626e-05/0.1918, allocations: 7.984 kB / 0.7878 GB, free: 8.656 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.312e-06/0.1918, allocations: 4.031 kB / 0.7878 GB, free: 8.652 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 2.995e-05/0.1918, allocations: 83.28 kB / 0.7878 GB, free: 8.57 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.8e-07/0.1919, allocations: 3.938 kB / 0.7878 GB, free: 8.566 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002481/0.1921, allocations: 59.92 kB / 0.7879 GB, free: 8.508 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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 0 * Array equations: 2 * Algorithm blocks: 0 * 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.0007776/0.1929, allocations: 0.8061 MB / 0.7887 GB, free: 7.734 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 8.698e-05/0.193, allocations: 19.98 kB / 0.7887 GB, free: 7.715 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.193, allocations: 0 / 0.7887 GB, free: 7.715 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 2.022e-05/0.193, allocations: 15.92 kB / 0.7887 GB, free: 7.699 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001405/0.1932, allocations: 6.844 kB / 0.7887 GB, free: 7.695 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.0004818/0.1937, allocations: 170.6 kB / 0.7889 GB, free: 7.488 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002058/0.1939, allocations: 0.6729 MB / 0.7896 GB, free: 6.789 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 5.12e-05/0.1939, allocations: 15.97 kB / 0.7896 GB, free: 6.773 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.82e-05/0.194, allocations: 19.42 kB / 0.7896 GB, free: 6.754 MB / 0.6075 GB Notification: Performance of SimCode: time 2.4e-07/0.194, allocations: 4 kB / 0.7896 GB, free: 6.75 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3915/0.5855, allocations: 2.551 MB / 0.7921 GB, free: 4.332 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.713/7.299, allocations: 18.69 kB / 0.7921 GB, free: 4.32 MB / 0.6075 GB (rm -f Buildings_8_Buildings.Obsolete.Utilities.IO.Python27.Functions.Examples.ExchangeWithPassPythonObject.pipe ; mkfifo Buildings_8_Buildings.Obsolete.Utilities.IO.Python27.Functions.Examples.ExchangeWithPassPythonObject.pipe ; head -c 1048576 < Buildings_8_Buildings.Obsolete.Utilities.IO.Python27.Functions.Examples.ExchangeWithPassPythonObject.pipe >> ../files/Buildings_8_Buildings.Obsolete.Utilities.IO.Python27.Functions.Examples.ExchangeWithPassPythonObject.sim & python3 -m fmpy simulate --output-file Buildings_8_Buildings.Obsolete.Utilities.IO.Python27.Functions.Examples.ExchangeWithPassPythonObject_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 Buildings_8_Buildings_Obsolete_Utilities_IO_Python27_Functions_Examples_ExchangeWithPassPythonObject.fmu > Buildings_8_Buildings.Obsolete.Utilities.IO.Python27.Functions.Examples.ExchangeWithPassPythonObject.pipe 2>&1)