Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Airflow.Multizone.Examples.ChimneyShaftNoVolume.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.ChimneyShaftNoVolume,fileNamePrefix="BuildingSystems_BuildingSystems_Airflow_Multizone_Examples_ChimneyShaftNoVolume",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Airflow.Multizone.Examples.ChimneyShaftNoVolume,fileNamePrefix="BuildingSystems_BuildingSystems_Airflow_Multizone_Examples_ChimneyShaftNoVolume",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.7297/0.7297, allocations: 141.8 MB / 149.1 MB, free: 1.906 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.001096/0.001096, allocations: 187 kB / 182 MB, free: 1.398 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.448/1.448, allocations: 221.4 MB / 436.1 MB, free: 6.16 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.001177/0.001177, allocations: 96.61 kB / 0.507 GB, free: 2.848 MB / 410.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001751/0.001751, allocations: 288.1 kB / 0.5885 GB, free: 47.81 MB / 410.9 MB Notification: Performance of FrontEnd - loaded program: time 0.1948/0.1966, allocations: 89.62 MB / 0.676 GB, free: 6.105 MB / 458.9 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5018/0.6984, allocations: 82.78 MB / 0.7568 GB, free: 25.23 MB / 458.9 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.29/1.988, allocations: 419.4 MB / 1.166 GB, free: 221.8 MB / 0.6982 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000266/1.988, allocations: 92.61 kB / 1.167 GB, free: 221.8 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: 195 * Number of variables: 195 Notification: Performance of Generate backend data structure: time 1.097/3.085, allocations: 336.5 MB / 1.495 GB, free: 150.3 MB / 0.6982 GB Notification: Performance of prepare preOptimizeDAE: time 4.483e-05/3.085, allocations: 8.75 kB / 1.495 GB, free: 150.3 MB / 0.6982 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007096/3.086, allocations: 141.8 kB / 1.495 GB, free: 150.2 MB / 0.6982 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002422/3.088, allocations: 0.9688 MB / 1.496 GB, free: 149.9 MB / 0.6982 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.349e-05/3.088, allocations: 27.5 kB / 1.496 GB, free: 149.9 MB / 0.6982 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001852/3.089, allocations: 56.77 kB / 1.496 GB, free: 149.9 MB / 0.6982 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001202/3.09, allocations: 0.5302 MB / 1.497 GB, free: 149.9 MB / 0.6982 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001225/3.091, allocations: 0.716 MB / 1.497 GB, free: 149.7 MB / 0.6982 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.104e-05/3.091, allocations: 0 / 1.497 GB, free: 149.7 MB / 0.6982 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.483e-05/3.091, allocations: 2.938 kB / 1.497 GB, free: 149.7 MB / 0.6982 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.942e-05/3.091, allocations: 22.78 kB / 1.498 GB, free: 149.7 MB / 0.6982 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004752/3.096, allocations: 3.736 MB / 1.501 GB, free: 147.8 MB / 0.6982 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006408/3.097, allocations: 389.5 kB / 1.502 GB, free: 147.8 MB / 0.6982 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003657/3.097, allocations: 264.2 kB / 1.502 GB, free: 147.8 MB / 0.6982 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007996/3.098, allocations: 1.251 MB / 1.503 GB, free: 146.3 MB / 0.6982 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004207/3.098, allocations: 285.6 kB / 1.503 GB, free: 146.3 MB / 0.6982 GB Notification: Performance of pre-optimization done (n=63): time 2.856e-06/3.098, allocations: 0 / 1.503 GB, free: 146.3 MB / 0.6982 GB Notification: Performance of matching and sorting (n=63): time 0.001744/3.1, allocations: 0.6359 MB / 1.504 GB, free: 146.2 MB / 0.6982 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.116e-05/3.1, allocations: 84.45 kB / 1.504 GB, free: 146.1 MB / 0.6982 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008608/3.101, allocations: 0.6478 MB / 1.505 GB, free: 146 MB / 0.6982 GB Notification: Performance of collectPreVariables (initialization): time 6.067e-05/3.101, allocations: 25.7 kB / 1.505 GB, free: 145.9 MB / 0.6982 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002183/3.101, allocations: 328.1 kB / 1.505 GB, free: 145.7 MB / 0.6982 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001917/3.102, allocations: 216.1 kB / 1.505 GB, free: 145.6 MB / 0.6982 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.64e-05/3.102, allocations: 0 / 1.505 GB, free: 145.6 MB / 0.6982 GB Notification: Performance of setup shared object (initialization): time 7.919e-05/3.102, allocations: 327.1 kB / 1.505 GB, free: 145.3 MB / 0.6982 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002748/3.102, allocations: 180.5 kB / 1.506 GB, free: 145.3 MB / 0.6982 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003408/3.102, allocations: 307.2 kB / 1.506 GB, free: 145.2 MB / 0.6982 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008412/3.103, allocations: 260.3 kB / 1.506 GB, free: 145.2 MB / 0.6982 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.138e-06/3.103, allocations: 0 / 1.506 GB, free: 145.2 MB / 0.6982 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.001471/3.105, allocations: 0.6679 MB / 1.507 GB, free: 145.1 MB / 0.6982 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002204/3.105, allocations: 0.8779 MB / 1.508 GB, free: 144.2 MB / 0.6982 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.14e-05/3.105, allocations: 2.031 kB / 1.508 GB, free: 144.2 MB / 0.6982 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003432/3.105, allocations: 91.16 kB / 1.508 GB, free: 144.1 MB / 0.6982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004876/3.106, allocations: 120 kB / 1.508 GB, free: 144.1 MB / 0.6982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006854/3.106, allocations: 0.6877 MB / 1.509 GB, free: 143.6 MB / 0.6982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000886/3.107, allocations: 75.53 kB / 1.509 GB, free: 143.6 MB / 0.6982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.558e-05/3.107, allocations: 33.38 kB / 1.509 GB, free: 143.6 MB / 0.6982 GB Notification: Performance of prepare postOptimizeDAE: time 1.005e-05/3.107, allocations: 3.062 kB / 1.509 GB, free: 143.6 MB / 0.6982 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001253/3.109, allocations: 0.5496 MB / 1.509 GB, free: 143.6 MB / 0.6982 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.892e-06/3.109, allocations: 2.438 kB / 1.509 GB, free: 143.6 MB / 0.6982 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002282/3.109, allocations: 84.98 kB / 1.509 GB, free: 143.6 MB / 0.6982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004468/3.109, allocations: 117.9 kB / 1.509 GB, free: 143.6 MB / 0.6982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006013/3.11, allocations: 0.6842 MB / 1.51 GB, free: 143 MB / 0.6982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000735/3.111, allocations: 67.56 kB / 1.51 GB, free: 143 MB / 0.6982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.318e-05/3.111, allocations: 30.8 kB / 1.51 GB, free: 143 MB / 0.6982 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * 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 (67): * Single equations (assignments): 66 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 7} Notification: Performance of prepare postOptimizeDAE: time 0.0001757/3.111, allocations: 128.1 kB / 1.51 GB, free: 142.9 MB / 0.6982 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001677/3.111, allocations: 90.53 kB / 1.51 GB, free: 142.9 MB / 0.6982 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002024/3.113, allocations: 0.9563 MB / 1.511 GB, free: 142.8 MB / 0.6982 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.363e-05/3.113, allocations: 7.75 kB / 1.511 GB, free: 142.8 MB / 0.6982 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.782e-06/3.113, allocations: 0 / 1.511 GB, free: 142.8 MB / 0.6982 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001283/3.115, allocations: 0.8098 MB / 1.512 GB, free: 142.5 MB / 0.6982 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00321/3.118, allocations: 1.715 MB / 1.514 GB, free: 142.2 MB / 0.6982 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.471e-06/3.118, allocations: 3.875 kB / 1.514 GB, free: 142.2 MB / 0.6982 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004994/3.118, allocations: 108.5 kB / 1.514 GB, free: 142.2 MB / 0.6982 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004172/3.119, allocations: 140.2 kB / 1.514 GB, free: 142.1 MB / 0.6982 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.59e-05/3.119, allocations: 11.69 kB / 1.514 GB, free: 142.1 MB / 0.6982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008927/3.12, allocations: 1.28 MB / 1.515 GB, free: 141.1 MB / 0.6982 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.53e-06/3.12, allocations: 5.688 kB / 1.515 GB, free: 141.1 MB / 0.6982 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001945/3.122, allocations: 1.22 MB / 1.516 GB, free: 140.8 MB / 0.6982 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002439/3.124, allocations: 1.998 MB / 1.518 GB, free: 140.2 MB / 0.6982 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005307/3.125, allocations: 269.3 kB / 1.519 GB, free: 140 MB / 0.6982 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001896/3.125, allocations: 7.625 kB / 1.519 GB, free: 140 MB / 0.6982 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006864/3.126, allocations: 45.97 kB / 1.519 GB, free: 140 MB / 0.6982 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.751e-05/3.126, allocations: 49.3 kB / 1.519 GB, free: 140 MB / 0.6982 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.723e-05/3.126, allocations: 31.97 kB / 1.519 GB, free: 140 MB / 0.6982 GB Notification: Performance of sort global known variables: time 0.0006629/3.126, allocations: 0.4988 MB / 1.519 GB, free: 139.9 MB / 0.6982 GB Notification: Performance of remove unused functions: time 0.003561/3.13, allocations: 0.789 MB / 1.52 GB, free: 139.8 MB / 0.6982 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 5 (roo.dynBal.U,roo.dynBal.m,oriChiTop.mExc,oriBot.mExc,oriChiBot.mExc) * 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 (63): * Single equations (assignments): 55 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {2 9,1 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.00192/3.132, allocations: 0.8435 MB / 1.521 GB, free: 139.6 MB / 0.6982 GB Notification: Performance of simCode: created initialization part: time 0.001767/3.134, allocations: 0.883 MB / 1.522 GB, free: 139.6 MB / 0.6982 GB Notification: Performance of simCode: created event and clocks part: time 4.869e-06/3.134, allocations: 3.094 kB / 1.522 GB, free: 139.6 MB / 0.6982 GB Notification: Performance of simCode: created simulation system equations: time 0.0006167/3.134, allocations: 351.9 kB / 1.522 GB, free: 139.6 MB / 0.6982 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001775/3.136, allocations: 348.3 kB / 1.522 GB, free: 139.6 MB / 0.6982 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003517/3.14, allocations: 1.604 MB / 1.524 GB, free: 139.2 MB / 0.6982 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009897/3.141, allocations: 1.188 MB / 1.525 GB, free: 138.5 MB / 0.6982 GB Notification: Performance of SimCode: time 4.61e-07/3.141, allocations: 3.406 kB / 1.525 GB, free: 138.5 MB / 0.6982 GB (rm -f BuildingSystems_BuildingSystems.Airflow.Multizone.Examples.ChimneyShaftNoVolume.pipe ; mkfifo BuildingSystems_BuildingSystems.Airflow.Multizone.Examples.ChimneyShaftNoVolume.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Airflow.Multizone.Examples.ChimneyShaftNoVolume.pipe >> ../files/BuildingSystems_BuildingSystems.Airflow.Multizone.Examples.ChimneyShaftNoVolume.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Airflow_Multizone_Examples_ChimneyShaftNoVolume_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Airflow_Multizone_Examples_ChimneyShaftNoVolume.fmu > BuildingSystems_BuildingSystems.Airflow.Multizone.Examples.ChimneyShaftNoVolume.pipe 2>&1)