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.00108/0.00108, allocations: 109.4 kB / 15.69 MB, free: 128 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.001044/0.001044, allocations: 187.9 kB / 16.62 MB, free: 6.613 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.347/1.347, allocations: 205.1 MB / 222.5 MB, free: 4.551 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.671/1.671, allocations: 292.3 MB / 0.549 GB, free: 12.75 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.001404/0.001404, allocations: 70.42 kB / 0.6718 GB, free: 26.38 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2257/0.2271, allocations: 114.6 MB / 0.7836 GB, free: 13.26 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Obsolete.Utilities.IO.Python27.Functions.Examples.ExchangeWithPassPythonObject): time 0.00217/0.2293, allocations: 0.5298 MB / 0.7842 GB, free: 12.73 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001676/0.231, allocations: 1.125 MB / 0.7853 GB, free: 11.59 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.991e-05/0.2311, allocations: 7.938 kB / 0.7853 GB, free: 11.59 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 9.96e-05/0.2312, allocations: 7.984 kB / 0.7853 GB, free: 11.58 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 5.139e-05/0.2313, allocations: 0 / 0.7853 GB, free: 11.58 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.0006155/0.2319, allocations: 167.4 kB / 0.7854 GB, free: 11.41 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 7.114e-05/0.232, allocations: 15.98 kB / 0.7855 GB, free: 11.4 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 4.323e-05/0.232, allocations: 4 kB / 0.7855 GB, free: 11.39 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 2.604e-05/0.2321, allocations: 11.92 kB / 0.7855 GB, free: 11.38 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 5.415e-05/0.2321, allocations: 11.98 kB / 0.7855 GB, free: 11.37 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 1.191e-05/0.2321, allocations: 0 / 0.7855 GB, free: 11.37 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004281/0.2326, allocations: 207.6 kB / 0.7857 GB, free: 11.17 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 3.613e-05/0.2326, allocations: 3.984 kB / 0.7857 GB, free: 11.16 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 3.229e-05/0.2327, allocations: 7.938 kB / 0.7857 GB, free: 11.16 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0003254/0.233, allocations: 179.7 kB / 0.7859 GB, free: 10.98 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/0.233, allocations: 3.938 kB / 0.7859 GB, free: 10.98 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.854e-06/0.233, allocations: 0 / 0.7859 GB, free: 10.98 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 5.671e-06/0.233, allocations: 0 / 0.7859 GB, free: 10.98 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.0003814/0.2334, allocations: 375.5 kB / 0.7862 GB, free: 10.56 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.933e-05/0.2335, allocations: 8.031 kB / 0.7862 GB, free: 10.55 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.116e-05/0.2335, allocations: 38.73 kB / 0.7863 GB, free: 10.51 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.019e-05/0.2335, allocations: 4.844 kB / 0.7863 GB, free: 10.5 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001152/0.2337, allocations: 164.7 kB / 0.7864 GB, free: 10.3 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.073e-05/0.2337, allocations: 384 / 0.7864 GB, free: 10.3 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.458e-06/0.2337, allocations: 384 / 0.7864 GB, free: 10.3 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001161/0.2338, allocations: 45.62 kB / 0.7865 GB, free: 10.25 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.783e-06/0.2338, allocations: 4 kB / 0.7865 GB, free: 10.25 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.601e-05/0.2339, allocations: 7.984 kB / 0.7865 GB, free: 10.24 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.359e-05/0.2339, allocations: 3.984 kB / 0.7865 GB, free: 10.24 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.779e-05/0.2339, allocations: 11.94 kB / 0.7865 GB, free: 10.23 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001593/0.2341, allocations: 161.6 kB / 0.7867 GB, free: 10.02 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 6.585e-05/0.2342, allocations: 26.56 kB / 0.7867 GB, free: 9.984 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.182e-05/0.2342, allocations: 16.86 kB / 0.7867 GB, free: 9.965 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 9.458e-06/0.2342, allocations: 7.938 kB / 0.7867 GB, free: 9.957 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.379e-05/0.2342, allocations: 34.56 kB / 0.7867 GB, free: 9.914 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=2): time 1.242e-06/0.2342, allocations: 0 / 0.7867 GB, free: 9.914 MB / 0.6075 GB Notification: Performance of matching and sorting (n=2): time 0.0001588/0.2344, allocations: 61.61 kB / 0.7868 GB, free: 9.848 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.969e-05/0.2344, allocations: 51.41 kB / 0.7868 GB, free: 9.785 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.206e-05/0.2345, allocations: 93.86 kB / 0.7869 GB, free: 9.684 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 1.589e-05/0.2345, allocations: 29.7 kB / 0.787 GB, free: 9.648 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 3.021e-05/0.2346, allocations: 84.39 kB / 0.787 GB, free: 9.562 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 2.351e-05/0.2346, allocations: 3.906 kB / 0.787 GB, free: 9.559 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.186e-05/0.2346, allocations: 17.7 kB / 0.7871 GB, free: 9.535 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001087/0.2347, allocations: 314.8 kB / 0.7874 GB, free: 9.219 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.031e-05/0.2348, allocations: 8 kB / 0.7874 GB, free: 9.211 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.753e-05/0.2348, allocations: 7.984 kB / 0.7874 GB, free: 9.203 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.008e-05/0.2348, allocations: 20.84 kB / 0.7874 GB, free: 9.18 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.934e-06/0.2349, allocations: 4.062 kB / 0.7874 GB, free: 9.176 MB / 0.6075 GB Notification: Performance of matching and sorting (n=2) (initialization): time 8.513e-05/0.2349, allocations: 57.56 kB / 0.7875 GB, free: 9.113 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.462e-05/0.235, allocations: 8 kB / 0.7875 GB, free: 9.105 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.284e-06/0.235, allocations: 4 kB / 0.7875 GB, free: 9.102 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.303e-05/0.235, allocations: 0 / 0.7875 GB, free: 9.102 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.202e-06/0.235, allocations: 3.938 kB / 0.7875 GB, free: 9.098 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.6e-06/0.235, allocations: 0 / 0.7875 GB, free: 9.098 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.543e-05/0.235, allocations: 3.984 kB / 0.7875 GB, free: 9.094 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.383e-05/0.235, allocations: 4 kB / 0.7875 GB, free: 9.09 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.509e-05/0.2351, allocations: 113.9 kB / 0.7876 GB, free: 8.969 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.579e-05/0.2351, allocations: 7.938 kB / 0.7876 GB, free: 8.961 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.38e-05/0.2352, allocations: 3.125 kB / 0.7876 GB, free: 8.953 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.221e-05/0.2352, allocations: 0 / 0.7876 GB, free: 8.953 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.938e-06/0.2352, allocations: 0 / 0.7876 GB, free: 8.953 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.755e-06/0.2352, allocations: 0 / 0.7876 GB, free: 8.953 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001097/0.2353, allocations: 157.7 kB / 0.7878 GB, free: 8.75 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.625e-06/0.2353, allocations: 3.938 kB / 0.7878 GB, free: 8.746 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.11e-07/0.2353, allocations: 0 / 0.7878 GB, free: 8.746 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.573e-06/0.2353, allocations: 0 / 0.7878 GB, free: 8.746 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.843e-06/0.2353, allocations: 0 / 0.7878 GB, free: 8.746 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.835e-06/0.2354, allocations: 7.984 kB / 0.7878 GB, free: 8.738 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.2354, allocations: 4 kB / 0.7878 GB, free: 8.734 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001029/0.2355, allocations: 80.95 kB / 0.7878 GB, free: 8.637 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 3.758e-05/0.2355, allocations: 81.05 kB / 0.7879 GB, free: 8.539 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.348e-05/0.2355, allocations: 4 kB / 0.7879 GB, free: 8.535 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.921e-05/0.2356, allocations: 0 / 0.7879 GB, free: 8.535 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.908e-05/0.2356, allocations: 3.984 kB / 0.7879 GB, free: 8.531 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.675e-06/0.2356, allocations: 11.97 kB / 0.7879 GB, free: 8.52 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 3.686e-05/0.2357, allocations: 79.28 kB / 0.788 GB, free: 8.441 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2357, allocations: 0 / 0.788 GB, free: 8.441 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.000284/0.236, allocations: 63.91 kB / 0.7881 GB, free: 8.379 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.0009186/0.2369, allocations: 0.8125 MB / 0.7889 GB, free: 7.598 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 9.362e-05/0.237, allocations: 19.98 kB / 0.7889 GB, free: 7.578 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.435e-06/0.237, allocations: 0 / 0.7889 GB, free: 7.578 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 2.335e-05/0.2371, allocations: 11.98 kB / 0.7889 GB, free: 7.566 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001446/0.2372, allocations: 6.844 kB / 0.7889 GB, free: 7.562 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004771/0.2377, allocations: 162.6 kB / 0.7891 GB, free: 7.363 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002531/0.238, allocations: 0.6729 MB / 0.7897 GB, free: 6.664 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.0001124/0.2381, allocations: 15.98 kB / 0.7897 GB, free: 6.648 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.446e-05/0.2381, allocations: 23.36 kB / 0.7898 GB, free: 6.625 MB / 0.6075 GB Notification: Performance of SimCode: time 4.61e-07/0.2381, allocations: 3.938 kB / 0.7898 GB, free: 6.621 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02182/0.26, allocations: 2.554 MB / 0.7923 GB, free: 4.215 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.203/7.463, allocations: 17.45 kB / 0.7923 GB, free: 4.203 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)