Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.SolarCollectors.Examples.FlatPlateWithTank.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.SolarCollectors.Examples.FlatPlateWithTank,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|solCol.vol.9..T|tan.vol.1..T|TIn.T|pumCon.y",fileNamePrefix="Buildings_9_Buildings.Fluid.SolarCollectors.Examples.FlatPlateWithTank") translateModel(Buildings.Fluid.SolarCollectors.Examples.FlatPlateWithTank,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|solCol.vol.9..T|tan.vol.1..T|TIn.T|pumCon.y",fileNamePrefix="Buildings_9_Buildings.Fluid.SolarCollectors.Examples.FlatPlateWithTank") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.333/2.333, allocations: 387.1 MB / 399.7 MB, free: 9.48 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.001387/0.001387, allocations: 196 kB / 492.3 MB, free: 0.6445 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.631/1.631, allocations: 221.3 MB / 0.7871 GB, free: 12.97 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.0009648/0.0009653, allocations: 90.03 kB / 0.9267 GB, free: 14.04 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.589e-05/3.591e-05, allocations: 4 kB / 1.073 GB, free: 180.4 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2859/0.2859, allocations: 142.3 MB / 1.212 GB, free: 38.56 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 6.308/6.594, allocations: 2.24 GB / 3.452 GB, free: 59.58 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003101/6.595, allocations: 104.5 kB / 3.453 GB, free: 59.48 MB / 1.151 GB Notification: Performance of FrontEnd - DAE generated: time 10.48/17.07, allocations: 2.549 GB / 6.002 GB, free: 138.6 MB / 1.198 GB Notification: Performance of FrontEnd: time 2.465e-06/17.07, allocations: 0 / 6.002 GB, free: 138.6 MB / 1.198 GB Notification: Performance of Transformations before backend: time 0.002593/17.08, allocations: 276.8 kB / 6.002 GB, free: 138.6 MB / 1.198 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2053 * Number of variables: 2053 Notification: Performance of Generate backend data structure: time 0.03191/17.11, allocations: 8.946 MB / 6.011 GB, free: 135 MB / 1.198 GB Notification: Performance of prepare preOptimizeDAE: time 4.744e-05/17.11, allocations: 10.09 kB / 6.011 GB, free: 135 MB / 1.198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01439/17.12, allocations: 2.167 MB / 6.013 GB, free: 134.4 MB / 1.198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03456/17.16, allocations: 12.08 MB / 6.025 GB, free: 133.1 MB / 1.198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007085/17.16, allocations: 0.6001 MB / 6.025 GB, free: 133.1 MB / 1.198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003522/17.16, allocations: 0.8037 MB / 6.026 GB, free: 133.1 MB / 1.198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03148/17.19, allocations: 10.83 MB / 6.037 GB, free: 130.7 MB / 1.198 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004497/17.19, allocations: 25.62 kB / 6.037 GB, free: 130.7 MB / 1.198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003426/17.2, allocations: 342.4 kB / 6.037 GB, free: 130.4 MB / 1.198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003327/17.2, allocations: 344.2 kB / 6.037 GB, free: 130.4 MB / 1.198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02598/17.22, allocations: 9.677 MB / 6.047 GB, free: 126.9 MB / 1.198 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.09203/17.32, allocations: 45.46 MB / 6.091 GB, free: 90.81 MB / 1.198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01428/17.33, allocations: 7.458 MB / 6.098 GB, free: 83.39 MB / 1.198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007309/17.34, allocations: 3.744 MB / 6.102 GB, free: 79.63 MB / 1.198 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 evalFunc (simulation): time 0.04418/17.38, allocations: 18.46 MB / 6.12 GB, free: 60.37 MB / 1.198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00819/17.39, allocations: 3.394 MB / 6.123 GB, free: 56.91 MB / 1.198 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.007355/17.4, allocations: 0.7674 MB / 6.124 GB, free: 56.13 MB / 1.198 GB Notification: Performance of pre-optimization done (n=511): time 2.25e-05/17.4, allocations: 0 / 6.124 GB, free: 56.13 MB / 1.198 GB Notification: Performance of matching and sorting (n=511): time 0.01764/17.41, allocations: 6.242 MB / 6.13 GB, free: 49.78 MB / 1.198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001201/17.41, allocations: 317 kB / 6.13 GB, free: 49.41 MB / 1.198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01785/17.43, allocations: 7.165 MB / 6.137 GB, free: 42.25 MB / 1.198 GB Notification: Performance of collectPreVariables (initialization): time 0.001903/17.43, allocations: 133.7 kB / 6.138 GB, free: 42.11 MB / 1.198 GB Notification: Performance of collectInitialEqns (initialization): time 0.006058/17.44, allocations: 4.368 MB / 6.142 GB, free: 37.7 MB / 1.198 GB Notification: Performance of collectInitialBindings (initialization): time 0.00286/17.44, allocations: 1.764 MB / 6.144 GB, free: 35.91 MB / 1.198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001919/17.45, allocations: 136 kB / 6.144 GB, free: 35.78 MB / 1.198 GB Notification: Performance of setup shared object (initialization): time 0.0007515/17.45, allocations: 0.5628 MB / 6.144 GB, free: 35.21 MB / 1.198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006313/17.45, allocations: 3.062 MB / 6.147 GB, free: 32.14 MB / 1.198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007607/17.46, allocations: 4.782 MB / 6.152 GB, free: 26.64 MB / 1.198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007769/17.47, allocations: 3.96 MB / 6.156 GB, free: 22.64 MB / 1.198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.903e-05/17.47, allocations: 16 kB / 6.156 GB, free: 22.63 MB / 1.198 GB Notification: Performance of matching and sorting (n=824) (initialization): time 0.02354/17.49, allocations: 8.95 MB / 6.165 GB, free: 13.59 MB / 1.198 GB Notification: Performance of prepare postOptimizeDAE: time 0.007078/17.5, allocations: 23.9 MB / 6.188 GB, free: 4.043 MB / 1.214 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001318/17.5, allocations: 48 kB / 6.188 GB, free: 3.996 MB / 1.214 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00061/17.5, allocations: 164.6 kB / 6.188 GB, free: 3.836 MB / 1.214 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009403/17.51, allocations: 1.701 MB / 6.19 GB, free: 2.133 MB / 1.214 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007819/17.51, allocations: 0.7161 MB / 6.19 GB, free: 1.391 MB / 1.214 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01346/17.52, allocations: 0.6977 MB / 6.191 GB, free: 0.6914 MB / 1.214 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002541/17.53, allocations: 311.9 kB / 6.191 GB, free: 396 kB / 1.214 GB Notification: Performance of prepare postOptimizeDAE: time 2.177e-05/17.53, allocations: 9.078 kB / 6.191 GB, free: 388 kB / 1.214 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02461/17.55, allocations: 8.251 MB / 6.2 GB, free: 8.055 MB / 1.229 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002067/17.55, allocations: 51.19 kB / 6.2 GB, free: 8.008 MB / 1.229 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005178/17.55, allocations: 160.8 kB / 6.2 GB, free: 7.848 MB / 1.229 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00926/17.56, allocations: 1.697 MB / 6.201 GB, free: 6.148 MB / 1.229 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007881/17.56, allocations: 0.716 MB / 6.202 GB, free: 5.406 MB / 1.229 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01089/17.57, allocations: 0.6934 MB / 6.203 GB, free: 4.715 MB / 1.229 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002376/17.58, allocations: 307.9 kB / 6.203 GB, free: 4.414 MB / 1.229 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 210 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition2,$whenCondition1,$PRE.weaDat.conTimMin.tNext,weaDat.conTimMin.tNext,$PRE.weaDat.conTim.tNext,weaDat.conTim.tNext) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (819): * Single equations (assignments): 817 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 4} Notification: Performance of prepare postOptimizeDAE: time 0.003764/17.58, allocations: 494.9 kB / 6.204 GB, free: 3.922 MB / 1.229 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004062/17.58, allocations: 0.7717 MB / 6.204 GB, free: 3.141 MB / 1.229 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.9189/18.5, allocations: 7.45 MB / 6.212 GB, free: 165 MB / 1.229 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.7e-05/18.5, allocations: 56.75 kB / 6.212 GB, free: 165 MB / 1.229 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.68e-05/18.5, allocations: 0.5625 kB / 6.212 GB, free: 165 MB / 1.229 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01227/18.51, allocations: 5.778 MB / 6.217 GB, free: 164.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 postOpt removeSimpleEquations (simulation): time 0.05207/18.57, allocations: 16.86 MB / 6.234 GB, free: 163.7 MB / 1.229 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.105e-05/18.57, allocations: 3.75 kB / 6.234 GB, free: 163.7 MB / 1.229 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007153/18.57, allocations: 1.172 MB / 6.235 GB, free: 163.7 MB / 1.229 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005281/18.57, allocations: 90.19 kB / 6.235 GB, free: 163.7 MB / 1.229 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001475/18.58, allocations: 155.1 kB / 6.235 GB, free: 163.7 MB / 1.229 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006417/18.58, allocations: 0.6171 MB / 6.236 GB, free: 163.2 MB / 1.229 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.168e-06/18.58, allocations: 6.469 kB / 6.236 GB, free: 163.2 MB / 1.229 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0286/18.61, allocations: 10.81 MB / 6.246 GB, free: 162.5 MB / 1.229 GB Notification: Performance of postOpt removeConstants (simulation): time 0.009184/18.61, allocations: 1.953 MB / 6.248 GB, free: 162.2 MB / 1.229 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.005172/18.62, allocations: 114.2 kB / 6.248 GB, free: 162.2 MB / 1.229 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01106/18.63, allocations: 0.6059 MB / 6.249 GB, free: 162.2 MB / 1.229 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001896/18.63, allocations: 309.7 kB / 6.249 GB, free: 162.2 MB / 1.229 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001898/18.63, allocations: 227.7 kB / 6.249 GB, free: 162.2 MB / 1.229 GB Notification: Performance of sorting global known variables: time 0.01556/18.65, allocations: 5.637 MB / 6.255 GB, free: 161.9 MB / 1.229 GB Notification: Performance of sort global known variables: time 6.91e-07/18.65, allocations: 1.125 kB / 6.255 GB, free: 161.9 MB / 1.229 GB Notification: Performance of remove unused functions: time 0.03192/18.68, allocations: 5.263 MB / 6.26 GB, free: 161.6 MB / 1.229 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 27 (solCol.vol[1].dynBal.U,solCol.vol[2].dynBal.U,solCol.vol[3].dynBal.U,solCol.vol[4].dynBal.U,solCol.vol[5].dynBal.U,solCol.vol[6].dynBal.U,solCol.vol[7].dynBal.U,solCol.vol[8].dynBal.U,solCol.vol[9].dynBal.U,TOut.T,TIn.T,tan.vol[1].dynBal.U,tan.vol[2].dynBal.U,tan.vol[3].dynBal.U,tan.vol[4].dynBal.U,tan.indTanHex.vol[1].dynBal.U,tan.indTanHex.vol[2].dynBal.U,tan.indTanHex.vol[3].dynBal.U,tan.indTanHex.vol[4].dynBal.U,tan.indTanHex.cap[1].T,tan.indTanHex.cap[2].T,tan.indTanHex.cap[3].T,tan.indTanHex.cap[4].T,pum.filter.s[1],pum.filter.s[2],exp.m,exp.H) * Number of discrete variables: 4 ($whenCondition2,$whenCondition1,weaDat.conTimMin.tNext,weaDat.conTim.tNext) * Number of discrete states: 2 (weaDat.conTimMin.tNext,weaDat.conTim.tNext) * Top-level inputs: 0 Notification: Strong component statistics for simulation (537): * Single equations (assignments): 526 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.01024/18.69, allocations: 2.456 MB / 6.262 GB, free: 161.2 MB / 1.229 GB Notification: Performance of simCode: created initialization part: time 0.02961/18.72, allocations: 11.69 MB / 6.274 GB, free: 161 MB / 1.229 GB Notification: Performance of simCode: created event and clocks part: time 2.463e-05/18.72, allocations: 6.062 kB / 6.274 GB, free: 161 MB / 1.229 GB Notification: Performance of simCode: created simulation system equations: time 0.008195/18.73, allocations: 3.174 MB / 6.277 GB, free: 160.9 MB / 1.229 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02641/18.76, allocations: 4.114 MB / 6.281 GB, free: 160.9 MB / 1.229 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05879/18.82, allocations: 16.96 MB / 6.298 GB, free: 157.8 MB / 1.229 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0142/18.83, allocations: 6.228 MB / 6.304 GB, free: 156.8 MB / 1.229 GB Notification: Performance of simCode: alias equations: time 0.02992/18.86, allocations: 6.029 MB / 6.309 GB, free: 156.8 MB / 1.229 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004218/18.86, allocations: 0.5883 MB / 6.31 GB, free: 156.8 MB / 1.229 GB Notification: Performance of SimCode: time 1.072e-06/18.86, allocations: 0 / 6.31 GB, free: 156.8 MB / 1.229 GB Notification: Performance of Templates: time 0.2839/19.15, allocations: 178.8 MB / 6.485 GB, free: 134.8 MB / 1.229 GB make -j1 -f Buildings_9_Buildings.Fluid.SolarCollectors.Examples.FlatPlateWithTank.makefile (rm -f Buildings_9_Buildings.Fluid.SolarCollectors.Examples.FlatPlateWithTank.pipe ; mkfifo Buildings_9_Buildings.Fluid.SolarCollectors.Examples.FlatPlateWithTank.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.SolarCollectors.Examples.FlatPlateWithTank.pipe >> ../files/Buildings_9_Buildings.Fluid.SolarCollectors.Examples.FlatPlateWithTank.sim & ./Buildings_9_Buildings.Fluid.SolarCollectors.Examples.FlatPlateWithTank -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.SolarCollectors.Examples.FlatPlateWithTank.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.SolarCollectors.Examples.FlatPlateWithTank_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_SolarCollectors_Examples_FlatPlateWithTank.csv","../files/Buildings_9_Buildings.Fluid.SolarCollectors.Examples.FlatPlateWithTank.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches