Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowPControl.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.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_9_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_9_Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowPControl") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.553/2.553, allocations: 387.1 MB / 399.7 MB, free: 9.562 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.00108/0.00108, allocations: 173 kB / 492.3 MB, free: 0.6211 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.735/1.735, allocations: 221.3 MB / 0.7871 GB, free: 12.88 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.001273/0.001273, allocations: 92.2 kB / 0.9267 GB, free: 13.94 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.783e-05/3.785e-05, allocations: 7.938 kB / 1.073 GB, free: 180.4 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3867/0.3868, allocations: 142.3 MB / 1.212 GB, free: 38.52 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 6.6/6.987, allocations: 2.222 GB / 3.434 GB, free: 59.61 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002481/6.987, allocations: 88.7 kB / 3.434 GB, free: 59.57 MB / 1.151 GB Notification: Performance of FrontEnd - DAE generated: time 10.76/17.74, allocations: 2.718 GB / 6.152 GB, free: 33.85 MB / 1.214 GB Notification: Performance of FrontEnd: time 2.505e-06/17.74, allocations: 0 / 6.152 GB, free: 33.85 MB / 1.214 GB Notification: Performance of Transformations before backend: time 0.001625/17.75, allocations: 163.9 kB / 6.152 GB, free: 33.69 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.02794/17.77, allocations: 6.188 MB / 6.158 GB, free: 27.43 MB / 1.214 GB Notification: Performance of prepare preOptimizeDAE: time 6.043e-05/17.77, allocations: 12.03 kB / 6.158 GB, free: 27.42 MB / 1.214 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01273/17.79, allocations: 1.49 MB / 6.16 GB, free: 25.92 MB / 1.214 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02461/17.81, allocations: 7.466 MB / 6.167 GB, free: 18.38 MB / 1.214 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005894/17.81, allocations: 373.5 kB / 6.167 GB, free: 18.01 MB / 1.214 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003292/17.82, allocations: 495.9 kB / 6.168 GB, free: 17.53 MB / 1.214 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02449/17.84, allocations: 6.578 MB / 6.174 GB, free: 10.82 MB / 1.214 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.000414/17.84, allocations: 7.938 kB / 6.174 GB, free: 10.81 MB / 1.214 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00253/17.84, allocations: 202.5 kB / 6.174 GB, free: 10.61 MB / 1.214 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002712/17.84, allocations: 225.4 kB / 6.175 GB, free: 10.39 MB / 1.214 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01676/17.86, allocations: 5.698 MB / 6.18 GB, free: 4.68 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 1.291/19.15, allocations: 28.21 MB / 6.208 GB, free: 157.6 MB / 1.229 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00906/19.16, allocations: 4.436 MB / 6.212 GB, free: 156.8 MB / 1.229 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0053/19.17, allocations: 2.499 MB / 6.214 GB, free: 156.7 MB / 1.229 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001359/19.17, allocations: 0.9226 MB / 6.215 GB, free: 155.8 MB / 1.229 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00524/19.17, allocations: 2.184 MB / 6.217 GB, free: 155.6 MB / 1.229 GB Notification: Performance of pre-optimization done (n=325): time 7.885e-06/19.17, allocations: 1.094 kB / 6.217 GB, free: 155.6 MB / 1.229 GB Notification: Performance of matching and sorting (n=329): time 0.03503/19.21, allocations: 9.766 MB / 6.227 GB, free: 154.4 MB / 1.229 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001503/19.21, allocations: 167 kB / 6.227 GB, free: 154.2 MB / 1.229 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01401/19.22, allocations: 4.536 MB / 6.232 GB, free: 153.9 MB / 1.229 GB Notification: Performance of collectPreVariables (initialization): time 0.001522/19.22, allocations: 95.75 kB / 6.232 GB, free: 153.9 MB / 1.229 GB Notification: Performance of collectInitialEqns (initialization): time 0.005141/19.23, allocations: 2.725 MB / 6.234 GB, free: 153.3 MB / 1.229 GB Notification: Performance of collectInitialBindings (initialization): time 0.002995/19.23, allocations: 1.138 MB / 6.235 GB, free: 152.7 MB / 1.229 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003436/19.23, allocations: 67.19 kB / 6.236 GB, free: 152.7 MB / 1.229 GB Notification: Performance of setup shared object (initialization): time 0.0004336/19.23, allocations: 442.8 kB / 6.236 GB, free: 152.4 MB / 1.229 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003625/19.24, allocations: 1.752 MB / 6.238 GB, free: 152.4 MB / 1.229 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004129/19.24, allocations: 2.57 MB / 6.24 GB, free: 151.6 MB / 1.229 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004422/19.24, allocations: 2.274 MB / 6.242 GB, free: 151.5 MB / 1.229 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.125e-05/19.24, allocations: 4.172 kB / 6.242 GB, free: 151.5 MB / 1.229 GB Notification: Performance of matching and sorting (n=418) (initialization): time 0.01431/19.26, allocations: 5.085 MB / 6.247 GB, free: 151.1 MB / 1.229 GB Notification: Performance of prepare postOptimizeDAE: time 0.002783/19.26, allocations: 6.202 MB / 6.253 GB, free: 144.5 MB / 1.229 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.985e-05/19.26, allocations: 18.38 kB / 6.253 GB, free: 144.5 MB / 1.229 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009349/19.26, allocations: 215.3 kB / 6.254 GB, free: 144.5 MB / 1.229 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004269/19.27, allocations: 0.7679 MB / 6.254 GB, free: 144.5 MB / 1.229 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003368/19.27, allocations: 3.409 MB / 6.258 GB, free: 142 MB / 1.229 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00902/19.28, allocations: 0.6124 MB / 6.258 GB, free: 142 MB / 1.229 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001272/19.28, allocations: 136.5 kB / 6.258 GB, free: 142 MB / 1.229 GB Notification: Performance of prepare postOptimizeDAE: time 2.141e-05/19.28, allocations: 5.375 kB / 6.258 GB, free: 142 MB / 1.229 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01136/19.29, allocations: 4.629 MB / 6.263 GB, free: 141.9 MB / 1.229 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.944e-05/19.29, allocations: 12.72 kB / 6.263 GB, free: 141.9 MB / 1.229 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007904/19.29, allocations: 208.5 kB / 6.263 GB, free: 141.9 MB / 1.229 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004183/19.3, allocations: 0.7673 MB / 6.264 GB, free: 141.9 MB / 1.229 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005186/19.3, allocations: 4.057 MB / 6.268 GB, free: 139.1 MB / 1.229 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009365/19.31, allocations: 0.6069 MB / 6.268 GB, free: 139.1 MB / 1.229 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001527/19.31, allocations: 130.6 kB / 6.269 GB, free: 139.1 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.002968/19.32, allocations: 342.6 kB / 6.269 GB, free: 139 MB / 1.229 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003817/19.32, allocations: 0.4946 MB / 6.269 GB, free: 138.7 MB / 1.229 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01597/19.34, allocations: 4.901 MB / 6.274 GB, free: 138.5 MB / 1.229 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.824e-05/19.34, allocations: 32.31 kB / 6.274 GB, free: 138.5 MB / 1.229 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.803e-05/19.34, allocations: 3.094 kB / 6.274 GB, free: 138.5 MB / 1.229 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.009515/19.35, allocations: 4.082 MB / 6.278 GB, free: 138.1 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.04847/19.39, allocations: 12.16 MB / 6.29 GB, free: 137.1 MB / 1.229 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.986e-05/19.39, allocations: 6.188 kB / 6.29 GB, free: 137.1 MB / 1.229 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004127/19.4, allocations: 0.7376 MB / 6.291 GB, free: 137.1 MB / 1.229 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006853/19.4, allocations: 175.8 kB / 6.291 GB, free: 137.1 MB / 1.229 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008828/19.4, allocations: 95.34 kB / 6.291 GB, free: 137.1 MB / 1.229 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003041/19.4, allocations: 3.323 MB / 6.294 GB, free: 134.7 MB / 1.229 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.322e-06/19.4, allocations: 4.812 kB / 6.294 GB, free: 134.7 MB / 1.229 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01627/19.42, allocations: 7.735 MB / 6.302 GB, free: 133.3 MB / 1.229 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005901/19.43, allocations: 1.242 MB / 6.303 GB, free: 132.9 MB / 1.229 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003142/19.43, allocations: 81.84 kB / 6.303 GB, free: 132.9 MB / 1.229 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007525/19.44, allocations: 0.493 MB / 6.304 GB, free: 132.9 MB / 1.229 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008596/19.44, allocations: 201.7 kB / 6.304 GB, free: 132.9 MB / 1.229 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007242/19.44, allocations: 126.3 kB / 6.304 GB, free: 132.9 MB / 1.229 GB Notification: Performance of sorting global known variables: time 0.01023/19.45, allocations: 3.557 MB / 6.307 GB, free: 132.7 MB / 1.229 GB Notification: Performance of sort global known variables: time 8.21e-07/19.45, allocations: 0 / 6.307 GB, free: 132.7 MB / 1.229 GB Notification: Performance of remove unused functions: time 0.02547/19.47, allocations: 3.126 MB / 6.31 GB, free: 132.7 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.007853/19.48, allocations: 3.168 MB / 6.314 GB, free: 131.6 MB / 1.229 GB Notification: Performance of simCode: created initialization part: time 0.01693/19.5, allocations: 7.33 MB / 6.321 GB, free: 131 MB / 1.229 GB Notification: Performance of simCode: created event and clocks part: time 2.046e-05/19.5, allocations: 3.297 kB / 6.321 GB, free: 131 MB / 1.229 GB Notification: Performance of simCode: created simulation system equations: time 0.004875/19.5, allocations: 2.327 MB / 6.323 GB, free: 130.8 MB / 1.229 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01948/19.52, allocations: 3.039 MB / 6.326 GB, free: 130.8 MB / 1.229 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03465/19.56, allocations: 11.61 MB / 6.337 GB, free: 128.6 MB / 1.229 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008127/19.57, allocations: 4.68 MB / 6.342 GB, free: 127.7 MB / 1.229 GB Notification: Performance of simCode: alias equations: time 0.01809/19.58, allocations: 4.464 MB / 6.346 GB, free: 127.7 MB / 1.229 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002526/19.59, allocations: 300.1 kB / 6.347 GB, free: 127.7 MB / 1.229 GB Notification: Performance of SimCode: time 3.767e-06/19.59, allocations: 0 / 6.347 GB, free: 127.7 MB / 1.229 GB Notification: Performance of Templates: time 0.2626/19.85, allocations: 152.7 MB / 6.496 GB, free: 118.4 MB / 1.229 GB make -j1 -f Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowPControl.makefile (rm -f Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowPControl.pipe ; mkfifo Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowPControl.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowPControl.pipe >> ../files/Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowPControl.sim & ./Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowPControl -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowPControl.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowPControl_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_HeatExchangers_Examples_WetCoilCounterFlowPControl.csv","../files/Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowPControl.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches