Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowPControl.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.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_latest_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_latest_Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowPControl") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.339/2.339, allocations: 390.3 MB / 402.8 MB, free: 6.676 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.001042/0.001042, allocations: 176.9 kB / 496.1 MB, free: 12.88 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.574/1.574, allocations: 221.3 MB / 0.7915 GB, free: 5.375 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.001004/0.001004, allocations: 99.5 kB / 0.9317 GB, free: 5.691 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.469e-05/3.472e-05, allocations: 4 kB / 1.079 GB, free: 140.5 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3522/0.3522, allocations: 143 MB / 1.219 GB, free: 13.51 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 6.501/6.853, allocations: 2.223 GB / 3.441 GB, free: 11.76 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002501/6.854, allocations: 87.95 kB / 3.441 GB, free: 11.67 MB / 1.151 GB Notification: Performance of FrontEnd - DAE generated: time 11.46/18.32, allocations: 2.718 GB / 6.159 GB, free: 22.78 MB / 1.229 GB Notification: Performance of FrontEnd: time 2.175e-06/18.32, allocations: 0 / 6.159 GB, free: 22.78 MB / 1.229 GB Notification: Performance of Transformations before backend: time 0.001614/18.32, allocations: 163.9 kB / 6.159 GB, free: 22.62 MB / 1.229 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1243 * Number of variables: 1243 Notification: Performance of Generate backend data structure: time 0.03041/18.35, allocations: 6.192 MB / 6.165 GB, free: 16.36 MB / 1.229 GB Notification: Performance of prepare preOptimizeDAE: time 6.198e-05/18.35, allocations: 8.031 kB / 6.165 GB, free: 16.35 MB / 1.229 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01287/18.36, allocations: 1.494 MB / 6.167 GB, free: 14.85 MB / 1.229 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02389/18.39, allocations: 7.464 MB / 6.174 GB, free: 7.312 MB / 1.229 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005435/18.39, allocations: 369.5 kB / 6.174 GB, free: 6.949 MB / 1.229 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002897/18.39, allocations: 495.9 kB / 6.175 GB, free: 6.465 MB / 1.229 GB Notification: Performance of preOpt clockPartitioning (simulation): time 1.183/19.57, allocations: 6.586 MB / 6.181 GB, free: 153.5 MB / 1.229 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003019/19.57, allocations: 11.19 kB / 6.181 GB, free: 153.5 MB / 1.229 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001314/19.57, allocations: 199 kB / 6.181 GB, free: 153.5 MB / 1.229 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004509/19.58, allocations: 221.9 kB / 6.182 GB, free: 153.5 MB / 1.229 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0166/19.59, allocations: 5.69 MB / 6.187 GB, free: 153.5 MB / 1.229 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.07242/19.66, allocations: 28.22 MB / 6.215 GB, free: 143.5 MB / 1.229 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01008/19.67, allocations: 4.45 MB / 6.219 GB, free: 142.7 MB / 1.229 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007186/19.68, allocations: 2.5 MB / 6.222 GB, free: 142.7 MB / 1.229 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001823/19.68, allocations: 0.9203 MB / 6.222 GB, free: 141.7 MB / 1.229 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.007901/19.69, allocations: 2.185 MB / 6.225 GB, free: 141.6 MB / 1.229 GB Notification: Performance of pre-optimization done (n=325): time 9.128e-06/19.69, allocations: 0 / 6.225 GB, free: 141.6 MB / 1.229 GB Notification: Performance of matching and sorting (n=329): time 0.03687/19.73, allocations: 9.771 MB / 6.234 GB, free: 140 MB / 1.229 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001276/19.73, allocations: 166.4 kB / 6.234 GB, free: 139.9 MB / 1.229 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01587/19.74, allocations: 4.53 MB / 6.239 GB, free: 139.5 MB / 1.229 GB Notification: Performance of collectPreVariables (initialization): time 0.001383/19.75, allocations: 98.77 kB / 6.239 GB, free: 139.5 MB / 1.229 GB Notification: Performance of collectInitialEqns (initialization): time 0.005407/19.75, allocations: 2.721 MB / 6.242 GB, free: 138.9 MB / 1.229 GB Notification: Performance of collectInitialBindings (initialization): time 0.002675/19.75, allocations: 1.139 MB / 6.243 GB, free: 138.3 MB / 1.229 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001014/19.76, allocations: 67.52 kB / 6.243 GB, free: 138.3 MB / 1.229 GB Notification: Performance of setup shared object (initialization): time 0.000486/19.76, allocations: 440.5 kB / 6.243 GB, free: 138 MB / 1.229 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003938/19.76, allocations: 1.761 MB / 6.245 GB, free: 138 MB / 1.229 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004846/19.76, allocations: 2.565 MB / 6.247 GB, free: 137.2 MB / 1.229 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004956/19.77, allocations: 2.272 MB / 6.25 GB, free: 137.1 MB / 1.229 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.794e-05/19.77, allocations: 6 kB / 6.25 GB, free: 137.1 MB / 1.229 GB Notification: Performance of matching and sorting (n=418) (initialization): time 0.01389/19.78, allocations: 5.088 MB / 6.255 GB, free: 136.7 MB / 1.229 GB Notification: Performance of prepare postOptimizeDAE: time 0.001849/19.79, allocations: 6.21 MB / 6.261 GB, free: 130.1 MB / 1.229 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.242e-05/19.79, allocations: 17.44 kB / 6.261 GB, free: 130.1 MB / 1.229 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000799/19.79, allocations: 209.4 kB / 6.261 GB, free: 130.1 MB / 1.229 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004002/19.79, allocations: 0.771 MB / 6.262 GB, free: 130.1 MB / 1.229 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003201/19.79, allocations: 3.41 MB / 6.265 GB, free: 127.7 MB / 1.229 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008983/19.8, allocations: 0.6101 MB / 6.265 GB, free: 127.6 MB / 1.229 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001298/19.8, allocations: 140.9 kB / 6.266 GB, free: 127.6 MB / 1.229 GB Notification: Performance of prepare postOptimizeDAE: time 1.834e-05/19.8, allocations: 3.531 kB / 6.266 GB, free: 127.6 MB / 1.229 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01209/19.82, allocations: 4.639 MB / 6.27 GB, free: 127.5 MB / 1.229 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.088e-05/19.82, allocations: 10.81 kB / 6.27 GB, free: 127.5 MB / 1.229 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006979/19.82, allocations: 212.3 kB / 6.27 GB, free: 127.5 MB / 1.229 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00387/19.82, allocations: 0.7609 MB / 6.271 GB, free: 127.5 MB / 1.229 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004493/19.83, allocations: 4.059 MB / 6.275 GB, free: 124.7 MB / 1.229 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009011/19.83, allocations: 0.5929 MB / 6.276 GB, free: 124.7 MB / 1.229 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001544/19.84, allocations: 134.4 kB / 6.276 GB, free: 124.7 MB / 1.229 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 (397): * Single equations (assignments): 393 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * 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.003094/19.84, allocations: 340.5 kB / 6.276 GB, free: 124.6 MB / 1.229 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003949/19.84, allocations: 0.495 MB / 6.277 GB, free: 124.3 MB / 1.229 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01633/19.86, allocations: 4.901 MB / 6.281 GB, free: 124.1 MB / 1.229 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.112e-05/19.86, allocations: 36.17 kB / 6.281 GB, free: 124.1 MB / 1.229 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.56e-05/19.86, allocations: 2.625 kB / 6.281 GB, free: 124.1 MB / 1.229 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.008218/19.87, allocations: 4.075 MB / 6.285 GB, free: 123.8 MB / 1.229 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.03782/19.91, allocations: 12.16 MB / 6.297 GB, free: 122.8 MB / 1.229 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.775e-05/19.91, allocations: 3.281 kB / 6.297 GB, free: 122.8 MB / 1.229 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004179/19.91, allocations: 0.7449 MB / 6.298 GB, free: 122.8 MB / 1.229 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006516/19.91, allocations: 168.2 kB / 6.298 GB, free: 122.7 MB / 1.229 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009265/19.91, allocations: 97.23 kB / 6.298 GB, free: 122.7 MB / 1.229 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002923/19.91, allocations: 3.319 MB / 6.301 GB, free: 120.3 MB / 1.229 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.216e-05/19.91, allocations: 10.23 kB / 6.301 GB, free: 120.3 MB / 1.229 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01706/19.93, allocations: 7.736 MB / 6.309 GB, free: 118.9 MB / 1.229 GB Notification: Performance of postOpt removeConstants (simulation): time 0.006543/19.94, allocations: 1.229 MB / 6.31 GB, free: 118.6 MB / 1.229 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003038/19.94, allocations: 78.11 kB / 6.31 GB, free: 118.6 MB / 1.229 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007996/19.95, allocations: 0.5039 MB / 6.311 GB, free: 118.6 MB / 1.229 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001116/19.95, allocations: 202.8 kB / 6.311 GB, free: 118.6 MB / 1.229 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001011/19.95, allocations: 127.1 kB / 6.311 GB, free: 118.6 MB / 1.229 GB Notification: Performance of sorting global known variables: time 0.01034/19.96, allocations: 3.552 MB / 6.315 GB, free: 118.4 MB / 1.229 GB Notification: Performance of sort global known variables: time 4.2e-07/19.96, allocations: 2.516 kB / 6.315 GB, free: 118.4 MB / 1.229 GB Notification: Performance of remove unused functions: time 0.02261/19.98, allocations: 3.128 MB / 6.318 GB, free: 118.4 MB / 1.229 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 21 (temSen.T,val.filter.s[1],val.filter.s[2],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,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 (319): * Single equations (assignments): 311 * 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.008292/19.99, allocations: 3.154 MB / 6.321 GB, free: 117.2 MB / 1.229 GB Notification: Performance of simCode: created initialization part: time 0.01848/20.01, allocations: 7.329 MB / 6.328 GB, free: 116.6 MB / 1.229 GB Notification: Performance of simCode: created event and clocks part: time 2.374e-05/20.01, allocations: 4.156 kB / 6.328 GB, free: 116.6 MB / 1.229 GB Notification: Performance of simCode: created simulation system equations: time 0.005311/20.02, allocations: 2.327 MB / 6.33 GB, free: 116.4 MB / 1.229 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02047/20.04, allocations: 3.044 MB / 6.333 GB, free: 116.4 MB / 1.229 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04193/20.08, allocations: 11.62 MB / 6.344 GB, free: 114.2 MB / 1.229 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01059/20.09, allocations: 4.677 MB / 6.349 GB, free: 113.4 MB / 1.229 GB Notification: Performance of simCode: alias equations: time 0.02117/20.11, allocations: 4.468 MB / 6.353 GB, free: 113.3 MB / 1.229 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002417/20.11, allocations: 301.8 kB / 6.354 GB, free: 113.3 MB / 1.229 GB Notification: Performance of SimCode: time 1.342e-06/20.11, allocations: 1.422 kB / 6.354 GB, free: 113.3 MB / 1.229 GB Notification: Performance of Templates: time 0.2701/20.38, allocations: 152.7 MB / 6.503 GB, free: 100.1 MB / 1.229 GB make -j1 -f Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowPControl.makefile (rm -f Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowPControl.pipe ; mkfifo Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowPControl.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowPControl.pipe >> ../files/Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowPControl.sim & ./Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowPControl -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowPControl.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowPControl_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_HeatExchangers_Examples_WetCoilCounterFlowPControl.csv","../files/Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowPControl.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches