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: translateModel(BuildingSystems.Airflow.Multizone.Examples.ZonalFlow,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Airflow.Multizone.Examples.ZonalFlow") translateModel(BuildingSystems.Airflow.Multizone.Examples.ZonalFlow,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Airflow.Multizone.Examples.ZonalFlow") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009255/0.0009256, allocations: 94.03 kB / 15.06 MB, free: 1.086 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.0009451/0.0009451, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.36/1.36, allocations: 223.3 MB / 240 MB, free: 5.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001818/0.001818, allocations: 266.6 kB / 291.3 MB, free: 1.867 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9861/0.9861, allocations: 169.5 MB / 0.5 GB, free: 14.23 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004646/0.0004647, allocations: 16.06 kB / 0.598 GB, free: 28.3 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1855/0.186, allocations: 88.54 MB / 0.6845 GB, free: 15.46 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Airflow.Multizone.Examples.ZonalFlow): time 0.5781/0.7641, allocations: 185.9 MB / 0.866 GB, free: 1.242 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.01013/0.7743, allocations: 5.964 MB / 0.8718 GB, free: 12.36 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001805/0.7761, allocations: 31.66 kB / 0.8719 GB, free: 12.35 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.00179/0.7779, allocations: 487.1 kB / 0.8723 GB, free: 11.95 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.006344/0.7843, allocations: 1.942 MB / 0.8742 GB, free: 10.45 MB / 0.5919 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.001933/0.7862, allocations: 0.4931 MB / 0.8747 GB, free: 10.1 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.005301/0.7916, allocations: 4.033 MB / 0.8786 GB, free: 7.742 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001509/0.7931, allocations: 0.8157 MB / 0.8794 GB, free: 7.273 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002747/0.7959, allocations: 1.055 MB / 0.8805 GB, free: 6.746 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002537/0.7984, allocations: 1.053 MB / 0.8815 GB, free: 6.188 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.000211/0.7987, allocations: 57.22 kB / 0.8816 GB, free: 6.188 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00395/0.8026, allocations: 1.131 MB / 0.8827 GB, free: 5.332 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0007211/0.8034, allocations: 446.7 kB / 0.8831 GB, free: 4.895 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0006986/0.8041, allocations: 289.1 kB / 0.8834 GB, free: 4.605 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.002917/0.807, allocations: 1.839 MB / 0.8852 GB, free: 2.762 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 5.46e-06/0.807, allocations: 0 / 0.8852 GB, free: 2.762 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.933e-06/0.807, allocations: 4 kB / 0.8852 GB, free: 2.758 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 2.277e-05/0.8071, allocations: 0 / 0.8852 GB, free: 2.758 MB / 0.5919 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.003738/0.8108, allocations: 1.538 MB / 0.8867 GB, free: 1.168 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 4.319e-05/0.8109, allocations: 12.03 kB / 0.8867 GB, free: 1.156 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002188/0.8131, allocations: 342.2 kB / 0.887 GB, free: 0.8203 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001427/0.8145, allocations: 0.8161 MB / 0.8878 GB, free: 15.96 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.393e-05/0.8146, allocations: 78.02 kB / 0.8879 GB, free: 15.88 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001453/0.8147, allocations: 103.9 kB / 0.888 GB, free: 15.79 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001922/0.8167, allocations: 1.179 MB / 0.8891 GB, free: 14.57 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.43e-05/0.8167, allocations: 0 / 0.8891 GB, free: 14.57 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.907e-05/0.8168, allocations: 47.98 kB / 0.8892 GB, free: 14.53 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.467e-05/0.8169, allocations: 63.94 kB / 0.8892 GB, free: 14.46 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001858/0.8187, allocations: 1.246 MB / 0.8904 GB, free: 13.21 MB / 0.6075 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.006183/0.8249, allocations: 5.073 MB / 0.8954 GB, free: 7.68 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001412/0.8264, allocations: 1.153 MB / 0.8965 GB, free: 6.445 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006795/0.8271, allocations: 0.5051 MB / 0.897 GB, free: 5.938 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 6.105e-05/0.8271, allocations: 16.78 kB / 0.897 GB, free: 5.922 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007273/0.8279, allocations: 484.2 kB / 0.8975 GB, free: 5.438 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=76): time 3.777e-06/0.8279, allocations: 0 / 0.8975 GB, free: 5.438 MB / 0.6075 GB Notification: Performance of matching and sorting (n=76): time 0.001917/0.8298, allocations: 1.153 MB / 0.8986 GB, free: 4.281 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.117e-05/0.8299, allocations: 64.02 kB / 0.8987 GB, free: 4.207 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006895/0.8306, allocations: 0.5782 MB / 0.8992 GB, free: 3.617 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 5.626e-05/0.8306, allocations: 37.7 kB / 0.8993 GB, free: 3.574 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002975/0.8309, allocations: 463.6 kB / 0.8997 GB, free: 3.113 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002312/0.8312, allocations: 260.1 kB / 0.9 GB, free: 2.855 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.97e-05/0.8312, allocations: 16 kB / 0.9 GB, free: 2.84 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001567/0.8314, allocations: 386.8 kB / 0.9004 GB, free: 2.453 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000455/0.8318, allocations: 325.8 kB / 0.9007 GB, free: 2.137 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000538/0.8324, allocations: 448.8 kB / 0.9011 GB, free: 1.66 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005541/0.8329, allocations: 403 kB / 0.9015 GB, free: 1.27 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.799e-06/0.833, allocations: 4 kB / 0.9015 GB, free: 1.266 MB / 0.6075 GB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001344/0.8343, allocations: 0.9182 MB / 0.9024 GB, free: 348 kB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 2.266e-05/0.8343, allocations: 14.22 kB / 0.9024 GB, free: 336 kB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.265e-06/0.8344, allocations: 0 / 0.9024 GB, free: 336 kB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.942e-05/0.8344, allocations: 8 kB / 0.9024 GB, free: 328 kB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006655/0.8351, allocations: 159.8 kB / 0.9026 GB, free: 168 kB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.39e-05/0.8351, allocations: 15.88 kB / 0.9026 GB, free: 152 kB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00093/0.836, allocations: 163.2 kB / 0.9027 GB, free: 15.98 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.945e-05/0.8361, allocations: 24 kB / 0.9027 GB, free: 15.96 MB / 0.6231 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000516/0.8366, allocations: 332.8 kB / 0.9031 GB, free: 15.63 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001157/0.8367, allocations: 79.06 kB / 0.9031 GB, free: 15.55 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002473/0.837, allocations: 107.8 kB / 0.9032 GB, free: 15.45 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.057e-06/0.837, allocations: 9.875 kB / 0.9033 GB, free: 15.44 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.586e-06/0.837, allocations: 0 / 0.9033 GB, free: 15.44 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001214/0.8382, allocations: 1.097 MB / 0.9043 GB, free: 14.25 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 postOpt removeSimpleEquations (simulation): time 0.003142/0.8414, allocations: 2.305 MB / 0.9066 GB, free: 11.86 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.36e-06/0.8414, allocations: 7.891 kB / 0.9066 GB, free: 11.85 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008009/0.8422, allocations: 171.9 kB / 0.9067 GB, free: 11.68 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.207e-06/0.8422, allocations: 4 kB / 0.9067 GB, free: 11.68 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.997e-05/0.8423, allocations: 19.98 kB / 0.9068 GB, free: 11.66 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.566e-06/0.8423, allocations: 7.938 kB / 0.9068 GB, free: 11.65 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/0.8423, allocations: 0 / 0.9068 GB, free: 11.65 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001749/0.8441, allocations: 1.338 MB / 0.9081 GB, free: 10.29 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004603/0.8445, allocations: 259.9 kB / 0.9083 GB, free: 10.02 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001031/0.8446, allocations: 19.98 kB / 0.9084 GB, free: 10 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007176/0.8454, allocations: 100.2 kB / 0.9084 GB, free: 9.906 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.113e-05/0.8454, allocations: 40.59 kB / 0.9085 GB, free: 9.867 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.487e-05/0.8455, allocations: 27.98 kB / 0.9085 GB, free: 9.84 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.0004726/0.846, allocations: 411 kB / 0.9089 GB, free: 9.441 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1.373e-06/0.846, allocations: 0 / 0.9089 GB, free: 9.441 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.0009196/0.8469, allocations: 367 kB / 0.9093 GB, free: 9.082 MB / 0.6231 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000271/0.8472, allocations: 183.3 kB / 0.9094 GB, free: 8.898 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.001134/0.8483, allocations: 0.7942 MB / 0.9102 GB, free: 8.102 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 3.066e-06/0.8484, allocations: 4 kB / 0.9102 GB, free: 8.098 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.0005325/0.8489, allocations: 423.5 kB / 0.9106 GB, free: 7.684 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002284/0.8512, allocations: 0.5608 MB / 0.9112 GB, free: 7.129 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003529/0.8547, allocations: 2.716 MB / 0.9138 GB, free: 4.379 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006707/0.8554, allocations: 1.14 MB / 0.9149 GB, free: 3.211 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.001053/0.8565, allocations: 279.1 kB / 0.9152 GB, free: 2.934 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002318/0.8567, allocations: 75.42 kB / 0.9153 GB, free: 2.859 MB / 0.6231 GB Notification: Performance of SimCode: time 7.91e-07/0.8567, allocations: 0 / 0.9153 GB, free: 2.859 MB / 0.6231 GB Notification: Performance of Templates: time 0.02928/0.886, allocations: 17.59 MB / 0.9324 GB, free: 1.508 MB / 0.6387 GB make -j1 -f BuildingSystems_BuildingSystems.Airflow.Multizone.Examples.ZonalFlow.makefile (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 & ./BuildingSystems_BuildingSystems.Airflow.Multizone.Examples.ZonalFlow -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Airflow.Multizone.Examples.ZonalFlow.pipe 2>&1)