Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Utilities.IO.Python_3_8.Functions.Examples.Exchange.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.Utilities.IO.Python_3_8.Functions.Examples.Exchange,fileNamePrefix="Buildings_10_Buildings_Utilities_IO_Python_3_8_Functions_Examples_Exchange",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.IO.Python_3_8.Functions.Examples.Exchange,fileNamePrefix="Buildings_10_Buildings_Utilities_IO_Python_3_8_Functions_Examples_Exchange",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.006802/0.006802, allocations: 100.9 kB / 15.73 MB, free: 6.055 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001314/0.001315, allocations: 189.4 kB / 16.67 MB, free: 5.973 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.348/1.348, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.496/2.496, allocations: 437 MB / 0.7105 GB, free: 4.367 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001575/0.001575, allocations: 63.91 kB / 1.018 GB, free: 9.918 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8222/0.8238, allocations: 151.6 MB / 1.166 GB, free: 3.805 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Python_3_8.Functions.Examples.Exchange): time 0.002061/0.8259, allocations: 0.5473 MB / 1.167 GB, free: 3.262 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.001901/0.8278, allocations: 1.197 MB / 1.168 GB, free: 2.059 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.669e-05/0.8278, allocations: 0 / 1.168 GB, free: 2.059 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.00011/0.828, allocations: 15.92 kB / 1.168 GB, free: 2.043 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 4.809e-05/0.828, allocations: 7.938 kB / 1.168 GB, free: 2.035 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007882/0.8288, allocations: 275.3 kB / 1.168 GB, free: 1.766 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.000161/0.829, allocations: 75.86 kB / 1.168 GB, free: 1.691 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 4.124e-05/0.829, allocations: 7.938 kB / 1.168 GB, free: 1.684 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 5.689e-05/0.8291, allocations: 31.97 kB / 1.168 GB, free: 1.652 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000101/0.8292, allocations: 47.84 kB / 1.168 GB, free: 1.605 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 2.741e-05/0.8292, allocations: 3.938 kB / 1.168 GB, free: 1.602 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004544/0.8297, allocations: 211.7 kB / 1.168 GB, free: 1.395 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 3.425e-05/0.8298, allocations: 11.98 kB / 1.168 GB, free: 1.383 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 7.2e-05/0.8298, allocations: 31.8 kB / 1.169 GB, free: 1.352 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.000417/0.8303, allocations: 247.1 kB / 1.169 GB, free: 1.113 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 5.931e-06/0.8303, allocations: 4 kB / 1.169 GB, free: 1.109 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.403e-06/0.8303, allocations: 0 / 1.169 GB, free: 1.109 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 8.997e-06/0.8303, allocations: 0 / 1.169 GB, free: 1.109 MB / 0.8887 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 0 * Number of variables: 0 Notification: Performance of Generate backend data structure: time 0.0005102/0.8308, allocations: 452.4 kB / 1.169 GB, free: 0.6133 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 4.012e-05/0.8309, allocations: 12.62 kB / 1.169 GB, free: 0.6016 MB / 0.8887 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.564e-05/0.8309, allocations: 110 kB / 1.169 GB, free: 496 kB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.883e-05/0.831, allocations: 84.22 kB / 1.169 GB, free: 412 kB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001666/0.8312, allocations: 259.5 kB / 1.17 GB, free: 112 kB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.297e-05/0.8313, allocations: 158.9 kB / 1.17 GB, free: 15.95 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.036e-05/0.8314, allocations: 154.9 kB / 1.17 GB, free: 15.8 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.782e-05/0.8314, allocations: 104.9 kB / 1.17 GB, free: 15.69 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.041e-05/0.8315, allocations: 79.28 kB / 1.17 GB, free: 15.61 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.127e-05/0.8315, allocations: 154.6 kB / 1.17 GB, free: 15.46 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.454e-05/0.8316, allocations: 158.5 kB / 1.17 GB, free: 15.3 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.099e-05/0.8317, allocations: 154.5 kB / 1.171 GB, free: 15.15 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003235/0.832, allocations: 465.9 kB / 1.171 GB, free: 14.65 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 8.738e-05/0.8321, allocations: 173.2 kB / 1.171 GB, free: 14.47 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.278e-05/0.8321, allocations: 84.12 kB / 1.171 GB, free: 14.38 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 3.28e-05/0.8322, allocations: 79.22 kB / 1.171 GB, free: 14.3 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.99e-05/0.8322, allocations: 113.8 kB / 1.171 GB, free: 14.18 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=0): time 1.092e-06/0.8322, allocations: 3.938 kB / 1.171 GB, free: 14.18 MB / 0.9044 GB Notification: Performance of matching and sorting (n=0): time 0.0001077/0.8323, allocations: 33.66 kB / 1.171 GB, free: 14.14 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.454e-05/0.8324, allocations: 130.7 kB / 1.172 GB, free: 14 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001651/0.8326, allocations: 148 kB / 1.172 GB, free: 13.85 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 2.07e-05/0.8326, allocations: 25.7 kB / 1.172 GB, free: 13.82 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 6.613e-05/0.8327, allocations: 96.09 kB / 1.172 GB, free: 13.72 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 2.394e-06/0.8327, allocations: 0 / 1.172 GB, free: 13.72 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.78e-05/0.8328, allocations: 45.69 kB / 1.172 GB, free: 13.67 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001122/0.8329, allocations: 314.8 kB / 1.172 GB, free: 13.35 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001243/0.833, allocations: 63.94 kB / 1.172 GB, free: 13.29 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.666e-05/0.8331, allocations: 59.95 kB / 1.172 GB, free: 13.23 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001254/0.8333, allocations: 98.39 kB / 1.172 GB, free: 13.12 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.597e-06/0.8333, allocations: 4 kB / 1.172 GB, free: 13.12 MB / 0.9044 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0003819/0.8337, allocations: 231.2 kB / 1.173 GB, free: 12.88 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 5.301e-05/0.8337, allocations: 45.67 kB / 1.173 GB, free: 12.83 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.929e-06/0.8337, allocations: 0 / 1.173 GB, free: 12.83 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.276e-05/0.8338, allocations: 0 / 1.173 GB, free: 12.83 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.022e-06/0.8338, allocations: 0 / 1.173 GB, free: 12.83 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.629e-06/0.8338, allocations: 0 / 1.173 GB, free: 12.83 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000338/0.8341, allocations: 28 kB / 1.173 GB, free: 12.8 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.912e-05/0.8342, allocations: 11.98 kB / 1.173 GB, free: 12.79 MB / 0.9044 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.0001195/0.8343, allocations: 201.1 kB / 1.173 GB, free: 12.59 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.908e-05/0.8344, allocations: 112.9 kB / 1.173 GB, free: 12.47 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.567e-05/0.8344, allocations: 112.5 kB / 1.173 GB, free: 12.35 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.557e-05/0.8345, allocations: 184.2 kB / 1.173 GB, free: 12.16 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.369e-05/0.8346, allocations: 184.2 kB / 1.173 GB, free: 11.97 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.09e-05/0.8346, allocations: 184.3 kB / 1.174 GB, free: 11.79 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002231/0.8348, allocations: 413.2 kB / 1.174 GB, free: 11.32 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.329e-05/0.8349, allocations: 108.9 kB / 1.174 GB, free: 11.21 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.32e-05/0.8349, allocations: 101 kB / 1.174 GB, free: 11.11 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.66e-05/0.835, allocations: 188.2 kB / 1.174 GB, free: 10.91 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.389e-05/0.8351, allocations: 180.3 kB / 1.175 GB, free: 10.73 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.352e-05/0.8351, allocations: 184.2 kB / 1.175 GB, free: 10.54 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.896e-05/0.8352, allocations: 176.3 kB / 1.175 GB, free: 10.36 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001396/0.8353, allocations: 315.7 kB / 1.175 GB, free: 10.03 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 7.709e-05/0.8354, allocations: 194 kB / 1.175 GB, free: 9.816 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.33e-05/0.8355, allocations: 180.2 kB / 1.176 GB, free: 9.633 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.544e-05/0.8356, allocations: 101 kB / 1.176 GB, free: 9.527 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.204e-05/0.8357, allocations: 188.2 kB / 1.176 GB, free: 9.336 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.183e-05/0.8357, allocations: 101 kB / 1.176 GB, free: 9.23 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 7.593e-05/0.8358, allocations: 103.3 kB / 1.176 GB, free: 9.129 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.6e-07/0.8358, allocations: 4 kB / 1.176 GB, free: 9.125 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.00037/0.8362, allocations: 75.72 kB / 1.176 GB, free: 9.051 MB / 0.9044 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 (0): * Single equations (assignments): 0 * Array equations: 0 * 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.001093/0.8373, allocations: 1.034 MB / 1.177 GB, free: 8.066 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0002932/0.8376, allocations: 215.3 kB / 1.177 GB, free: 7.844 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.8376, allocations: 0 / 1.177 GB, free: 7.844 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 2.916e-06/0.8376, allocations: 64 / 1.177 GB, free: 7.844 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003545/0.838, allocations: 463.7 kB / 1.178 GB, free: 7.387 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001842/0.8398, allocations: 1.858 MB / 1.18 GB, free: 5.441 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000249/0.8401, allocations: 0.6807 MB / 1.18 GB, free: 4.734 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 7.729e-05/0.8402, allocations: 51.81 kB / 1.18 GB, free: 4.684 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.445e-05/0.8402, allocations: 11.44 kB / 1.18 GB, free: 4.672 MB / 0.9044 GB Notification: Performance of SimCode: time 3.2e-07/0.8402, allocations: 4.031 kB / 1.18 GB, free: 4.668 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02319/0.8634, allocations: 3.733 MB / 1.184 GB, free: 0.9922 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.025/8.888, allocations: 7.625 kB / 1.184 GB, free: 0.9883 MB / 0.9044 GB (rm -f Buildings_10_Buildings.Utilities.IO.Python_3_8.Functions.Examples.Exchange.pipe ; mkfifo Buildings_10_Buildings.Utilities.IO.Python_3_8.Functions.Examples.Exchange.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.IO.Python_3_8.Functions.Examples.Exchange.pipe >> ../files/Buildings_10_Buildings.Utilities.IO.Python_3_8.Functions.Examples.Exchange.sim & python3 -m fmpy simulate --output-file Buildings_10_Buildings.Utilities.IO.Python_3_8.Functions.Examples.Exchange_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_10_Buildings_Utilities_IO_Python_3_8_Functions_Examples_Exchange.fmu > Buildings_10_Buildings.Utilities.IO.Python_3_8.Functions.Examples.Exchange.pipe 2>&1)