Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Airflow.Multizone.Examples.ChimneyShaftWithVolume.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.ChimneyShaftWithVolume,fileNamePrefix="BuildingSystems_BuildingSystems_Airflow_Multizone_Examples_ChimneyShaftWithVolume",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Airflow.Multizone.Examples.ChimneyShaftWithVolume,fileNamePrefix="BuildingSystems_BuildingSystems_Airflow_Multizone_Examples_ChimneyShaftWithVolume",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.7613/0.7613, allocations: 141.8 MB / 149.1 MB, free: 4.453 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.001112/0.001112, allocations: 183.6 kB / 181.9 MB, free: 128 kB / 138.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.388/1.388, allocations: 221.3 MB / 436 MB, free: 9.266 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.001081/0.001081, allocations: 93.12 kB / 0.507 GB, free: 24.19 MB / 394.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001826/0.001826, allocations: 277.2 kB / 0.5884 GB, free: 12.3 MB / 442.9 MB Notification: Performance of FrontEnd - loaded program: time 0.2242/0.226, allocations: 89.65 MB / 0.676 GB, free: 2.559 MB / 0.5107 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4566/0.6827, allocations: 82.75 MB / 0.7568 GB, free: 112.8 MB / 0.5263 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.188/4.87, allocations: 1.89 GB / 2.646 GB, free: 148.2 MB / 0.6982 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002979/4.871, allocations: 99.41 kB / 2.647 GB, free: 148.1 MB / 0.6982 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 344 * Number of variables: 344 Notification: Performance of Generate backend data structure: time 3.978/8.849, allocations: 1.076 GB / 3.722 GB, free: 88.4 MB / 0.7138 GB Notification: Performance of prepare preOptimizeDAE: time 4.25e-05/8.849, allocations: 9.844 kB / 3.722 GB, free: 88.4 MB / 0.7138 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004492/8.854, allocations: 0.5515 MB / 3.723 GB, free: 88.29 MB / 0.7138 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004097/8.858, allocations: 1.287 MB / 3.724 GB, free: 87.91 MB / 0.7138 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.969e-05/8.858, allocations: 49.31 kB / 3.724 GB, free: 87.91 MB / 0.7138 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005373/8.858, allocations: 82.06 kB / 3.724 GB, free: 87.91 MB / 0.7138 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003264/8.862, allocations: 1.253 MB / 3.726 GB, free: 87.9 MB / 0.7138 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003377/8.865, allocations: 1.463 MB / 3.727 GB, free: 87.69 MB / 0.7138 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.67e-05/8.865, allocations: 6.906 kB / 3.727 GB, free: 87.69 MB / 0.7138 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002108/8.865, allocations: 7.781 kB / 3.727 GB, free: 87.68 MB / 0.7138 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.153e-05/8.865, allocations: 59.69 kB / 3.727 GB, free: 87.68 MB / 0.7138 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01276/8.878, allocations: 7.364 MB / 3.734 GB, free: 84.07 MB / 0.7138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001968/8.88, allocations: 1.046 MB / 3.735 GB, free: 84.03 MB / 0.7138 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008791/8.881, allocations: 0.6033 MB / 3.736 GB, free: 84.02 MB / 0.7138 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007777/8.882, allocations: 0.8671 MB / 3.737 GB, free: 83.08 MB / 0.7138 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009342/8.883, allocations: 0.627 MB / 3.737 GB, free: 83.02 MB / 0.7138 GB Notification: Performance of pre-optimization done (n=110): time 3.818e-06/8.883, allocations: 1.812 kB / 3.737 GB, free: 83.02 MB / 0.7138 GB Notification: Performance of matching and sorting (n=110): time 0.003476/8.886, allocations: 1.248 MB / 3.739 GB, free: 82.9 MB / 0.7138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.293e-05/8.886, allocations: 93.55 kB / 3.739 GB, free: 82.81 MB / 0.7138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001654/8.888, allocations: 0.8174 MB / 3.739 GB, free: 82.66 MB / 0.7138 GB Notification: Performance of collectPreVariables (initialization): time 0.0001485/8.888, allocations: 29.67 kB / 3.74 GB, free: 82.63 MB / 0.7138 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006427/8.889, allocations: 485.2 kB / 3.74 GB, free: 82.36 MB / 0.7138 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005242/8.889, allocations: 372.8 kB / 3.74 GB, free: 82.11 MB / 0.7138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.555e-05/8.89, allocations: 3.938 kB / 3.74 GB, free: 82.11 MB / 0.7138 GB Notification: Performance of setup shared object (initialization): time 0.000147/8.89, allocations: 347.7 kB / 3.741 GB, free: 81.81 MB / 0.7138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007273/8.89, allocations: 429.7 kB / 3.741 GB, free: 81.81 MB / 0.7138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000888/8.891, allocations: 0.5993 MB / 3.742 GB, free: 81.64 MB / 0.7138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00129/8.893, allocations: 0.5396 MB / 3.742 GB, free: 81.62 MB / 0.7138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.167e-06/8.893, allocations: 3.438 kB / 3.742 GB, free: 81.62 MB / 0.7138 GB Notification: Performance of matching and sorting (n=126) (initialization): time 0.002763/8.895, allocations: 1.229 MB / 3.743 GB, free: 81.51 MB / 0.7138 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002991/8.896, allocations: 0.98 MB / 3.744 GB, free: 80.51 MB / 0.7138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.39e-05/8.896, allocations: 2.516 kB / 3.744 GB, free: 80.51 MB / 0.7138 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.839e-05/8.896, allocations: 7.375 kB / 3.744 GB, free: 80.51 MB / 0.7138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001213/8.897, allocations: 231.5 kB / 3.745 GB, free: 80.51 MB / 0.7138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.848e-05/8.897, allocations: 11.48 kB / 3.745 GB, free: 80.51 MB / 0.7138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001968/8.899, allocations: 127.5 kB / 3.745 GB, free: 80.47 MB / 0.7138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001504/8.899, allocations: 48.52 kB / 3.745 GB, free: 80.47 MB / 0.7138 GB Notification: Performance of prepare postOptimizeDAE: time 1.148e-05/8.899, allocations: 6.656 kB / 3.745 GB, free: 80.47 MB / 0.7138 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001862/8.901, allocations: 1.067 MB / 3.746 GB, free: 80.45 MB / 0.7138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.933e-06/8.901, allocations: 6.578 kB / 3.746 GB, free: 80.45 MB / 0.7138 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.116e-05/8.901, allocations: 7.344 kB / 3.746 GB, free: 80.45 MB / 0.7138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001065/8.902, allocations: 229.6 kB / 3.746 GB, free: 80.45 MB / 0.7138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.636e-05/8.902, allocations: 12.19 kB / 3.746 GB, free: 80.45 MB / 0.7138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001661/8.904, allocations: 127.5 kB / 3.746 GB, free: 80.41 MB / 0.7138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001172/8.904, allocations: 43.42 kB / 3.746 GB, free: 80.41 MB / 0.7138 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.mRoo_flow.nextTimeEvent,mRoo_flow.nextTimeEvent,$PRE.mRoo_flow.nextTimeEventScaled,mRoo_flow.nextTimeEventScaled) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (126): * Single equations (assignments): 126 * 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.0002639/8.904, allocations: 119.9 kB / 3.746 GB, free: 80.3 MB / 0.7138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004342/8.905, allocations: 136.3 kB / 3.746 GB, free: 80.24 MB / 0.7138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002631/8.907, allocations: 1.262 MB / 3.748 GB, free: 80.16 MB / 0.7138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.293e-05/8.907, allocations: 10.94 kB / 3.748 GB, free: 80.16 MB / 0.7138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.708e-06/8.907, allocations: 0 / 3.748 GB, free: 80.16 MB / 0.7138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001678/8.909, allocations: 1.035 MB / 3.749 GB, free: 80.07 MB / 0.7138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006067/8.915, allocations: 3.037 MB / 3.752 GB, free: 79.56 MB / 0.7138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.334e-06/8.915, allocations: 3.406 kB / 3.752 GB, free: 79.56 MB / 0.7138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001356/8.917, allocations: 252.2 kB / 3.752 GB, free: 79.56 MB / 0.7138 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.887e-05/8.917, allocations: 14.78 kB / 3.752 GB, free: 79.55 MB / 0.7138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.61e-05/8.917, allocations: 18.11 kB / 3.752 GB, free: 79.55 MB / 0.7138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.026e-05/8.917, allocations: 6.625 kB / 3.752 GB, free: 79.55 MB / 0.7138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.372e-06/8.917, allocations: 8.406 kB / 3.752 GB, free: 79.55 MB / 0.7138 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003079/8.92, allocations: 2.19 MB / 3.754 GB, free: 79.07 MB / 0.7138 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.004366/8.924, allocations: 3.444 MB / 3.757 GB, free: 78.21 MB / 0.7138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001084/8.925, allocations: 357.2 kB / 3.758 GB, free: 78.04 MB / 0.7138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004238/8.926, allocations: 13.31 kB / 3.758 GB, free: 78.04 MB / 0.7138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001549/8.927, allocations: 96.34 kB / 3.758 GB, free: 78.03 MB / 0.7138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001369/8.928, allocations: 62.91 kB / 3.758 GB, free: 78.03 MB / 0.7138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001006/8.928, allocations: 41.36 kB / 3.758 GB, free: 78.03 MB / 0.7138 GB Notification: Performance of sort global known variables: time 0.001218/8.929, allocations: 0.63 MB / 3.759 GB, free: 77.92 MB / 0.7138 GB Notification: Performance of remove unused functions: time 0.006664/8.936, allocations: 1.703 MB / 3.76 GB, free: 77.77 MB / 0.7138 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 11 * Number of states: 9 (roo.dynBal.U,roo.dynBal.m,roo.dynBal.mXi[1],oriChiTop.mExc,oriBot.mExc,oriChiBot.mExc,sha.vol.dynBal.U,sha.vol.dynBal.m,sha.vol.dynBal.mXi[1]) * Number of discrete variables: 3 ($whenCondition1,mRoo_flow.nextTimeEvent,mRoo_flow.nextTimeEventScaled) * Number of discrete states: 2 (mRoo_flow.nextTimeEvent,mRoo_flow.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (111): * Single equations (assignments): 109 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.004632/8.94, allocations: 3.099 MB / 3.763 GB, free: 76.63 MB / 0.7138 GB Notification: Performance of simCode: created initialization part: time 0.003108/8.943, allocations: 1.706 MB / 3.765 GB, free: 76.49 MB / 0.7138 GB Notification: Performance of simCode: created event and clocks part: time 8.716e-06/8.943, allocations: 2.844 kB / 3.765 GB, free: 76.49 MB / 0.7138 GB Notification: Performance of simCode: created simulation system equations: time 0.0009297/8.944, allocations: 0.567 MB / 3.766 GB, free: 76.3 MB / 0.7138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003974/8.948, allocations: 0.6678 MB / 3.766 GB, free: 76.18 MB / 0.7138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007007/8.955, allocations: 2.764 MB / 3.769 GB, free: 75.21 MB / 0.7138 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001509/8.957, allocations: 1.551 MB / 3.77 GB, free: 74.43 MB / 0.7138 GB Notification: Performance of SimCode: time 1.613e-06/8.957, allocations: 3.5 kB / 3.77 GB, free: 74.43 MB / 0.7138 GB (rm -f BuildingSystems_BuildingSystems.Airflow.Multizone.Examples.ChimneyShaftWithVolume.pipe ; mkfifo BuildingSystems_BuildingSystems.Airflow.Multizone.Examples.ChimneyShaftWithVolume.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Airflow.Multizone.Examples.ChimneyShaftWithVolume.pipe >> ../files/BuildingSystems_BuildingSystems.Airflow.Multizone.Examples.ChimneyShaftWithVolume.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Airflow_Multizone_Examples_ChimneyShaftWithVolume_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Airflow_Multizone_Examples_ChimneyShaftWithVolume.fmu > BuildingSystems_BuildingSystems.Airflow.Multizone.Examples.ChimneyShaftWithVolume.pipe 2>&1)