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.153/2.153, allocations: 387.4 MB / 394.9 MB, free: 13.36 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.001064/0.001064, allocations: 184.8 kB / 487.4 MB, free: 5.051 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.452/1.452, allocations: 221.5 MB / 0.7824 GB, free: 0.9805 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008983/0.0008982, allocations: 102.1 kB / 0.9219 GB, free: 2.211 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 2.32e-05/2.321e-05, allocations: 8 kB / 1.067 GB, free: 185.7 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2531/0.2531, allocations: 142.4 MB / 1.206 GB, free: 43.98 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 5.237/5.49, allocations: 2.221 GB / 3.427 GB, free: 78.79 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002123/5.491, allocations: 95.16 kB / 3.427 GB, free: 78.75 MB / 1.151 GB Notification: Performance of FrontEnd - DAE generated: time 10.49/15.98, allocations: 2.695 GB / 6.122 GB, free: 78.32 MB / 1.214 GB Notification: Performance of FrontEnd: time 1.743e-06/15.98, allocations: 0 / 6.122 GB, free: 78.32 MB / 1.214 GB Notification: Performance of Transformations before backend: time 0.001449/15.98, allocations: 162.2 kB / 6.122 GB, free: 78.18 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.02603/16.01, allocations: 6.185 MB / 6.128 GB, free: 71.98 MB / 1.214 GB Notification: Performance of prepare preOptimizeDAE: time 4.831e-05/16.01, allocations: 8.031 kB / 6.128 GB, free: 71.97 MB / 1.214 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01135/16.02, allocations: 1.485 MB / 6.13 GB, free: 70.48 MB / 1.214 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02134/16.04, allocations: 7.472 MB / 6.137 GB, free: 63.05 MB / 1.214 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003747/16.04, allocations: 156 kB / 6.137 GB, free: 62.9 MB / 1.214 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002543/16.04, allocations: 291.9 kB / 6.138 GB, free: 62.62 MB / 1.214 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.015/16.06, allocations: 5.325 MB / 6.143 GB, free: 57.29 MB / 1.214 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02006/16.08, allocations: 5.88 MB / 6.149 GB, free: 51.28 MB / 1.214 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003201/16.08, allocations: 7.938 kB / 6.149 GB, free: 51.27 MB / 1.214 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00194/16.08, allocations: 8 kB / 6.149 GB, free: 51.26 MB / 1.214 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002353/16.08, allocations: 221.4 kB / 6.149 GB, free: 51.04 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.04934/16.13, allocations: 27.25 MB / 6.175 GB, free: 22.43 MB / 1.214 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006428/16.14, allocations: 5.283 MB / 6.181 GB, free: 16.84 MB / 1.214 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002975/16.14, allocations: 2.389 MB / 6.183 GB, free: 14.44 MB / 1.214 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001087/16.14, allocations: 0.9116 MB / 6.184 GB, free: 13.34 MB / 1.214 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003193/16.14, allocations: 2.192 MB / 6.186 GB, free: 11.11 MB / 1.214 GB Notification: Performance of pre-optimization done (n=325): time 6.973e-06/16.14, allocations: 4 kB / 6.186 GB, free: 11.11 MB / 1.214 GB Notification: Performance of matching and sorting (n=329): time 0.9003/17.04, allocations: 10.94 MB / 6.197 GB, free: 160.5 MB / 1.214 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001362/17.04, allocations: 217.8 kB / 6.197 GB, free: 160.2 MB / 1.214 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009853/17.05, allocations: 4.15 MB / 6.201 GB, free: 160 MB / 1.214 GB Notification: Performance of collectPreVariables (initialization): time 0.001149/17.05, allocations: 31.55 kB / 6.201 GB, free: 159.9 MB / 1.214 GB Notification: Performance of collectInitialEqns (initialization): time 0.00372/17.06, allocations: 2.722 MB / 6.204 GB, free: 159.8 MB / 1.214 GB Notification: Performance of collectInitialBindings (initialization): time 0.002377/17.06, allocations: 1.101 MB / 6.205 GB, free: 159.5 MB / 1.214 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002287/17.06, allocations: 0.7188 kB / 6.205 GB, free: 159.5 MB / 1.214 GB Notification: Performance of setup shared object (initialization): time 0.0002564/17.06, allocations: 446.9 kB / 6.205 GB, free: 159.2 MB / 1.214 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002985/17.06, allocations: 1.655 MB / 6.207 GB, free: 159.1 MB / 1.214 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003446/17.07, allocations: 2.452 MB / 6.209 GB, free: 158.4 MB / 1.214 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004633/17.07, allocations: 2.213 MB / 6.211 GB, free: 158.3 MB / 1.214 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.539e-05/17.07, allocations: 3.438 kB / 6.211 GB, free: 158.3 MB / 1.214 GB Notification: Performance of matching and sorting (n=419) (initialization): time 0.01033/17.08, allocations: 4.797 MB / 6.216 GB, free: 157.9 MB / 1.214 GB Notification: Performance of prepare postOptimizeDAE: time 0.00135/17.08, allocations: 6.357 MB / 6.222 GB, free: 151.1 MB / 1.214 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.193e-05/17.08, allocations: 17.91 kB / 6.222 GB, free: 151.1 MB / 1.214 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005967/17.08, allocations: 193.9 kB / 6.222 GB, free: 151.1 MB / 1.214 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003633/17.09, allocations: 0.7722 MB / 6.223 GB, free: 151.1 MB / 1.214 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00293/17.09, allocations: 3.379 MB / 6.226 GB, free: 148.7 MB / 1.214 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0073/17.1, allocations: 0.5429 MB / 6.227 GB, free: 148.7 MB / 1.214 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009898/17.1, allocations: 134.2 kB / 6.227 GB, free: 148.7 MB / 1.214 GB Notification: Performance of prepare postOptimizeDAE: time 1.642e-05/17.1, allocations: 3.969 kB / 6.227 GB, free: 148.7 MB / 1.214 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007628/17.11, allocations: 4.254 MB / 6.231 GB, free: 148.6 MB / 1.214 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.63e-05/17.11, allocations: 13.34 kB / 6.231 GB, free: 148.6 MB / 1.214 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005608/17.11, allocations: 197.7 kB / 6.231 GB, free: 148.6 MB / 1.214 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00306/17.11, allocations: 0.7636 MB / 6.232 GB, free: 148.6 MB / 1.214 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003654/17.11, allocations: 3.92 MB / 6.236 GB, free: 146 MB / 1.214 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007032/17.12, allocations: 0.5215 MB / 6.236 GB, free: 146 MB / 1.214 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009629/17.12, allocations: 136.2 kB / 6.237 GB, free: 146 MB / 1.214 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.001247/17.12, allocations: 215.3 kB / 6.237 GB, free: 145.8 MB / 1.214 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0018/17.13, allocations: 496.1 kB / 6.237 GB, free: 145.6 MB / 1.214 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009626/17.14, allocations: 4.537 MB / 6.242 GB, free: 145.3 MB / 1.214 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.779e-05/17.14, allocations: 37.41 kB / 6.242 GB, free: 145.3 MB / 1.214 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.448e-06/17.14, allocations: 0 / 6.242 GB, free: 145.3 MB / 1.214 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.005465/17.14, allocations: 3.807 MB / 6.245 GB, free: 145.1 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 postOpt removeSimpleEquations (simulation): time 0.0262/17.17, allocations: 11.36 MB / 6.257 GB, free: 144 MB / 1.214 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.662e-05/17.17, allocations: 4 kB / 6.257 GB, free: 144 MB / 1.214 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003659/17.17, allocations: 0.7372 MB / 6.257 GB, free: 144 MB / 1.214 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005219/17.17, allocations: 151.9 kB / 6.257 GB, free: 143.9 MB / 1.214 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000413/17.17, allocations: 53.05 kB / 6.257 GB, free: 143.9 MB / 1.214 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002587/17.17, allocations: 3.261 MB / 6.261 GB, free: 141.6 MB / 1.214 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.628e-06/17.17, allocations: 7.406 kB / 6.261 GB, free: 141.6 MB / 1.214 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01154/17.19, allocations: 7.375 MB / 6.268 GB, free: 140.2 MB / 1.214 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004173/17.19, allocations: 1.202 MB / 6.269 GB, free: 139.9 MB / 1.214 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001702/17.19, allocations: 28.89 kB / 6.269 GB, free: 139.9 MB / 1.214 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005673/17.2, allocations: 457 kB / 6.269 GB, free: 139.9 MB / 1.214 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004847/17.2, allocations: 201.9 kB / 6.27 GB, free: 139.9 MB / 1.214 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003661/17.2, allocations: 121.7 kB / 6.27 GB, free: 139.9 MB / 1.214 GB Notification: Performance of sorting global known variables: time 0.006431/17.2, allocations: 3.212 MB / 6.273 GB, free: 139.7 MB / 1.214 GB Notification: Performance of sort global known variables: time 5.11e-07/17.2, allocations: 2.344 kB / 6.273 GB, free: 139.7 MB / 1.214 GB Notification: Performance of remove unused functions: time 0.01753/17.22, allocations: 2.894 MB / 6.276 GB, free: 139.7 MB / 1.214 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.006068/17.23, allocations: 3.393 MB / 6.279 GB, free: 138.6 MB / 1.214 GB Notification: Performance of simCode: created initialization part: time 0.01494/17.24, allocations: 6.91 MB / 6.286 GB, free: 138 MB / 1.214 GB Notification: Performance of simCode: created event and clocks part: time 1.934e-05/17.24, allocations: 0.7812 kB / 6.286 GB, free: 138 MB / 1.214 GB Notification: Performance of simCode: created simulation system equations: time 0.003563/17.25, allocations: 2.199 MB / 6.288 GB, free: 137.8 MB / 1.214 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01661/17.26, allocations: 2.915 MB / 6.291 GB, free: 137.8 MB / 1.214 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02392/17.29, allocations: 11.4 MB / 6.302 GB, free: 135.6 MB / 1.214 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004859/17.29, allocations: 4.673 MB / 6.307 GB, free: 134.8 MB / 1.214 GB Notification: Performance of simCode: alias equations: time 0.01507/17.31, allocations: 4.409 MB / 6.311 GB, free: 134.7 MB / 1.214 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001603/17.31, allocations: 296.3 kB / 6.311 GB, free: 134.7 MB / 1.214 GB Notification: Performance of SimCode: time 1.273e-06/17.31, allocations: 1.781 kB / 6.311 GB, free: 134.7 MB / 1.214 GB Notification: Performance of Templates: time 0.192/17.5, allocations: 119.6 MB / 6.428 GB, free: 129 MB / 1.214 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