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.001463/0.001463, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001264/0.001264, allocations: 194.7 kB / 16.53 MB, free: 6.391 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.312/1.312, allocations: 222.9 MB / 240.2 MB, free: 4.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002097/0.002097, allocations: 290.5 kB / 290.7 MB, free: 2 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9436/0.9436, allocations: 169.2 MB / 0.4982 GB, free: 13.86 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001776/0.001776, allocations: 100.4 kB / 0.5953 GB, free: 28.06 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1366/0.1384, allocations: 86.98 MB / 0.6803 GB, free: 0.5625 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Airflow.Multizone.Examples.ReverseBuoyancy): time 0.5465/0.6849, allocations: 314.1 MB / 0.987 GB, free: 12.84 MB / 0.7012 GB Notification: Performance of NFInst.instExpressions: time 0.02623/0.7112, allocations: 18.46 MB / 1.005 GB, free: 10.34 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003042/0.7143, allocations: 91.5 kB / 1.005 GB, free: 10.25 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.00471/0.719, allocations: 2.152 MB / 1.007 GB, free: 8.086 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.01622/0.7353, allocations: 7.305 MB / 1.014 GB, free: 0.75 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.007802/0.7431, allocations: 3.21 MB / 1.018 GB, free: 13.55 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.01119/0.7543, allocations: 9.106 MB / 1.026 GB, free: 4.418 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.004207/0.7585, allocations: 3.117 MB / 1.029 GB, free: 1.25 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005512/0.7641, allocations: 3.29 MB / 1.033 GB, free: 13.95 MB / 0.7481 GB Notification: Performance of NFSimplifyModel.simplify: time 0.005042/0.7691, allocations: 3.231 MB / 1.036 GB, free: 10.72 MB / 0.7481 GB Notification: Performance of NFPackage.collectConstants: time 0.0006828/0.7698, allocations: 404 kB / 1.036 GB, free: 10.32 MB / 0.7481 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01259/0.7824, allocations: 7.003 MB / 1.043 GB, free: 3.305 MB / 0.7481 GB Notification: Performance of NFScalarize.scalarize: time 0.001711/0.7842, allocations: 1.679 MB / 1.045 GB, free: 1.621 MB / 0.7481 GB Notification: Performance of NFVerifyModel.verify: time 0.002792/0.787, allocations: 2.31 MB / 1.047 GB, free: 15.3 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.0118/0.7988, allocations: 8.127 MB / 1.055 GB, free: 7.152 MB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 5.16e-06/0.7988, allocations: 7.938 kB / 1.055 GB, free: 7.145 MB / 0.7637 GB Notification: Performance of FrontEnd: time 1.623e-06/0.7988, allocations: 0 / 1.055 GB, free: 7.145 MB / 0.7637 GB Notification: Performance of Transformations before backend: time 9.303e-05/0.7989, allocations: 4 kB / 1.055 GB, free: 7.141 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: 843 * Number of variables: 843 Notification: Performance of Generate backend data structure: time 0.01149/0.8104, allocations: 4.99 MB / 1.06 GB, free: 2.082 MB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 3.799e-05/0.8104, allocations: 8.031 kB / 1.06 GB, free: 2.074 MB / 0.7637 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005348/0.811, allocations: 459.5 kB / 1.06 GB, free: 1.613 MB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006249/0.8172, allocations: 1.018 MB / 1.061 GB, free: 0.5898 MB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2591/1.076, allocations: 2.147 MB / 1.063 GB, free: 293 MB / 0.7637 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001636/1.077, allocations: 245.7 kB / 1.064 GB, free: 293 MB / 0.7637 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005408/1.077, allocations: 325 kB / 1.064 GB, free: 293 MB / 0.7637 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006752/1.084, allocations: 4.24 MB / 1.068 GB, free: 291.4 MB / 0.7637 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.135e-05/1.084, allocations: 5.531 kB / 1.068 GB, free: 291.4 MB / 0.7637 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002945/1.084, allocations: 137.9 kB / 1.068 GB, free: 291.3 MB / 0.7637 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001688/1.084, allocations: 174 kB / 1.068 GB, free: 291.3 MB / 0.7637 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007105/1.092, allocations: 4.776 MB / 1.073 GB, free: 289.8 MB / 0.7637 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.0169/1.108, allocations: 14.53 MB / 1.087 GB, free: 280.5 MB / 0.7637 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006092/1.115, allocations: 4.553 MB / 1.092 GB, free: 278.5 MB / 0.7637 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003311/1.118, allocations: 2.455 MB / 1.094 GB, free: 277.3 MB / 0.7637 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001319/1.119, allocations: 1.606 MB / 1.096 GB, free: 275.5 MB / 0.7637 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.44e-05/1.119, allocations: 76.16 kB / 1.096 GB, free: 275.5 MB / 0.7637 GB Notification: Performance of pre-optimization done (n=392): time 5.83e-06/1.119, allocations: 4.875 kB / 1.096 GB, free: 275.5 MB / 0.7637 GB Notification: Performance of matching and sorting (n=392): time 0.008568/1.128, allocations: 5.534 MB / 1.101 GB, free: 272.8 MB / 0.7637 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.982e-05/1.128, allocations: 94.11 kB / 1.101 GB, free: 272.7 MB / 0.7637 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001995/1.13, allocations: 1.684 MB / 1.103 GB, free: 271.8 MB / 0.7637 GB Notification: Performance of collectPreVariables (initialization): time 0.0002385/1.13, allocations: 97.55 kB / 1.103 GB, free: 271.7 MB / 0.7637 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005227/1.131, allocations: 1.137 MB / 1.104 GB, free: 270.7 MB / 0.7637 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007797/1.132, allocations: 1.317 MB / 1.105 GB, free: 269.6 MB / 0.7637 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000705/1.132, allocations: 0.5513 MB / 1.106 GB, free: 269.3 MB / 0.7637 GB Notification: Performance of setup shared object (initialization): time 3.683e-05/1.132, allocations: 305.1 kB / 1.106 GB, free: 269 MB / 0.7637 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002014/1.134, allocations: 1.567 MB / 1.108 GB, free: 268.2 MB / 0.7637 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002186/1.136, allocations: 1.914 MB / 1.11 GB, free: 267.1 MB / 0.7637 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004512/1.141, allocations: 3.77 MB / 1.113 GB, free: 265 MB / 0.7637 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.864e-06/1.141, allocations: 0 / 1.113 GB, free: 265 MB / 0.7637 GB Notification: Performance of matching and sorting (n=430) (initialization): time 0.005589/1.147, allocations: 4.176 MB / 1.117 GB, free: 262.1 MB / 0.7637 GB Notification: Performance of prepare postOptimizeDAE: time 2.192e-05/1.147, allocations: 11.98 kB / 1.117 GB, free: 262.1 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.415e-05/1.147, allocations: 4 kB / 1.117 GB, free: 262.1 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.843e-05/1.147, allocations: 20 kB / 1.117 GB, free: 262 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002725/1.149, allocations: 0.6942 MB / 1.118 GB, free: 261.3 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.593e-05/1.149, allocations: 23.94 kB / 1.118 GB, free: 261.3 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002442/1.152, allocations: 257.1 kB / 1.118 GB, free: 261.1 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001952/1.152, allocations: 120 kB / 1.118 GB, free: 261 MB / 0.7637 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.001175/1.153, allocations: 0.7982 MB / 1.119 GB, free: 260.1 MB / 0.7637 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004683/1.154, allocations: 292.5 kB / 1.119 GB, free: 259.9 MB / 0.7637 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005811/1.16, allocations: 4.424 MB / 1.124 GB, free: 255.4 MB / 0.7637 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.004e-05/1.16, allocations: 40.88 kB / 1.124 GB, free: 255.4 MB / 0.7637 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.006e-05/1.16, allocations: 3.984 kB / 1.124 GB, free: 255.4 MB / 0.7637 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.004302/1.164, allocations: 3.792 MB / 1.127 GB, free: 251.5 MB / 0.7637 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01029/1.174, allocations: 8.647 MB / 1.136 GB, free: 242.8 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.091e-05/1.174, allocations: 4 kB / 1.136 GB, free: 242.8 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003016/1.177, allocations: 0.721 MB / 1.137 GB, free: 242.1 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.217e-05/1.177, allocations: 19.88 kB / 1.137 GB, free: 242.1 MB / 0.7637 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002064/1.178, allocations: 91.81 kB / 1.137 GB, free: 242 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.339e-05/1.178, allocations: 16 kB / 1.137 GB, free: 242 MB / 0.7637 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.705e-06/1.178, allocations: 3.938 kB / 1.137 GB, free: 242 MB / 0.7637 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007638/1.185, allocations: 6.566 MB / 1.143 GB, free: 235.3 MB / 0.7637 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001393/1.187, allocations: 0.801 MB / 1.144 GB, free: 234.5 MB / 0.7637 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004248/1.187, allocations: 72 kB / 1.144 GB, free: 234.4 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001958/1.189, allocations: 86.2 kB / 1.144 GB, free: 234.3 MB / 0.7637 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003826/1.189, allocations: 237.4 kB / 1.144 GB, free: 234.1 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001877/1.19, allocations: 108 kB / 1.144 GB, free: 234 MB / 0.7637 GB Notification: Performance of sorting global known variables: time 0.001299/1.191, allocations: 1.157 MB / 1.146 GB, free: 232.8 MB / 0.7637 GB Notification: Performance of sort global known variables: time 1.5e-07/1.191, allocations: 0 / 1.146 GB, free: 232.8 MB / 0.7637 GB Notification: Performance of remove unused functions: time 0.002393/1.193, allocations: 1.232 MB / 1.147 GB, free: 231.6 MB / 0.7637 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.008158/1.202, allocations: 7.494 MB / 1.154 GB, free: 224.1 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.01762/1.219, allocations: 9.837 MB / 1.164 GB, free: 214.3 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 5.661e-06/1.219, allocations: 0 / 1.164 GB, free: 214.3 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.002311/1.221, allocations: 2.155 MB / 1.166 GB, free: 212.1 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006356/1.228, allocations: 1.61 MB / 1.167 GB, free: 210.7 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03001/1.258, allocations: 28.82 MB / 1.196 GB, free: 180.4 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001321/1.259, allocations: 2.205 MB / 1.198 GB, free: 178.1 MB / 0.7637 GB Notification: Performance of simCode: alias equations: time 0.003588/1.263, allocations: 1.208 MB / 1.199 GB, free: 176.9 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001592/1.264, allocations: 1.393 MB / 1.2 GB, free: 175.5 MB / 0.7637 GB Notification: Performance of SimCode: time 8.51e-07/1.264, allocations: 3.938 kB / 1.2 GB, free: 175.5 MB / 0.7637 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.102/1.366, allocations: 84.82 MB / 1.283 GB, free: 91.62 MB / 0.7637 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.503/10.87, allocations: 19.92 kB / 1.283 GB, free: 91.6 MB / 0.7637 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)