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.25/2.25, allocations: 390.5 MB / 398 MB, free: 11 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.001017/0.001017, allocations: 176.9 kB / 491.2 MB, free: 1.629 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.624/1.624, allocations: 221.5 MB / 0.7868 GB, free: 13.29 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.001078/0.001078, allocations: 103.9 kB / 0.9269 GB, free: 13.78 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 1.862e-05/1.866e-05, allocations: 4 kB / 1.073 GB, free: 182 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3482/0.3482, allocations: 143 MB / 1.212 GB, free: 39.53 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 6.576/6.924, allocations: 2.222 GB / 3.434 GB, free: 54.76 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002908/6.924, allocations: 90.52 kB / 3.434 GB, free: 54.71 MB / 1.151 GB Notification: Performance of FrontEnd - DAE generated: time 11.41/18.33, allocations: 2.695 GB / 6.129 GB, free: 53.93 MB / 1.214 GB Notification: Performance of FrontEnd: time 2.525e-06/18.33, allocations: 0 / 6.129 GB, free: 53.93 MB / 1.214 GB Notification: Performance of Transformations before backend: time 0.001987/18.34, allocations: 171.3 kB / 6.13 GB, free: 53.77 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: 1243 * Number of variables: 1243 Notification: Performance of Generate backend data structure: time 0.04105/18.38, allocations: 6.184 MB / 6.136 GB, free: 47.51 MB / 1.214 GB Notification: Performance of prepare preOptimizeDAE: time 7.639e-05/18.38, allocations: 8.031 kB / 6.136 GB, free: 47.5 MB / 1.214 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01455/18.39, allocations: 1.49 MB / 6.137 GB, free: 46 MB / 1.214 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02466/18.42, allocations: 7.471 MB / 6.144 GB, free: 38.46 MB / 1.214 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004293/18.42, allocations: 155.9 kB / 6.144 GB, free: 38.3 MB / 1.214 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003067/18.42, allocations: 295.9 kB / 6.145 GB, free: 38.02 MB / 1.214 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01646/18.44, allocations: 5.317 MB / 6.15 GB, free: 32.69 MB / 1.214 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02359/18.46, allocations: 5.886 MB / 6.156 GB, free: 26.68 MB / 1.214 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.000449/18.46, allocations: 7.906 kB / 6.156 GB, free: 26.67 MB / 1.214 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002531/18.46, allocations: 4 kB / 6.156 GB, free: 26.67 MB / 1.214 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002919/18.46, allocations: 221.4 kB / 6.156 GB, free: 26.45 MB / 1.214 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.06295/18.53, allocations: 27.25 MB / 6.183 GB, free: 13.67 MB / 1.229 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0111/18.54, allocations: 5.283 MB / 6.188 GB, free: 8.082 MB / 1.229 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005277/18.54, allocations: 2.381 MB / 6.19 GB, free: 5.699 MB / 1.229 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001605/18.54, allocations: 0.9194 MB / 6.191 GB, free: 4.594 MB / 1.229 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005646/18.55, allocations: 2.187 MB / 6.193 GB, free: 2.359 MB / 1.229 GB Notification: Performance of pre-optimization done (n=325): time 1.119e-05/18.55, allocations: 0 / 6.193 GB, free: 2.359 MB / 1.229 GB Notification: Performance of matching and sorting (n=329): time 1.259/19.81, allocations: 10.95 MB / 6.204 GB, free: 172.1 MB / 1.229 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001113/19.81, allocations: 212.7 kB / 6.204 GB, free: 171.9 MB / 1.229 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01081/19.82, allocations: 4.15 MB / 6.208 GB, free: 171.6 MB / 1.229 GB Notification: Performance of collectPreVariables (initialization): time 0.001256/19.82, allocations: 34.61 kB / 6.208 GB, free: 171.6 MB / 1.229 GB Notification: Performance of collectInitialEqns (initialization): time 0.003875/19.83, allocations: 2.72 MB / 6.211 GB, free: 171 MB / 1.229 GB Notification: Performance of collectInitialBindings (initialization): time 0.002309/19.83, allocations: 1.093 MB / 6.212 GB, free: 170.4 MB / 1.229 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002151/19.83, allocations: 1.438 kB / 6.212 GB, free: 170.4 MB / 1.229 GB Notification: Performance of setup shared object (initialization): time 0.0003031/19.83, allocations: 440.2 kB / 6.212 GB, free: 170.1 MB / 1.229 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003212/19.83, allocations: 1.66 MB / 6.214 GB, free: 170.1 MB / 1.229 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003651/19.84, allocations: 2.451 MB / 6.216 GB, free: 169.3 MB / 1.229 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004406/19.84, allocations: 2.212 MB / 6.218 GB, free: 169.2 MB / 1.229 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.739e-05/19.84, allocations: 4.219 kB / 6.218 GB, free: 169.2 MB / 1.229 GB Notification: Performance of matching and sorting (n=419) (initialization): time 0.01281/19.85, allocations: 4.798 MB / 6.223 GB, free: 168.8 MB / 1.229 GB Notification: Performance of prepare postOptimizeDAE: time 0.002112/19.85, allocations: 6.36 MB / 6.229 GB, free: 162.1 MB / 1.229 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.158e-05/19.85, allocations: 15.25 kB / 6.229 GB, free: 162.1 MB / 1.229 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008761/19.86, allocations: 200.3 kB / 6.229 GB, free: 162 MB / 1.229 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004554/19.86, allocations: 0.7714 MB / 6.23 GB, free: 162 MB / 1.229 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004774/19.86, allocations: 3.38 MB / 6.233 GB, free: 159.6 MB / 1.229 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009741/19.87, allocations: 0.5312 MB / 6.234 GB, free: 159.6 MB / 1.229 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001007/19.88, allocations: 135.5 kB / 6.234 GB, free: 159.6 MB / 1.229 GB Notification: Performance of prepare postOptimizeDAE: time 1.884e-05/19.88, allocations: 4.406 kB / 6.234 GB, free: 159.6 MB / 1.229 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01034/19.89, allocations: 4.255 MB / 6.238 GB, free: 159.5 MB / 1.229 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.781e-05/19.89, allocations: 18.44 kB / 6.238 GB, free: 159.5 MB / 1.229 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007385/19.89, allocations: 200.1 kB / 6.239 GB, free: 159.5 MB / 1.229 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003246/19.89, allocations: 0.7584 MB / 6.239 GB, free: 159.5 MB / 1.229 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00479/19.9, allocations: 3.926 MB / 6.243 GB, free: 156.9 MB / 1.229 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00774/19.9, allocations: 0.5236 MB / 6.244 GB, free: 156.9 MB / 1.229 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000876/19.9, allocations: 135.8 kB / 6.244 GB, free: 156.9 MB / 1.229 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 61 * 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): 394 * 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.002029/19.91, allocations: 215.5 kB / 6.244 GB, free: 156.7 MB / 1.229 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002872/19.91, allocations: 496.6 kB / 6.244 GB, free: 156.5 MB / 1.229 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01295/19.92, allocations: 4.534 MB / 6.249 GB, free: 156.3 MB / 1.229 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.564e-05/19.92, allocations: 39.45 kB / 6.249 GB, free: 156.3 MB / 1.229 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.973e-05/19.92, allocations: 0 / 6.249 GB, free: 156.3 MB / 1.229 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.007306/19.93, allocations: 3.803 MB / 6.253 GB, free: 156 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.03372/19.96, allocations: 11.37 MB / 6.264 GB, free: 154.9 MB / 1.229 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.773e-05/19.96, allocations: 6.656 kB / 6.264 GB, free: 154.9 MB / 1.229 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003767/19.97, allocations: 0.7323 MB / 6.264 GB, free: 154.9 MB / 1.229 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005472/19.97, allocations: 158.1 kB / 6.265 GB, free: 154.8 MB / 1.229 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007749/19.97, allocations: 49.45 kB / 6.265 GB, free: 154.8 MB / 1.229 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002851/19.97, allocations: 3.263 MB / 6.268 GB, free: 152.5 MB / 1.229 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.077e-05/19.97, allocations: 7.719 kB / 6.268 GB, free: 152.5 MB / 1.229 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01486/19.99, allocations: 7.374 MB / 6.275 GB, free: 151.1 MB / 1.229 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005469/19.99, allocations: 1.198 MB / 6.276 GB, free: 150.8 MB / 1.229 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002799/19.99, allocations: 29 kB / 6.276 GB, free: 150.8 MB / 1.229 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007136/20, allocations: 458.2 kB / 6.277 GB, free: 150.8 MB / 1.229 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008913/20, allocations: 204.2 kB / 6.277 GB, free: 150.8 MB / 1.229 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008/20, allocations: 127.4 kB / 6.277 GB, free: 150.8 MB / 1.229 GB Notification: Performance of sorting global known variables: time 0.009093/20.01, allocations: 3.218 MB / 6.28 GB, free: 150.6 MB / 1.229 GB Notification: Performance of sort global known variables: time 7.41e-07/20.01, allocations: 0 / 6.28 GB, free: 150.6 MB / 1.229 GB Notification: Performance of remove unused functions: time 0.0213/20.03, allocations: 2.896 MB / 6.283 GB, free: 150.6 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.007229/20.04, allocations: 3.379 MB / 6.286 GB, free: 149.5 MB / 1.229 GB Notification: Performance of simCode: created initialization part: time 0.01585/20.06, allocations: 6.914 MB / 6.293 GB, free: 148.9 MB / 1.229 GB Notification: Performance of simCode: created event and clocks part: time 2.223e-05/20.06, allocations: 6.25 kB / 6.293 GB, free: 148.9 MB / 1.229 GB Notification: Performance of simCode: created simulation system equations: time 0.005116/20.06, allocations: 2.196 MB / 6.295 GB, free: 148.7 MB / 1.229 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02/20.08, allocations: 2.901 MB / 6.298 GB, free: 148.7 MB / 1.229 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03393/20.12, allocations: 11.4 MB / 6.309 GB, free: 146.5 MB / 1.229 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01104/20.13, allocations: 4.675 MB / 6.314 GB, free: 145.7 MB / 1.229 GB Notification: Performance of simCode: alias equations: time 0.02034/20.15, allocations: 4.421 MB / 6.318 GB, free: 145.6 MB / 1.229 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00232/20.15, allocations: 294.7 kB / 6.318 GB, free: 145.6 MB / 1.229 GB Notification: Performance of SimCode: time 2.245e-06/20.15, allocations: 0 / 6.318 GB, free: 145.6 MB / 1.229 GB Notification: Performance of Templates: time 0.23/20.38, allocations: 119.6 MB / 6.435 GB, free: 139.9 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