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/BuildingSystems 2.0.0-master/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/ModelicaServices 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) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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) 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 BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/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"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.7411/0.7411, allocations: 141.8 MB / 149.1 MB, free: 2.77 MB / 122.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001183/0.001183, allocations: 185.5 kB / 182 MB, free: 14.64 MB / 154.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.409/1.409, allocations: 221.4 MB / 436 MB, free: 7.766 MB / 330.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001016/0.001016, allocations: 102.8 kB / 0.507 GB, free: 24.45 MB / 394.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001805/0.001805, allocations: 282.4 kB / 0.5885 GB, free: 10.89 MB / 442.9 MB Notification: Performance of FrontEnd - loaded program: time 0.2158/0.2176, allocations: 89.64 MB / 0.676 GB, free: 1.172 MB / 0.5107 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4947/0.7124, allocations: 82.76 MB / 0.7568 GB, free: 111.4 MB / 0.5263 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.5/5.213, allocations: 1.882 GB / 2.638 GB, free: 188.2 MB / 0.6982 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002755/5.213, allocations: 95.17 kB / 2.638 GB, free: 188.1 MB / 0.6982 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Airflow/Multizone/ZonalFlow_ACS.mo:29:3-37:11:writable] Warning: The standard says that initial() may only be used as a when condition (when initial() or when {..., initial(), ...}), but got condition useDefaultProperties and initial(). 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 2.06/7.273, allocations: 0.6137 GB / 3.252 GB, free: 99.01 MB / 0.6982 GB Notification: Performance of prepare preOptimizeDAE: time 4.684e-05/7.273, allocations: 12 kB / 3.252 GB, free: 99 MB / 0.6982 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002764/7.276, allocations: 354.2 kB / 3.253 GB, free: 98.65 MB / 0.6982 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002118/7.278, allocations: 0.8696 MB / 3.253 GB, free: 97.75 MB / 0.6982 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.539e-05/7.278, allocations: 32 kB / 3.253 GB, free: 97.72 MB / 0.6982 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002871/7.279, allocations: 59.94 kB / 3.253 GB, free: 97.66 MB / 0.6982 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002023/7.281, allocations: 1.019 MB / 3.254 GB, free: 96.64 MB / 0.6982 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001948/7.283, allocations: 0.9724 MB / 3.255 GB, free: 95.64 MB / 0.6982 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.277e-05/7.283, allocations: 0 / 3.255 GB, free: 95.64 MB / 0.6982 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001183/7.283, allocations: 11.98 kB / 3.255 GB, free: 95.62 MB / 0.6982 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.511e-05/7.283, allocations: 58.08 kB / 3.255 GB, free: 95.57 MB / 0.6982 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007091/7.29, allocations: 5.148 MB / 3.26 GB, free: 90.07 MB / 0.6982 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001136/7.291, allocations: 0.864 MB / 3.261 GB, free: 89.2 MB / 0.6982 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007188/7.292, allocations: 0.5549 MB / 3.262 GB, free: 88.65 MB / 0.6982 GB Notification: Performance of preOpt evalFunc (simulation): time 6.79e-05/7.292, allocations: 18.75 kB / 3.262 GB, free: 88.63 MB / 0.6982 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006446/7.293, allocations: 471 kB / 3.262 GB, free: 88.16 MB / 0.6982 GB Notification: Performance of pre-optimization done (n=76): time 2.695e-06/7.293, allocations: 3.938 kB / 3.262 GB, free: 88.16 MB / 0.6982 GB Notification: Performance of matching and sorting (n=76): time 0.001681/7.294, allocations: 0.8388 MB / 3.263 GB, free: 87.31 MB / 0.6982 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.707e-05/7.294, allocations: 60 kB / 3.263 GB, free: 87.24 MB / 0.6982 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005578/7.295, allocations: 418.2 kB / 3.264 GB, free: 86.82 MB / 0.6982 GB Notification: Performance of collectPreVariables (initialization): time 7.035e-05/7.295, allocations: 37.69 kB / 3.264 GB, free: 86.78 MB / 0.6982 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001584/7.295, allocations: 375.5 kB / 3.264 GB, free: 86.41 MB / 0.6982 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002293/7.295, allocations: 256.2 kB / 3.264 GB, free: 86.15 MB / 0.6982 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.85e-05/7.295, allocations: 0 / 3.264 GB, free: 86.15 MB / 0.6982 GB Notification: Performance of setup shared object (initialization): time 0.0001208/7.296, allocations: 378.7 kB / 3.265 GB, free: 85.77 MB / 0.6982 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004161/7.296, allocations: 325.5 kB / 3.265 GB, free: 85.46 MB / 0.6982 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004682/7.296, allocations: 446.8 kB / 3.265 GB, free: 84.98 MB / 0.6982 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005519/7.297, allocations: 407 kB / 3.266 GB, free: 84.58 MB / 0.6982 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.729e-06/7.297, allocations: 0 / 3.266 GB, free: 84.58 MB / 0.6982 GB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001234/7.298, allocations: 0.8816 MB / 3.267 GB, free: 83.69 MB / 0.6982 GB Notification: Performance of prepare postOptimizeDAE: time 1.96e-05/7.298, allocations: 8.344 kB / 3.267 GB, free: 83.68 MB / 0.6982 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.018e-05/7.298, allocations: 4 kB / 3.267 GB, free: 83.68 MB / 0.6982 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.064e-05/7.298, allocations: 4 kB / 3.267 GB, free: 83.67 MB / 0.6982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007259/7.299, allocations: 167.7 kB / 3.267 GB, free: 83.51 MB / 0.6982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.337e-05/7.299, allocations: 4 kB / 3.267 GB, free: 83.5 MB / 0.6982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001167/7.3, allocations: 111.3 kB / 3.267 GB, free: 83.39 MB / 0.6982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.923e-05/7.3, allocations: 24 kB / 3.267 GB, free: 83.37 MB / 0.6982 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 () * 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.0001575/7.3, allocations: 116.8 kB / 3.267 GB, free: 83.25 MB / 0.6982 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001889/7.301, allocations: 83.06 kB / 3.267 GB, free: 83.17 MB / 0.6982 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000227/7.301, allocations: 99 kB / 3.267 GB, free: 83.07 MB / 0.6982 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.825e-06/7.301, allocations: 11.94 kB / 3.267 GB, free: 83.05 MB / 0.6982 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.047e-06/7.301, allocations: 0 / 3.267 GB, free: 83.05 MB / 0.6982 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001039/7.302, allocations: 1.08 MB / 3.268 GB, free: 81.89 MB / 0.6982 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002707/7.305, allocations: 1.879 MB / 3.27 GB, free: 79.98 MB / 0.6982 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.348e-06/7.305, allocations: 0 / 3.27 GB, free: 79.98 MB / 0.6982 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009134/7.306, allocations: 187.8 kB / 3.27 GB, free: 79.8 MB / 0.6982 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.504e-05/7.306, allocations: 4 kB / 3.27 GB, free: 79.8 MB / 0.6982 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.948e-05/7.306, allocations: 7.984 kB / 3.27 GB, free: 79.79 MB / 0.6982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.619e-06/7.306, allocations: 0 / 3.27 GB, free: 79.79 MB / 0.6982 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.018e-06/7.306, allocations: 4 kB / 3.27 GB, free: 79.79 MB / 0.6982 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001666/7.307, allocations: 1.5 MB / 3.272 GB, free: 78.26 MB / 0.6982 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002563/7.31, allocations: 2.516 MB / 3.274 GB, free: 75.72 MB / 0.6982 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005859/7.311, allocations: 248 kB / 3.274 GB, free: 75.46 MB / 0.6982 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001878/7.311, allocations: 11.89 kB / 3.274 GB, free: 75.45 MB / 0.6982 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001057/7.312, allocations: 72.17 kB / 3.275 GB, free: 75.38 MB / 0.6982 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.065e-05/7.312, allocations: 48.5 kB / 3.275 GB, free: 75.33 MB / 0.6982 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.561e-05/7.312, allocations: 31.98 kB / 3.275 GB, free: 75.3 MB / 0.6982 GB Notification: Performance of sort global known variables: time 0.0004304/7.312, allocations: 326.9 kB / 3.275 GB, free: 74.98 MB / 0.6982 GB Notification: Performance of remove unused functions: time 0.002649/7.315, allocations: 0.6434 MB / 3.276 GB, free: 74.34 MB / 0.6982 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 6 (rooA.dynBal.U,rooA.dynBal.m,rooA.dynBal.mXi[1],rooB.dynBal.U,rooB.dynBal.m,rooB.dynBal.mXi[1]) * Number of discrete variables: 1 ($whenCondition1) * Number of discrete 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.002432/7.318, allocations: 1.804 MB / 3.277 GB, free: 72.64 MB / 0.6982 GB Notification: Performance of simCode: created initialization part: time 0.001146/7.319, allocations: 0.7923 MB / 3.278 GB, free: 71.85 MB / 0.6982 GB Notification: Performance of simCode: created event and clocks part: time 3.687e-06/7.319, allocations: 4.062 kB / 3.278 GB, free: 71.85 MB / 0.6982 GB Notification: Performance of simCode: created simulation system equations: time 0.0004911/7.319, allocations: 430.2 kB / 3.279 GB, free: 71.43 MB / 0.6982 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002554/7.322, allocations: 481.1 kB / 3.279 GB, free: 70.97 MB / 0.6982 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003699/7.326, allocations: 1.79 MB / 3.281 GB, free: 69.14 MB / 0.6982 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001102/7.327, allocations: 1.252 MB / 3.282 GB, free: 67.87 MB / 0.6982 GB Notification: Performance of SimCode: time 9.12e-07/7.327, allocations: 0 / 3.282 GB, free: 67.87 MB / 0.6982 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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Airflow_Multizone_Examples_ZonalFlow_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Airflow_Multizone_Examples_ZonalFlow.fmu > BuildingSystems_BuildingSystems.Airflow.Multizone.Examples.ZonalFlow.pipe 2>&1)