Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowPControl.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: translateModel(Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowPControl,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|hex.Q1_flow|hex.Q2_flow|hex.QLat2_flow|hex.m1_flow|hex.m2_flow|con.u_s|con.u_m",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowPControl") translateModel(Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowPControl,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|hex.Q1_flow|hex.Q2_flow|hex.QLat2_flow|hex.m1_flow|hex.m2_flow|con.u_s|con.u_m",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowPControl") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.49/1.49, allocations: 249.3 MB / 261.8 MB, free: 5.902 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001089/0.001089, allocations: 174.7 kB / 321.3 MB, free: 14.63 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.63/1.63, allocations: 205.2 MB / 0.572 GB, free: 10.65 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001038/0.001038, allocations: 94.39 kB / 0.6764 GB, free: 15.62 MB / 0.5261 GB Notification: Performance of FrontEnd - loaded program: time 3.363e-05/3.366e-05, allocations: 4 kB / 0.7879 GB, free: 97.08 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2256/0.2256, allocations: 106.3 MB / 0.8918 GB, free: 6.652 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 6.806/7.031, allocations: 2.511 GB / 3.403 GB, free: 140.1 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002532/7.032, allocations: 93.11 kB / 3.403 GB, free: 140 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 11.1/18.14, allocations: 2.606 GB / 6.009 GB, free: 89.61 MB / 0.948 GB Notification: Performance of FrontEnd: time 2.214e-06/18.14, allocations: 5.875 kB / 6.009 GB, free: 89.61 MB / 0.948 GB Notification: Performance of Transformations before backend: time 0.001437/18.14, allocations: 165.6 kB / 6.009 GB, free: 89.59 MB / 0.948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1252 * Number of variables: 1252 Notification: Performance of Generate backend data structure: time 0.02946/18.17, allocations: 6.195 MB / 6.015 GB, free: 87.61 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 5.805e-05/18.17, allocations: 9.219 kB / 6.015 GB, free: 87.61 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01297/18.18, allocations: 1.507 MB / 6.017 GB, free: 87.22 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02748/18.21, allocations: 7.432 MB / 6.024 GB, free: 86.3 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007959/18.21, allocations: 378.4 kB / 6.024 GB, free: 86.29 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002798/18.21, allocations: 0.5029 MB / 6.025 GB, free: 86.28 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02059/18.23, allocations: 6.622 MB / 6.031 GB, free: 85.8 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003418/18.23, allocations: 20.97 kB / 6.031 GB, free: 85.8 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001821/18.23, allocations: 201.6 kB / 6.032 GB, free: 85.8 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002911/18.23, allocations: 223.2 kB / 6.032 GB, free: 85.79 MB / 0.948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01714/18.25, allocations: 5.733 MB / 6.037 GB, free: 85.74 MB / 0.948 GB Warning: The model contains alias variables with conflicting start and/or 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.06566/18.32, allocations: 28.14 MB / 6.065 GB, free: 75.35 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007471/18.32, allocations: 4.237 MB / 6.069 GB, free: 74.71 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004247/18.33, allocations: 2.47 MB / 6.071 GB, free: 74.68 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001166/18.33, allocations: 0.9188 MB / 6.072 GB, free: 73.74 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004355/18.33, allocations: 2.158 MB / 6.074 GB, free: 73.61 MB / 0.948 GB Notification: Performance of pre-optimization done (n=324): time 6.663e-06/18.33, allocations: 0 / 6.074 GB, free: 73.61 MB / 0.948 GB Notification: Performance of matching and sorting (n=328): time 0.0354/18.37, allocations: 9.632 MB / 6.084 GB, free: 71.84 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001516/18.37, allocations: 248.1 kB / 6.084 GB, free: 71.59 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01607/18.39, allocations: 4.538 MB / 6.088 GB, free: 71.27 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 0.001467/18.39, allocations: 96.2 kB / 6.089 GB, free: 71.24 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 0.005656/18.39, allocations: 2.743 MB / 6.091 GB, free: 70.36 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 0.002734/18.4, allocations: 1.126 MB / 6.092 GB, free: 69.63 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001013/18.4, allocations: 62.31 kB / 6.092 GB, free: 69.63 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 0.0005192/18.4, allocations: 450.2 kB / 6.093 GB, free: 69.32 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004851/18.4, allocations: 1.721 MB / 6.094 GB, free: 69.32 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005561/18.41, allocations: 2.647 MB / 6.097 GB, free: 68.44 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0056/18.41, allocations: 2.249 MB / 6.099 GB, free: 68.35 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.461e-05/18.41, allocations: 3.594 kB / 6.099 GB, free: 68.35 MB / 0.948 GB Notification: Performance of matching and sorting (n=421) (initialization): time 0.0125/18.43, allocations: 5.046 MB / 6.104 GB, free: 67.92 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 0.001332/18.43, allocations: 6.216 MB / 6.11 GB, free: 61.32 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.613e-05/18.43, allocations: 14.47 kB / 6.11 GB, free: 61.32 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006484/18.43, allocations: 218.3 kB / 6.111 GB, free: 61.3 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003249/18.43, allocations: 0.758 MB / 6.111 GB, free: 61.3 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002699/18.43, allocations: 3.412 MB / 6.115 GB, free: 58.87 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007851/18.44, allocations: 0.6022 MB / 6.115 GB, free: 58.83 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007307/18.44, allocations: 131.8 kB / 6.115 GB, free: 58.83 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 1.485e-05/18.44, allocations: 3.5 kB / 6.115 GB, free: 58.83 MB / 0.948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00961/18.45, allocations: 4.585 MB / 6.12 GB, free: 58.68 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.981e-05/18.45, allocations: 14.06 kB / 6.12 GB, free: 58.68 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006404/18.45, allocations: 207.5 kB / 6.12 GB, free: 58.67 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003199/18.46, allocations: 0.7454 MB / 6.121 GB, free: 58.67 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004223/18.46, allocations: 4.059 MB / 6.125 GB, free: 55.92 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007576/18.47, allocations: 0.5809 MB / 6.125 GB, free: 55.89 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007232/18.47, allocations: 131.2 kB / 6.125 GB, free: 55.89 MB / 0.948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 59 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition1,TSet.a,TSet.b,TSet.last,$PRE.TSet.nextEvent,TSet.nextEvent,TSet.nextEventScaled,con.I.trigger_internal) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (398): * Single equations (assignments): 392 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 2 * 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: 1 {1 9} Notification: Performance of prepare postOptimizeDAE: time 0.001754/18.47, allocations: 339.5 kB / 6.126 GB, free: 55.74 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002516/18.47, allocations: 0.5035 MB / 6.126 GB, free: 55.48 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01145/18.48, allocations: 4.812 MB / 6.131 GB, free: 55.23 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.759e-05/18.48, allocations: 39.11 kB / 6.131 GB, free: 55.23 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.977e-05/18.48, allocations: 0 / 6.131 GB, free: 55.23 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006949/18.49, allocations: 4.005 MB / 6.135 GB, free: 54.91 MB / 0.948 GB Warning: The model contains alias variables with conflicting start and/or 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.03411/18.53, allocations: 11.85 MB / 6.146 GB, free: 54.03 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.718e-05/18.53, allocations: 4.031 kB / 6.146 GB, free: 54.03 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003917/18.53, allocations: 0.751 MB / 6.147 GB, free: 54.03 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006054/18.53, allocations: 166 kB / 6.147 GB, free: 54.01 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000814/18.53, allocations: 91.98 kB / 6.147 GB, free: 54.01 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002748/18.53, allocations: 3.326 MB / 6.151 GB, free: 51.57 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.332e-06/18.53, allocations: 2.375 kB / 6.151 GB, free: 51.57 MB / 0.948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01816/18.55, allocations: 7.904 MB / 6.158 GB, free: 50.2 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.007117/18.56, allocations: 1.243 MB / 6.16 GB, free: 49.84 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003298/18.56, allocations: 79.78 kB / 6.16 GB, free: 49.84 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007404/18.57, allocations: 0.5084 MB / 6.16 GB, free: 49.82 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001045/18.57, allocations: 197.6 kB / 6.16 GB, free: 49.81 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0009442/18.57, allocations: 120 kB / 6.16 GB, free: 49.81 MB / 0.948 GB Notification: Performance of sorting global known variables: time 0.009673/18.58, allocations: 3.564 MB / 6.164 GB, free: 49.61 MB / 0.948 GB Notification: Performance of sort global known variables: time 7.02e-07/18.58, allocations: 0 / 6.164 GB, free: 49.61 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.02167/18.6, allocations: 3.182 MB / 6.167 GB, free: 49.54 MB / 0.948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 21 (temSen.T,val.filter.x[1],val.filter.x[2],hex.ele[1].vol1.dynBal.U,hex.ele[1].vol2.dynBal.U,hex.ele[1].vol2.dynBal.mXi[1],hex.ele[1].mas.T,hex.ele[2].vol1.dynBal.U,hex.ele[2].vol2.dynBal.U,hex.ele[2].vol2.dynBal.mXi[1],hex.ele[2].mas.T,hex.ele[3].vol1.dynBal.U,hex.ele[3].vol2.dynBal.U,hex.ele[3].vol2.dynBal.mXi[1],hex.ele[3].mas.T,hex.ele[4].vol1.dynBal.U,hex.ele[4].vol2.dynBal.U,hex.ele[4].vol2.dynBal.m,hex.ele[4].vol2.dynBal.mXi[1],hex.ele[4].mas.T,con.I.y) * Number of discrete variables: 6 ($whenCondition1,TSet.a,TSet.b,TSet.last,TSet.nextEvent,TSet.nextEventScaled) * Number of discrete states: 6 (TSet.nextEvent,TSet.last,TSet.nextEventScaled,TSet.b,TSet.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (318): * Single equations (assignments): 310 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 2 * 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: 1 {1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.007358/18.61, allocations: 3.212 MB / 6.17 GB, free: 48.32 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.01586/18.63, allocations: 7.299 MB / 6.177 GB, free: 47.67 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 1.544e-05/18.63, allocations: 1.062 kB / 6.177 GB, free: 47.67 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 0.004422/18.63, allocations: 2.29 MB / 6.18 GB, free: 47.47 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02028/18.65, allocations: 3.085 MB / 6.183 GB, free: 47.4 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03569/18.69, allocations: 11.59 MB / 6.194 GB, free: 45.17 MB / 0.948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007954/18.7, allocations: 4.697 MB / 6.198 GB, free: 44.32 MB / 0.948 GB Notification: Performance of simCode: alias equations: time 0.01502/18.71, allocations: 4.413 MB / 6.203 GB, free: 44.26 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001533/18.71, allocations: 300 kB / 6.203 GB, free: 44.25 MB / 0.948 GB Notification: Performance of SimCode: time 1.282e-06/18.71, allocations: 0 / 6.203 GB, free: 44.25 MB / 0.948 GB Notification: Performance of Templates: time 1.013/19.72, allocations: 154.4 MB / 6.354 GB, free: 118.5 MB / 0.9792 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowPControl.makefile (rm -f Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowPControl.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowPControl.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowPControl.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowPControl.sim & ./Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowPControl -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowPControl.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowPControl_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Fluid_HeatExchangers_Examples_WetCoilCounterFlowPControl.csv","../files/Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowPControl.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches