Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Airflow.Multizone.Examples.ClosedDoors.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.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) 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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: translateModel(Buildings.Airflow.Multizone.Examples.ClosedDoors,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dooAB.vAB|dooAB.vBA|dooAC.vAB|dooAC.vBA|dooBC.vAB|dooBC.vBA",fileNamePrefix="Buildings_latest_Buildings.Airflow.Multizone.Examples.ClosedDoors") translateModel(Buildings.Airflow.Multizone.Examples.ClosedDoors,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dooAB.vAB|dooAB.vBA|dooAC.vAB|dooAC.vBA|dooBC.vAB|dooBC.vBA",fileNamePrefix="Buildings_latest_Buildings.Airflow.Multizone.Examples.ClosedDoors") [: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/Buildings 10.0.0-master/package.mo): time 1.769/1.769, allocations: 390.4 MB / 397.7 MB, free: 11.17 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009337/0.0009337, allocations: 188.4 kB / 490.8 MB, free: 1.875 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.132/1.132, allocations: 221.4 MB / 0.7863 GB, free: 13.58 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008545/0.0008545, allocations: 96.64 kB / 0.9264 GB, free: 14.11 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 6.021e-06/6.051e-06, allocations: 0 / 1.072 GB, free: 182.5 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1968/0.1969, allocations: 143 MB / 1.212 GB, free: 40.04 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 6.121/6.318, allocations: 4.439 GB / 5.65 GB, free: 85.64 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002418/6.318, allocations: 83.95 kB / 5.65 GB, free: 85.56 MB / 1.151 GB Notification: Performance of FrontEnd: time 2.83/9.148, allocations: 0.9889 GB / 6.639 GB, free: 210.4 MB / 1.167 GB Notification: Performance of Transformations before backend: time 0.0001242/9.149, allocations: 67.78 kB / 6.639 GB, free: 210.4 MB / 1.167 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 697 * Number of variables: 697 Notification: Performance of Generate backend data structure: time 0.007838/9.156, allocations: 3.337 MB / 6.642 GB, free: 209.7 MB / 1.167 GB Notification: Performance of prepare preOptimizeDAE: time 3.714e-05/9.156, allocations: 10.34 kB / 6.643 GB, free: 209.7 MB / 1.167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003832/9.16, allocations: 0.7034 MB / 6.643 GB, free: 209.6 MB / 1.167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003811/9.164, allocations: 2.04 MB / 6.645 GB, free: 209.2 MB / 1.167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.269e-05/9.164, allocations: 86.03 kB / 6.645 GB, free: 209.2 MB / 1.167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003119/9.165, allocations: 151.1 kB / 6.645 GB, free: 209.2 MB / 1.167 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005458/9.17, allocations: 4.163 MB / 6.649 GB, free: 209.2 MB / 1.167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003869/9.174, allocations: 2.792 MB / 6.652 GB, free: 209.1 MB / 1.167 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.885e-05/9.174, allocations: 7.656 kB / 6.652 GB, free: 209.1 MB / 1.167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002255/9.174, allocations: 3.875 kB / 6.652 GB, free: 209.1 MB / 1.167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.077e-05/9.174, allocations: 130.6 kB / 6.652 GB, free: 209.1 MB / 1.167 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01263/9.187, allocations: 11.54 MB / 6.664 GB, free: 204.6 MB / 1.167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004477/9.191, allocations: 4.183 MB / 6.668 GB, free: 204.3 MB / 1.167 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002543/9.194, allocations: 2.417 MB / 6.67 GB, free: 204.3 MB / 1.167 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008011/9.195, allocations: 0.8666 MB / 6.671 GB, free: 203.4 MB / 1.167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.68e-05/9.195, allocations: 74.05 kB / 6.671 GB, free: 203.4 MB / 1.167 GB Notification: Performance of pre-optimization done (n=399): time 4.779e-06/9.195, allocations: 0 / 6.671 GB, free: 203.4 MB / 1.167 GB Notification: Performance of matching and sorting (n=399): time 0.008525/9.203, allocations: 4.445 MB / 6.675 GB, free: 203.1 MB / 1.167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.243e-05/9.203, allocations: 99.58 kB / 6.675 GB, free: 203.1 MB / 1.167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001271/9.205, allocations: 1.03 MB / 6.676 GB, free: 202.9 MB / 1.167 GB Notification: Performance of collectPreVariables (initialization): time 0.0001884/9.205, allocations: 25.7 kB / 6.676 GB, free: 202.9 MB / 1.167 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002426/9.205, allocations: 0.5855 MB / 6.677 GB, free: 202.6 MB / 1.167 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008276/9.206, allocations: 1.275 MB / 6.678 GB, free: 202 MB / 1.167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001499/9.206, allocations: 0 / 6.678 GB, free: 202 MB / 1.167 GB Notification: Performance of setup shared object (initialization): time 0.0001243/9.206, allocations: 443 kB / 6.679 GB, free: 201.6 MB / 1.167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001799/9.208, allocations: 1.538 MB / 6.68 GB, free: 201.6 MB / 1.167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001919/9.21, allocations: 1.814 MB / 6.682 GB, free: 201.5 MB / 1.167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004085/9.214, allocations: 2.245 MB / 6.684 GB, free: 201.4 MB / 1.167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.065e-06/9.214, allocations: 3.562 kB / 6.684 GB, free: 201.4 MB / 1.167 GB Notification: Performance of matching and sorting (n=430) (initialization): time 0.006857/9.221, allocations: 4.384 MB / 6.688 GB, free: 201.2 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 1.339e-05/9.221, allocations: 6.938 kB / 6.688 GB, free: 201.2 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.342e-05/9.221, allocations: 3.188 kB / 6.688 GB, free: 201.2 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.269e-05/9.221, allocations: 20.81 kB / 6.688 GB, free: 201.2 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002681/9.224, allocations: 0.6827 MB / 6.689 GB, free: 201.2 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.592e-05/9.224, allocations: 17.03 kB / 6.689 GB, free: 201.2 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002585/9.226, allocations: 339 kB / 6.689 GB, free: 201.1 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002221/9.227, allocations: 109 kB / 6.69 GB, free: 201.1 MB / 1.167 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (430): * Single equations (assignments): 430 * 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.0004015/9.227, allocations: 153.9 kB / 6.69 GB, free: 201 MB / 1.167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003599/9.227, allocations: 234.6 kB / 6.69 GB, free: 200.9 MB / 1.167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007763/9.235, allocations: 4.831 MB / 6.695 GB, free: 200.7 MB / 1.167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.404e-05/9.235, allocations: 41.41 kB / 6.695 GB, free: 200.7 MB / 1.167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.198e-05/9.235, allocations: 0 / 6.695 GB, free: 200.7 MB / 1.167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006293/9.241, allocations: 4.175 MB / 6.699 GB, free: 200.5 MB / 1.167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01441/9.256, allocations: 8.194 MB / 6.707 GB, free: 199.9 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.49e-05/9.256, allocations: 3.906 kB / 6.707 GB, free: 199.9 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003136/9.259, allocations: 0.6641 MB / 6.707 GB, free: 199.9 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004869/9.26, allocations: 143.3 kB / 6.708 GB, free: 199.9 MB / 1.167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002437/9.26, allocations: 29.31 kB / 6.708 GB, free: 199.9 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003329/9.263, allocations: 4.336 MB / 6.712 GB, free: 196.1 MB / 1.167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.324e-06/9.263, allocations: 0 / 6.712 GB, free: 196.1 MB / 1.167 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.009633/9.273, allocations: 7.031 MB / 6.719 GB, free: 195.7 MB / 1.167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001418/9.274, allocations: 0.7726 MB / 6.719 GB, free: 195.4 MB / 1.167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000394/9.275, allocations: 2.938 kB / 6.719 GB, free: 195.4 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001968/9.277, allocations: 148.5 kB / 6.72 GB, free: 195.4 MB / 1.167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003192/9.277, allocations: 193.5 kB / 6.72 GB, free: 195.4 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002217/9.277, allocations: 115.6 kB / 6.72 GB, free: 195.4 MB / 1.167 GB Notification: Performance of sort global known variables: time 0.0009348/9.278, allocations: 0.8047 MB / 6.721 GB, free: 195.3 MB / 1.167 GB Notification: Performance of remove unused functions: time 0.003553/9.282, allocations: 1.131 MB / 6.722 GB, free: 195.2 MB / 1.167 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 15 (dooAB.mExcAB,dooAB.mExcBA,volA.dynBal.medium.Xi[1],volA.dynBal.U,volA.dynBal.m,volB.dynBal.medium.Xi[1],volB.dynBal.U,volB.dynBal.m,volC.dynBal.medium.Xi[1],volC.dynBal.U,volC.dynBal.m,dooAC.mExcAB,dooAC.mExcBA,dooBC.mExcAB,dooBC.mExcBA) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (393): * Single equations (assignments): 390 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002645/9.284, allocations: 2.546 MB / 6.724 GB, free: 194.5 MB / 1.167 GB Notification: Performance of simCode: created initialization part: time 0.004849/9.289, allocations: 3.894 MB / 6.728 GB, free: 194.4 MB / 1.167 GB Notification: Performance of simCode: created event and clocks part: time 6.031e-06/9.289, allocations: 6.438 kB / 6.728 GB, free: 194.4 MB / 1.167 GB Notification: Performance of simCode: created simulation system equations: time 0.002853/9.292, allocations: 2.449 MB / 6.73 GB, free: 194.1 MB / 1.167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004277/9.296, allocations: 0.8567 MB / 6.731 GB, free: 194.1 MB / 1.167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008716/9.305, allocations: 5.774 MB / 6.737 GB, free: 193.2 MB / 1.167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002278/9.308, allocations: 2.299 MB / 6.739 GB, free: 192.4 MB / 1.167 GB Notification: Performance of SimCode: time 1.393e-06/9.308, allocations: 0 / 6.739 GB, free: 192.4 MB / 1.167 GB Notification: Performance of Templates: time 0.08254/9.39, allocations: 63.56 MB / 6.801 GB, free: 191.5 MB / 1.167 GB make -j1 -f Buildings_latest_Buildings.Airflow.Multizone.Examples.ClosedDoors.makefile (rm -f Buildings_latest_Buildings.Airflow.Multizone.Examples.ClosedDoors.pipe ; mkfifo Buildings_latest_Buildings.Airflow.Multizone.Examples.ClosedDoors.pipe ; head -c 1048576 < Buildings_latest_Buildings.Airflow.Multizone.Examples.ClosedDoors.pipe >> ../files/Buildings_latest_Buildings.Airflow.Multizone.Examples.ClosedDoors.sim & ./Buildings_latest_Buildings.Airflow.Multizone.Examples.ClosedDoors -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Airflow.Multizone.Examples.ClosedDoors.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Airflow.Multizone.Examples.ClosedDoors_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Airflow_Multizone_Examples_ClosedDoors.csv","../files/Buildings_latest_Buildings.Airflow.Multizone.Examples.ClosedDoors.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches