Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.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.Interfaces.Examples.FourPortHeatMassExchanger,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.FourPortHeatMassExchanger") translateModel(BuildingSystems.Fluid.Interfaces.Examples.FourPortHeatMassExchanger,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.FourPortHeatMassExchanger") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00129/0.001289, allocations: 105.2 kB / 16.41 MB, free: 6.5 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.001219/0.001219, allocations: 187 kB / 17.34 MB, free: 5.766 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.229/1.229, allocations: 222.9 MB / 241 MB, free: 14.98 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00209/0.00209, allocations: 300.1 kB / 291.5 MB, free: 14.43 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9133/0.9133, allocations: 169.3 MB / 0.499 GB, free: 4.43 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001958/0.001958, allocations: 99.83 kB / 0.6821 GB, free: 6.961 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.431/0.433, allocations: 86.99 MB / 0.7671 GB, free: 3.926 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Interfaces.Examples.FourPortHeatMassExchanger): time 0.04238/0.4754, allocations: 41.54 MB / 0.8076 GB, free: 10.23 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.01484/0.4903, allocations: 10.41 MB / 0.8178 GB, free: 15.79 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00194/0.4922, allocations: 55.69 kB / 0.8178 GB, free: 15.73 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.00217/0.4945, allocations: 0.6365 MB / 0.8185 GB, free: 15.09 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.005642/0.5001, allocations: 1.883 MB / 0.8203 GB, free: 13.2 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.003268/0.5034, allocations: 1.186 MB / 0.8215 GB, free: 12.03 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.00474/0.5082, allocations: 3.401 MB / 0.8248 GB, free: 8.617 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001779/0.51, allocations: 1.067 MB / 0.8258 GB, free: 7.535 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002814/0.5128, allocations: 1.267 MB / 0.8271 GB, free: 6.27 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001548/0.5144, allocations: 0.8828 MB / 0.8279 GB, free: 5.383 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.0002848/0.5147, allocations: 103.9 kB / 0.828 GB, free: 5.281 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00205/0.5167, allocations: 0.8656 MB / 0.8289 GB, free: 4.414 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0005275/0.5173, allocations: 279 kB / 0.8291 GB, free: 4.141 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.001035/0.5183, allocations: 0.626 MB / 0.8297 GB, free: 3.512 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.003275/0.5216, allocations: 1.938 MB / 0.8316 GB, free: 1.57 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 4.789e-06/0.5216, allocations: 0 / 0.8316 GB, free: 1.57 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.312e-06/0.5216, allocations: 0 / 0.8316 GB, free: 1.57 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 4.355e-05/0.5217, allocations: 4 kB / 0.8316 GB, free: 1.566 MB / 0.5919 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 174 * Number of variables: 174 Notification: Performance of Generate backend data structure: time 0.002873/0.5246, allocations: 1.515 MB / 0.8331 GB, free: 15.99 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.809e-05/0.5246, allocations: 12.03 kB / 0.8331 GB, free: 15.98 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004551/0.5251, allocations: 131.4 kB / 0.8333 GB, free: 15.85 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001943/0.527, allocations: 1.096 MB / 0.8343 GB, free: 14.72 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.875e-05/0.5271, allocations: 58 kB / 0.8344 GB, free: 14.66 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001342/0.5272, allocations: 75.91 kB / 0.8345 GB, free: 14.59 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001411/0.5286, allocations: 0.7943 MB / 0.8352 GB, free: 13.76 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.337e-05/0.5287, allocations: 0 / 0.8352 GB, free: 13.76 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.744e-05/0.5288, allocations: 31.98 kB / 0.8353 GB, free: 13.73 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.28e-05/0.5288, allocations: 24 kB / 0.8353 GB, free: 13.7 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001129/0.5299, allocations: 0.5672 MB / 0.8358 GB, free: 13.14 MB / 0.6075 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.004179/0.5341, allocations: 3.547 MB / 0.8393 GB, free: 9.359 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005709/0.5347, allocations: 266.1 kB / 0.8396 GB, free: 9.094 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003145/0.535, allocations: 181.2 kB / 0.8397 GB, free: 8.914 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000495/0.5355, allocations: 0.657 MB / 0.8404 GB, free: 8.109 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.373e-05/0.5356, allocations: 38.55 kB / 0.8404 GB, free: 8.062 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=31): time 1.763e-06/0.5356, allocations: 4 kB / 0.8404 GB, free: 8.059 MB / 0.6075 GB Notification: Performance of matching and sorting (n=31): time 0.001151/0.5368, allocations: 0.5062 MB / 0.8409 GB, free: 7.547 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.589e-05/0.5368, allocations: 59.41 kB / 0.841 GB, free: 7.477 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001272/0.5381, allocations: 0.9456 MB / 0.8419 GB, free: 6.512 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 4.487e-05/0.5381, allocations: 29.7 kB / 0.8419 GB, free: 6.477 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003843/0.5385, allocations: 0.4995 MB / 0.8424 GB, free: 5.969 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001346/0.5387, allocations: 114.4 kB / 0.8425 GB, free: 5.855 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001572/0.5388, allocations: 114.1 kB / 0.8426 GB, free: 5.738 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001074/0.539, allocations: 333.8 kB / 0.8429 GB, free: 5.406 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003385/0.5393, allocations: 165 kB / 0.8431 GB, free: 5.246 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000468/0.5398, allocations: 347 kB / 0.8434 GB, free: 4.832 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007959/0.5406, allocations: 0.5078 MB / 0.8439 GB, free: 4.254 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.358e-06/0.5406, allocations: 0 / 0.8439 GB, free: 4.254 MB / 0.6075 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001182/0.5418, allocations: 0.613 MB / 0.8445 GB, free: 3.633 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 2.103e-05/0.5418, allocations: 7.812 kB / 0.8445 GB, free: 3.629 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.016e-05/0.5418, allocations: 8 kB / 0.8445 GB, free: 3.621 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.221e-05/0.5419, allocations: 12 kB / 0.8446 GB, free: 3.609 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004406/0.5423, allocations: 127.8 kB / 0.8447 GB, free: 3.484 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.727e-05/0.5423, allocations: 12 kB / 0.8447 GB, free: 3.473 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000683/0.543, allocations: 83.25 kB / 0.8448 GB, free: 3.391 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.407e-05/0.5431, allocations: 24 kB / 0.8448 GB, free: 3.367 MB / 0.6075 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * 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 (65): * Single equations (assignments): 65 * 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.0004359/0.5435, allocations: 281.8 kB / 0.8451 GB, free: 3.082 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002259/0.5438, allocations: 102.8 kB / 0.8452 GB, free: 2.98 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001019/0.5448, allocations: 491.1 kB / 0.8456 GB, free: 2.496 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.175e-05/0.5448, allocations: 4 kB / 0.8456 GB, free: 2.492 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.889e-06/0.5448, allocations: 0 / 0.8456 GB, free: 2.492 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006907/0.5455, allocations: 457.4 kB / 0.8461 GB, free: 2.016 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002372/0.5479, allocations: 1.366 MB / 0.8474 GB, free: 0.5781 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.394e-06/0.5479, allocations: 3.984 kB / 0.8474 GB, free: 0.5742 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003334/0.5483, allocations: 67.95 kB / 0.8475 GB, free: 0.5078 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.187e-05/0.5483, allocations: 7.938 kB / 0.8475 GB, free: 0.5 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.804e-05/0.5483, allocations: 11.94 kB / 0.8475 GB, free: 500 kB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.358e-06/0.5483, allocations: 4 kB / 0.8475 GB, free: 496 kB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/0.5483, allocations: 3.938 kB / 0.8475 GB, free: 492 kB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001345/0.5497, allocations: 0.771 MB / 0.8482 GB, free: 15.68 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003885/0.5501, allocations: 227.7 kB / 0.8485 GB, free: 15.44 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001864/0.5503, allocations: 12 kB / 0.8485 GB, free: 15.43 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005763/0.5509, allocations: 23.97 kB / 0.8485 GB, free: 15.4 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.009e-05/0.5509, allocations: 23.97 kB / 0.8485 GB, free: 15.38 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.442e-05/0.551, allocations: 24.05 kB / 0.8485 GB, free: 15.36 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.0009375/0.5519, allocations: 0.6627 MB / 0.8492 GB, free: 14.68 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1.71e-07/0.552, allocations: 0 / 0.8492 GB, free: 14.68 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.00109/0.553, allocations: 339.4 kB / 0.8495 GB, free: 14.35 MB / 0.6231 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 2 (fouPor.vol1.dynBal.U,fouPor.vol2.dynBal.U) * 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 (34): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * 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.0009493/0.554, allocations: 398.7 kB / 0.8499 GB, free: 13.96 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.0009207/0.5549, allocations: 412.7 kB / 0.8503 GB, free: 13.56 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 4.448e-06/0.555, allocations: 4.125 kB / 0.8503 GB, free: 13.56 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.00038/0.5553, allocations: 192.3 kB / 0.8505 GB, free: 13.37 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002526/0.5579, allocations: 0.6109 MB / 0.8511 GB, free: 12.77 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002757/0.5606, allocations: 1.631 MB / 0.8527 GB, free: 11.09 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00062/0.5613, allocations: 1.028 MB / 0.8537 GB, free: 10.03 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002397/0.5615, allocations: 87.41 kB / 0.8537 GB, free: 9.941 MB / 0.6231 GB Notification: Performance of SimCode: time 9.82e-07/0.5616, allocations: 0 / 0.8537 GB, free: 9.941 MB / 0.6231 GB Notification: Performance of Templates: time 0.02515/0.5867, allocations: 18.25 MB / 0.8716 GB, free: 7.883 MB / 0.6387 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.makefile (rm -f BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.sim & ./BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.FourPortHeatMassExchanger -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe 2>&1)