Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Utilities.IO.Python36.Functions.Examples.ExchangeWithPassPythonObject.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.IO.Python36.Functions.Examples.ExchangeWithPassPythonObject,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Utilities_IO_Python36_Functions_Examples_ExchangeWithPassPythonObject",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.IO.Python36.Functions.Examples.ExchangeWithPassPythonObject,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Utilities_IO_Python36_Functions_Examples_ExchangeWithPassPythonObject",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.309/1.309, allocations: 251.5 MB / 266.7 MB, free: 11.05 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009784/0.0009786, allocations: 177.2 kB / 325.8 MB, free: 2.707 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.508/1.508, allocations: 205 MB / 0.576 GB, free: 21 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000719/0.0007191, allocations: 94.56 kB / 0.6797 GB, free: 14.72 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.000349/0.0003493, allocations: 10.28 kB / 0.7933 GB, free: 136.6 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2252/0.2256, allocations: 105.4 MB / 0.8962 GB, free: 68.11 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Python36.Functions.Examples.ExchangeWithPassPythonObject): time 0.000891/0.2265, allocations: 286.2 kB / 0.8965 GB, free: 67.84 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.001322/0.2279, allocations: 1.13 MB / 0.8976 GB, free: 66.7 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.735e-05/0.2279, allocations: 11.94 kB / 0.8976 GB, free: 66.69 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 0.0001149/0.228, allocations: 4 kB / 0.8976 GB, free: 66.68 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 4.789e-05/0.2281, allocations: 0 / 0.8976 GB, free: 66.68 MB / 0.6042 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/Utilities/IO/Python36/Functions/exchange.mo:2:1-113:13:writable] Warning: Pure function ‘Buildings.Utilities.IO.Python36.Functions.exchange‘ contains a call to impure function ‘Modelica.Utilities.System.getEnvironmentVariable‘. Notification: Performance of NFTyping.typeClassSections: time 0.0003789/0.2285, allocations: 143.7 kB / 0.8977 GB, free: 66.54 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 5.186e-05/0.2285, allocations: 8 kB / 0.8977 GB, free: 66.54 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 4.781e-05/0.2286, allocations: 3.984 kB / 0.8977 GB, free: 66.53 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 2.51e-05/0.2286, allocations: 7.984 kB / 0.8977 GB, free: 66.52 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 5.481e-05/0.2287, allocations: 12 kB / 0.8978 GB, free: 66.51 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 1.605e-05/0.2287, allocations: 0 / 0.8978 GB, free: 66.51 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003208/0.229, allocations: 191.6 kB / 0.8979 GB, free: 66.32 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 3.393e-05/0.2291, allocations: 4 kB / 0.8979 GB, free: 66.32 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 2.657e-05/0.2291, allocations: 0 / 0.8979 GB, free: 66.32 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.0002467/0.2294, allocations: 195.6 kB / 0.8981 GB, free: 66.13 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 4.078e-06/0.2294, allocations: 0 / 0.8981 GB, free: 66.13 MB / 0.6042 GB Notification: Performance of FrontEnd: time 2.023e-06/0.2294, allocations: 0 / 0.8981 GB, free: 66.13 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 4.188e-06/0.2294, allocations: 0 / 0.8981 GB, free: 66.13 MB / 0.6042 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.0003393/0.2297, allocations: 367.5 kB / 0.8985 GB, free: 65.72 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 4.51e-05/0.2298, allocations: 12.03 kB / 0.8985 GB, free: 65.71 MB / 0.6042 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.597e-05/0.2298, allocations: 30.75 kB / 0.8985 GB, free: 65.67 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.503e-05/0.2299, allocations: 8.938 kB / 0.8985 GB, free: 65.66 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001064/0.23, allocations: 164.4 kB / 0.8987 GB, free: 65.46 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.154e-05/0.23, allocations: 4.375 kB / 0.8987 GB, free: 65.46 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.011e-05/0.23, allocations: 384 / 0.8987 GB, free: 65.46 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001277/0.2302, allocations: 49.59 kB / 0.8987 GB, free: 65.41 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.635e-06/0.2302, allocations: 0 / 0.8987 GB, free: 65.41 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.136e-05/0.2302, allocations: 0 / 0.8987 GB, free: 65.41 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.621e-05/0.2302, allocations: 4 kB / 0.8987 GB, free: 65.4 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.673e-05/0.2303, allocations: 7.938 kB / 0.8988 GB, free: 65.39 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001651/0.2304, allocations: 157.7 kB / 0.8989 GB, free: 65.19 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 6.099e-05/0.2305, allocations: 30.59 kB / 0.8989 GB, free: 65.15 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.171e-05/0.2305, allocations: 8.922 kB / 0.8989 GB, free: 65.14 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 8.045e-06/0.2305, allocations: 11.88 kB / 0.899 GB, free: 65.13 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.239e-05/0.2306, allocations: 34.55 kB / 0.899 GB, free: 65.09 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=2): time 1.092e-06/0.2306, allocations: 0 / 0.899 GB, free: 65.09 MB / 0.6042 GB Notification: Performance of matching and sorting (n=2): time 0.00016/0.2307, allocations: 65.61 kB / 0.899 GB, free: 65.02 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.507e-05/0.2308, allocations: 51.41 kB / 0.8991 GB, free: 64.95 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.71e-05/0.2308, allocations: 93.86 kB / 0.8992 GB, free: 64.85 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 9.728e-06/0.2309, allocations: 29.64 kB / 0.8992 GB, free: 64.82 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 1.616e-05/0.2309, allocations: 84.14 kB / 0.8993 GB, free: 64.73 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 2.313e-05/0.2309, allocations: 11.89 kB / 0.8993 GB, free: 64.72 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.993e-05/0.2309, allocations: 9.719 kB / 0.8993 GB, free: 64.7 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 5.115e-05/0.231, allocations: 311.1 kB / 0.8996 GB, free: 64.39 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.625e-05/0.231, allocations: 8 kB / 0.8996 GB, free: 64.38 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.438e-05/0.231, allocations: 11.98 kB / 0.8996 GB, free: 64.37 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.827e-05/0.2311, allocations: 24.84 kB / 0.8997 GB, free: 64.34 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.2311, allocations: 0 / 0.8997 GB, free: 64.34 MB / 0.6042 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.768e-05/0.2312, allocations: 57.55 kB / 0.8997 GB, free: 64.28 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.206e-05/0.2312, allocations: 4 kB / 0.8997 GB, free: 64.28 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.582e-06/0.2312, allocations: 0 / 0.8997 GB, free: 64.28 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.535e-05/0.2312, allocations: 4 kB / 0.8997 GB, free: 64.27 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.02e-07/0.2312, allocations: 4.094 kB / 0.8997 GB, free: 64.27 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.55e-06/0.2312, allocations: 0 / 0.8997 GB, free: 64.27 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.306e-05/0.2312, allocations: 3.906 kB / 0.8997 GB, free: 64.27 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.459e-05/0.2313, allocations: 0 / 0.8997 GB, free: 64.27 MB / 0.6042 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 5.614e-05/0.2313, allocations: 113.8 kB / 0.8998 GB, free: 64.14 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.288e-05/0.2313, allocations: 7.922 kB / 0.8998 GB, free: 64.14 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.054e-05/0.2314, allocations: 7.125 kB / 0.8998 GB, free: 64.13 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.068e-05/0.2314, allocations: 0 / 0.8998 GB, free: 64.13 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.606e-06/0.2314, allocations: 0 / 0.8998 GB, free: 64.13 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.434e-06/0.2314, allocations: 4 kB / 0.8999 GB, free: 64.12 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.083e-05/0.2315, allocations: 149.7 kB / 0.9 GB, free: 63.93 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.663e-06/0.2315, allocations: 7.938 kB / 0.9 GB, free: 63.92 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.21e-07/0.2315, allocations: 0 / 0.9 GB, free: 63.92 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.052e-06/0.2315, allocations: 0 / 0.9 GB, free: 63.92 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.234e-06/0.2315, allocations: 0 / 0.9 GB, free: 63.92 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.21e-07/0.2315, allocations: 0 / 0.9 GB, free: 63.92 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.82e-07/0.2315, allocations: 0 / 0.9 GB, free: 63.92 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.313e-05/0.2316, allocations: 85.05 kB / 0.9001 GB, free: 63.82 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 1.947e-05/0.2316, allocations: 81.05 kB / 0.9002 GB, free: 63.72 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.217e-05/0.2316, allocations: 0 / 0.9002 GB, free: 63.72 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.274e-05/0.2317, allocations: 4 kB / 0.9002 GB, free: 63.72 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.317e-05/0.2317, allocations: 0 / 0.9002 GB, free: 63.72 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.428e-06/0.2318, allocations: 11.98 kB / 0.9002 GB, free: 63.71 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 2.117e-05/0.2318, allocations: 87.16 kB / 0.9003 GB, free: 63.62 MB / 0.6042 GB Notification: Performance of sort global known variables: time 9.1e-08/0.2318, allocations: 0 / 0.9003 GB, free: 63.62 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0002632/0.2321, allocations: 55.97 kB / 0.9003 GB, free: 63.57 MB / 0.6042 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.0007052/0.2328, allocations: 0.8133 MB / 0.9011 GB, free: 62.79 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 8.488e-05/0.2329, allocations: 23.98 kB / 0.9011 GB, free: 62.76 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.2329, allocations: 0 / 0.9011 GB, free: 62.76 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 1.753e-05/0.2329, allocations: 11.98 kB / 0.9011 GB, free: 62.75 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001333/0.233, allocations: 4 kB / 0.9011 GB, free: 62.75 MB / 0.6042 GB Warning: Could not resolve URI ("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.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.0005579/0.2336, allocations: 179.1 kB / 0.9013 GB, free: 62.53 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001122/0.2337, allocations: 0.677 MB / 0.902 GB, free: 61.83 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 5.066e-05/0.2338, allocations: 24.05 kB / 0.902 GB, free: 61.8 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.146e-05/0.2338, allocations: 19.42 kB / 0.902 GB, free: 61.79 MB / 0.6042 GB Notification: Performance of SimCode: time 2.21e-07/0.2338, allocations: 0 / 0.902 GB, free: 61.79 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2881/0.5219, allocations: 2.245 MB / 0.9042 GB, free: 59.73 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001803/0.5222, allocations: 319.4 kB / 0.9045 GB, free: 59.35 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.64/2.162, allocations: 0 / 0.9045 GB, free: 59.35 MB / 0.6042 GB (rm -f Buildings_maint.7.0.x_Buildings.Utilities.IO.Python36.Functions.Examples.ExchangeWithPassPythonObject.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Utilities.IO.Python36.Functions.Examples.ExchangeWithPassPythonObject.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Utilities.IO.Python36.Functions.Examples.ExchangeWithPassPythonObject.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Utilities.IO.Python36.Functions.Examples.ExchangeWithPassPythonObject.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Utilities_IO_Python36_Functions_Examples_ExchangeWithPassPythonObject_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Utilities_IO_Python36_Functions_Examples_ExchangeWithPassPythonObject.fmu > Buildings_maint.7.0.x_Buildings.Utilities.IO.Python36.Functions.Examples.ExchangeWithPassPythonObject.pipe 2>&1)