Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.DryCoilCounterFlowMassFlow.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.Fluid.HeatExchangers.Examples.DryCoilCounterFlowMassFlow,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|hex.sta_a1.T|hex.sta_b1.T|hex.Q2_flow|hex.port_a2.m_flow|hex.port_b2.m_flow",fileNamePrefix="Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.DryCoilCounterFlowMassFlow") translateModel(Buildings.Fluid.HeatExchangers.Examples.DryCoilCounterFlowMassFlow,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|hex.sta_a1.T|hex.sta_b1.T|hex.Q2_flow|hex.port_a2.m_flow|hex.port_b2.m_flow",fileNamePrefix="Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.DryCoilCounterFlowMassFlow") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.249/2.249, allocations: 393.5 MB / 408.4 MB, free: 11.03 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.00133/0.001331, allocations: 182.8 kB / 0.4902 GB, free: 2.316 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.586/1.586, allocations: 223.2 MB / 0.7992 GB, free: 14.71 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.001562/0.001561, allocations: 104.8 kB / 0.9396 GB, free: 1.938 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003729/0.0003728, allocations: 6.906 kB / 1.09 GB, free: 216.3 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3174/0.3178, allocations: 143 MB / 1.229 GB, free: 105.8 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 5.613/5.93, allocations: 2.209 GB / 3.438 GB, free: 241.5 MB / 1.167 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003397/5.931, allocations: 97.66 kB / 3.438 GB, free: 241.4 MB / 1.167 GB Notification: Performance of FrontEnd - DAE generated: time 8.334/14.27, allocations: 2.093 GB / 5.532 GB, free: 189.9 MB / 1.214 GB Notification: Performance of FrontEnd: time 4.188e-06/14.27, allocations: 2 kB / 5.532 GB, free: 189.9 MB / 1.214 GB Notification: Performance of Transformations before backend: time 0.001564/14.27, allocations: 135.6 kB / 5.532 GB, free: 189.9 MB / 1.214 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1021 * Number of variables: 1021 Notification: Performance of Generate backend data structure: time 0.03199/14.3, allocations: 6.359 MB / 5.538 GB, free: 187.9 MB / 1.214 GB Notification: Performance of prepare preOptimizeDAE: time 5.153e-05/14.3, allocations: 14.05 kB / 5.538 GB, free: 187.9 MB / 1.214 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01034/14.31, allocations: 1.243 MB / 5.539 GB, free: 187.6 MB / 1.214 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02166/14.33, allocations: 6.818 MB / 5.546 GB, free: 186.8 MB / 1.214 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004714/14.33, allocations: 302.9 kB / 5.546 GB, free: 186.8 MB / 1.214 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002215/14.33, allocations: 407.3 kB / 5.547 GB, free: 186.8 MB / 1.214 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0198/14.35, allocations: 5.602 MB / 5.552 GB, free: 186.5 MB / 1.214 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.000345/14.35, allocations: 9.922 kB / 5.552 GB, free: 186.5 MB / 1.214 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001753/14.36, allocations: 163.5 kB / 5.552 GB, free: 186.5 MB / 1.214 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002747/14.36, allocations: 193.6 kB / 5.552 GB, free: 186.5 MB / 1.214 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01311/14.37, allocations: 4.904 MB / 5.557 GB, free: 186.4 MB / 1.214 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.05115/14.42, allocations: 24.12 MB / 5.581 GB, free: 177.1 MB / 1.214 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007209/14.43, allocations: 3.613 MB / 5.584 GB, free: 176.7 MB / 1.214 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001322/14.43, allocations: 0.9987 MB / 5.585 GB, free: 175.6 MB / 1.214 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004574/14.43, allocations: 1.914 MB / 5.587 GB, free: 175.5 MB / 1.214 GB Notification: Performance of pre-optimization done (n=273): time 7.004e-06/14.43, allocations: 1.781 kB / 5.587 GB, free: 175.5 MB / 1.214 GB Notification: Performance of matching and sorting (n=277): time 0.02524/14.46, allocations: 9.933 MB / 5.597 GB, free: 173.6 MB / 1.214 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.713e-05/14.46, allocations: 137.4 kB / 5.597 GB, free: 173.5 MB / 1.214 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009978/14.47, allocations: 3.94 MB / 5.601 GB, free: 173.2 MB / 1.214 GB Notification: Performance of collectPreVariables (initialization): time 0.0009722/14.47, allocations: 85.48 kB / 5.601 GB, free: 173.2 MB / 1.214 GB Notification: Performance of collectInitialEqns (initialization): time 0.003489/14.47, allocations: 2.229 MB / 5.603 GB, free: 172.5 MB / 1.214 GB Notification: Performance of collectInitialBindings (initialization): time 0.001891/14.48, allocations: 0.9529 MB / 5.604 GB, free: 171.9 MB / 1.214 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006316/14.48, allocations: 56.09 kB / 5.604 GB, free: 171.9 MB / 1.214 GB Notification: Performance of setup shared object (initialization): time 0.0003751/14.48, allocations: 425.1 kB / 5.605 GB, free: 171.6 MB / 1.214 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002971/14.48, allocations: 1.507 MB / 5.606 GB, free: 171.5 MB / 1.214 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003422/14.48, allocations: 2.164 MB / 5.608 GB, free: 170.9 MB / 1.214 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003349/14.49, allocations: 1.964 MB / 5.61 GB, free: 170.8 MB / 1.214 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.886e-05/14.49, allocations: 3.844 kB / 5.61 GB, free: 170.8 MB / 1.214 GB Notification: Performance of matching and sorting (n=353) (initialization): time 0.00923/14.5, allocations: 4.364 MB / 5.614 GB, free: 170.4 MB / 1.214 GB Notification: Performance of prepare postOptimizeDAE: time 0.001245/14.5, allocations: 5.208 MB / 5.619 GB, free: 165.1 MB / 1.214 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.719e-05/14.5, allocations: 13.19 kB / 5.619 GB, free: 165.1 MB / 1.214 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004837/14.5, allocations: 127.8 kB / 5.62 GB, free: 165.1 MB / 1.214 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002981/14.5, allocations: 0.6297 MB / 5.62 GB, free: 165.1 MB / 1.214 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002465/14.5, allocations: 2.776 MB / 5.623 GB, free: 163.2 MB / 1.214 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006351/14.51, allocations: 0.5173 MB / 5.623 GB, free: 163.1 MB / 1.214 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007577/14.51, allocations: 117.8 kB / 5.623 GB, free: 163.1 MB / 1.214 GB Notification: Performance of prepare postOptimizeDAE: time 1.734e-05/14.51, allocations: 9.172 kB / 5.623 GB, free: 163.1 MB / 1.214 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00817/14.52, allocations: 4.017 MB / 5.627 GB, free: 163 MB / 1.214 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.481e-05/14.52, allocations: 11.22 kB / 5.627 GB, free: 163 MB / 1.214 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003939/14.52, allocations: 125 kB / 5.628 GB, free: 162.9 MB / 1.214 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002786/14.52, allocations: 0.6199 MB / 5.628 GB, free: 162.9 MB / 1.214 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002128/14.52, allocations: 2.18 MB / 5.63 GB, free: 161.6 MB / 1.214 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00753/14.53, allocations: 0.5021 MB / 5.631 GB, free: 161.6 MB / 1.214 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008031/14.53, allocations: 113.5 kB / 5.631 GB, free: 161.6 MB / 1.214 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 51 * Number of states: 0 () * Number of discrete variables: 14 ($whenCondition1,$whenCondition2,mWatGai.a,mWatGai.b,mWatGai.last,$PRE.mWatGai.nextEvent,mWatGai.nextEvent,mWatGai.nextEventScaled,mAirGai.a,mAirGai.b,mAirGai.last,$PRE.mAirGai.nextEvent,mAirGai.nextEvent,mAirGai.nextEventScaled) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (336): * Single equations (assignments): 332 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 7} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.006584/14.54, allocations: 2.159 MB / 5.633 GB, free: 161.3 MB / 1.214 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002368/14.54, allocations: 432.6 kB / 5.633 GB, free: 161.1 MB / 1.214 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00921/14.55, allocations: 4.18 MB / 5.637 GB, free: 160.8 MB / 1.214 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.959e-05/14.55, allocations: 24.72 kB / 5.637 GB, free: 160.8 MB / 1.214 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.938e-05/14.55, allocations: 3.188 kB / 5.637 GB, free: 160.8 MB / 1.214 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.005288/14.56, allocations: 3.522 MB / 5.641 GB, free: 160.5 MB / 1.214 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.02409/14.58, allocations: 10.58 MB / 5.651 GB, free: 159.4 MB / 1.214 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.501e-05/14.58, allocations: 3.656 kB / 5.651 GB, free: 159.4 MB / 1.214 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003062/14.58, allocations: 0.6208 MB / 5.652 GB, free: 159.4 MB / 1.214 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000454/14.58, allocations: 114.3 kB / 5.652 GB, free: 159.4 MB / 1.214 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004931/14.58, allocations: 88.73 kB / 5.652 GB, free: 159.4 MB / 1.214 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002235/14.59, allocations: 2.758 MB / 5.655 GB, free: 157.4 MB / 1.214 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.06e-06/14.59, allocations: 3.25 kB / 5.655 GB, free: 157.4 MB / 1.214 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01008/14.6, allocations: 6.643 MB / 5.661 GB, free: 156.2 MB / 1.214 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004247/14.6, allocations: 1.063 MB / 5.662 GB, free: 155.8 MB / 1.214 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001675/14.6, allocations: 74.28 kB / 5.662 GB, free: 155.8 MB / 1.214 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005099/14.61, allocations: 460.3 kB / 5.663 GB, free: 155.8 MB / 1.214 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004315/14.61, allocations: 172 kB / 5.663 GB, free: 155.8 MB / 1.214 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003833/14.61, allocations: 115.7 kB / 5.663 GB, free: 155.8 MB / 1.214 GB Notification: Performance of sorting global known variables: time 0.006439/14.61, allocations: 3.116 MB / 5.666 GB, free: 155.6 MB / 1.214 GB Notification: Performance of sort global known variables: time 2.51e-07/14.61, allocations: 0 / 5.666 GB, free: 155.6 MB / 1.214 GB Notification: Performance of remove unused functions: time 0.01221/14.63, allocations: 2.744 MB / 5.669 GB, free: 155.6 MB / 1.214 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 18 (hex.ele[1].vol1.dynBal.U,hex.ele[1].vol2.dynBal.medium.Xi[1],hex.ele[1].vol2.dynBal.U,hex.ele[1].mas.T,hex.ele[2].vol1.dynBal.U,hex.ele[2].vol2.dynBal.medium.Xi[1],hex.ele[2].vol2.dynBal.U,hex.ele[2].mas.T,hex.ele[3].vol1.dynBal.U,hex.ele[3].vol2.dynBal.medium.Xi[1],hex.ele[3].vol2.dynBal.U,hex.ele[3].mas.T,hex.ele[4].vol1.dynBal.U,hex.ele[4].vol2.dynBal.medium.Xi[1],hex.ele[4].vol2.dynBal.U,hex.ele[4].vol2.dynBal.m,hex.ele[4].mas.T,senRelHum.phi) * Number of discrete variables: 12 ($whenCondition1,$whenCondition2,mWatGai.a,mWatGai.b,mWatGai.last,mWatGai.nextEvent,mWatGai.nextEventScaled,mAirGai.a,mAirGai.b,mAirGai.last,mAirGai.nextEvent,mAirGai.nextEventScaled) * Number of discrete states: 12 (mAirGai.nextEvent,mAirGai.last,mAirGai.nextEventScaled,mAirGai.b,mAirGai.a,$whenCondition2,mWatGai.nextEvent,mWatGai.last,mWatGai.nextEventScaled,mWatGai.b,mWatGai.a,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (266): * Single equations (assignments): 258 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 7} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.005166/14.63, allocations: 2.781 MB / 5.672 GB, free: 154.6 MB / 1.214 GB Notification: Performance of simCode: created initialization part: time 0.009852/14.64, allocations: 6.207 MB / 5.678 GB, free: 154 MB / 1.214 GB Notification: Performance of simCode: created event and clocks part: time 1.318e-05/14.64, allocations: 3.375 kB / 5.678 GB, free: 154 MB / 1.214 GB Notification: Performance of simCode: created simulation system equations: time 0.002803/14.64, allocations: 2.085 MB / 5.68 GB, free: 153.8 MB / 1.214 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01303/14.66, allocations: 2.775 MB / 5.682 GB, free: 153.8 MB / 1.214 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02186/14.68, allocations: 13.55 MB / 5.696 GB, free: 149.1 MB / 1.214 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003627/14.68, allocations: 4.041 MB / 5.7 GB, free: 148.3 MB / 1.214 GB Notification: Performance of simCode: alias equations: time 0.007824/14.69, allocations: 2.403 MB / 5.702 GB, free: 148.3 MB / 1.214 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001192/14.69, allocations: 331.8 kB / 5.702 GB, free: 148.3 MB / 1.214 GB Notification: Performance of SimCode: time 1.423e-06/14.69, allocations: 0 / 5.702 GB, free: 148.3 MB / 1.214 GB Notification: Performance of Templates: time 0.1862/14.88, allocations: 122.4 MB / 5.822 GB, free: 92.28 MB / 1.214 GB make -j1 -f Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.DryCoilCounterFlowMassFlow.makefile (rm -f Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.DryCoilCounterFlowMassFlow.pipe ; mkfifo Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.DryCoilCounterFlowMassFlow.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.DryCoilCounterFlowMassFlow.pipe >> ../files/Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.DryCoilCounterFlowMassFlow.sim & ./Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.DryCoilCounterFlowMassFlow -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.DryCoilCounterFlowMassFlow.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.DryCoilCounterFlowMassFlow_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_HeatExchangers_Examples_DryCoilCounterFlowMassFlow.csv","../files/Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.DryCoilCounterFlowMassFlow.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches