Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Airflow.Multizone.Examples.ReverseBuoyancy3Zones.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-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(BuildingSystems.Airflow.Multizone.Examples.ReverseBuoyancy3Zones,fileNamePrefix="BuildingSystems_BuildingSystems_Airflow_Multizone_Examples_ReverseBuoyancy3Zones",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Airflow.Multizone.Examples.ReverseBuoyancy3Zones,fileNamePrefix="BuildingSystems_BuildingSystems_Airflow_Multizone_Examples_ReverseBuoyancy3Zones",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.005441/0.005441, allocations: 99.45 kB / 15.73 MB, free: 6.059 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.001225/0.001225, allocations: 194.2 kB / 16.67 MB, free: 5.969 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.228/1.228, 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/NcDataReader2 2.5.1-master/package.mo): time 0.002005/0.002005, allocations: 280.4 kB / 290.8 MB, free: 14.43 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8875/0.8875, allocations: 169.2 MB / 0.4983 GB, free: 4.43 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001787/0.001787, allocations: 87.86 kB / 0.681 GB, free: 7.477 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4125/0.4143, allocations: 86.98 MB / 0.7659 GB, free: 3.875 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Airflow.Multizone.Examples.ReverseBuoyancy3Zones): time 0.6828/1.097, allocations: 295.1 MB / 1.054 GB, free: 0.5039 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.02275/1.12, allocations: 17.02 MB / 1.071 GB, free: 13.62 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004511/1.124, allocations: 81.72 kB / 1.071 GB, free: 13.62 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.004979/1.129, allocations: 1.969 MB / 1.073 GB, free: 13.21 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.01683/1.146, allocations: 6.635 MB / 1.079 GB, free: 10.68 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.008403/1.155, allocations: 2.977 MB / 1.082 GB, free: 8.988 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.01042/1.165, allocations: 7.713 MB / 1.09 GB, free: 5.004 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.004536/1.17, allocations: 2.607 MB / 1.092 GB, free: 2.398 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00609/1.176, allocations: 2.843 MB / 1.095 GB, free: 15.93 MB / 0.7481 GB Notification: Performance of NFSimplifyModel.simplify: time 0.005511/1.181, allocations: 2.71 MB / 1.098 GB, free: 13.5 MB / 0.7481 GB Notification: Performance of NFPackage.collectConstants: time 0.001146/1.183, allocations: 328 kB / 1.098 GB, free: 13.18 MB / 0.7481 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01349/1.196, allocations: 6.195 MB / 1.104 GB, free: 7.797 MB / 0.7481 GB Notification: Performance of NFScalarize.scalarize: time 0.002302/1.198, allocations: 1.337 MB / 1.105 GB, free: 6.477 MB / 0.7481 GB Notification: Performance of NFVerifyModel.verify: time 0.004136/1.203, allocations: 1.879 MB / 1.107 GB, free: 4.605 MB / 0.7481 GB Notification: Performance of NFConvertDAE.convert: time 0.01515/1.218, allocations: 6.908 MB / 1.114 GB, free: 14.04 MB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 5.891e-06/1.218, allocations: 0 / 1.114 GB, free: 14.04 MB / 0.7637 GB Notification: Performance of FrontEnd: time 1.593e-06/1.218, allocations: 0 / 1.114 GB, free: 14.04 MB / 0.7637 GB Notification: Performance of Transformations before backend: time 7.016e-05/1.218, allocations: 4 kB / 1.114 GB, free: 14.04 MB / 0.7637 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 669 * Number of variables: 669 Notification: Performance of Generate backend data structure: time 0.009919/1.228, allocations: 4.241 MB / 1.118 GB, free: 9.75 MB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 4.201e-05/1.228, allocations: 8.031 kB / 1.118 GB, free: 9.742 MB / 0.7637 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004399/1.228, allocations: 370.9 kB / 1.118 GB, free: 9.375 MB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005941/1.234, allocations: 0.9292 MB / 1.119 GB, free: 8.449 MB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003497/1.238, allocations: 1.934 MB / 1.121 GB, free: 6.496 MB / 0.7637 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000133/1.238, allocations: 199.5 kB / 1.121 GB, free: 6.301 MB / 0.7637 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003803/1.238, allocations: 258.9 kB / 1.122 GB, free: 6.051 MB / 0.7637 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005219/1.243, allocations: 3.328 MB / 1.125 GB, free: 2.629 MB / 0.7637 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.158e-05/1.244, allocations: 19.81 kB / 1.125 GB, free: 2.609 MB / 0.7637 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002493/1.244, allocations: 106.9 kB / 1.125 GB, free: 2.508 MB / 0.7637 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001326/1.244, allocations: 141 kB / 1.125 GB, free: 2.367 MB / 0.7637 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005474/1.249, allocations: 3.496 MB / 1.129 GB, free: 14.86 MB / 0.7794 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01526/1.265, allocations: 12.17 MB / 1.14 GB, free: 1.918 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004387/1.269, allocations: 3.513 MB / 1.144 GB, free: 14.34 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002716/1.272, allocations: 1.845 MB / 1.146 GB, free: 12.49 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001436/1.273, allocations: 1.494 MB / 1.147 GB, free: 10.69 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.288e-05/1.273, allocations: 68.75 kB / 1.147 GB, free: 10.61 MB / 0.795 GB Notification: Performance of pre-optimization done (n=278): time 4.518e-06/1.273, allocations: 0 / 1.147 GB, free: 10.61 MB / 0.795 GB Notification: Performance of matching and sorting (n=278): time 0.006251/1.28, allocations: 3.894 MB / 1.151 GB, free: 6.668 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.064e-05/1.28, allocations: 81.59 kB / 1.151 GB, free: 6.574 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001764/1.281, allocations: 1.379 MB / 1.152 GB, free: 5.188 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 0.0001598/1.282, allocations: 81.7 kB / 1.152 GB, free: 5.102 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006581/1.282, allocations: 1.001 MB / 1.153 GB, free: 4.094 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007863/1.283, allocations: 0.9917 MB / 1.154 GB, free: 3.113 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000588/1.284, allocations: 409 kB / 1.155 GB, free: 2.707 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 9.162e-05/1.284, allocations: 305.1 kB / 1.155 GB, free: 2.406 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001667/1.285, allocations: 1.094 MB / 1.156 GB, free: 1.309 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001882/1.287, allocations: 1.358 MB / 1.157 GB, free: 15.88 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00379/1.291, allocations: 2.65 MB / 1.16 GB, free: 13.14 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.434e-06/1.291, allocations: 4 kB / 1.16 GB, free: 13.14 MB / 0.8106 GB Notification: Performance of matching and sorting (n=311) (initialization): time 0.004749/1.296, allocations: 2.983 MB / 1.163 GB, free: 10.11 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 2.103e-05/1.296, allocations: 8.094 kB / 1.163 GB, free: 10.1 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.389e-05/1.296, allocations: 8 kB / 1.163 GB, free: 10.09 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.672e-05/1.296, allocations: 12 kB / 1.163 GB, free: 10.08 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002117/1.298, allocations: 0.5148 MB / 1.164 GB, free: 9.566 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.669e-05/1.298, allocations: 23.88 kB / 1.164 GB, free: 9.543 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002019/1.3, allocations: 190.5 kB / 1.164 GB, free: 9.355 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001493/1.3, allocations: 83.98 kB / 1.164 GB, free: 9.273 MB / 0.8106 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * 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 (311): * Single equations (assignments): 311 * 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 prepare postOptimizeDAE: time 0.001139/1.301, allocations: 0.6479 MB / 1.164 GB, free: 8.617 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004446/1.302, allocations: 238.5 kB / 1.165 GB, free: 8.383 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004788/1.307, allocations: 3.112 MB / 1.168 GB, free: 5.215 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.901e-05/1.307, allocations: 28 kB / 1.168 GB, free: 5.188 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.877e-06/1.307, allocations: 0 / 1.168 GB, free: 5.188 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003723/1.31, allocations: 2.665 MB / 1.17 GB, free: 2.453 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00944/1.32, allocations: 6.202 MB / 1.176 GB, free: 12.22 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.466e-06/1.32, allocations: 11.92 kB / 1.176 GB, free: 12.21 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002426/1.322, allocations: 0.5384 MB / 1.177 GB, free: 11.67 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.432e-05/1.322, allocations: 12 kB / 1.177 GB, free: 11.66 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001423/1.323, allocations: 59.97 kB / 1.177 GB, free: 11.6 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.029e-05/1.323, allocations: 8 kB / 1.177 GB, free: 11.59 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/1.323, allocations: 4 kB / 1.177 GB, free: 11.59 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006458/1.329, allocations: 4.586 MB / 1.181 GB, free: 6.922 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001422/1.33, allocations: 0.6159 MB / 1.182 GB, free: 6.285 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003236/1.331, allocations: 55.98 kB / 1.182 GB, free: 6.23 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001527/1.332, allocations: 62.77 kB / 1.182 GB, free: 6.172 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002832/1.333, allocations: 165.9 kB / 1.182 GB, free: 6.008 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001522/1.333, allocations: 83.98 kB / 1.182 GB, free: 5.926 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.00129/1.334, allocations: 0.9423 MB / 1.183 GB, free: 4.988 MB / 0.8262 GB Notification: Performance of sort global known variables: time 2.3e-07/1.334, allocations: 0 / 1.183 GB, free: 4.988 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.002035/1.336, allocations: 0.9906 MB / 1.184 GB, free: 3.996 MB / 0.8262 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 18 (volEas.dynBal.medium.Xi[1],volEas.dynBal.U,volEas.dynBal.m,oriOutBot.mExc,oriOutTop.mExc,volOut.dynBal.medium.Xi[1],volOut.dynBal.U,volOut.dynBal.m,oriWesTop.mExc,dooOpeClo.mExcAB,dooOpeClo.mExcBA,oriEasTop.mExc,volTop.dynBal.medium.Xi[1],volTop.dynBal.U,volTop.dynBal.m,volWes.dynBal.medium.Xi[1],volWes.dynBal.U,volWes.dynBal.m) * 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 (278): * Single equations (assignments): 278 * 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.007052/1.343, allocations: 5.402 MB / 1.19 GB, free: 14.52 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.004187/1.347, allocations: 2.774 MB / 1.192 GB, free: 11.71 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 3.947e-06/1.347, allocations: 0 / 1.192 GB, free: 11.71 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.002004/1.349, allocations: 1.507 MB / 1.194 GB, free: 10.2 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005524/1.355, allocations: 1.345 MB / 1.195 GB, free: 8.883 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02723/1.382, allocations: 19.54 MB / 1.214 GB, free: 4.996 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001594/1.384, allocations: 1.903 MB / 1.216 GB, free: 3.055 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.003463/1.387, allocations: 0.8358 MB / 1.217 GB, free: 2.215 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00177/1.389, allocations: 1.097 MB / 1.218 GB, free: 1.117 MB / 0.8575 GB Notification: Performance of SimCode: time 1.523e-06/1.389, allocations: 0 / 1.218 GB, free: 1.117 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.115/1.504, allocations: 68.28 MB / 1.285 GB, free: 13.68 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.17/13.68, allocations: 25.44 kB / 1.285 GB, free: 13.66 MB / 0.9356 GB (rm -f BuildingSystems_BuildingSystems.Airflow.Multizone.Examples.ReverseBuoyancy3Zones.pipe ; mkfifo BuildingSystems_BuildingSystems.Airflow.Multizone.Examples.ReverseBuoyancy3Zones.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Airflow.Multizone.Examples.ReverseBuoyancy3Zones.pipe >> ../files/BuildingSystems_BuildingSystems.Airflow.Multizone.Examples.ReverseBuoyancy3Zones.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Airflow.Multizone.Examples.ReverseBuoyancy3Zones_res.csv --start-time 0 --stop-time 3600 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1.44 BuildingSystems_BuildingSystems_Airflow_Multizone_Examples_ReverseBuoyancy3Zones.fmu > BuildingSystems_BuildingSystems.Airflow.Multizone.Examples.ReverseBuoyancy3Zones.pipe 2>&1)