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.3/1.3, allocations: 251.5 MB / 266.7 MB, free: 11.04 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.0009984/0.0009984, allocations: 177.5 kB / 325.9 MB, free: 2.699 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.591/1.591, allocations: 205 MB / 0.576 GB, free: 20.98 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.0006986/0.0006986, allocations: 97.3 kB / 0.6797 GB, free: 14.72 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003296/0.0003296, allocations: 8.625 kB / 0.7933 GB, free: 136.5 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2203/0.2207, allocations: 105.4 MB / 0.8962 GB, free: 68.09 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Python36.Functions.Examples.Exchange): time 0.0008297/0.2216, allocations: 298.1 kB / 0.8965 GB, free: 67.8 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.001781/0.2234, allocations: 1.282 MB / 0.8977 GB, free: 66.51 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.737e-05/0.2234, allocations: 0 / 0.8977 GB, free: 66.51 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 0.0001149/0.2235, allocations: 11.94 kB / 0.8977 GB, free: 66.5 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 5.833e-05/0.2236, allocations: 7.938 kB / 0.8978 GB, free: 66.49 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.0005531/0.2241, allocations: 267.5 kB / 0.898 GB, free: 66.23 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 9.734e-05/0.2243, allocations: 71.88 kB / 0.8981 GB, free: 66.16 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 5.694e-05/0.2243, allocations: 11.98 kB / 0.8981 GB, free: 66.15 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 4.532e-05/0.2244, allocations: 35.92 kB / 0.8981 GB, free: 66.11 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 5.443e-05/0.2244, allocations: 39.89 kB / 0.8982 GB, free: 66.07 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 2.396e-05/0.2245, allocations: 4 kB / 0.8982 GB, free: 66.07 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003777/0.2248, allocations: 207.6 kB / 0.8984 GB, free: 65.87 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 2.638e-05/0.2249, allocations: 11.91 kB / 0.8984 GB, free: 65.86 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 5.551e-05/0.2249, allocations: 35.86 kB / 0.8984 GB, free: 65.82 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.0003234/0.2253, allocations: 271.5 kB / 0.8987 GB, free: 65.55 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 5.72e-06/0.2253, allocations: 0 / 0.8987 GB, free: 65.55 MB / 0.6042 GB Notification: Performance of FrontEnd: time 2.444e-06/0.2253, allocations: 0 / 0.8987 GB, free: 65.55 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 4.939e-06/0.2253, allocations: 4 kB / 0.8987 GB, free: 65.55 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.0003849/0.2257, allocations: 417.2 kB / 0.8991 GB, free: 65.09 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 4.454e-05/0.2257, allocations: 8.031 kB / 0.8991 GB, free: 65.08 MB / 0.6042 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.881e-05/0.2258, allocations: 34.75 kB / 0.8991 GB, free: 65.04 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.594e-05/0.2259, allocations: 12.84 kB / 0.8991 GB, free: 65.03 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001265/0.226, allocations: 172.4 kB / 0.8993 GB, free: 64.82 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.683e-05/0.226, allocations: 4.375 kB / 0.8993 GB, free: 64.82 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.179e-05/0.226, allocations: 16.3 kB / 0.8993 GB, free: 64.8 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002118/0.2263, allocations: 129.5 kB / 0.8994 GB, free: 64.67 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.097e-06/0.2263, allocations: 0 / 0.8994 GB, free: 64.67 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.013e-05/0.2263, allocations: 4 kB / 0.8994 GB, free: 64.66 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.776e-06/0.2263, allocations: 0 / 0.8994 GB, free: 64.66 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.682e-05/0.2264, allocations: 63.92 kB / 0.8995 GB, free: 64.6 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001418/0.2266, allocations: 157.7 kB / 0.8996 GB, free: 64.4 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001386/0.2267, allocations: 114.6 kB / 0.8998 GB, free: 64.28 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001009/0.2268, allocations: 108.8 kB / 0.8999 GB, free: 64.17 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 9.528e-06/0.2268, allocations: 7.938 kB / 0.8999 GB, free: 64.16 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.231e-05/0.2269, allocations: 30.56 kB / 0.8999 GB, free: 64.12 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=6): time 9.42e-07/0.2269, allocations: 0 / 0.8999 GB, free: 64.12 MB / 0.6042 GB Notification: Performance of matching and sorting (n=6): time 0.0004322/0.2273, allocations: 295.1 kB / 0.9002 GB, free: 63.82 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.396e-05/0.2274, allocations: 85.11 kB / 0.9003 GB, free: 63.72 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.691e-05/0.2274, allocations: 133.6 kB / 0.9004 GB, free: 63.58 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 1.615e-05/0.2275, allocations: 25.7 kB / 0.9004 GB, free: 63.55 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 2.864e-05/0.2275, allocations: 88.14 kB / 0.9005 GB, free: 63.46 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 3.88e-05/0.2275, allocations: 23.77 kB / 0.9005 GB, free: 63.43 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.21e-05/0.2276, allocations: 17.72 kB / 0.9005 GB, free: 63.41 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 5.593e-05/0.2276, allocations: 314.8 kB / 0.9008 GB, free: 63.09 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.498e-05/0.2277, allocations: 59.94 kB / 0.9009 GB, free: 63.04 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.202e-05/0.2278, allocations: 59.95 kB / 0.9009 GB, free: 62.98 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000151/0.228, allocations: 184.2 kB / 0.9011 GB, free: 62.78 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.285e-06/0.228, allocations: 0 / 0.9011 GB, free: 62.78 MB / 0.6042 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0002517/0.2282, allocations: 231.1 kB / 0.9013 GB, free: 62.54 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 4.1e-05/0.2283, allocations: 49.67 kB / 0.9014 GB, free: 62.49 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.388e-06/0.2283, allocations: 4.062 kB / 0.9014 GB, free: 62.48 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.364e-05/0.2283, allocations: 0 / 0.9014 GB, free: 62.48 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.51e-07/0.2283, allocations: 0 / 0.9014 GB, free: 62.48 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.431e-06/0.2283, allocations: 3.938 kB / 0.9014 GB, free: 62.48 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002815/0.2286, allocations: 27.83 kB / 0.9014 GB, free: 62.45 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.62e-05/0.2287, allocations: 15.98 kB / 0.9014 GB, free: 62.44 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 (yI2[2],yI2[1],yI1[1]) * 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.0001121/0.2288, allocations: 163.5 kB / 0.9016 GB, free: 62.26 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.451e-05/0.2288, allocations: 15.84 kB / 0.9016 GB, free: 62.25 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.182e-05/0.2288, allocations: 8.375 kB / 0.9016 GB, free: 62.24 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.363e-06/0.2288, allocations: 0 / 0.9016 GB, free: 62.24 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.977e-06/0.2288, allocations: 0 / 0.9016 GB, free: 62.24 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.655e-06/0.2289, allocations: 0 / 0.9016 GB, free: 62.24 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.646e-05/0.2289, allocations: 169.6 kB / 0.9018 GB, free: 62.02 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.144e-06/0.229, allocations: 4.188 kB / 0.9018 GB, free: 62.02 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.71e-07/0.229, allocations: 0 / 0.9018 GB, free: 62.02 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.004e-06/0.229, allocations: 4 kB / 0.9018 GB, free: 62.02 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.88e-05/0.229, allocations: 15.98 kB / 0.9018 GB, free: 62 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.41e-07/0.229, allocations: 4 kB / 0.9018 GB, free: 62 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.82e-07/0.229, allocations: 0 / 0.9018 GB, free: 62 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003351/0.2294, allocations: 290.6 kB / 0.9021 GB, free: 61.69 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 2.451e-05/0.2294, allocations: 85.03 kB / 0.9022 GB, free: 61.59 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.381e-05/0.2295, allocations: 8 kB / 0.9022 GB, free: 61.58 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001837/0.2296, allocations: 15.98 kB / 0.9022 GB, free: 61.56 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.55e-05/0.2297, allocations: 11.92 kB / 0.9022 GB, free: 61.55 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.488e-05/0.2297, allocations: 19.98 kB / 0.9022 GB, free: 61.53 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 5.061e-05/0.2298, allocations: 99.61 kB / 0.9023 GB, free: 61.43 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2298, allocations: 4 kB / 0.9023 GB, free: 61.43 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0003255/0.2301, allocations: 91.83 kB / 0.9024 GB, free: 61.34 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.001218/0.2313, allocations: 1.116 MB / 0.9035 GB, free: 60.29 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0003123/0.2317, allocations: 295.2 kB / 0.9038 GB, free: 59.99 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 2.806e-06/0.2317, allocations: 0 / 0.9038 GB, free: 59.99 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0001528/0.2318, allocations: 211.3 kB / 0.904 GB, free: 59.77 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001667/0.232, allocations: 10.81 kB / 0.904 GB, free: 59.76 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.0007603/0.2328, allocations: 376.2 kB / 0.9044 GB, free: 59.35 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001891/0.233, allocations: 0.6889 MB / 0.905 GB, free: 58.64 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 8.201e-05/0.2331, allocations: 47.88 kB / 0.9051 GB, free: 58.59 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.937e-05/0.2331, allocations: 11.44 kB / 0.9051 GB, free: 58.58 MB / 0.6042 GB Notification: Performance of SimCode: time 2.51e-07/0.2331, allocations: 0 / 0.9051 GB, free: 58.58 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3345/0.5676, allocations: 4.741 MB / 0.9097 GB, free: 53.99 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002446/0.5679, allocations: 301.7 kB / 0.91 GB, free: 53.61 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.733/2.301, allocations: 0 / 0.91 GB, free: 53.61 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)