Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.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 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.BaseClasses.Examples.IndirectTankHeatExchanger,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger") translateModel(BuildingSystems.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.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.0007841/0.0007841, allocations: 91.14 kB / 15.06 MB, free: 1.098 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.0008336/0.0008335, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.311/1.311, allocations: 223.3 MB / 240 MB, free: 5.438 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001808/0.001808, allocations: 271 kB / 291.4 MB, free: 1.988 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9422/0.9422, allocations: 169.5 MB / 0.5 GB, free: 14.22 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004171/0.0004172, allocations: 12.94 kB / 0.598 GB, free: 28.53 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1369/0.1373, allocations: 88.55 MB / 0.6845 GB, free: 15.46 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger): time 0.02406/0.1614, allocations: 26.23 MB / 0.7101 GB, free: 5.18 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.009422/0.1709, allocations: 7.396 MB / 0.7173 GB, free: 13.77 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007134/0.1716, allocations: 31.75 kB / 0.7174 GB, free: 13.74 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.0007616/0.1724, allocations: 286.1 kB / 0.7176 GB, free: 13.46 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 0.001758/0.1742, allocations: 0.8082 MB / 0.7184 GB, free: 12.64 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.001929/0.1761, allocations: 0.7834 MB / 0.7192 GB, free: 11.87 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.004641/0.1808, allocations: 5.251 MB / 0.7243 GB, free: 6.602 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001835/0.1826, allocations: 1.62 MB / 0.7259 GB, free: 4.961 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001817/0.1844, allocations: 1.315 MB / 0.7272 GB, free: 3.641 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0014/0.1858, allocations: 1.225 MB / 0.7284 GB, free: 2.41 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 0.0001655/0.186, allocations: 76 kB / 0.7284 GB, free: 2.336 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001845/0.1879, allocations: 0.9866 MB / 0.7294 GB, free: 1.348 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.0003401/0.1882, allocations: 358.5 kB / 0.7297 GB, free: 0.9961 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.0004027/0.1886, allocations: 420.7 kB / 0.7301 GB, free: 0.5781 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.002489/0.1911, allocations: 2.817 MB / 0.7329 GB, free: 13.75 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 1.135e-05/0.1912, allocations: 4 kB / 0.7329 GB, free: 13.75 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.463e-06/0.1912, allocations: 3.938 kB / 0.7329 GB, free: 13.75 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 3.328e-05/0.1912, allocations: 0 / 0.7329 GB, free: 13.75 MB / 0.5294 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.003652/0.1949, allocations: 2.164 MB / 0.735 GB, free: 11.53 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.19e-05/0.1949, allocations: 8.031 kB / 0.735 GB, free: 11.52 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006564/0.1956, allocations: 233.5 kB / 0.7353 GB, free: 11.29 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002542/0.1981, allocations: 1.726 MB / 0.7369 GB, free: 9.508 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.239e-05/0.1982, allocations: 110.7 kB / 0.737 GB, free: 9.398 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002212/0.1984, allocations: 155.9 kB / 0.7372 GB, free: 9.246 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00288/0.2013, allocations: 1.982 MB / 0.7391 GB, free: 7.199 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.559e-05/0.2014, allocations: 7.938 kB / 0.7391 GB, free: 7.191 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001383/0.2015, allocations: 56 kB / 0.7392 GB, free: 7.137 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.432e-05/0.2016, allocations: 43.92 kB / 0.7392 GB, free: 7.094 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002567/0.2041, allocations: 1.794 MB / 0.741 GB, free: 5.293 MB / 0.5294 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.009651/0.2138, allocations: 7.61 MB / 0.7484 GB, free: 13.38 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00175/0.2156, allocations: 1.444 MB / 0.7498 GB, free: 11.91 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008401/0.2164, allocations: 0.6603 MB / 0.7505 GB, free: 11.25 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.005434/0.2219, allocations: 3.843 MB / 0.7542 GB, free: 7.082 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.35e-05/0.2219, allocations: 47.56 kB / 0.7543 GB, free: 7.027 MB / 0.545 GB Notification: Performance of pre-optimization done (n=88): time 2.385e-06/0.2219, allocations: 0 / 0.7543 GB, free: 7.027 MB / 0.545 GB Notification: Performance of matching and sorting (n=88): time 0.00225/0.2242, allocations: 1.502 MB / 0.7557 GB, free: 5.523 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.812e-05/0.2242, allocations: 64.36 kB / 0.7558 GB, free: 5.449 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001909/0.2261, allocations: 1.602 MB / 0.7574 GB, free: 3.836 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 8.786e-05/0.2262, allocations: 45.7 kB / 0.7574 GB, free: 3.785 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005926/0.2268, allocations: 0.7576 MB / 0.7581 GB, free: 3.02 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002603/0.2271, allocations: 319.4 kB / 0.7584 GB, free: 2.703 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.795e-05/0.2272, allocations: 28 kB / 0.7585 GB, free: 2.676 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001325/0.2273, allocations: 361.9 kB / 0.7588 GB, free: 2.316 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009785/0.2283, allocations: 0.683 MB / 0.7595 GB, free: 1.633 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001189/0.2295, allocations: 1.016 MB / 0.7605 GB, free: 496 kB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001193/0.2307, allocations: 0.865 MB / 0.7613 GB, free: 15.62 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.412e-06/0.2307, allocations: 4 kB / 0.7613 GB, free: 15.62 MB / 0.5606 GB Notification: Performance of matching and sorting (n=175) (initialization): time 0.002828/0.2336, allocations: 1.928 MB / 0.7632 GB, free: 13.68 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002089/0.2338, allocations: 364.7 kB / 0.7636 GB, free: 13.2 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.329e-05/0.2338, allocations: 8 kB / 0.7636 GB, free: 13.19 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.666e-05/0.2338, allocations: 19.95 kB / 0.7636 GB, free: 13.17 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001234/0.2351, allocations: 331.5 kB / 0.7639 GB, free: 12.85 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.382e-05/0.2351, allocations: 23.92 kB / 0.7639 GB, free: 12.82 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001041/0.2362, allocations: 218 kB / 0.7641 GB, free: 12.61 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001107/0.2363, allocations: 63.98 kB / 0.7642 GB, free: 12.55 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 6.473e-06/0.2363, allocations: 4 kB / 0.7642 GB, free: 12.54 MB / 0.5606 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002525/0.2388, allocations: 1.791 MB / 0.7659 GB, free: 10.75 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.007e-05/0.2389, allocations: 8 kB / 0.766 GB, free: 10.74 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.517e-05/0.2389, allocations: 16 kB / 0.766 GB, free: 10.73 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001169/0.24, allocations: 335.5 kB / 0.7663 GB, free: 10.4 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.013e-05/0.2401, allocations: 19.94 kB / 0.7663 GB, free: 10.38 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009239/0.241, allocations: 183 kB / 0.7665 GB, free: 10.2 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001046/0.2411, allocations: 63.98 kB / 0.7665 GB, free: 10.14 MB / 0.5606 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0008857/0.242, allocations: 0.7509 MB / 0.7673 GB, free: 9.375 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002507/0.2423, allocations: 154.1 kB / 0.7674 GB, free: 9.223 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001943/0.2442, allocations: 1.287 MB / 0.7687 GB, free: 7.926 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.241e-05/0.2443, allocations: 12 kB / 0.7687 GB, free: 7.914 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.889e-06/0.2443, allocations: 0 / 0.7687 GB, free: 7.914 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001405/0.2457, allocations: 1.281 MB / 0.7699 GB, free: 6.547 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003793/0.2495, allocations: 2.932 MB / 0.7728 GB, free: 3.539 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.741e-06/0.2495, allocations: 4.062 kB / 0.7728 GB, free: 3.535 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007833/0.2503, allocations: 183.8 kB / 0.773 GB, free: 3.355 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.973e-06/0.2503, allocations: 8 kB / 0.773 GB, free: 3.348 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.644e-05/0.2504, allocations: 27.98 kB / 0.773 GB, free: 3.32 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.921e-06/0.2504, allocations: 4 kB / 0.773 GB, free: 3.316 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.088e-06/0.2504, allocations: 0 / 0.773 GB, free: 3.316 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002377/0.2528, allocations: 1.913 MB / 0.7749 GB, free: 1.371 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005866/0.2534, allocations: 430.8 kB / 0.7753 GB, free: 0.9297 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002014/0.2536, allocations: 16 kB / 0.7753 GB, free: 0.9141 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007661/0.2544, allocations: 80.89 kB / 0.7754 GB, free: 0.8359 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.948e-05/0.2545, allocations: 52.88 kB / 0.7754 GB, free: 0.7852 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.051e-05/0.2545, allocations: 35.98 kB / 0.7755 GB, free: 0.75 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.2594/0.5139, allocations: 1.189 MB / 0.7766 GB, free: 89.74 MB / 0.5606 GB Notification: Performance of sort global known variables: time 4.91e-07/0.514, allocations: 0.9375 kB / 0.7766 GB, free: 89.74 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.002624/0.5166, allocations: 0.9074 MB / 0.7775 GB, free: 89.74 MB / 0.5606 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007084/0.5173, allocations: 344.2 kB / 0.7779 GB, free: 89.65 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.003588/0.5209, allocations: 2.312 MB / 0.7801 GB, free: 89.6 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 4.148e-06/0.5209, allocations: 1.031 kB / 0.7801 GB, free: 89.6 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0006983/0.5216, allocations: 0.5207 MB / 0.7806 GB, free: 89.58 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003474/0.5251, allocations: 0.8702 MB / 0.7815 GB, free: 89.46 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004819/0.5299, allocations: 4.369 MB / 0.7857 GB, free: 87.33 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009437/0.5309, allocations: 1.68 MB / 0.7874 GB, free: 86.42 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.002554/0.5335, allocations: 0.9192 MB / 0.7883 GB, free: 86.32 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003508/0.5338, allocations: 134.9 kB / 0.7884 GB, free: 86.3 MB / 0.5606 GB Notification: Performance of SimCode: time 3.81e-07/0.5338, allocations: 0 / 0.7884 GB, free: 86.3 MB / 0.5606 GB Notification: Performance of Templates: time 0.04436/0.5782, allocations: 32.99 MB / 0.8206 GB, free: 68.85 MB / 0.5606 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.makefile (rm -f BuildingSystems_BuildingSystems.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.sim & ./BuildingSystems_BuildingSystems.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.pipe 2>&1)