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.Exchange.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.Exchange,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Utilities_IO_Python36_Functions_Examples_Exchange",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.IO.Python36.Functions.Examples.Exchange,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Utilities_IO_Python36_Functions_Examples_Exchange",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.269/1.269, allocations: 252 MB / 267.3 MB, free: 10.84 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.0008644/0.0008647, allocations: 184.8 kB / 327 MB, free: 2.09 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.415/1.415, allocations: 205.4 MB / 0.578 GB, free: 20.14 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.000813/0.000813, allocations: 93.66 kB / 0.6826 GB, free: 12.73 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003215/0.0003216, allocations: 11.88 kB / 0.7971 GB, free: 134.8 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2227/0.2231, allocations: 106.3 MB / 0.9009 GB, free: 63.23 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Python36.Functions.Examples.Exchange): time 0.001105/0.2242, allocations: 282.6 kB / 0.9012 GB, free: 62.95 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.001874/0.2261, allocations: 1.265 MB / 0.9024 GB, free: 61.68 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.222e-05/0.2262, allocations: 0 / 0.9024 GB, free: 61.68 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 0.0001199/0.2263, allocations: 15.94 kB / 0.9024 GB, free: 61.66 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 5.315e-05/0.2264, allocations: 0 / 0.9024 GB, free: 61.66 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.0008255/0.2272, allocations: 259.5 kB / 0.9027 GB, free: 61.41 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.0001345/0.2274, allocations: 67.88 kB / 0.9028 GB, free: 61.34 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 5.942e-05/0.2274, allocations: 11.98 kB / 0.9028 GB, free: 61.33 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 5.184e-05/0.2275, allocations: 39.91 kB / 0.9028 GB, free: 61.29 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 6.217e-05/0.2276, allocations: 43.83 kB / 0.9028 GB, free: 61.25 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 2.366e-05/0.2276, allocations: 8 kB / 0.9029 GB, free: 61.24 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000543/0.2281, allocations: 207.6 kB / 0.9031 GB, free: 61.04 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 3.032e-05/0.2282, allocations: 4 kB / 0.9031 GB, free: 61.04 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 8.449e-05/0.2283, allocations: 65.53 kB / 0.9031 GB, free: 60.96 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.0004901/0.2288, allocations: 271.5 kB / 0.9034 GB, free: 60.7 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 5.21e-06/0.2288, allocations: 0 / 0.9034 GB, free: 60.7 MB / 0.6042 GB Notification: Performance of FrontEnd: time 2.034e-06/0.2288, allocations: 0 / 0.9034 GB, free: 60.7 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 4.699e-06/0.2288, allocations: 0 / 0.9034 GB, free: 60.7 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: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.0003954/0.2292, allocations: 422.1 kB / 0.9038 GB, free: 60.23 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 4.576e-05/0.2293, allocations: 8.031 kB / 0.9038 GB, free: 60.23 MB / 0.6042 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.961e-05/0.2293, allocations: 42.69 kB / 0.9038 GB, free: 60.18 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.605e-05/0.2294, allocations: 12.84 kB / 0.9038 GB, free: 60.16 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000119/0.2295, allocations: 172.4 kB / 0.904 GB, free: 59.96 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.354e-05/0.2295, allocations: 384 / 0.904 GB, free: 59.96 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.635e-05/0.2296, allocations: 8.375 kB / 0.904 GB, free: 59.95 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002169/0.2298, allocations: 133.4 kB / 0.9041 GB, free: 59.81 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.423e-06/0.2298, allocations: 0 / 0.9041 GB, free: 59.81 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.996e-05/0.2298, allocations: 4 kB / 0.9041 GB, free: 59.81 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.558e-06/0.2298, allocations: 0 / 0.9041 GB, free: 59.81 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.86e-05/0.2299, allocations: 63.94 kB / 0.9042 GB, free: 59.75 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001462/0.2301, allocations: 161.9 kB / 0.9044 GB, free: 59.54 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001261/0.2302, allocations: 114.6 kB / 0.9045 GB, free: 59.42 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.678e-05/0.2303, allocations: 108.8 kB / 0.9046 GB, free: 59.31 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 8.886e-06/0.2303, allocations: 3.938 kB / 0.9046 GB, free: 59.3 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.709e-05/0.2304, allocations: 30.56 kB / 0.9046 GB, free: 59.27 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=6): time 1.092e-06/0.2304, allocations: 0 / 0.9046 GB, free: 59.27 MB / 0.6042 GB Notification: Performance of matching and sorting (n=6): time 0.0004325/0.2308, allocations: 299.1 kB / 0.9049 GB, free: 58.96 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.925e-05/0.2308, allocations: 85.11 kB / 0.905 GB, free: 58.86 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.426e-05/0.2309, allocations: 125.7 kB / 0.9051 GB, free: 58.73 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 2.108e-05/0.231, allocations: 29.7 kB / 0.9051 GB, free: 58.69 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 2.812e-05/0.231, allocations: 84.14 kB / 0.9052 GB, free: 58.61 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 3.604e-05/0.231, allocations: 19.69 kB / 0.9052 GB, free: 58.59 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.521e-05/0.2311, allocations: 4 kB / 0.9052 GB, free: 58.58 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 5.427e-05/0.2311, allocations: 322.8 kB / 0.9055 GB, free: 58.26 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.774e-05/0.2312, allocations: 63.98 kB / 0.9056 GB, free: 58.2 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.216e-05/0.2313, allocations: 59.94 kB / 0.9056 GB, free: 58.14 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001583/0.2314, allocations: 188.4 kB / 0.9058 GB, free: 57.94 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.2315, allocations: 0 / 0.9058 GB, free: 57.94 MB / 0.6042 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0002451/0.2317, allocations: 231.2 kB / 0.906 GB, free: 57.7 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 3.603e-05/0.2318, allocations: 41.69 kB / 0.9061 GB, free: 57.65 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.669e-06/0.2318, allocations: 0 / 0.9061 GB, free: 57.65 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.242e-05/0.2318, allocations: 0 / 0.9061 GB, free: 57.65 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.252e-06/0.2318, allocations: 384 / 0.9061 GB, free: 57.65 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.31e-06/0.2318, allocations: 0 / 0.9061 GB, free: 57.65 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002905/0.2321, allocations: 31.94 kB / 0.9061 GB, free: 57.62 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.472e-05/0.2321, allocations: 19.92 kB / 0.9061 GB, free: 57.6 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: 3 (yI1[1],yI2[1],yI2[2]) * 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.0001035/0.2322, allocations: 163.5 kB / 0.9063 GB, free: 57.43 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.488e-05/0.2323, allocations: 19.84 kB / 0.9063 GB, free: 57.41 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.241e-05/0.2323, allocations: 12.36 kB / 0.9063 GB, free: 57.39 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.603e-06/0.2323, allocations: 0 / 0.9063 GB, free: 57.39 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.867e-06/0.2323, allocations: 0 / 0.9063 GB, free: 57.39 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.015e-06/0.2323, allocations: 0 / 0.9063 GB, free: 57.39 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.446e-05/0.2324, allocations: 169.6 kB / 0.9065 GB, free: 57.18 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.963e-06/0.2324, allocations: 7.938 kB / 0.9065 GB, free: 57.17 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.31e-07/0.2324, allocations: 0 / 0.9065 GB, free: 57.17 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.122e-06/0.2324, allocations: 0 / 0.9065 GB, free: 57.17 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.327e-05/0.2325, allocations: 15.98 kB / 0.9065 GB, free: 57.16 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.81e-07/0.2325, allocations: 0 / 0.9065 GB, free: 57.16 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.02e-07/0.2325, allocations: 0 / 0.9065 GB, free: 57.16 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003076/0.2328, allocations: 286.6 kB / 0.9068 GB, free: 56.85 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 3.086e-05/0.2328, allocations: 96.88 kB / 0.9069 GB, free: 56.74 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.134e-05/0.2329, allocations: 8.031 kB / 0.9069 GB, free: 56.73 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001962/0.2331, allocations: 23.97 kB / 0.9069 GB, free: 56.71 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.021e-05/0.2331, allocations: 15.92 kB / 0.9069 GB, free: 56.69 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.346e-05/0.2331, allocations: 16 kB / 0.9069 GB, free: 56.68 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 3.598e-05/0.2332, allocations: 91.27 kB / 0.907 GB, free: 56.59 MB / 0.6042 GB Notification: Performance of sort global known variables: time 7.01e-07/0.2332, allocations: 0 / 0.907 GB, free: 56.59 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0003175/0.2335, allocations: 95.91 kB / 0.9071 GB, free: 56.49 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: 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.003947/0.2375, allocations: 1.104 MB / 0.9082 GB, free: 55.45 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0003227/0.2378, allocations: 287.2 kB / 0.9085 GB, free: 55.16 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 5.711e-06/0.2378, allocations: 3.938 kB / 0.9085 GB, free: 55.16 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0001577/0.238, allocations: 211.3 kB / 0.9087 GB, free: 54.94 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000188/0.2382, allocations: 14.39 kB / 0.9087 GB, free: 54.93 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.0006433/0.2388, allocations: 386.5 kB / 0.9091 GB, free: 54.51 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001124/0.2389, allocations: 0.6809 MB / 0.9097 GB, free: 53.8 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 5.536e-05/0.239, allocations: 59.73 kB / 0.9098 GB, free: 53.74 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.181e-05/0.239, allocations: 7.438 kB / 0.9098 GB, free: 53.73 MB / 0.6042 GB Notification: Performance of SimCode: time 2.31e-07/0.239, allocations: 0 / 0.9098 GB, free: 53.73 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2733/0.5123, allocations: 4.728 MB / 0.9144 GB, free: 49.16 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000159/0.5125, allocations: 302.3 kB / 0.9147 GB, free: 48.77 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.854/2.367, allocations: 3.938 kB / 0.9147 GB, free: 48.77 MB / 0.6042 GB (rm -f Buildings_maint.7.0.x_Buildings.Utilities.IO.Python36.Functions.Examples.Exchange.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Utilities.IO.Python36.Functions.Examples.Exchange.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Utilities.IO.Python36.Functions.Examples.Exchange.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Utilities.IO.Python36.Functions.Examples.Exchange.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Utilities_IO_Python36_Functions_Examples_Exchange_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Utilities_IO_Python36_Functions_Examples_Exchange.fmu > Buildings_maint.7.0.x_Buildings.Utilities.IO.Python36.Functions.Examples.Exchange.pipe 2>&1)