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.313/1.313, allocations: 252 MB / 267.3 MB, free: 10.86 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.0009503/0.0009503, allocations: 172.4 kB / 327 MB, free: 2.113 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.619/1.619, allocations: 205.4 MB / 0.578 GB, free: 20.12 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.0007183/0.0007182, allocations: 92.83 kB / 0.6826 GB, free: 12.75 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003153/0.0003153, allocations: 8.75 kB / 0.7971 GB, free: 135.1 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2192/0.2196, allocations: 106.3 MB / 0.9009 GB, free: 63.38 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Python36.Functions.Examples.ExchangeWithPassPythonObject): time 0.0008207/0.2204, allocations: 274.6 kB / 0.9012 GB, free: 63.11 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.001293/0.2217, allocations: 1.117 MB / 0.9023 GB, free: 61.99 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.621e-05/0.2218, allocations: 4 kB / 0.9023 GB, free: 61.98 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 0.0001023/0.2219, allocations: 0 / 0.9023 GB, free: 61.98 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 4.555e-05/0.2219, allocations: 0 / 0.9023 GB, free: 61.98 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.0003714/0.2223, allocations: 147.7 kB / 0.9024 GB, free: 61.84 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 5.313e-05/0.2224, allocations: 8 kB / 0.9024 GB, free: 61.83 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 4.471e-05/0.2224, allocations: 7.984 kB / 0.9024 GB, free: 61.82 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 2.439e-05/0.2225, allocations: 11.98 kB / 0.9024 GB, free: 61.81 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 5.118e-05/0.2225, allocations: 11.94 kB / 0.9025 GB, free: 61.8 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 1.394e-05/0.2225, allocations: 0 / 0.9025 GB, free: 61.8 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003073/0.2228, allocations: 187.6 kB / 0.9026 GB, free: 61.62 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 3.81e-05/0.2229, allocations: 4 kB / 0.9026 GB, free: 61.61 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 3.727e-05/0.2229, allocations: 29.69 kB / 0.9027 GB, free: 61.58 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.0002432/0.2232, allocations: 187.7 kB / 0.9028 GB, free: 61.39 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 4.118e-06/0.2232, allocations: 0 / 0.9028 GB, free: 61.39 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.793e-06/0.2232, allocations: 0 / 0.9028 GB, free: 61.39 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 4.167e-06/0.2232, allocations: 0 / 0.9028 GB, free: 61.39 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.0003108/0.2235, allocations: 367.5 kB / 0.9032 GB, free: 60.99 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 4.375e-05/0.2236, allocations: 12.03 kB / 0.9032 GB, free: 60.98 MB / 0.6042 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.635e-05/0.2236, allocations: 30.75 kB / 0.9032 GB, free: 60.94 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.469e-05/0.2237, allocations: 0.9375 kB / 0.9032 GB, free: 60.94 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.978e-05/0.2238, allocations: 164.4 kB / 0.9034 GB, free: 60.74 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.074e-05/0.2238, allocations: 4.375 kB / 0.9034 GB, free: 60.73 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.825e-06/0.2238, allocations: 384 / 0.9034 GB, free: 60.73 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000122/0.2239, allocations: 49.59 kB / 0.9034 GB, free: 60.68 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.093e-06/0.2239, allocations: 4 kB / 0.9035 GB, free: 60.68 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.026e-05/0.224, allocations: 0 / 0.9035 GB, free: 60.68 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.61e-05/0.224, allocations: 4 kB / 0.9035 GB, free: 60.67 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.347e-05/0.224, allocations: 7.938 kB / 0.9035 GB, free: 60.66 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001438/0.2242, allocations: 153.7 kB / 0.9036 GB, free: 60.46 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 5.572e-05/0.2242, allocations: 34.53 kB / 0.9036 GB, free: 60.42 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.892e-05/0.2243, allocations: 8.922 kB / 0.9037 GB, free: 60.41 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 6.342e-06/0.2243, allocations: 7.938 kB / 0.9037 GB, free: 60.4 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.865e-05/0.2243, allocations: 42.48 kB / 0.9037 GB, free: 60.35 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=2): time 1.182e-06/0.2243, allocations: 0 / 0.9037 GB, free: 60.35 MB / 0.6042 GB Notification: Performance of matching and sorting (n=2): time 0.000165/0.2245, allocations: 57.62 kB / 0.9038 GB, free: 60.29 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.72e-05/0.2245, allocations: 51.41 kB / 0.9038 GB, free: 60.23 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.021e-05/0.2246, allocations: 93.86 kB / 0.9039 GB, free: 60.12 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 1.345e-05/0.2246, allocations: 33.69 kB / 0.9039 GB, free: 60.09 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 2.311e-05/0.2246, allocations: 84.39 kB / 0.904 GB, free: 60 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 2.45e-05/0.2247, allocations: 7.906 kB / 0.904 GB, free: 59.99 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.048e-06/0.2247, allocations: 0 / 0.904 GB, free: 59.99 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 7.153e-05/0.2247, allocations: 310.8 kB / 0.9043 GB, free: 59.68 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.73e-05/0.2248, allocations: 4 kB / 0.9043 GB, free: 59.68 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.407e-05/0.2248, allocations: 11.98 kB / 0.9043 GB, free: 59.66 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.145e-05/0.2248, allocations: 28.78 kB / 0.9044 GB, free: 59.63 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.432e-06/0.2248, allocations: 0 / 0.9044 GB, free: 59.63 MB / 0.6042 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.442e-05/0.2249, allocations: 61.66 kB / 0.9044 GB, free: 59.57 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.201e-05/0.2249, allocations: 6.5 kB / 0.9044 GB, free: 59.56 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.482e-06/0.2249, allocations: 0 / 0.9044 GB, free: 59.56 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.399e-05/0.225, allocations: 0 / 0.9044 GB, free: 59.56 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.164e-06/0.225, allocations: 4 kB / 0.9044 GB, free: 59.56 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.583e-06/0.225, allocations: 0 / 0.9044 GB, free: 59.56 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.471e-05/0.225, allocations: 8.125 kB / 0.9044 GB, free: 59.55 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.131e-05/0.225, allocations: 0 / 0.9044 GB, free: 59.55 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 8.716e-05/0.2251, allocations: 117.8 kB / 0.9045 GB, free: 59.43 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.037e-05/0.2251, allocations: 11.97 kB / 0.9046 GB, free: 59.41 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.017e-06/0.2251, allocations: 3.125 kB / 0.9046 GB, free: 59.41 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.29e-05/0.2252, allocations: 4 kB / 0.9046 GB, free: 59.41 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.627e-06/0.2252, allocations: 0 / 0.9046 GB, free: 59.41 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.344e-06/0.2252, allocations: 0 / 0.9046 GB, free: 59.41 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.283e-05/0.2252, allocations: 149.7 kB / 0.9047 GB, free: 59.21 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.2253, allocations: 3.938 kB / 0.9047 GB, free: 59.21 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.72e-07/0.2253, allocations: 4 kB / 0.9047 GB, free: 59.2 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.232e-06/0.2253, allocations: 0 / 0.9047 GB, free: 59.2 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.305e-06/0.2253, allocations: 0 / 0.9047 GB, free: 59.2 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.583e-06/0.2253, allocations: 7.875 kB / 0.9047 GB, free: 59.2 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.52e-07/0.2253, allocations: 4 kB / 0.9047 GB, free: 59.19 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.968e-05/0.2254, allocations: 77.11 kB / 0.9048 GB, free: 59.1 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 2.274e-05/0.2254, allocations: 81.05 kB / 0.9049 GB, free: 59 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.193e-05/0.2254, allocations: 0 / 0.9049 GB, free: 59 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.453e-05/0.2255, allocations: 4 kB / 0.9049 GB, free: 59 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.599e-05/0.2255, allocations: 3.984 kB / 0.9049 GB, free: 58.99 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.905e-06/0.2255, allocations: 4 kB / 0.9049 GB, free: 58.99 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 2.379e-05/0.2256, allocations: 83.31 kB / 0.905 GB, free: 58.91 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2256, allocations: 3.938 kB / 0.905 GB, free: 58.9 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0002335/0.2258, allocations: 55.97 kB / 0.905 GB, free: 58.85 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.0006846/0.2265, allocations: 0.8123 MB / 0.9058 GB, free: 58.07 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 7.791e-05/0.2266, allocations: 15.98 kB / 0.9058 GB, free: 58.05 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.2266, allocations: 4 kB / 0.9058 GB, free: 58.05 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 1.686e-05/0.2266, allocations: 11.98 kB / 0.9058 GB, free: 58.04 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001413/0.2268, allocations: 9.359 kB / 0.9059 GB, free: 58.03 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.0004979/0.2273, allocations: 182.7 kB / 0.906 GB, free: 57.81 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001068/0.2274, allocations: 0.6809 MB / 0.9067 GB, free: 57.1 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 4.834e-05/0.2275, allocations: 15.98 kB / 0.9067 GB, free: 57.09 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.465e-05/0.2275, allocations: 19.42 kB / 0.9067 GB, free: 57.07 MB / 0.6042 GB Notification: Performance of SimCode: time 3.01e-07/0.2275, allocations: 0 / 0.9067 GB, free: 57.07 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2628/0.4903, allocations: 2.24 MB / 0.9089 GB, free: 55.02 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001615/0.4905, allocations: 320.4 kB / 0.9092 GB, free: 54.64 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.511/2.002, allocations: 2.812 kB / 0.9092 GB, free: 54.64 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)