Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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_latest_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_latest_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.00745/0.00745, allocations: 98.38 kB / 15.73 MB, free: 6.445 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.002157/0.002157, allocations: 201.4 kB / 16.68 MB, free: 6.352 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.463/1.463, allocations: 222.9 MB / 240.4 MB, free: 4.281 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.867/2.867, allocations: 482.4 MB / 0.7548 GB, free: 10.8 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.003363/0.003363, allocations: 67.89 kB / 1.083 GB, free: 12.54 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3232/0.3266, allocations: 162.2 MB / 1.241 GB, free: 10.2 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Python_3_8.Functions.Examples.Exchange): time 0.001797/0.3284, allocations: 0.5505 MB / 1.242 GB, free: 9.652 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.001746/0.3302, allocations: 1.187 MB / 1.243 GB, free: 8.457 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.198e-05/0.3302, allocations: 0 / 1.243 GB, free: 8.457 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 9.316e-05/0.3304, allocations: 7.984 kB / 1.243 GB, free: 8.449 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 4.828e-05/0.3304, allocations: 11.92 kB / 1.243 GB, free: 8.438 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007112/0.3311, allocations: 279.3 kB / 1.243 GB, free: 8.164 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.0001569/0.3313, allocations: 71.88 kB / 1.244 GB, free: 8.094 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 4.496e-05/0.3314, allocations: 11.94 kB / 1.244 GB, free: 8.082 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 5.875e-05/0.3314, allocations: 39.89 kB / 1.244 GB, free: 8.043 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001/0.3315, allocations: 39.91 kB / 1.244 GB, free: 8.004 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 2.898e-05/0.3316, allocations: 4 kB / 1.244 GB, free: 8 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004238/0.332, allocations: 207.6 kB / 1.244 GB, free: 7.797 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 2.457e-05/0.332, allocations: 8 kB / 1.244 GB, free: 7.789 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 6.78e-05/0.3321, allocations: 31.84 kB / 1.244 GB, free: 7.758 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0003848/0.3325, allocations: 259.3 kB / 1.244 GB, free: 7.504 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 3.256e-06/0.3325, allocations: 0 / 1.244 GB, free: 7.504 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.483e-06/0.3325, allocations: 0 / 1.244 GB, free: 7.504 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 4.829e-06/0.3325, allocations: 0 / 1.244 GB, free: 7.504 MB / 0.9981 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.0004833/0.333, allocations: 456.4 kB / 1.245 GB, free: 7.004 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.56e-05/0.333, allocations: 8.031 kB / 1.245 GB, free: 6.996 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.365e-05/0.3331, allocations: 106 kB / 1.245 GB, free: 6.883 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.4e-05/0.3332, allocations: 84.22 kB / 1.245 GB, free: 6.801 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001919/0.3334, allocations: 259.5 kB / 1.245 GB, free: 6.508 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.011e-05/0.3335, allocations: 154.9 kB / 1.245 GB, free: 6.355 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.208e-05/0.3336, allocations: 158.9 kB / 1.245 GB, free: 6.199 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.822e-05/0.3337, allocations: 112.8 kB / 1.245 GB, free: 6.082 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.217e-05/0.3337, allocations: 75.28 kB / 1.245 GB, free: 6.008 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.442e-05/0.3338, allocations: 150.6 kB / 1.246 GB, free: 5.859 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.687e-05/0.3338, allocations: 150.6 kB / 1.246 GB, free: 5.711 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.596e-05/0.3339, allocations: 158.6 kB / 1.246 GB, free: 5.555 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003437/0.3342, allocations: 477.8 kB / 1.246 GB, free: 5.039 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 9.005e-05/0.3343, allocations: 173.1 kB / 1.246 GB, free: 4.859 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.653e-05/0.3344, allocations: 80.14 kB / 1.247 GB, free: 4.777 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 3.461e-05/0.3344, allocations: 79.22 kB / 1.247 GB, free: 4.699 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.106e-05/0.3345, allocations: 109.8 kB / 1.247 GB, free: 4.582 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=0): time 8.92e-07/0.3345, allocations: 0 / 1.247 GB, free: 4.582 MB / 0.9981 GB Notification: Performance of matching and sorting (n=0): time 9.54e-05/0.3346, allocations: 37.66 kB / 1.247 GB, free: 4.539 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.365e-05/0.3347, allocations: 126.7 kB / 1.247 GB, free: 4.402 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001572/0.3348, allocations: 137.8 kB / 1.247 GB, free: 4.258 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 2.485e-05/0.3348, allocations: 33.64 kB / 1.247 GB, free: 4.219 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 6.501e-05/0.3349, allocations: 92.09 kB / 1.247 GB, free: 4.125 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 1.813e-06/0.3349, allocations: 4 kB / 1.247 GB, free: 4.121 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.412e-05/0.335, allocations: 45.69 kB / 1.247 GB, free: 4.07 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001277/0.3352, allocations: 314.8 kB / 1.248 GB, free: 3.754 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001244/0.3353, allocations: 63.94 kB / 1.248 GB, free: 3.691 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001138/0.3354, allocations: 60.02 kB / 1.248 GB, free: 3.633 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001354/0.3355, allocations: 94.52 kB / 1.248 GB, free: 3.531 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.863e-06/0.3356, allocations: 0 / 1.248 GB, free: 3.531 MB / 0.9981 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0003996/0.336, allocations: 231.2 kB / 1.248 GB, free: 3.293 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 5.154e-05/0.336, allocations: 45.69 kB / 1.248 GB, free: 3.242 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.098e-06/0.336, allocations: 4.062 kB / 1.248 GB, free: 3.238 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.091e-05/0.336, allocations: 4 kB / 1.248 GB, free: 3.234 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.715e-06/0.3361, allocations: 3.938 kB / 1.248 GB, free: 3.23 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.787e-06/0.3361, allocations: 0 / 1.248 GB, free: 3.23 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003024/0.3364, allocations: 23.88 kB / 1.248 GB, free: 3.207 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.387e-05/0.3364, allocations: 15.98 kB / 1.248 GB, free: 3.191 MB / 0.9981 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.0001362/0.3366, allocations: 205.6 kB / 1.248 GB, free: 2.98 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.03e-05/0.3367, allocations: 116.9 kB / 1.248 GB, free: 2.859 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.073e-05/0.3367, allocations: 112.5 kB / 1.248 GB, free: 2.738 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.218e-05/0.3368, allocations: 180.2 kB / 1.249 GB, free: 2.555 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.225e-05/0.3369, allocations: 180.2 kB / 1.249 GB, free: 2.371 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.74e-05/0.337, allocations: 188.2 kB / 1.249 GB, free: 2.18 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002603/0.3372, allocations: 413.2 kB / 1.249 GB, free: 1.719 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.357e-05/0.3373, allocations: 104.9 kB / 1.249 GB, free: 1.609 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.842e-05/0.3373, allocations: 112.9 kB / 1.25 GB, free: 1.492 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.223e-05/0.3374, allocations: 176.3 kB / 1.25 GB, free: 1.312 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.357e-05/0.3375, allocations: 180.2 kB / 1.25 GB, free: 1.129 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.447e-05/0.3376, allocations: 180.3 kB / 1.25 GB, free: 0.9453 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.626e-05/0.3376, allocations: 188.2 kB / 1.25 GB, free: 0.7539 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001549/0.3378, allocations: 303.8 kB / 1.251 GB, free: 444 kB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 9.081e-05/0.3379, allocations: 193.9 kB / 1.251 GB, free: 224 kB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.371e-05/0.338, allocations: 180.3 kB / 1.251 GB, free: 36 kB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.5013/0.8393, allocations: 109.5 kB / 1.251 GB, free: 15.53 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.879e-05/0.8394, allocations: 179 kB / 1.251 GB, free: 15.35 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.216e-05/0.8394, allocations: 101.5 kB / 1.251 GB, free: 15.25 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 8.989e-05/0.8395, allocations: 106.4 kB / 1.251 GB, free: 15.17 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.2e-07/0.8395, allocations: 0.625 kB / 1.251 GB, free: 15.17 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0004162/0.8399, allocations: 70.52 kB / 1.251 GB, free: 15.17 MB / 0.9981 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.001022/0.841, allocations: 1.045 MB / 1.252 GB, free: 14.36 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0002664/0.8412, allocations: 216.2 kB / 1.253 GB, free: 14.29 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.874e-06/0.8413, allocations: 0.9062 kB / 1.253 GB, free: 14.29 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 2.094e-06/0.8413, allocations: 0 / 1.253 GB, free: 14.29 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000243/0.8415, allocations: 465.7 kB / 1.253 GB, free: 13.84 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001434/0.843, allocations: 1.846 MB / 1.255 GB, free: 12.52 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.22e-05/0.8431, allocations: 0.6799 MB / 1.256 GB, free: 11.82 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 7.975e-05/0.8431, allocations: 48.33 kB / 1.256 GB, free: 11.82 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.05e-05/0.8432, allocations: 16.34 kB / 1.256 GB, free: 11.82 MB / 0.9981 GB Notification: Performance of SimCode: time 2.5e-07/0.8432, allocations: 0 / 1.256 GB, free: 11.82 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02477/0.8679, allocations: 3.737 MB / 1.259 GB, free: 11.14 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.844/8.712, allocations: 12.92 kB / 1.259 GB, free: 11.12 MB / 0.9981 GB (rm -f Buildings_latest_Buildings.Utilities.IO.Python_3_8.Functions.Examples.Exchange.pipe ; mkfifo Buildings_latest_Buildings.Utilities.IO.Python_3_8.Functions.Examples.Exchange.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.IO.Python_3_8.Functions.Examples.Exchange.pipe >> ../files/Buildings_latest_Buildings.Utilities.IO.Python_3_8.Functions.Examples.Exchange.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Utilities.IO.Python_3_8.Functions.Examples.Exchange_res.csv --start-time 0 --stop-time 1 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_latest_Buildings_Utilities_IO_Python_3_8_Functions_Examples_Exchange.fmu > Buildings_latest_Buildings.Utilities.IO.Python_3_8.Functions.Examples.Exchange.pipe 2>&1)