Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(BuildingSystems.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature") translateModel(BuildingSystems.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001552/0.001552, allocations: 115.2 kB / 16.42 MB, free: 6.449 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001778/0.001778, allocations: 183.9 kB / 17.35 MB, free: 5.738 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.297/1.297, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002067/0.002067, allocations: 280.8 kB / 291.5 MB, free: 14.46 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9781/0.9781, allocations: 169.2 MB / 0.499 GB, free: 4.445 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00174/0.00174, allocations: 99.84 kB / 0.6821 GB, free: 6.902 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4025/0.4042, allocations: 86.97 MB / 0.767 GB, free: 3.867 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature): time 0.03578/0.44, allocations: 37.74 MB / 0.8039 GB, free: 13.98 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.01332/0.4534, allocations: 9.523 MB / 0.8132 GB, free: 4.434 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00174/0.4551, allocations: 47.75 kB / 0.8133 GB, free: 4.387 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.001759/0.4569, allocations: 0.5779 MB / 0.8138 GB, free: 3.805 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.004312/0.4613, allocations: 1.588 MB / 0.8154 GB, free: 2.211 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.003221/0.4645, allocations: 1.252 MB / 0.8166 GB, free: 0.9648 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.008715/0.4733, allocations: 8.117 MB / 0.8245 GB, free: 8.824 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.004987/0.4783, allocations: 3.874 MB / 0.8283 GB, free: 4.887 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0053/0.4836, allocations: 2.888 MB / 0.8311 GB, free: 2.004 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003776/0.4874, allocations: 2.482 MB / 0.8335 GB, free: 15.51 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 0.0009443/0.4884, allocations: 360 kB / 0.8339 GB, free: 15.16 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003112/0.4915, allocations: 1.198 MB / 0.8351 GB, free: 13.96 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.001352/0.4929, allocations: 0.8996 MB / 0.8359 GB, free: 13.06 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.003222/0.4961, allocations: 1.847 MB / 0.8377 GB, free: 11.2 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.00641/0.5025, allocations: 5.23 MB / 0.8428 GB, free: 5.961 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.559e-06/0.5025, allocations: 0 / 0.8428 GB, free: 5.961 MB / 0.6075 GB Notification: Performance of FrontEnd: time 3.387e-06/0.5025, allocations: 4 kB / 0.8429 GB, free: 5.957 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 9.271e-05/0.5026, allocations: 0 / 0.8429 GB, free: 5.957 MB / 0.6075 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.00618/0.5088, allocations: 3.639 MB / 0.8464 GB, free: 2.25 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.606e-05/0.5089, allocations: 12.03 kB / 0.8464 GB, free: 2.238 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009113/0.5098, allocations: 361 kB / 0.8468 GB, free: 1.883 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003938/0.5137, allocations: 2.666 MB / 0.8494 GB, free: 15.16 MB / 0.6231 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001178/0.5139, allocations: 180.6 kB / 0.8495 GB, free: 14.98 MB / 0.6231 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003524/0.5142, allocations: 236 kB / 0.8498 GB, free: 14.75 MB / 0.6231 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004841/0.5191, allocations: 3.238 MB / 0.8529 GB, free: 11.38 MB / 0.6231 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.195e-05/0.5191, allocations: 0 / 0.8529 GB, free: 11.38 MB / 0.6231 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000223/0.5194, allocations: 100 kB / 0.853 GB, free: 11.28 MB / 0.6231 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.851e-05/0.5194, allocations: 67.97 kB / 0.8531 GB, free: 11.21 MB / 0.6231 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003832/0.5233, allocations: 2.582 MB / 0.8556 GB, free: 8.613 MB / 0.6231 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.01477/0.5381, allocations: 13.79 MB / 0.8691 GB, free: 9.754 MB / 0.6387 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002394/0.5405, allocations: 1.613 MB / 0.8706 GB, free: 8.141 MB / 0.6387 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001503/0.542, allocations: 1.152 MB / 0.8718 GB, free: 6.988 MB / 0.6387 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007623/0.5428, allocations: 0.7126 MB / 0.8725 GB, free: 6.129 MB / 0.6387 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.719e-05/0.5428, allocations: 51.5 kB / 0.8725 GB, free: 6.07 MB / 0.6387 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0008046/0.5436, allocations: 150.8 kB / 0.8727 GB, free: 5.922 MB / 0.6387 GB Notification: Performance of pre-optimization done (n=126): time 3.827e-06/0.5436, allocations: 0 / 0.8727 GB, free: 5.922 MB / 0.6387 GB Notification: Performance of matching and sorting (n=126): time 0.008804/0.5524, allocations: 3.444 MB / 0.876 GB, free: 2.426 MB / 0.6387 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.619e-05/0.5525, allocations: 145.5 kB / 0.8762 GB, free: 2.254 MB / 0.6387 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002561/0.5551, allocations: 2.066 MB / 0.8782 GB, free: 152 kB / 0.6387 GB Notification: Performance of collectPreVariables (initialization): time 0.0001378/0.5552, allocations: 57.69 kB / 0.8782 GB, free: 88 kB / 0.6387 GB Notification: Performance of collectInitialEqns (initialization): time 0.001038/0.5563, allocations: 1.258 MB / 0.8795 GB, free: 14.81 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003856/0.5567, allocations: 441.7 kB / 0.8799 GB, free: 14.38 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004526/0.5571, allocations: 351.2 kB / 0.8802 GB, free: 14.03 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 8.669e-05/0.5572, allocations: 309.1 kB / 0.8805 GB, free: 13.72 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001091/0.5583, allocations: 0.7464 MB / 0.8812 GB, free: 12.97 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001394/0.5597, allocations: 1.248 MB / 0.8825 GB, free: 11.51 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002491/0.5622, allocations: 2.041 MB / 0.8845 GB, free: 9.277 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.716e-06/0.5623, allocations: 4 kB / 0.8845 GB, free: 9.273 MB / 0.6544 GB Notification: Performance of matching and sorting (n=213) (initialization): time 0.00365/0.5659, allocations: 2.44 MB / 0.8868 GB, free: 6.816 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 2.1e-05/0.5659, allocations: 8 kB / 0.8869 GB, free: 6.809 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.898e-05/0.566, allocations: 16 kB / 0.8869 GB, free: 6.793 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002149/0.5681, allocations: 0.5211 MB / 0.8874 GB, free: 6.27 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001213/0.5693, allocations: 347.4 kB / 0.8877 GB, free: 5.93 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003165/0.5725, allocations: 3.341 MB / 0.891 GB, free: 2.426 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001546/0.5741, allocations: 119.9 kB / 0.8911 GB, free: 2.309 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001296/0.5742, allocations: 83.97 kB / 0.8912 GB, free: 2.227 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002225/0.5765, allocations: 1.569 MB / 0.8927 GB, free: 0.6523 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001375/0.5778, allocations: 1.233 MB / 0.8939 GB, free: 15.21 MB / 0.67 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002499/0.5804, allocations: 2.03 MB / 0.8959 GB, free: 12.99 MB / 0.67 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.964e-06/0.5804, allocations: 11.88 kB / 0.8959 GB, free: 12.98 MB / 0.67 GB Notification: Performance of matching and sorting (n=213) (initialization_lambda0): time 0.003669/0.584, allocations: 2.401 MB / 0.8982 GB, free: 10.56 MB / 0.67 GB Notification: Performance of prepare postOptimizeDAE: time 1.642e-05/0.5841, allocations: 12.94 kB / 0.8983 GB, free: 10.55 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.391e-05/0.5841, allocations: 12 kB / 0.8983 GB, free: 10.54 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000548/0.5846, allocations: 241.8 kB / 0.8985 GB, free: 10.3 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001276/0.5859, allocations: 367.5 kB / 0.8988 GB, free: 9.938 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004046/0.59, allocations: 4.566 MB / 0.9033 GB, free: 5.082 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001777/0.5918, allocations: 119.9 kB / 0.9034 GB, free: 4.965 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001359/0.5919, allocations: 83.97 kB / 0.9035 GB, free: 4.883 MB / 0.67 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 (onOffHea.y,$PRE.onOffHea.y,yTop.u,and2.y,onOffMid.y,$PRE.onOffMid.y,onOffBot.y,$PRE.onOffBot.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.0004924/0.5924, allocations: 287.7 kB / 0.9038 GB, free: 4.594 MB / 0.67 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004018/0.5928, allocations: 209.4 kB / 0.904 GB, free: 4.387 MB / 0.67 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003476/0.5963, allocations: 2.07 MB / 0.906 GB, free: 2.316 MB / 0.67 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002334/0.5987, allocations: 1.671 MB / 0.9076 GB, free: 0.625 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.272e-06/0.5987, allocations: 7.938 kB / 0.9076 GB, free: 0.6172 MB / 0.67 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007973/0.5995, allocations: 498.3 kB / 0.9081 GB, free: 112 kB / 0.67 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002725/0.5998, allocations: 28 kB / 0.9081 GB, free: 84 kB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001173/0.601, allocations: 87.94 kB / 0.9082 GB, free: 15.99 MB / 0.6856 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002039/0.6012, allocations: 93.11 kB / 0.9083 GB, free: 15.9 MB / 0.6856 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.003845/0.605, allocations: 2.122 MB / 0.9104 GB, free: 13.77 MB / 0.6856 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.003686/0.6087, allocations: 2.901 MB / 0.9132 GB, free: 10.85 MB / 0.6856 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0009992/0.6097, allocations: 0.8026 MB / 0.914 GB, free: 10.05 MB / 0.6856 GB Notification: Performance of sorting global known variables: time 0.001858/0.6116, allocations: 1.424 MB / 0.9154 GB, free: 8.602 MB / 0.6856 GB Notification: Performance of Backend: time 1.562e-06/0.6116, allocations: 112 / 0.9154 GB, free: 8.602 MB / 0.6856 GB Notification: Performance of simCode: created initialization part: time 0.005501/0.6171, allocations: 3.144 MB / 0.9185 GB, free: 5.434 MB / 0.6856 GB Notification: Performance of SimCode: time 0.009581/0.6267, allocations: 6.244 MB / 0.9246 GB, free: 15.16 MB / 0.7012 GB Notification: Performance of Templates: time 0.3935/1.02, allocations: 53.41 MB / 0.9767 GB, free: 191.9 MB / 0.7325 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature.makefile (rm -f BuildingSystems_BuildingSystems.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature.sim & ./BuildingSystems_BuildingSystems.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature.pipe 2>&1)