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.034/2.034, allocations: 387.4 MB / 394.9 MB, free: 13.38 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.001099/0.001099, allocations: 184.9 kB / 487.4 MB, free: 5.031 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.354/1.354, allocations: 221.5 MB / 0.7824 GB, free: 0.9648 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.0009028/0.000903, allocations: 95.86 kB / 0.9219 GB, free: 2.203 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 1.639e-05/1.614e-05, allocations: 4 kB / 1.067 GB, free: 185.7 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2649/0.2649, allocations: 142.4 MB / 1.206 GB, free: 43.97 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.818/5.082, allocations: 2.239 GB / 3.445 GB, free: 62.37 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002677/5.083, allocations: 100.4 kB / 3.446 GB, free: 62.32 MB / 1.151 GB Notification: Performance of FrontEnd - DAE generated: time 8.134/13.22, allocations: 2.537 GB / 5.983 GB, free: 143.5 MB / 1.198 GB Notification: Performance of FrontEnd: time 2.495e-06/13.22, allocations: 0 / 5.983 GB, free: 143.5 MB / 1.198 GB Notification: Performance of Transformations before backend: time 0.001641/13.22, allocations: 277.5 kB / 5.983 GB, free: 143.4 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.02875/13.25, allocations: 8.945 MB / 5.992 GB, free: 139.9 MB / 1.198 GB Notification: Performance of prepare preOptimizeDAE: time 4.478e-05/13.25, allocations: 10.34 kB / 5.992 GB, free: 139.9 MB / 1.198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01327/13.26, allocations: 2.165 MB / 5.994 GB, free: 139.3 MB / 1.198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02896/13.29, allocations: 12.07 MB / 6.006 GB, free: 138.1 MB / 1.198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003711/13.29, allocations: 259.1 kB / 6.006 GB, free: 138 MB / 1.198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002776/13.29, allocations: 484.4 kB / 6.006 GB, free: 138 MB / 1.198 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01944/13.31, allocations: 9.15 MB / 6.015 GB, free: 138 MB / 1.198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02148/13.33, allocations: 9.686 MB / 6.025 GB, free: 136.9 MB / 1.198 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001808/13.33, allocations: 24.27 kB / 6.025 GB, free: 136.9 MB / 1.198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008605/13.34, allocations: 11.44 kB / 6.025 GB, free: 136.9 MB / 1.198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002318/13.34, allocations: 341.2 kB / 6.025 GB, free: 136.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.05991/13.4, allocations: 43.99 MB / 6.068 GB, free: 109.8 MB / 1.198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.009678/13.41, allocations: 7.178 MB / 6.075 GB, free: 106.8 MB / 1.198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004444/13.41, allocations: 3.59 MB / 6.078 GB, free: 105.1 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.0306/13.44, allocations: 18.16 MB / 6.096 GB, free: 87.43 MB / 1.198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004097/13.44, allocations: 3.24 MB / 6.099 GB, free: 84.13 MB / 1.198 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.00502/13.45, allocations: 0.6159 MB / 6.1 GB, free: 83.51 MB / 1.198 GB Notification: Performance of pre-optimization done (n=511): time 4.25e-05/13.45, allocations: 0 / 6.1 GB, free: 83.51 MB / 1.198 GB Notification: Performance of matching and sorting (n=511): time 0.065/13.51, allocations: 10.69 MB / 6.11 GB, free: 72.71 MB / 1.198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001167/13.51, allocations: 313 kB / 6.111 GB, free: 72.34 MB / 1.198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01119/13.53, allocations: 6.379 MB / 6.117 GB, free: 66 MB / 1.198 GB Notification: Performance of collectPreVariables (initialization): time 0.001859/13.53, allocations: 33.7 kB / 6.117 GB, free: 65.96 MB / 1.198 GB Notification: Performance of collectInitialEqns (initialization): time 0.004224/13.53, allocations: 4.368 MB / 6.121 GB, free: 61.55 MB / 1.198 GB Notification: Performance of collectInitialBindings (initialization): time 0.002458/13.53, allocations: 1.698 MB / 6.123 GB, free: 59.83 MB / 1.198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005427/13.53, allocations: 0 / 6.123 GB, free: 59.83 MB / 1.198 GB Notification: Performance of setup shared object (initialization): time 0.0003724/13.54, allocations: 0.555 MB / 6.123 GB, free: 59.27 MB / 1.198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003851/13.54, allocations: 2.96 MB / 6.126 GB, free: 56.3 MB / 1.198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004518/13.54, allocations: 4.625 MB / 6.131 GB, free: 50.96 MB / 1.198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.1491/13.69, allocations: 16.06 MB / 6.146 GB, free: 34.85 MB / 1.198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.37e-05/13.69, allocations: 20 kB / 6.147 GB, free: 34.83 MB / 1.198 GB Notification: Performance of matching and sorting (n=824) (initialization): time 0.1607/13.85, allocations: 20.59 MB / 6.167 GB, free: 14.14 MB / 1.198 GB Notification: Performance of prepare postOptimizeDAE: time 0.006578/13.86, allocations: 23.36 MB / 6.189 GB, free: 4.598 MB / 1.214 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000141/13.86, allocations: 48 kB / 6.189 GB, free: 4.551 MB / 1.214 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004984/13.86, allocations: 160.2 kB / 6.19 GB, free: 4.395 MB / 1.214 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008814/13.87, allocations: 1.704 MB / 6.191 GB, free: 2.688 MB / 1.214 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008047/13.87, allocations: 0.7199 MB / 6.192 GB, free: 1.941 MB / 1.214 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01098/13.88, allocations: 0.5766 MB / 6.193 GB, free: 1.363 MB / 1.214 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001828/13.88, allocations: 307.9 kB / 6.193 GB, free: 1.062 MB / 1.214 GB Notification: Performance of prepare postOptimizeDAE: time 1.222e-05/13.88, allocations: 8 kB / 6.193 GB, free: 1.055 MB / 1.214 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.8578/14.74, allocations: 19.77 MB / 6.212 GB, free: 158.1 MB / 1.214 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.123e-05/14.74, allocations: 48.89 kB / 6.212 GB, free: 158.1 MB / 1.214 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002571/14.74, allocations: 157.7 kB / 6.212 GB, free: 158.1 MB / 1.214 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006547/14.75, allocations: 1.699 MB / 6.214 GB, free: 158.1 MB / 1.214 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004938/14.75, allocations: 0.7222 MB / 6.215 GB, free: 157.6 MB / 1.214 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007606/14.76, allocations: 0.5492 MB / 6.215 GB, free: 157.6 MB / 1.214 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006404/14.76, allocations: 310.9 kB / 6.216 GB, free: 157.6 MB / 1.214 GB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: pum.vol.heaFloSen.Q_flow:VARIABLE(unit = "W" protected = true ) "Heat flow from port_a to port_b as output signal" type: Real 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.001376/14.76, allocations: 278.4 kB / 6.216 GB, free: 157.5 MB / 1.214 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001722/14.76, allocations: 0.7304 MB / 6.217 GB, free: 157.5 MB / 1.214 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.06538/14.83, allocations: 11.7 MB / 6.228 GB, free: 157.2 MB / 1.214 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.078e-05/14.83, allocations: 53.41 kB / 6.228 GB, free: 157.2 MB / 1.214 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.735e-05/14.83, allocations: 7 kB / 6.228 GB, free: 157.2 MB / 1.214 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.06471/14.89, allocations: 10.17 MB / 6.238 GB, free: 156.7 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.08492/14.98, allocations: 20.17 MB / 6.258 GB, free: 156 MB / 1.214 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.606e-05/14.98, allocations: 0.625 kB / 6.258 GB, free: 156 MB / 1.214 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005774/14.98, allocations: 1.175 MB / 6.259 GB, free: 156 MB / 1.214 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002496/14.98, allocations: 80.27 kB / 6.259 GB, free: 156 MB / 1.214 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000603/14.98, allocations: 96.92 kB / 6.259 GB, free: 156 MB / 1.214 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004281/14.98, allocations: 0.6245 MB / 6.26 GB, free: 155.5 MB / 1.214 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.56e-06/14.98, allocations: 5.75 kB / 6.26 GB, free: 155.5 MB / 1.214 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06801/15.05, allocations: 15.04 MB / 6.274 GB, free: 154.7 MB / 1.214 GB Notification: Performance of postOpt removeConstants (simulation): time 0.006022/15.06, allocations: 1.893 MB / 6.276 GB, free: 154.2 MB / 1.214 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002406/15.06, allocations: 26.06 kB / 6.276 GB, free: 154.2 MB / 1.214 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007542/15.07, allocations: 499.6 kB / 6.277 GB, free: 154.2 MB / 1.214 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006294/15.07, allocations: 316 kB / 6.277 GB, free: 154.1 MB / 1.214 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006234/15.07, allocations: 235.7 kB / 6.277 GB, free: 154.1 MB / 1.214 GB Notification: Performance of sorting global known variables: time 0.007885/15.08, allocations: 4.853 MB / 6.282 GB, free: 153.9 MB / 1.214 GB Notification: Performance of sort global known variables: time 3.61e-07/15.08, allocations: 0 / 6.282 GB, free: 153.9 MB / 1.214 GB Notification: Performance of remove unused functions: time 0.02072/15.1, allocations: 5.044 MB / 6.287 GB, free: 153.5 MB / 1.214 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.00547/15.1, allocations: 2.235 MB / 6.289 GB, free: 153 MB / 1.214 GB Notification: Performance of simCode: created initialization part: time 0.01873/15.12, allocations: 11.18 MB / 6.3 GB, free: 152.8 MB / 1.214 GB Notification: Performance of simCode: created event and clocks part: time 1.548e-05/15.12, allocations: 5.719 kB / 6.3 GB, free: 152.8 MB / 1.214 GB Notification: Performance of simCode: created simulation system equations: time 0.005152/15.13, allocations: 3.062 MB / 6.303 GB, free: 152.8 MB / 1.214 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01972/15.15, allocations: 3.592 MB / 6.306 GB, free: 152.7 MB / 1.214 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0332/15.18, allocations: 16.58 MB / 6.323 GB, free: 148.8 MB / 1.214 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006687/15.19, allocations: 6.227 MB / 6.329 GB, free: 147.7 MB / 1.214 GB Notification: Performance of simCode: alias equations: time 0.02017/15.21, allocations: 5.758 MB / 6.334 GB, free: 147.2 MB / 1.214 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002564/15.21, allocations: 0.5724 MB / 6.335 GB, free: 147.2 MB / 1.214 GB Notification: Performance of SimCode: time 6.31e-07/15.21, allocations: 0 / 6.335 GB, free: 147.2 MB / 1.214 GB Notification: Performance of Templates: time 0.2066/15.42, allocations: 149.6 MB / 6.481 GB, free: 115.8 MB / 1.214 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