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: "" <> buildModelFMU(Buildings.Fluid.SolarCollectors.Examples.FlatPlateWithTank,fileNamePrefix="Buildings_9_Buildings_Fluid_SolarCollectors_Examples_FlatPlateWithTank",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.SolarCollectors.Examples.FlatPlateWithTank,fileNamePrefix="Buildings_9_Buildings_Fluid_SolarCollectors_Examples_FlatPlateWithTank",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.219/2.219, 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.001088/0.001088, allocations: 180.7 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.479/1.479, allocations: 221.5 MB / 0.7824 GB, free: 0.9688 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.0009623/0.0009624, allocations: 91.84 kB / 0.9219 GB, free: 2.207 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 2.152e-05/2.153e-05, allocations: 4 kB / 1.067 GB, free: 185.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2911/0.2912, allocations: 142.4 MB / 1.206 GB, free: 43.85 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 5.988/6.279, allocations: 2.239 GB / 3.445 GB, free: 61.55 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002445/6.279, allocations: 98.14 kB / 3.446 GB, free: 61.51 MB / 1.151 GB Notification: Performance of FrontEnd - DAE generated: time 9.755/16.03, allocations: 2.537 GB / 5.983 GB, free: 142.8 MB / 1.198 GB Notification: Performance of FrontEnd: time 2.905e-06/16.03, allocations: 3.281 kB / 5.983 GB, free: 142.8 MB / 1.198 GB Notification: Performance of Transformations before backend: time 0.00208/16.04, allocations: 273 kB / 5.983 GB, free: 142.8 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.03044/16.07, allocations: 8.951 MB / 5.992 GB, free: 139.3 MB / 1.198 GB Notification: Performance of prepare preOptimizeDAE: time 5.723e-05/16.07, allocations: 7.375 kB / 5.992 GB, free: 139.3 MB / 1.198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0146/16.08, allocations: 2.174 MB / 5.994 GB, free: 138.7 MB / 1.198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03331/16.11, allocations: 12.07 MB / 6.006 GB, free: 137.4 MB / 1.198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005699/16.12, allocations: 254.8 kB / 6.006 GB, free: 137.4 MB / 1.198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003451/16.12, allocations: 489.5 kB / 6.006 GB, free: 137.4 MB / 1.198 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02313/16.14, allocations: 9.147 MB / 6.015 GB, free: 137.4 MB / 1.198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03117/16.17, allocations: 9.679 MB / 6.025 GB, free: 136.3 MB / 1.198 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006244/16.17, allocations: 26.5 kB / 6.025 GB, free: 136.3 MB / 1.198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003231/16.18, allocations: 11.34 kB / 6.025 GB, free: 136.3 MB / 1.198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003351/16.18, allocations: 345.7 kB / 6.025 GB, free: 136.2 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.08354/16.26, allocations: 43.99 MB / 6.068 GB, free: 109.3 MB / 1.198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01267/16.27, allocations: 7.179 MB / 6.075 GB, free: 106.3 MB / 1.198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006064/16.28, allocations: 3.587 MB / 6.079 GB, free: 104.2 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.03844/16.32, allocations: 18.17 MB / 6.096 GB, free: 86.36 MB / 1.198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005635/16.32, allocations: 3.233 MB / 6.099 GB, free: 83.07 MB / 1.198 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.005096/16.33, allocations: 0.6237 MB / 6.1 GB, free: 82.44 MB / 1.198 GB Notification: Performance of pre-optimization done (n=511): time 1.297e-05/16.33, allocations: 0 / 6.1 GB, free: 82.44 MB / 1.198 GB Notification: Performance of matching and sorting (n=511): time 0.07836/16.41, allocations: 10.68 MB / 6.11 GB, free: 71.64 MB / 1.198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.954e-05/16.41, allocations: 311.4 kB / 6.111 GB, free: 71.28 MB / 1.198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01399/16.42, allocations: 6.379 MB / 6.117 GB, free: 64.93 MB / 1.198 GB Notification: Performance of collectPreVariables (initialization): time 0.001757/16.42, allocations: 29.7 kB / 6.117 GB, free: 64.9 MB / 1.198 GB Notification: Performance of collectInitialEqns (initialization): time 0.004985/16.43, allocations: 4.369 MB / 6.121 GB, free: 60.49 MB / 1.198 GB Notification: Performance of collectInitialBindings (initialization): time 0.002604/16.43, allocations: 1.694 MB / 6.123 GB, free: 58.77 MB / 1.198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009868/16.43, allocations: 0 / 6.123 GB, free: 58.77 MB / 1.198 GB Notification: Performance of setup shared object (initialization): time 0.0004441/16.43, allocations: 0.5628 MB / 6.124 GB, free: 58.2 MB / 1.198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00461/16.44, allocations: 2.957 MB / 6.126 GB, free: 55.24 MB / 1.198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008225/16.45, allocations: 4.622 MB / 6.131 GB, free: 49.91 MB / 1.198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.1982/16.64, allocations: 16.07 MB / 6.147 GB, free: 33.79 MB / 1.198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.287e-05/16.64, allocations: 12 kB / 6.147 GB, free: 33.77 MB / 1.198 GB Notification: Performance of matching and sorting (n=824) (initialization): time 0.1674/16.81, allocations: 20.59 MB / 6.167 GB, free: 13.08 MB / 1.198 GB Notification: Performance of prepare postOptimizeDAE: time 0.00652/16.82, allocations: 23.37 MB / 6.19 GB, free: 3.531 MB / 1.214 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001451/16.82, allocations: 44 kB / 6.19 GB, free: 3.488 MB / 1.214 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000482/16.82, allocations: 160.1 kB / 6.19 GB, free: 3.332 MB / 1.214 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009125/16.83, allocations: 1.704 MB / 6.191 GB, free: 1.625 MB / 1.214 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008732/16.83, allocations: 0.7317 MB / 6.192 GB, free: 0.8672 MB / 1.214 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01013/16.84, allocations: 0.5746 MB / 6.193 GB, free: 300 kB / 1.214 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.8096/17.65, allocations: 306.7 kB / 6.193 GB, free: 158.3 MB / 1.214 GB Notification: Performance of prepare postOptimizeDAE: time 2.033e-05/17.65, allocations: 4 kB / 6.193 GB, free: 158.3 MB / 1.214 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.1728/17.82, allocations: 19.77 MB / 6.212 GB, free: 158.1 MB / 1.214 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001087/17.82, allocations: 44.52 kB / 6.212 GB, free: 158.1 MB / 1.214 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00026/17.82, allocations: 164.2 kB / 6.212 GB, free: 158.1 MB / 1.214 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007295/17.83, allocations: 1.696 MB / 6.214 GB, free: 158.1 MB / 1.214 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005494/17.83, allocations: 0.7251 MB / 6.215 GB, free: 157.6 MB / 1.214 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008528/17.84, allocations: 0.5526 MB / 6.215 GB, free: 157.6 MB / 1.214 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001278/17.84, allocations: 309.4 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.001681/17.84, allocations: 279.7 kB / 6.216 GB, free: 157.4 MB / 1.214 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.06852/17.91, allocations: 10.63 MB / 6.226 GB, free: 157.2 MB / 1.214 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002543/17.91, allocations: 0.73 MB / 6.227 GB, free: 157.2 MB / 1.214 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.07344/17.99, allocations: 11.7 MB / 6.238 GB, free: 156.8 MB / 1.214 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.931e-05/17.99, allocations: 57.14 kB / 6.239 GB, free: 156.8 MB / 1.214 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.607e-05/17.99, allocations: 1.844 kB / 6.239 GB, free: 156.8 MB / 1.214 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0657/18.05, allocations: 10.18 MB / 6.248 GB, free: 156.4 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.08664/18.14, allocations: 20.17 MB / 6.268 GB, free: 155.6 MB / 1.214 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.456e-05/18.14, allocations: 7.312 kB / 6.268 GB, free: 155.6 MB / 1.214 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005764/18.14, allocations: 1.17 MB / 6.269 GB, free: 155.6 MB / 1.214 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002567/18.14, allocations: 86.58 kB / 6.269 GB, free: 155.5 MB / 1.214 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006591/18.15, allocations: 92.05 kB / 6.269 GB, free: 155.5 MB / 1.214 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004166/18.15, allocations: 0.6261 MB / 6.27 GB, free: 155 MB / 1.214 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.049e-06/18.15, allocations: 9.297 kB / 6.27 GB, free: 155 MB / 1.214 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.07259/18.22, allocations: 15.03 MB / 6.285 GB, free: 153.7 MB / 1.214 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00603/18.22, allocations: 1.893 MB / 6.287 GB, free: 153.2 MB / 1.214 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002578/18.23, allocations: 26.19 kB / 6.287 GB, free: 153.2 MB / 1.214 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007807/18.23, allocations: 0.4938 MB / 6.287 GB, free: 153.1 MB / 1.214 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007519/18.24, allocations: 314.1 kB / 6.287 GB, free: 153.1 MB / 1.214 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008175/18.24, allocations: 232.4 kB / 6.288 GB, free: 153.1 MB / 1.214 GB Notification: Performance of sorting global known variables: time 0.01072/18.25, allocations: 4.856 MB / 6.292 GB, free: 152.9 MB / 1.214 GB Notification: Performance of sort global known variables: time 4.41e-07/18.25, allocations: 0 / 6.292 GB, free: 152.9 MB / 1.214 GB Notification: Performance of remove unused functions: time 0.03113/18.28, allocations: 5.038 MB / 6.297 GB, free: 152.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.1118/18.39, allocations: 17.89 MB / 6.315 GB, free: 150.2 MB / 1.214 GB Notification: Performance of simCode: created initialization part: time 0.02831/18.42, allocations: 11.16 MB / 6.326 GB, free: 150 MB / 1.214 GB Notification: Performance of simCode: created event and clocks part: time 2.128e-05/18.42, allocations: 7.375 kB / 6.326 GB, free: 150 MB / 1.214 GB Notification: Performance of simCode: created simulation system equations: time 0.00757/18.43, allocations: 3.064 MB / 6.329 GB, free: 150 MB / 1.214 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02543/18.45, allocations: 3.578 MB / 6.332 GB, free: 149.8 MB / 1.214 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05952/18.51, allocations: 19.23 MB / 6.351 GB, free: 145.7 MB / 1.214 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01051/18.52, allocations: 6.232 MB / 6.357 GB, free: 144.7 MB / 1.214 GB Notification: Performance of simCode: alias equations: time 0.0238/18.55, allocations: 5.724 MB / 6.363 GB, free: 144.2 MB / 1.214 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01009/18.56, allocations: 4.06 MB / 6.367 GB, free: 144.2 MB / 1.214 GB Notification: Performance of SimCode: time 1.302e-06/18.56, allocations: 0.75 kB / 6.367 GB, free: 144.2 MB / 1.214 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3064/18.86, allocations: 226.9 MB / 6.588 GB, free: 15.32 MB / 1.214 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001477/18.86, allocations: 183.3 kB / 6.588 GB, free: 15.12 MB / 1.214 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.86/29.72, allocations: 0 / 6.588 GB, free: 15.12 MB / 1.214 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.SolarCollectors.Examples.FlatPlateWithTank_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_SolarCollectors_Examples_FlatPlateWithTank_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_SolarCollectors_Examples_FlatPlateWithTank.fmu > Buildings_9_Buildings.Fluid.SolarCollectors.Examples.FlatPlateWithTank.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Fluid.SolarCollectors.Examples.FlatPlateWithTank_res.mat does not exist to compare? outputFormat=mat