Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.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 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: translateModel(Buildings.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature") translateModel(Buildings.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.379/1.379, allocations: 252 MB / 267.6 MB, free: 10.92 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001133/0.001133, allocations: 174.8 kB / 327.3 MB, free: 2.23 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.991/1.991, allocations: 205.4 MB / 0.5783 GB, free: 20.26 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009012/0.0009012, allocations: 86.31 kB / 0.6829 GB, free: 12.87 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003493/0.0003494, allocations: 10.56 kB / 0.797 GB, free: 135.1 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2429/0.2433, allocations: 106.3 MB / 0.9008 GB, free: 63.92 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature): time 0.02657/0.2699, allocations: 34.92 MB / 0.9349 GB, free: 28.89 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.0161/0.2861, allocations: 11.74 MB / 0.9464 GB, free: 17.13 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002341/0.2885, allocations: 43.69 kB / 0.9464 GB, free: 17.09 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 0.001601/0.2901, allocations: 425.1 kB / 0.9468 GB, free: 16.67 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 0.004336/0.2944, allocations: 1.265 MB / 0.9481 GB, free: 15.4 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.003054/0.2975, allocations: 0.9283 MB / 0.949 GB, free: 14.48 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.007351/0.3049, allocations: 8.861 MB / 0.9576 GB, free: 5.594 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003763/0.3087, allocations: 2.739 MB / 0.9603 GB, free: 2.809 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004301/0.313, allocations: 2.117 MB / 0.9624 GB, free: 0.6836 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003804/0.3168, allocations: 2.132 MB / 0.9645 GB, free: 14.54 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 0.0004072/0.3172, allocations: 132 kB / 0.9646 GB, free: 14.41 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002825/0.3201, allocations: 0.7915 MB / 0.9653 GB, free: 13.62 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 0.0007044/0.3208, allocations: 0.5835 MB / 0.9659 GB, free: 13.03 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 0.001276/0.3221, allocations: 0.6408 MB / 0.9665 GB, free: 12.38 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.004773/0.3269, allocations: 3.951 MB / 0.9704 GB, free: 8.426 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 8.376e-06/0.3269, allocations: 8 kB / 0.9704 GB, free: 8.418 MB / 0.6198 GB Notification: Performance of FrontEnd: time 2.845e-06/0.3269, allocations: 0 / 0.9704 GB, free: 8.418 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 0.0001302/0.327, allocations: 0 / 0.9704 GB, free: 8.418 MB / 0.6198 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 586 * Number of variables: 586 Notification: Performance of Generate backend data structure: time 0.006372/0.3334, allocations: 2.988 MB / 0.9733 GB, free: 5.359 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.982e-05/0.3335, allocations: 8.031 kB / 0.9733 GB, free: 5.352 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001067/0.3346, allocations: 360.1 kB / 0.9737 GB, free: 4.996 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004586/0.3391, allocations: 2.507 MB / 0.9761 GB, free: 2.441 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001467/0.3393, allocations: 180.6 kB / 0.9763 GB, free: 2.262 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000345/0.3397, allocations: 232 kB / 0.9765 GB, free: 2.035 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005979/0.3457, allocations: 3.191 MB / 0.9796 GB, free: 14.7 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.06e-05/0.3458, allocations: 7.906 kB / 0.9796 GB, free: 14.7 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003257/0.3461, allocations: 96 kB / 0.9797 GB, free: 14.6 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.964e-05/0.3462, allocations: 67.94 kB / 0.9798 GB, free: 14.54 MB / 0.6355 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005189/0.3514, allocations: 2.566 MB / 0.9823 GB, free: 11.95 MB / 0.6355 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.01911/0.3705, allocations: 13.71 MB / 0.9957 GB, free: 13.17 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002919/0.3735, allocations: 1.611 MB / 0.9973 GB, free: 11.55 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001857/0.3754, allocations: 1.178 MB / 0.9984 GB, free: 10.37 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009756/0.3764, allocations: 0.7204 MB / 0.9991 GB, free: 9.5 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.45e-05/0.3765, allocations: 55.5 kB / 0.9992 GB, free: 9.438 MB / 0.6511 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001678/0.3782, allocations: 190.8 kB / 0.9994 GB, free: 9.25 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=126): time 1.186e-05/0.3782, allocations: 0 / 0.9994 GB, free: 9.25 MB / 0.6511 GB Notification: Performance of matching and sorting (n=126): time 0.009037/0.3872, allocations: 3.363 MB / 1.003 GB, free: 5.836 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001013/0.3874, allocations: 145.5 kB / 1.003 GB, free: 5.66 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004004/0.3914, allocations: 1.943 MB / 1.005 GB, free: 3.676 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 0.0003169/0.3917, allocations: 57.69 kB / 1.005 GB, free: 3.613 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.001905/0.3937, allocations: 1.246 MB / 1.006 GB, free: 2.352 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007147/0.3944, allocations: 453.6 kB / 1.006 GB, free: 1.902 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001471/0.3945, allocations: 32 kB / 1.006 GB, free: 1.871 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0002784/0.3948, allocations: 369.9 kB / 1.007 GB, free: 1.504 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001557/0.3964, allocations: 0.73 MB / 1.007 GB, free: 0.7734 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00199/0.3984, allocations: 1.236 MB / 1.009 GB, free: 15.32 MB / 0.6667 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001863/0.4003, allocations: 0.9471 MB / 1.01 GB, free: 14.38 MB / 0.6667 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.357e-05/0.4003, allocations: 4 kB / 1.01 GB, free: 14.37 MB / 0.6667 GB Notification: Performance of matching and sorting (n=213) (initialization): time 0.004772/0.4051, allocations: 2.414 MB / 1.012 GB, free: 11.94 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004571/0.4056, allocations: 0.5027 MB / 1.012 GB, free: 11.24 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.719e-05/0.4056, allocations: 12 kB / 1.012 GB, free: 11.23 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002127/0.4078, allocations: 0.4923 MB / 1.013 GB, free: 10.73 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001345/0.4091, allocations: 347.4 kB / 1.013 GB, free: 10.39 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003815/0.4129, allocations: 3.13 MB / 1.016 GB, free: 7.102 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00247/0.4154, allocations: 227.3 kB / 1.017 GB, free: 6.883 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002585/0.4157, allocations: 83.97 kB / 1.017 GB, free: 6.801 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 1.89e-05/0.4158, allocations: 4 kB / 1.017 GB, free: 6.797 MB / 0.6667 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004279/0.42, allocations: 2.18 MB / 1.019 GB, free: 4.609 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.58e-05/0.4201, allocations: 12 kB / 1.019 GB, free: 4.598 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007299/0.4208, allocations: 253.8 kB / 1.019 GB, free: 4.344 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001452/0.4223, allocations: 367.4 kB / 1.019 GB, free: 3.984 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005032/0.4273, allocations: 4.173 MB / 1.023 GB, free: 15.54 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002411/0.4298, allocations: 219.5 kB / 1.024 GB, free: 15.33 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002419/0.43, allocations: 79.97 kB / 1.024 GB, free: 15.25 MB / 0.6823 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 63 * Number of states: 0 () * Number of discrete variables: 8 ($PRE.onOffBot.y,onOffBot.y,$PRE.onOffMid.y,onOffMid.y,and2.y,yTop.u,$PRE.onOffHea.y,onOffHea.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (179): * Single equations (assignments): 177 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 10} * Non-linear torn systems: 1 {3 22} Notification: Performance of prepare postOptimizeDAE: time 0.002404/0.4324, allocations: 1.004 MB / 1.025 GB, free: 14.23 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008707/0.4333, allocations: 201.5 kB / 1.025 GB, free: 14.04 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004347/0.4377, allocations: 2.056 MB / 1.027 GB, free: 11.97 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.277e-05/0.4377, allocations: 19.95 kB / 1.027 GB, free: 11.95 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.058e-05/0.4377, allocations: 112 / 1.027 GB, free: 11.95 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002728/0.4405, allocations: 1.667 MB / 1.029 GB, free: 10.27 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01019/0.4507, allocations: 4.662 MB / 1.033 GB, free: 5.512 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.324e-06/0.4507, allocations: 0 / 1.033 GB, free: 5.512 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009172/0.4516, allocations: 207.8 kB / 1.033 GB, free: 5.309 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001604/0.4533, allocations: 424.5 kB / 1.034 GB, free: 4.891 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001254/0.4534, allocations: 31.97 kB / 1.034 GB, free: 4.859 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003518/0.4569, allocations: 3.042 MB / 1.037 GB, free: 1.656 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.198e-06/0.457, allocations: 3.953 kB / 1.037 GB, free: 1.652 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005022/0.462, allocations: 2.983 MB / 1.04 GB, free: 14.63 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001788/0.4638, allocations: 0.5022 MB / 1.04 GB, free: 14.11 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000625/0.4644, allocations: 32.12 kB / 1.04 GB, free: 14.07 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002021/0.4665, allocations: 193.8 kB / 1.04 GB, free: 13.89 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002507/0.4667, allocations: 105.1 kB / 1.04 GB, free: 13.79 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001614/0.4669, allocations: 55.97 kB / 1.041 GB, free: 13.73 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.00285/0.4698, allocations: 1.33 MB / 1.042 GB, free: 12.38 MB / 0.698 GB Notification: Performance of sort global known variables: time 2.234e-06/0.4698, allocations: 304 / 1.042 GB, free: 12.38 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.006288/0.4761, allocations: 1.476 MB / 1.043 GB, free: 10.9 MB / 0.698 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 5 (tan.vol[1].dynBal.U,tan.vol[2].dynBal.U,tan.vol[3].dynBal.U,tan.vol[4].dynBal.U,tan.vol[5].dynBal.U) * Number of discrete variables: 5 (onOffBot.y,onOffMid.y,and2.y,yTop.u,onOffHea.y) * Number of discrete states: 3 (onOffBot.y,onOffMid.y,onOffHea.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (102): * Single equations (assignments): 96 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 10} * Non-linear torn systems: 1 {3 20} Notification: Performance of Backend phase and start with SimCode phase: time 0.001168/0.4773, allocations: 382.1 kB / 1.044 GB, free: 10.53 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.006691/0.484, allocations: 3.349 MB / 1.047 GB, free: 7.148 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 6.532e-06/0.484, allocations: 3.938 kB / 1.047 GB, free: 7.145 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.001794/0.4858, allocations: 1.017 MB / 1.048 GB, free: 6.121 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006713/0.4926, allocations: 1.153 MB / 1.049 GB, free: 4.984 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4319/0.9245, allocations: 6.301 MB / 1.055 GB, free: 139.7 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001811/0.9263, allocations: 2.118 MB / 1.057 GB, free: 138.9 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009064/0.9273, allocations: 188.2 kB / 1.057 GB, free: 138.9 MB / 0.698 GB Notification: Performance of SimCode: time 1.092e-06/0.9273, allocations: 0 / 1.057 GB, free: 138.9 MB / 0.698 GB Notification: Performance of Templates: time 0.09337/1.021, allocations: 69.49 MB / 1.125 GB, free: 91.01 MB / 0.698 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature.makefile (rm -f Buildings_maint.7.0.x_Buildings.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature.sim & ./Buildings_maint.7.0.x_Buildings.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature.pipe 2>&1)