Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Fluid.SolarCollectors.Examples.FlatPlateWithTank.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.SolarCollectors.Examples.FlatPlateWithTank,fileNamePrefix="Buildings_maint_8_0_x_Buildings_Fluid_SolarCollectors_Examples_FlatPlateWithTank",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.SolarCollectors.Examples.FlatPlateWithTank,fileNamePrefix="Buildings_maint_8_0_x_Buildings_Fluid_SolarCollectors_Examples_FlatPlateWithTank",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo): time 1.814/1.814, allocations: 288.2 MB / 303.2 MB, free: 8.156 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00125/0.00125, allocations: 186.2 kB / 371.8 MB, free: 10.29 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.182/2.182, allocations: 205.4 MB / 0.6305 GB, free: 10.02 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009724/0.0009725, allocations: 94.61 kB / 0.7439 GB, free: 5.941 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0005294/0.0005297, allocations: 20.09 kB / 0.8669 GB, free: 142.1 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2941/0.2946, allocations: 115.3 MB / 0.9795 GB, free: 27.64 MB / 0.6198 GB Notification: Performance of FrontEnd - scodeFlatten: time 6.703/6.997, allocations: 2.411 GB / 3.391 GB, free: 257.5 MB / 0.948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002765/6.998, allocations: 111.9 kB / 3.391 GB, free: 257.4 MB / 0.948 GB Notification: Performance of FrontEnd - DAE generated: time 9.776/16.77, allocations: 2.526 GB / 5.917 GB, free: 60.08 MB / 1.01 GB Notification: Performance of FrontEnd: time 2.305e-06/16.77, allocations: 0 / 5.917 GB, free: 60.08 MB / 1.01 GB Notification: Performance of Transformations before backend: time 0.002078/16.78, allocations: 272.1 kB / 5.917 GB, free: 60.05 MB / 1.01 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2036 * Number of variables: 2036 Notification: Performance of Generate backend data structure: time 0.0413/16.82, allocations: 10.8 MB / 5.928 GB, free: 55.86 MB / 1.01 GB Notification: Performance of prepare preOptimizeDAE: time 4.759e-05/16.82, allocations: 6.938 kB / 5.928 GB, free: 55.86 MB / 1.01 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005033/16.82, allocations: 1.073 MB / 5.929 GB, free: 55.78 MB / 1.01 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01496/16.84, allocations: 2.049 MB / 5.931 GB, free: 55.19 MB / 1.01 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03411/16.87, allocations: 11.83 MB / 5.942 GB, free: 53.96 MB / 1.01 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007987/16.87, allocations: 0.5959 MB / 5.943 GB, free: 53.95 MB / 1.01 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003783/16.88, allocations: 0.7994 MB / 5.944 GB, free: 53.94 MB / 1.01 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03441/16.91, allocations: 11.21 MB / 5.955 GB, free: 52.84 MB / 1.01 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005911/16.91, allocations: 19.66 kB / 5.955 GB, free: 52.84 MB / 1.01 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003507/16.92, allocations: 344.4 kB / 5.955 GB, free: 52.84 MB / 1.01 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00038/16.92, allocations: 331.7 kB / 5.955 GB, free: 52.82 MB / 1.01 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0271/16.94, allocations: 10.32 MB / 5.965 GB, free: 52.76 MB / 1.01 GB Warning: The model contains alias variables with redundant start and/or conflicting 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.08756/17.03, allocations: 45.28 MB / 6.01 GB, free: 35.76 MB / 1.01 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01639/17.05, allocations: 7.918 MB / 6.017 GB, free: 35.46 MB / 1.01 GB Warning: The model contains alias variables with redundant start and/or conflicting 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.04619/17.09, allocations: 18.18 MB / 6.035 GB, free: 30.91 MB / 1.01 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.009797/17.1, allocations: 3.623 MB / 6.039 GB, free: 30.74 MB / 1.01 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.007052/17.11, allocations: 0.7652 MB / 6.039 GB, free: 30.46 MB / 1.01 GB Notification: Performance of pre-optimization done (n=511): time 3.159e-05/17.11, allocations: 0 / 6.039 GB, free: 30.46 MB / 1.01 GB Notification: Performance of matching and sorting (n=511): time 0.02657/17.14, allocations: 9.428 MB / 6.049 GB, free: 29.7 MB / 1.01 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001377/17.14, allocations: 371.2 kB / 6.049 GB, free: 29.32 MB / 1.01 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01661/17.15, allocations: 7.139 MB / 6.056 GB, free: 28.82 MB / 1.01 GB Notification: Performance of collectPreVariables (initialization): time 0.001729/17.16, allocations: 137.5 kB / 6.056 GB, free: 28.79 MB / 1.01 GB Notification: Performance of collectInitialEqns (initialization): time 0.005828/17.16, allocations: 4.356 MB / 6.06 GB, free: 27.27 MB / 1.01 GB Notification: Performance of collectInitialBindings (initialization): time 0.00301/17.16, allocations: 1.762 MB / 6.062 GB, free: 26.15 MB / 1.01 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0015/17.17, allocations: 129.6 kB / 6.062 GB, free: 26.15 MB / 1.01 GB Notification: Performance of setup shared object (initialization): time 0.000703/17.17, allocations: 0.5589 MB / 6.063 GB, free: 25.83 MB / 1.01 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007607/17.17, allocations: 3.317 MB / 6.066 GB, free: 25.82 MB / 1.01 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008726/17.18, allocations: 5.045 MB / 6.071 GB, free: 23.91 MB / 1.01 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008623/17.19, allocations: 4.187 MB / 6.075 GB, free: 23.81 MB / 1.01 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.46e-05/17.19, allocations: 19.09 kB / 6.075 GB, free: 23.81 MB / 1.01 GB Notification: Performance of matching and sorting (n=828) (initialization): time 0.02479/17.22, allocations: 9.458 MB / 6.084 GB, free: 23.2 MB / 1.01 GB Notification: Performance of prepare postOptimizeDAE: time 0.009147/17.23, allocations: 23.76 MB / 6.107 GB, free: 30.3 MB / 1.042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002097/17.23, allocations: 48.91 kB / 6.107 GB, free: 30.3 MB / 1.042 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007219/17.23, allocations: 172.4 kB / 6.108 GB, free: 30.3 MB / 1.042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009394/17.24, allocations: 1.684 MB / 6.109 GB, free: 30.3 MB / 1.042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001296/17.24, allocations: 0.7237 MB / 6.11 GB, free: 29.78 MB / 1.042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0118/17.25, allocations: 0.6899 MB / 6.111 GB, free: 29.73 MB / 1.042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00188/17.25, allocations: 313.8 kB / 6.111 GB, free: 29.73 MB / 1.042 GB Notification: Performance of prepare postOptimizeDAE: time 1.404e-05/17.25, allocations: 3.469 kB / 6.111 GB, free: 29.73 MB / 1.042 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02197/17.27, allocations: 8.756 MB / 6.119 GB, free: 29.52 MB / 1.042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002563/17.27, allocations: 48.28 kB / 6.119 GB, free: 29.52 MB / 1.042 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005154/17.27, allocations: 170.2 kB / 6.12 GB, free: 29.51 MB / 1.042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008623/17.28, allocations: 1.677 MB / 6.121 GB, free: 29.5 MB / 1.042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000875/17.28, allocations: 0.7329 MB / 6.122 GB, free: 28.98 MB / 1.042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0102/17.29, allocations: 0.67 MB / 6.123 GB, free: 28.9 MB / 1.042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001985/17.3, allocations: 310.1 kB / 6.123 GB, free: 28.9 MB / 1.042 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (821): * Single equations (assignments): 817 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 1 * 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.009171/17.3, allocations: 3.223 MB / 6.126 GB, free: 28.68 MB / 1.042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003493/17.31, allocations: 0.7624 MB / 6.127 GB, free: 28.28 MB / 1.042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02376/17.33, allocations: 7.88 MB / 6.135 GB, free: 27.81 MB / 1.042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.103e-05/17.33, allocations: 52 kB / 6.135 GB, free: 27.81 MB / 1.042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.481e-05/17.33, allocations: 4 kB / 6.135 GB, free: 27.81 MB / 1.042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01592/17.35, allocations: 6.243 MB / 6.141 GB, free: 27.34 MB / 1.042 GB Warning: The model contains alias variables with redundant start and/or conflicting 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.05508/17.4, allocations: 17.25 MB / 6.158 GB, free: 26.38 MB / 1.042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.242e-05/17.4, allocations: 2.5 kB / 6.158 GB, free: 26.38 MB / 1.042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007079/17.41, allocations: 1.158 MB / 6.159 GB, free: 26.38 MB / 1.042 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004377/17.41, allocations: 98.53 kB / 6.159 GB, free: 26.36 MB / 1.042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001344/17.41, allocations: 156.1 kB / 6.159 GB, free: 26.36 MB / 1.042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006956/17.41, allocations: 0.6231 MB / 6.16 GB, free: 25.84 MB / 1.042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.941e-06/17.41, allocations: 0 / 6.16 GB, free: 25.84 MB / 1.042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0271/17.44, allocations: 11.5 MB / 6.171 GB, free: 22.6 MB / 1.042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.007907/17.45, allocations: 1.941 MB / 6.173 GB, free: 21.52 MB / 1.042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003619/17.45, allocations: 112.8 kB / 6.173 GB, free: 21.45 MB / 1.042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009239/17.46, allocations: 0.5882 MB / 6.173 GB, free: 21.31 MB / 1.042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001244/17.46, allocations: 312.5 kB / 6.174 GB, free: 21.27 MB / 1.042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001391/17.46, allocations: 230.4 kB / 6.174 GB, free: 21.23 MB / 1.042 GB Notification: Performance of sorting global known variables: time 0.01299/17.48, allocations: 5.623 MB / 6.179 GB, free: 19.23 MB / 1.042 GB Notification: Performance of sort global known variables: time 1.042e-06/17.48, allocations: 3.75 kB / 6.179 GB, free: 19.23 MB / 1.042 GB Notification: Performance of remove unused functions: time 0.03041/17.51, allocations: 5.243 MB / 6.184 GB, free: 18.02 MB / 1.042 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.x[1],pum.filter.x[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) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (536): * Single equations (assignments): 525 * 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.03388/17.54, allocations: 14.51 MB / 6.199 GB, free: 11.82 MB / 1.042 GB Notification: Performance of simCode: created initialization part: time 0.02858/17.57, allocations: 12.23 MB / 6.211 GB, free: 7.855 MB / 1.042 GB Notification: Performance of simCode: created event and clocks part: time 1.771e-05/17.57, allocations: 6.281 kB / 6.211 GB, free: 7.852 MB / 1.042 GB Notification: Performance of simCode: created simulation system equations: time 0.008264/17.58, allocations: 3.388 MB / 6.214 GB, free: 6.434 MB / 1.042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0214/17.6, allocations: 4.129 MB / 6.218 GB, free: 3.496 MB / 1.042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.7229/18.32, allocations: 62.03 MB / 6.279 GB, free: 87.38 MB / 1.073 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01216/18.33, allocations: 6.176 MB / 6.285 GB, free: 86.45 MB / 1.073 GB Notification: Performance of simCode: alias equations: time 0.02231/18.36, allocations: 4.214 MB / 6.289 GB, free: 86.38 MB / 1.073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01186/18.37, allocations: 4.133 MB / 6.293 GB, free: 86.38 MB / 1.073 GB Notification: Performance of SimCode: time 1.272e-06/18.37, allocations: 1.344 kB / 6.293 GB, free: 86.38 MB / 1.073 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3873/18.76, allocations: 252.7 MB / 6.539 GB, free: 58.4 MB / 1.073 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001872/18.76, allocations: 272.7 kB / 6.54 GB, free: 58.05 MB / 1.073 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.51/30.27, allocations: 0 / 6.54 GB, free: 58.05 MB / 1.073 GB (rm -f Buildings_maint.8.0.x_Buildings.Fluid.SolarCollectors.Examples.FlatPlateWithTank.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Fluid.SolarCollectors.Examples.FlatPlateWithTank.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Fluid.SolarCollectors.Examples.FlatPlateWithTank.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Fluid.SolarCollectors.Examples.FlatPlateWithTank.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_8_0_x_Buildings_Fluid_SolarCollectors_Examples_FlatPlateWithTank_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 Buildings_maint_8_0_x_Buildings_Fluid_SolarCollectors_Examples_FlatPlateWithTank.fmu > Buildings_maint.8.0.x_Buildings.Fluid.SolarCollectors.Examples.FlatPlateWithTank.pipe 2>&1)