Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/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 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(Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger") translateModel(Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001777/0.001777, allocations: 105 kB / 16.36 MB, free: 6.305 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.001996/0.001996, allocations: 192.5 kB / 17.29 MB, free: 5.875 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.539/1.539, allocations: 205.1 MB / 223.2 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.819/1.819, allocations: 292.3 MB / 0.5496 GB, free: 17.52 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001602/0.001602, allocations: 71.89 kB / 0.6729 GB, free: 5.824 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2354/0.237, allocations: 114.6 MB / 0.7848 GB, free: 3.148 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger): time 0.4321/0.6691, allocations: 28.58 MB / 0.8127 GB, free: 32.21 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.01078/0.6799, allocations: 7.851 MB / 0.8204 GB, free: 26.64 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001493/0.6815, allocations: 32.47 kB / 0.8204 GB, free: 26.62 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 0.001272/0.6828, allocations: 409.4 kB / 0.8208 GB, free: 26.37 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 0.003031/0.6859, allocations: 1 MB / 0.8218 GB, free: 25.76 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.003124/0.689, allocations: 1.069 MB / 0.8228 GB, free: 25.21 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.006223/0.6952, allocations: 4.884 MB / 0.8276 GB, free: 22.87 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00311/0.6984, allocations: 2.28 MB / 0.8298 GB, free: 22 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004416/0.7028, allocations: 1.788 MB / 0.8315 GB, free: 21.2 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003126/0.706, allocations: 1.447 MB / 0.833 GB, free: 20.54 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 0.0006965/0.7067, allocations: 233.2 kB / 0.8332 GB, free: 20.54 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003822/0.7105, allocations: 1.316 MB / 0.8345 GB, free: 20.17 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 0.0007974/0.7114, allocations: 0.5489 MB / 0.835 GB, free: 19.83 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 0.002103/0.7135, allocations: 1.15 MB / 0.8361 GB, free: 19.13 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.00565/0.7191, allocations: 3.675 MB / 0.8397 GB, free: 17.86 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 7.033e-06/0.7192, allocations: 5.656 kB / 0.8397 GB, free: 17.86 MB / 0.6544 GB Notification: Performance of FrontEnd: time 2.024e-06/0.7192, allocations: 0 / 0.8397 GB, free: 17.86 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 9.395e-05/0.7193, allocations: 0 / 0.8397 GB, free: 17.86 MB / 0.6544 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 348 * Number of variables: 348 Notification: Performance of Generate backend data structure: time 0.006178/0.7255, allocations: 2.548 MB / 0.8422 GB, free: 16.41 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 4.191e-05/0.7255, allocations: 9.922 kB / 0.8422 GB, free: 16.41 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001052/0.7266, allocations: 233.3 kB / 0.8424 GB, free: 16.31 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003587/0.7302, allocations: 1.763 MB / 0.8442 GB, free: 15.38 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.134e-05/0.7303, allocations: 114.7 kB / 0.8443 GB, free: 15.33 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002947/0.7306, allocations: 153.7 kB / 0.8444 GB, free: 15.28 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003627/0.7342, allocations: 1.995 MB / 0.8464 GB, free: 14.47 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.078e-05/0.7343, allocations: 3.016 kB / 0.8464 GB, free: 14.47 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001468/0.7344, allocations: 65.23 kB / 0.8464 GB, free: 14.43 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.899e-05/0.7345, allocations: 41.73 kB / 0.8465 GB, free: 14.42 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002977/0.7375, allocations: 1.797 MB / 0.8482 GB, free: 13.84 MB / 0.6544 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.01203/0.7495, allocations: 7.589 MB / 0.8556 GB, free: 8.629 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001906/0.7515, allocations: 1.446 MB / 0.857 GB, free: 7.82 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008458/0.7523, allocations: 0.6666 MB / 0.8577 GB, free: 7.477 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 0.006532/0.7589, allocations: 3.85 MB / 0.8615 GB, free: 4.254 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.001e-05/0.759, allocations: 49.38 kB / 0.8615 GB, free: 4.203 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=88): time 2.956e-06/0.759, allocations: 0 / 0.8615 GB, free: 4.203 MB / 0.6544 GB Notification: Performance of matching and sorting (n=88): time 0.002724/0.7617, allocations: 1.515 MB / 0.863 GB, free: 3.43 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.878e-05/0.7618, allocations: 60.78 kB / 0.863 GB, free: 3.363 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002458/0.7642, allocations: 1.621 MB / 0.8646 GB, free: 2.492 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 0.0001997/0.7645, allocations: 47.17 kB / 0.8647 GB, free: 2.445 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005238/0.765, allocations: 0.7491 MB / 0.8654 GB, free: 1.789 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003072/0.7653, allocations: 312.8 kB / 0.8657 GB, free: 1.52 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004414/0.7658, allocations: 298.3 kB / 0.866 GB, free: 1.355 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 9.782e-05/0.7659, allocations: 371 kB / 0.8663 GB, free: 1.004 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001018/0.7669, allocations: 0.6939 MB / 0.867 GB, free: 0.6367 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001219/0.7681, allocations: 1.017 MB / 0.868 GB, free: 15.88 MB / 0.67 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002363/0.7705, allocations: 1.624 MB / 0.8696 GB, free: 14.79 MB / 0.67 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.947e-06/0.7705, allocations: 2.188 kB / 0.8696 GB, free: 14.79 MB / 0.67 GB Notification: Performance of matching and sorting (n=175) (initialization): time 0.003546/0.7741, allocations: 1.946 MB / 0.8715 GB, free: 13.8 MB / 0.67 GB Notification: Performance of prepare postOptimizeDAE: time 2.899e-05/0.7741, allocations: 9.375 kB / 0.8715 GB, free: 13.8 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.807e-05/0.7741, allocations: 9.031 kB / 0.8715 GB, free: 13.8 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.539e-05/0.7742, allocations: 14.88 kB / 0.8715 GB, free: 13.8 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00125/0.7754, allocations: 337.6 kB / 0.8719 GB, free: 13.71 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.115e-05/0.7755, allocations: 23.36 kB / 0.8719 GB, free: 13.71 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001661/0.7771, allocations: 197.1 kB / 0.8721 GB, free: 13.57 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001507/0.7773, allocations: 66.08 kB / 0.8721 GB, free: 13.55 MB / 0.67 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.00222/0.7795, allocations: 1.279 MB / 0.8734 GB, free: 12.82 MB / 0.67 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001358/0.7809, allocations: 1.02 MB / 0.8744 GB, free: 12.07 MB / 0.67 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002268/0.7832, allocations: 1.628 MB / 0.876 GB, free: 10.98 MB / 0.67 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 8.415e-06/0.7832, allocations: 2.5 kB / 0.876 GB, free: 10.98 MB / 0.67 GB Notification: Performance of matching and sorting (n=175) (initialization_lambda0): time 0.003427/0.7866, allocations: 1.942 MB / 0.8779 GB, free: 9.844 MB / 0.67 GB Notification: Performance of prepare postOptimizeDAE: time 1.905e-05/0.7867, allocations: 13.47 kB / 0.8779 GB, free: 9.832 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.355e-05/0.7867, allocations: 12 kB / 0.8779 GB, free: 9.82 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.638e-05/0.7867, allocations: 12 kB / 0.8779 GB, free: 9.809 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00118/0.7879, allocations: 340.3 kB / 0.8782 GB, free: 9.477 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.753e-05/0.7879, allocations: 19.94 kB / 0.8782 GB, free: 9.457 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001603/0.7896, allocations: 150.8 kB / 0.8784 GB, free: 9.309 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001368/0.7897, allocations: 59.98 kB / 0.8784 GB, free: 9.25 MB / 0.67 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 40 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (175): * Single equations (assignments): 175 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004863/0.7902, allocations: 263.8 kB / 0.8787 GB, free: 8.984 MB / 0.67 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005438/0.7907, allocations: 154.1 kB / 0.8788 GB, free: 8.832 MB / 0.67 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002158/0.7929, allocations: 1.272 MB / 0.8801 GB, free: 7.555 MB / 0.67 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.679e-05/0.7929, allocations: 8 kB / 0.8801 GB, free: 7.547 MB / 0.67 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.556e-06/0.793, allocations: 3.984 kB / 0.8801 GB, free: 7.543 MB / 0.67 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001497/0.7945, allocations: 1.285 MB / 0.8813 GB, free: 6.176 MB / 0.67 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00492/0.7994, allocations: 2.947 MB / 0.8842 GB, free: 3.145 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.081e-06/0.7994, allocations: 0 / 0.8842 GB, free: 3.145 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007753/0.8002, allocations: 192.3 kB / 0.8844 GB, free: 2.957 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.338e-06/0.8002, allocations: 4 kB / 0.8844 GB, free: 2.953 MB / 0.67 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.048e-05/0.8003, allocations: 20 kB / 0.8844 GB, free: 2.934 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.029e-05/0.8003, allocations: 8.594 kB / 0.8844 GB, free: 2.926 MB / 0.67 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.589e-06/0.8003, allocations: 8.734 kB / 0.8844 GB, free: 2.918 MB / 0.67 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00289/0.8032, allocations: 1.917 MB / 0.8863 GB, free: 0.9648 MB / 0.67 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001068/0.8043, allocations: 394.9 kB / 0.8867 GB, free: 0.5586 MB / 0.67 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002845/0.8046, allocations: 27.92 kB / 0.8867 GB, free: 0.5312 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008491/0.8055, allocations: 52.95 kB / 0.8868 GB, free: 492 kB / 0.67 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.414e-05/0.8056, allocations: 55.77 kB / 0.8868 GB, free: 440 kB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.826e-05/0.8057, allocations: 37.11 kB / 0.8869 GB, free: 404 kB / 0.67 GB Notification: Performance of sorting global known variables: time 0.001873/0.8075, allocations: 1.222 MB / 0.8881 GB, free: 15.18 MB / 0.6856 GB Notification: Performance of sort global known variables: time 1.91e-07/0.8076, allocations: 0 / 0.8881 GB, free: 15.18 MB / 0.6856 GB Notification: Performance of remove unused functions: time 0.003362/0.8109, allocations: 0.9124 MB / 0.8889 GB, free: 14.26 MB / 0.6856 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 6 (indTanHex.vol[1].dynBal.U,indTanHex.vol[2].dynBal.U,indTanHex.vol[3].dynBal.U,indTanHex.cap[1].T,indTanHex.cap[2].T,indTanHex.cap[3].T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (89): * Single equations (assignments): 87 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001048/0.812, allocations: 381.1 kB / 0.8893 GB, free: 13.89 MB / 0.6856 GB Notification: Performance of simCode: created initialization part: time 0.003828/0.8158, allocations: 2.327 MB / 0.8916 GB, free: 11.57 MB / 0.6856 GB Notification: Performance of simCode: created event and clocks part: time 9.377e-06/0.8159, allocations: 4 kB / 0.8916 GB, free: 11.57 MB / 0.6856 GB Notification: Performance of simCode: created simulation system equations: time 0.0007283/0.8166, allocations: 0.5187 MB / 0.8921 GB, free: 11.05 MB / 0.6856 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004664/0.8213, allocations: 0.9146 MB / 0.893 GB, free: 10.21 MB / 0.6856 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00592/0.8272, allocations: 3.623 MB / 0.8965 GB, free: 6.543 MB / 0.6856 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001218/0.8285, allocations: 1.626 MB / 0.8981 GB, free: 4.887 MB / 0.6856 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007782/0.8293, allocations: 151.4 kB / 0.8983 GB, free: 4.738 MB / 0.6856 GB Notification: Performance of SimCode: time 1.493e-06/0.8293, allocations: 3.938 kB / 0.8983 GB, free: 4.734 MB / 0.6856 GB Notification: Performance of Templates: time 0.05143/0.8807, allocations: 32.41 MB / 0.9299 GB, free: 4.57 MB / 0.7169 GB make -j1 -f Buildings_8_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.makefile (rm -f Buildings_8_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.pipe ; mkfifo Buildings_8_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.pipe >> ../files/Buildings_8_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.sim & ./Buildings_8_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.pipe 2>&1)