Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Airflow.Multizone.Examples.ZonalFlow.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.ZonalFlow,fileNamePrefix="BuildingSystems_BuildingSystems_Airflow_Multizone_Examples_ZonalFlow",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Airflow.Multizone.Examples.ZonalFlow,fileNamePrefix="BuildingSystems_BuildingSystems_Airflow_Multizone_Examples_ZonalFlow",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.001057/0.001057, allocations: 108 kB / 15.61 MB, free: 152 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.001015/0.001015, allocations: 196.1 kB / 16.53 MB, free: 6.699 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.296/1.296, allocations: 222.9 MB / 240.2 MB, free: 4.379 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002134/0.002134, allocations: 282.8 kB / 290.7 MB, free: 1.977 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9428/0.9428, allocations: 169.3 MB / 0.4982 GB, free: 13.88 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001681/0.001681, allocations: 104.9 kB / 0.5953 GB, free: 27.99 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1369/0.1386, allocations: 86.98 MB / 0.6803 GB, free: 0.6094 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Airflow.Multizone.Examples.ZonalFlow): time 0.4508/0.5894, allocations: 204.1 MB / 0.8796 GB, free: 4.984 MB / 0.5919 GB Notification: Performance of NFInst.instExpressions: time 0.009174/0.5986, allocations: 6.365 MB / 0.8859 GB, free: 15.79 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001109/0.5997, allocations: 36.72 kB / 0.8859 GB, free: 15.77 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.001715/0.6015, allocations: 0.7231 MB / 0.8866 GB, free: 15.19 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.005478/0.607, allocations: 2.69 MB / 0.8892 GB, free: 13.12 MB / 0.6075 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Airflow/Multizone/ZonalFlow_ACS.mo:29:3-37:11:writable] Warning: initial() may only be used as a when condition (when initial() or when {..., initial(), ...}), but got condition 'zonFlo.useDefaultProperties and initial()'. Notification: Performance of NFTyping.typeClassSections: time 0.001487/0.6085, allocations: 0.6963 MB / 0.8899 GB, free: 12.57 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.002962/0.6114, allocations: 3.289 MB / 0.8931 GB, free: 10.71 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001207/0.6127, allocations: 1.132 MB / 0.8942 GB, free: 10.05 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001562/0.6142, allocations: 1.248 MB / 0.8954 GB, free: 9.352 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001585/0.6158, allocations: 1.094 MB / 0.8965 GB, free: 8.727 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 0.0001585/0.616, allocations: 128.4 kB / 0.8966 GB, free: 8.727 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003737/0.6197, allocations: 2.355 MB / 0.8989 GB, free: 7.43 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.0004781/0.6202, allocations: 0.5143 MB / 0.8994 GB, free: 6.914 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0007243/0.621, allocations: 0.7391 MB / 0.9002 GB, free: 6.172 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.003138/0.6241, allocations: 2.778 MB / 0.9029 GB, free: 3.387 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 3.798e-06/0.6241, allocations: 4 kB / 0.9029 GB, free: 3.383 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.172e-06/0.6241, allocations: 0 / 0.9029 GB, free: 3.383 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 1.36e-05/0.6242, allocations: 0 / 0.9029 GB, free: 3.383 MB / 0.6075 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 265 * Number of variables: 265 Notification: Performance of Generate backend data structure: time 0.003656/0.6278, allocations: 1.773 MB / 0.9046 GB, free: 1.555 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.317e-05/0.6279, allocations: 8.031 kB / 0.9046 GB, free: 1.547 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001879/0.6281, allocations: 168.6 kB / 0.9048 GB, free: 1.371 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00221/0.6303, allocations: 342.2 kB / 0.9051 GB, free: 1.035 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001209/0.6315, allocations: 0.8466 MB / 0.9059 GB, free: 152 kB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.419e-05/0.6316, allocations: 74.02 kB / 0.906 GB, free: 76 kB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001586/0.6317, allocations: 104 kB / 0.9061 GB, free: 15.97 MB / 0.6231 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001788/0.6335, allocations: 1.191 MB / 0.9073 GB, free: 14.75 MB / 0.6231 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.364e-05/0.6336, allocations: 0 / 0.9073 GB, free: 14.75 MB / 0.6231 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.988e-05/0.6337, allocations: 40 kB / 0.9073 GB, free: 14.71 MB / 0.6231 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.534e-05/0.6337, allocations: 58.08 kB / 0.9074 GB, free: 14.65 MB / 0.6231 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00185/0.6356, allocations: 1.249 MB / 0.9086 GB, free: 13.39 MB / 0.6231 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.005849/0.6414, allocations: 5.147 MB / 0.9136 GB, free: 7.789 MB / 0.6231 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001453/0.6429, allocations: 1.159 MB / 0.9147 GB, free: 6.555 MB / 0.6231 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000701/0.6436, allocations: 0.5003 MB / 0.9152 GB, free: 6.055 MB / 0.6231 GB Notification: Performance of preOpt evalFunc (simulation): time 5.492e-05/0.6437, allocations: 20.78 kB / 0.9152 GB, free: 6.035 MB / 0.6231 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006884/0.6444, allocations: 492.2 kB / 0.9157 GB, free: 5.543 MB / 0.6231 GB Notification: Performance of pre-optimization done (n=76): time 1.934e-06/0.6444, allocations: 0 / 0.9157 GB, free: 5.543 MB / 0.6231 GB Notification: Performance of matching and sorting (n=76): time 0.001845/0.6462, allocations: 1.161 MB / 0.9168 GB, free: 4.375 MB / 0.6231 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.716e-05/0.6463, allocations: 60.06 kB / 0.9169 GB, free: 4.305 MB / 0.6231 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006234/0.6469, allocations: 0.5744 MB / 0.9175 GB, free: 3.719 MB / 0.6231 GB Notification: Performance of collectPreVariables (initialization): time 5.616e-05/0.647, allocations: 41.7 kB / 0.9175 GB, free: 3.672 MB / 0.6231 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002896/0.6473, allocations: 463.6 kB / 0.9179 GB, free: 3.211 MB / 0.6231 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002102/0.6475, allocations: 268.1 kB / 0.9182 GB, free: 2.945 MB / 0.6231 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002017/0.6477, allocations: 126.7 kB / 0.9183 GB, free: 2.812 MB / 0.6231 GB Notification: Performance of setup shared object (initialization): time 0.0001533/0.6479, allocations: 382.8 kB / 0.9187 GB, free: 2.43 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000487/0.6484, allocations: 333.8 kB / 0.919 GB, free: 2.105 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005241/0.6489, allocations: 452.7 kB / 0.9194 GB, free: 1.629 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001053/0.65, allocations: 0.8194 MB / 0.9202 GB, free: 0.7695 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.096e-06/0.65, allocations: 0 / 0.9202 GB, free: 0.7695 MB / 0.6231 GB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001265/0.6512, allocations: 0.9297 MB / 0.9211 GB, free: 15.83 MB / 0.6387 GB Notification: Performance of prepare postOptimizeDAE: time 1.571e-05/0.6513, allocations: 8 kB / 0.9211 GB, free: 15.82 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.091e-06/0.6513, allocations: 0 / 0.9211 GB, free: 15.82 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.774e-05/0.6513, allocations: 11.94 kB / 0.9212 GB, free: 15.81 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006621/0.652, allocations: 159.7 kB / 0.9213 GB, free: 15.65 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.107e-05/0.652, allocations: 5.359 kB / 0.9213 GB, free: 15.65 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007057/0.6527, allocations: 67.28 kB / 0.9214 GB, free: 15.58 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.051e-05/0.6528, allocations: 28 kB / 0.9214 GB, free: 15.55 MB / 0.6387 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 1 ($whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (91): * Single equations (assignments): 91 * 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.0003968/0.6532, allocations: 341.7 kB / 0.9217 GB, free: 15.21 MB / 0.6387 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001237/0.6533, allocations: 81.12 kB / 0.9218 GB, free: 15.13 MB / 0.6387 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002114/0.6535, allocations: 103.8 kB / 0.9219 GB, free: 15.02 MB / 0.6387 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.743e-06/0.6535, allocations: 11.94 kB / 0.9219 GB, free: 15.01 MB / 0.6387 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.272e-06/0.6535, allocations: 0 / 0.9219 GB, free: 15.01 MB / 0.6387 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001213/0.6547, allocations: 1.089 MB / 0.923 GB, free: 13.84 MB / 0.6387 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 postOpt removeSimpleEquations (simulation): time 0.002948/0.6577, allocations: 2.317 MB / 0.9252 GB, free: 11.43 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.985e-06/0.6577, allocations: 0 / 0.9252 GB, free: 11.43 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008547/0.6586, allocations: 175.8 kB / 0.9254 GB, free: 11.26 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.66e-06/0.6586, allocations: 4 kB / 0.9254 GB, free: 11.26 MB / 0.6387 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.835e-05/0.6587, allocations: 16.03 kB / 0.9254 GB, free: 11.24 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.809e-06/0.6587, allocations: 4 kB / 0.9254 GB, free: 11.24 MB / 0.6387 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.442e-06/0.6587, allocations: 0 / 0.9254 GB, free: 11.24 MB / 0.6387 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00177/0.6604, allocations: 1.354 MB / 0.9268 GB, free: 9.863 MB / 0.6387 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003239/0.6608, allocations: 256 kB / 0.927 GB, free: 9.594 MB / 0.6387 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000106/0.6609, allocations: 16 kB / 0.927 GB, free: 9.578 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006158/0.6615, allocations: 26.61 kB / 0.927 GB, free: 9.555 MB / 0.6387 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.574e-05/0.6616, allocations: 40.59 kB / 0.9271 GB, free: 9.516 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.241e-05/0.6617, allocations: 24 kB / 0.9271 GB, free: 9.492 MB / 0.6387 GB Notification: Performance of sorting global known variables: time 0.0004445/0.6621, allocations: 415 kB / 0.9275 GB, free: 9.094 MB / 0.6387 GB Notification: Performance of sort global known variables: time 1.71e-07/0.6621, allocations: 3.938 kB / 0.9275 GB, free: 9.09 MB / 0.6387 GB Notification: Performance of remove unused functions: time 0.0008065/0.6629, allocations: 371 kB / 0.9279 GB, free: 8.727 MB / 0.6387 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 6 (rooA.dynBal.medium.Xi[1],rooA.dynBal.U,rooA.dynBal.m,rooB.dynBal.medium.Xi[1],rooB.dynBal.U,rooB.dynBal.m) * Number of discrete variables: 1 ($whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (76): * Single equations (assignments): 76 * 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.002138/0.6651, allocations: 1.978 MB / 0.9298 GB, free: 6.719 MB / 0.6387 GB Notification: Performance of simCode: created initialization part: time 0.001709/0.6668, allocations: 1.036 MB / 0.9308 GB, free: 5.684 MB / 0.6387 GB Notification: Performance of simCode: created event and clocks part: time 2.886e-06/0.6668, allocations: 0 / 0.9308 GB, free: 5.684 MB / 0.6387 GB Notification: Performance of simCode: created simulation system equations: time 0.0005521/0.6674, allocations: 427.5 kB / 0.9312 GB, free: 5.266 MB / 0.6387 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002531/0.6699, allocations: 0.5847 MB / 0.9318 GB, free: 4.695 MB / 0.6387 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008958/0.6789, allocations: 7.499 MB / 0.9391 GB, free: 13.04 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006812/0.6796, allocations: 1.136 MB / 0.9402 GB, free: 11.88 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 0.0009268/0.6805, allocations: 275.1 kB / 0.9405 GB, free: 11.6 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005163/0.681, allocations: 379.3 kB / 0.9408 GB, free: 11.23 MB / 0.6544 GB Notification: Performance of SimCode: time 4.31e-07/0.681, allocations: 0 / 0.9408 GB, free: 11.23 MB / 0.6544 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0486/0.7296, allocations: 25.73 MB / 0.966 GB, free: 1.832 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.591/8.32, allocations: 16.61 kB / 0.966 GB, free: 1.824 MB / 0.67 GB (rm -f BuildingSystems_BuildingSystems.Airflow.Multizone.Examples.ZonalFlow.pipe ; mkfifo BuildingSystems_BuildingSystems.Airflow.Multizone.Examples.ZonalFlow.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Airflow.Multizone.Examples.ZonalFlow.pipe >> ../files/BuildingSystems_BuildingSystems.Airflow.Multizone.Examples.ZonalFlow.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Airflow.Multizone.Examples.ZonalFlow_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_ZonalFlow.fmu > BuildingSystems_BuildingSystems.Airflow.Multizone.Examples.ZonalFlow.pipe 2>&1)