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.421/1.421, allocations: 252 MB / 268 MB, free: 10.87 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.001969/0.001969, allocations: 173.5 kB / 327.6 MB, free: 2.098 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.986/1.986, allocations: 205.4 MB / 0.5786 GB, free: 20.16 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.001152/0.001152, allocations: 94.56 kB / 0.6832 GB, free: 12.76 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003209/0.0003209, allocations: 8.125 kB / 0.7976 GB, free: 135.3 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2093/0.2096, allocations: 106.3 MB / 0.9014 GB, free: 63.52 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature): time 0.02749/0.2372, allocations: 36.91 MB / 0.9375 GB, free: 26.47 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.01637/0.2536, allocations: 12.71 MB / 0.9499 GB, free: 13.74 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00252/0.2562, allocations: 47.62 kB / 0.9499 GB, free: 13.7 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 0.001697/0.2579, allocations: 477.2 kB / 0.9504 GB, free: 13.23 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 0.004749/0.2627, allocations: 1.453 MB / 0.9518 GB, free: 11.77 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.003214/0.2659, allocations: 1.089 MB / 0.9529 GB, free: 10.69 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.009438/0.2753, allocations: 10.41 MB / 0.963 GB, free: 260 kB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.004756/0.2801, allocations: 3.045 MB / 0.966 GB, free: 13.15 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005134/0.2853, allocations: 2.167 MB / 0.9681 GB, free: 10.98 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 0.005085/0.2904, allocations: 2.256 MB / 0.9703 GB, free: 8.711 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 0.0007867/0.2912, allocations: 132 kB / 0.9705 GB, free: 8.582 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003439/0.2947, allocations: 0.9474 MB / 0.9714 GB, free: 7.629 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 0.0009269/0.2956, allocations: 0.6106 MB / 0.972 GB, free: 7.016 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 0.002845/0.2985, allocations: 1.545 MB / 0.9735 GB, free: 5.457 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.005364/0.3039, allocations: 3.982 MB / 0.9774 GB, free: 1.465 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 8.676e-06/0.3039, allocations: 0 / 0.9774 GB, free: 1.465 MB / 0.6198 GB Notification: Performance of FrontEnd: time 2.926e-06/0.304, allocations: 0 / 0.9774 GB, free: 1.465 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 0.0001791/0.3041, allocations: 0 / 0.9774 GB, free: 1.465 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.007152/0.3113, allocations: 2.961 MB / 0.9803 GB, free: 14.44 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.574e-05/0.3114, allocations: 15.97 kB / 0.9803 GB, free: 14.42 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001314/0.3127, allocations: 352.8 kB / 0.9806 GB, free: 14.07 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004846/0.3175, allocations: 2.574 MB / 0.9831 GB, free: 11.45 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001552/0.3177, allocations: 176.6 kB / 0.9833 GB, free: 11.27 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003521/0.3181, allocations: 235.9 kB / 0.9835 GB, free: 11.04 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005716/0.3238, allocations: 3.211 MB / 0.9867 GB, free: 7.691 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.251e-05/0.3239, allocations: 11.91 kB / 0.9867 GB, free: 7.68 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002212/0.3241, allocations: 95.98 kB / 0.9868 GB, free: 7.586 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.626e-05/0.3242, allocations: 68 kB / 0.9868 GB, free: 7.52 MB / 0.6355 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004416/0.3286, allocations: 2.589 MB / 0.9894 GB, free: 4.914 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.01777/0.3464, allocations: 13.72 MB / 1.003 GB, free: 6.125 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002506/0.349, allocations: 1.615 MB / 1.004 GB, free: 4.5 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001575/0.3506, allocations: 1.162 MB / 1.005 GB, free: 3.336 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009099/0.3515, allocations: 0.7322 MB / 1.006 GB, free: 2.453 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.857e-05/0.3516, allocations: 47.5 kB / 1.006 GB, free: 2.398 MB / 0.6511 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001911/0.3535, allocations: 179.4 kB / 1.006 GB, free: 2.223 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=126): time 3.988e-06/0.3535, allocations: 4 kB / 1.006 GB, free: 2.219 MB / 0.6511 GB Notification: Performance of matching and sorting (n=126): time 0.008645/0.3622, allocations: 3.409 MB / 1.01 GB, free: 14.76 MB / 0.6667 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001179/0.3623, allocations: 141.5 kB / 1.01 GB, free: 14.59 MB / 0.6667 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003035/0.3653, allocations: 1.958 MB / 1.012 GB, free: 12.59 MB / 0.6667 GB Notification: Performance of collectPreVariables (initialization): time 0.0001579/0.3655, allocations: 61.64 kB / 1.012 GB, free: 12.52 MB / 0.6667 GB Notification: Performance of collectInitialEqns (initialization): time 0.001169/0.3667, allocations: 1.254 MB / 1.013 GB, free: 11.25 MB / 0.6667 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005127/0.3672, allocations: 441.6 kB / 1.013 GB, free: 10.81 MB / 0.6667 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.893e-05/0.3673, allocations: 36 kB / 1.014 GB, free: 10.78 MB / 0.6667 GB Notification: Performance of setup shared object (initialization): time 0.0001892/0.3675, allocations: 381.8 kB / 1.014 GB, free: 10.4 MB / 0.6667 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001098/0.3686, allocations: 0.7339 MB / 1.015 GB, free: 9.664 MB / 0.6667 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001396/0.37, allocations: 1.24 MB / 1.016 GB, free: 8.215 MB / 0.6667 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002624/0.3727, allocations: 2.041 MB / 1.018 GB, free: 5.98 MB / 0.6667 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.767e-06/0.3727, allocations: 4 kB / 1.018 GB, free: 5.977 MB / 0.6667 GB Notification: Performance of matching and sorting (n=213) (initialization): time 0.003833/0.3765, allocations: 2.436 MB / 1.02 GB, free: 3.523 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003606/0.3769, allocations: 0.4958 MB / 1.021 GB, free: 2.832 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.249e-05/0.3769, allocations: 15.94 kB / 1.021 GB, free: 2.816 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001876/0.3788, allocations: 0.5 MB / 1.021 GB, free: 2.312 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00124/0.3801, allocations: 343.5 kB / 1.022 GB, free: 1.977 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003262/0.3833, allocations: 3.144 MB / 1.025 GB, free: 14.67 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00194/0.3853, allocations: 223.5 kB / 1.025 GB, free: 14.45 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001411/0.3854, allocations: 79.97 kB / 1.025 GB, free: 14.37 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 7.574e-06/0.3855, allocations: 4 kB / 1.025 GB, free: 14.37 MB / 0.6823 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003362/0.3888, allocations: 2.192 MB / 1.027 GB, free: 12.17 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.748e-05/0.3889, allocations: 16 kB / 1.027 GB, free: 12.15 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005593/0.3894, allocations: 245.8 kB / 1.027 GB, free: 11.91 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001254/0.3907, allocations: 367.4 kB / 1.028 GB, free: 11.55 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004322/0.395, allocations: 4.184 MB / 1.032 GB, free: 7.094 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002206/0.3972, allocations: 219.5 kB / 1.032 GB, free: 6.879 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001511/0.3974, allocations: 75.98 kB / 1.032 GB, free: 6.805 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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,10,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,22)} Notification: Performance of prepare postOptimizeDAE: time 0.002174/0.3996, allocations: 1.008 MB / 1.033 GB, free: 5.785 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004992/0.4001, allocations: 197.6 kB / 1.033 GB, free: 5.59 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003516/0.4036, allocations: 2.073 MB / 1.035 GB, free: 3.508 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.269e-05/0.4037, allocations: 15.98 kB / 1.035 GB, free: 3.492 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.363e-06/0.4037, allocations: 7.938 kB / 1.035 GB, free: 3.484 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002305/0.406, allocations: 1.675 MB / 1.037 GB, free: 1.789 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007594/0.4136, allocations: 4.654 MB / 1.041 GB, free: 13.04 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.465e-06/0.4136, allocations: 4 kB / 1.041 GB, free: 13.04 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008591/0.4145, allocations: 203.8 kB / 1.042 GB, free: 12.84 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001386/0.4159, allocations: 424 kB / 1.042 GB, free: 12.42 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.21e-05/0.416, allocations: 35.92 kB / 1.042 GB, free: 12.39 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002874/0.4189, allocations: 3.062 MB / 1.045 GB, free: 9.164 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.924e-06/0.4189, allocations: 0 / 1.045 GB, free: 9.164 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00452/0.4234, allocations: 2.995 MB / 1.048 GB, free: 6.133 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001294/0.4247, allocations: 0.5023 MB / 1.048 GB, free: 5.609 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000241/0.425, allocations: 28 kB / 1.048 GB, free: 5.582 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001396/0.4264, allocations: 203.3 kB / 1.049 GB, free: 5.387 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002491/0.4266, allocations: 101.2 kB / 1.049 GB, free: 5.289 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001122/0.4268, allocations: 51.97 kB / 1.049 GB, free: 5.238 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.001985/0.4288, allocations: 1.349 MB / 1.05 GB, free: 3.867 MB / 0.698 GB Notification: Performance of sort global known variables: time 5.21e-07/0.4288, allocations: 3.938 kB / 1.05 GB, free: 3.863 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.003946/0.4327, allocations: 1.468 MB / 1.052 GB, free: 2.391 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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,10,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,20)} Notification: Performance of Backend phase and start with SimCode phase: time 0.000931/0.4337, allocations: 388.7 kB / 1.052 GB, free: 2.012 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.3687/0.8023, allocations: 3.368 MB / 1.055 GB, free: 142.2 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 1.701e-05/0.8024, allocations: 7.938 kB / 1.055 GB, free: 142.2 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.001855/0.8043, allocations: 1.022 MB / 1.056 GB, free: 142.1 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0062/0.8105, allocations: 1.152 MB / 1.057 GB, free: 142 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01107/0.8216, allocations: 6.469 MB / 1.064 GB, free: 139.4 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003021/0.8247, allocations: 2.119 MB / 1.066 GB, free: 138.6 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001068/0.8258, allocations: 177.8 kB / 1.066 GB, free: 138.6 MB / 0.698 GB Notification: Performance of SimCode: time 1.493e-06/0.8258, allocations: 4 kB / 1.066 GB, free: 138.6 MB / 0.698 GB Notification: Performance of Templates: time 0.09037/0.9161, allocations: 69.46 MB / 1.134 GB, free: 84.71 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)