Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Airflow.Multizone.Examples.ReverseBuoyancy.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.ReverseBuoyancy,fileNamePrefix="BuildingSystems_BuildingSystems_Airflow_Multizone_Examples_ReverseBuoyancy",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Airflow.Multizone.Examples.ReverseBuoyancy,fileNamePrefix="BuildingSystems_BuildingSystems_Airflow_Multizone_Examples_ReverseBuoyancy",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.005173/0.005173, allocations: 97.62 kB / 15.73 MB, free: 6.047 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.001171/0.001171, allocations: 202.3 kB / 16.68 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.282/1.282, allocations: 222.9 MB / 240.4 MB, free: 4.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002141/0.002141, allocations: 286.5 kB / 290.8 MB, free: 1.941 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9066/0.9066, allocations: 169.3 MB / 0.4983 GB, free: 13.81 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001671/0.001671, allocations: 95.84 kB / 0.681 GB, free: 4 kB / 478.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1615/0.1632, allocations: 86.97 MB / 0.7659 GB, free: 8.953 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Airflow.Multizone.Examples.ReverseBuoyancy): time 0.6445/0.8077, allocations: 314.1 MB / 1.073 GB, free: 8.516 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0262/0.8339, allocations: 18.46 MB / 1.091 GB, free: 6.012 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003916/0.8379, allocations: 95.5 kB / 1.091 GB, free: 5.918 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.005734/0.8437, allocations: 2.242 MB / 1.093 GB, free: 3.664 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.4939/1.338, allocations: 7.52 MB / 1.1 GB, free: 5.066 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.009181/1.347, allocations: 3.268 MB / 1.104 GB, free: 5.055 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.01364/1.36, allocations: 9.118 MB / 1.112 GB, free: 5.039 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.005943/1.366, allocations: 3.113 MB / 1.115 GB, free: 20.71 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.008083/1.375, allocations: 3.392 MB / 1.119 GB, free: 20.71 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.007809/1.382, allocations: 3.23 MB / 1.122 GB, free: 20.7 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 0.001756/1.384, allocations: 402.7 kB / 1.122 GB, free: 20.7 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.018/1.402, allocations: 7.036 MB / 1.129 GB, free: 20.66 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.003977/1.406, allocations: 1.687 MB / 1.131 GB, free: 20.66 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.00793/1.414, allocations: 2.307 MB / 1.133 GB, free: 20.66 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.02085/1.435, allocations: 8.221 MB / 1.141 GB, free: 19.73 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 6.622e-06/1.435, allocations: 0.7812 kB / 1.141 GB, free: 19.73 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.765e-06/1.435, allocations: 2.875 kB / 1.141 GB, free: 19.73 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 0.0003084/1.435, allocations: 0.8438 kB / 1.141 GB, free: 19.73 MB / 0.8575 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 843 * Number of variables: 843 Notification: Performance of Generate backend data structure: time 0.01821/1.454, allocations: 5.116 MB / 1.146 GB, free: 17.7 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.849e-05/1.454, allocations: 11.69 kB / 1.146 GB, free: 17.7 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001783/1.455, allocations: 457.9 kB / 1.147 GB, free: 17.64 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007782/1.463, allocations: 1.037 MB / 1.148 GB, free: 17.41 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00596/1.469, allocations: 2.26 MB / 1.15 GB, free: 16.82 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002752/1.47, allocations: 242.3 kB / 1.15 GB, free: 16.82 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001447/1.471, allocations: 330.4 kB / 1.15 GB, free: 16.81 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01136/1.482, allocations: 4.236 MB / 1.154 GB, free: 16.52 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001831/1.483, allocations: 7.266 kB / 1.154 GB, free: 16.52 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001007/1.484, allocations: 137.7 kB / 1.155 GB, free: 16.52 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001971/1.484, allocations: 168.1 kB / 1.155 GB, free: 16.51 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009851/1.494, allocations: 4.782 MB / 1.159 GB, free: 16.48 MB / 0.8575 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.02645/1.52, allocations: 14.47 MB / 1.174 GB, free: 10 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007112/1.527, allocations: 4.553 MB / 1.178 GB, free: 9.859 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004233/1.532, allocations: 2.455 MB / 1.18 GB, free: 9.832 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001946/1.534, allocations: 1.607 MB / 1.182 GB, free: 8.141 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.763e-05/1.534, allocations: 81.11 kB / 1.182 GB, free: 8.098 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=392): time 1.106e-05/1.534, allocations: 0 / 1.182 GB, free: 8.098 MB / 0.8575 GB Notification: Performance of matching and sorting (n=392): time 0.01133/1.545, allocations: 5.549 MB / 1.187 GB, free: 7.801 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.19e-05/1.545, allocations: 94.08 kB / 1.188 GB, free: 7.734 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003047/1.548, allocations: 1.683 MB / 1.189 GB, free: 7.484 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 0.0005967/1.549, allocations: 96.2 kB / 1.189 GB, free: 7.453 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009186/1.55, allocations: 1.154 MB / 1.19 GB, free: 6.891 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 0.001759/1.552, allocations: 1.394 MB / 1.192 GB, free: 5.855 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001796/1.553, allocations: 0.5459 MB / 1.192 GB, free: 5.773 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.000108/1.553, allocations: 304.2 kB / 1.193 GB, free: 5.477 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002892/1.556, allocations: 1.564 MB / 1.194 GB, free: 5.242 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003284/1.56, allocations: 1.916 MB / 1.196 GB, free: 4.762 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006348/1.566, allocations: 3.763 MB / 1.2 GB, free: 3.5 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.493e-05/1.566, allocations: 4.938 kB / 1.2 GB, free: 3.496 MB / 0.8575 GB Notification: Performance of matching and sorting (n=430) (initialization): time 0.01074/1.577, allocations: 4.195 MB / 1.204 GB, free: 0.6562 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 4.939e-05/1.577, allocations: 7.938 kB / 1.204 GB, free: 0.6484 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.49e-05/1.577, allocations: 8.781 kB / 1.204 GB, free: 0.6406 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.692e-05/1.577, allocations: 16 kB / 1.204 GB, free: 0.625 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003498/1.581, allocations: 0.6962 MB / 1.204 GB, free: 15.99 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.601e-05/1.581, allocations: 27.03 kB / 1.205 GB, free: 15.97 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003428/1.584, allocations: 263.5 kB / 1.205 GB, free: 15.77 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004926/1.585, allocations: 120.2 kB / 1.205 GB, free: 15.68 MB / 0.8731 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * 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 (430): * Single equations (assignments): 430 * 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.002199/1.587, allocations: 0.7961 MB / 1.206 GB, free: 15.21 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001254/1.588, allocations: 314.9 kB / 1.206 GB, free: 14.9 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008776/1.597, allocations: 4.425 MB / 1.21 GB, free: 12.05 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.369e-05/1.597, allocations: 40.94 kB / 1.21 GB, free: 12.02 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.61e-05/1.597, allocations: 0 / 1.21 GB, free: 12.02 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00612/1.603, allocations: 3.797 MB / 1.214 GB, free: 9.391 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01811/1.621, allocations: 8.651 MB / 1.222 GB, free: 0.8125 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.763e-05/1.621, allocations: 4 kB / 1.222 GB, free: 0.8086 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0036/1.625, allocations: 0.7255 MB / 1.223 GB, free: 124 kB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.58e-05/1.625, allocations: 16 kB / 1.223 GB, free: 108 kB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004208/1.625, allocations: 83.98 kB / 1.223 GB, free: 24 kB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.622e-05/1.625, allocations: 15.94 kB / 1.223 GB, free: 8 kB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.033e-06/1.626, allocations: 7.188 kB / 1.223 GB, free: 4 kB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01166/1.637, allocations: 6.596 MB / 1.23 GB, free: 9.32 MB / 0.8887 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002656/1.64, allocations: 0.8029 MB / 1.231 GB, free: 8.496 MB / 0.8887 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009723/1.641, allocations: 71.98 kB / 1.231 GB, free: 8.426 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002857/1.644, allocations: 85.89 kB / 1.231 GB, free: 8.344 MB / 0.8887 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005334/1.644, allocations: 234.7 kB / 1.231 GB, free: 8.113 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003437/1.645, allocations: 116 kB / 1.231 GB, free: 8 MB / 0.8887 GB Notification: Performance of sorting global known variables: time 0.002564/1.647, allocations: 1.16 MB / 1.232 GB, free: 6.82 MB / 0.8887 GB Notification: Performance of sort global known variables: time 2.6e-07/1.647, allocations: 0 / 1.232 GB, free: 6.82 MB / 0.8887 GB Notification: Performance of remove unused functions: time 0.004393/1.652, allocations: 1.233 MB / 1.233 GB, free: 5.586 MB / 0.8887 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 11 * Number of states: 20 (volBotEas.dynBal.medium.Xi[1],volBotEas.dynBal.U,volBotEas.dynBal.m,oriOutBot.mExc,oriOutTop.mExc,oriWesTop.mExc,dooOpeClo.mExcAB,dooOpeClo.mExcBA,volBotWes.dynBal.medium.Xi[1],volBotWes.dynBal.U,volBotWes.dynBal.m,oriEasTop.mExc,volTopEas.dynBal.medium.Xi[1],volTopEas.dynBal.U,volTopEas.dynBal.m,volTopWes.dynBal.medium.Xi[1],volTopWes.dynBal.U,volTopWes.dynBal.m,dooOpeCloTop.mExcAB,dooOpeCloTop.mExcBA) * 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 (392): * Single equations (assignments): 392 * 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.01248/1.664, allocations: 7.497 MB / 1.241 GB, free: 14.06 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.007124/1.671, allocations: 3.947 MB / 1.245 GB, free: 10.15 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 1.026e-05/1.671, allocations: 3.469 kB / 1.245 GB, free: 10.15 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.003623/1.675, allocations: 2.155 MB / 1.247 GB, free: 8.078 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009359/1.684, allocations: 1.595 MB / 1.248 GB, free: 6.523 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05264/1.737, allocations: 25.82 MB / 1.273 GB, free: 12.42 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00284/1.74, allocations: 2.201 MB / 1.276 GB, free: 10.18 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 0.00548/1.745, allocations: 1.216 MB / 1.277 GB, free: 8.961 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003363/1.749, allocations: 1.386 MB / 1.278 GB, free: 7.578 MB / 0.9356 GB Notification: Performance of SimCode: time 1.303e-06/1.749, allocations: 0 / 1.278 GB, free: 7.578 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1473/1.896, allocations: 85.58 MB / 1.362 GB, free: 3.094 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.9/15.79, allocations: 10.58 kB / 1.362 GB, free: 3.086 MB / 1.014 GB (rm -f BuildingSystems_BuildingSystems.Airflow.Multizone.Examples.ReverseBuoyancy.pipe ; mkfifo BuildingSystems_BuildingSystems.Airflow.Multizone.Examples.ReverseBuoyancy.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Airflow.Multizone.Examples.ReverseBuoyancy.pipe >> ../files/BuildingSystems_BuildingSystems.Airflow.Multizone.Examples.ReverseBuoyancy.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Airflow.Multizone.Examples.ReverseBuoyancy_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_ReverseBuoyancy.fmu > BuildingSystems_BuildingSystems.Airflow.Multizone.Examples.ReverseBuoyancy.pipe 2>&1)