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.00124/0.00124, allocations: 107 kB / 16.36 MB, free: 6.336 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.001196/0.001196, allocations: 195.3 kB / 17.29 MB, free: 5.883 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.285/1.285, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002034/0.002034, allocations: 292.9 kB / 291.4 MB, free: 14.48 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9191/0.9191, allocations: 169.3 MB / 0.4989 GB, free: 4.445 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00232/0.002321, allocations: 94.83 kB / 0.5967 GB, free: 14.43 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1653/0.1677, allocations: 86.97 MB / 0.6816 GB, free: 7.449 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Interfaces.Examples.FourPortHeatMassExchanger): time 0.3167/0.4845, allocations: 41.57 MB / 0.7222 GB, free: 7.914 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.01508/0.4996, allocations: 10.39 MB / 0.7323 GB, free: 480 kB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002218/0.5019, allocations: 58.97 kB / 0.7324 GB, free: 456 kB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.001787/0.5037, allocations: 0.636 MB / 0.733 GB, free: 56 kB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.00504/0.5088, allocations: 1.875 MB / 0.7348 GB, free: 14.94 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.003002/0.5118, allocations: 1.195 MB / 0.736 GB, free: 14.26 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.004459/0.5163, allocations: 3.396 MB / 0.7393 GB, free: 12.26 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001541/0.5178, allocations: 1.068 MB / 0.7404 GB, free: 11.59 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00366/0.5215, allocations: 1.229 MB / 0.7416 GB, free: 10.86 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001534/0.523, allocations: 0.8809 MB / 0.7424 GB, free: 10.33 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 0.000156/0.5232, allocations: 107.9 kB / 0.7425 GB, free: 10.32 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002262/0.5255, allocations: 0.8608 MB / 0.7434 GB, free: 9.867 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.0002997/0.5258, allocations: 283.2 kB / 0.7436 GB, free: 9.648 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.0007166/0.5265, allocations: 0.6228 MB / 0.7442 GB, free: 9.242 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.002586/0.5291, allocations: 1.936 MB / 0.7461 GB, free: 7.969 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 4.108e-06/0.5291, allocations: 0 / 0.7461 GB, free: 7.969 MB / 0.5137 GB Notification: Performance of FrontEnd: time 2.785e-06/0.5291, allocations: 3.984 kB / 0.7461 GB, free: 7.965 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 1.679e-05/0.5292, allocations: 1.156 kB / 0.7461 GB, free: 7.965 MB / 0.5137 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.00243/0.5316, allocations: 1.515 MB / 0.7476 GB, free: 6.793 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 4.558e-05/0.5316, allocations: 8.594 kB / 0.7476 GB, free: 6.793 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003884/0.532, allocations: 129.3 kB / 0.7477 GB, free: 6.734 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001783/0.5338, allocations: 1.108 MB / 0.7488 GB, free: 5.859 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.9e-05/0.5339, allocations: 56.34 kB / 0.7489 GB, free: 5.836 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001063/0.534, allocations: 75.64 kB / 0.749 GB, free: 5.809 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001272/0.5353, allocations: 0.796 MB / 0.7497 GB, free: 5.293 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.035e-05/0.5353, allocations: 0 / 0.7497 GB, free: 5.293 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.129e-05/0.5354, allocations: 31.53 kB / 0.7498 GB, free: 5.27 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.264e-05/0.5354, allocations: 22.59 kB / 0.7498 GB, free: 5.266 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001071/0.5365, allocations: 0.5685 MB / 0.7503 GB, free: 4.984 MB / 0.5137 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.003805/0.5403, allocations: 3.547 MB / 0.7538 GB, free: 1.867 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005363/0.5409, allocations: 262.2 kB / 0.7541 GB, free: 1.73 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003263/0.5412, allocations: 179.6 kB / 0.7542 GB, free: 1.641 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000496/0.5417, allocations: 0.6633 MB / 0.7549 GB, free: 0.8633 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.257e-05/0.5417, allocations: 32 kB / 0.7549 GB, free: 0.8242 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=31): time 1.533e-06/0.5417, allocations: 0 / 0.7549 GB, free: 0.8242 MB / 0.5137 GB Notification: Performance of matching and sorting (n=31): time 0.001127/0.5429, allocations: 0.5194 MB / 0.7554 GB, free: 0.5586 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.374e-05/0.5429, allocations: 54.94 kB / 0.7555 GB, free: 0.4961 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001084/0.544, allocations: 0.9469 MB / 0.7564 GB, free: 15.95 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 3.683e-05/0.5441, allocations: 32.45 kB / 0.7564 GB, free: 15.92 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003479/0.5444, allocations: 0.4897 MB / 0.7569 GB, free: 15.48 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 9.361e-05/0.5445, allocations: 117.5 kB / 0.757 GB, free: 15.38 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001638/0.5447, allocations: 108.6 kB / 0.7571 GB, free: 15.32 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.000106/0.5448, allocations: 331.5 kB / 0.7574 GB, free: 14.99 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000325/0.5451, allocations: 165.9 kB / 0.7576 GB, free: 14.91 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004481/0.5456, allocations: 353.2 kB / 0.7579 GB, free: 14.61 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007161/0.5463, allocations: 0.5078 MB / 0.7584 GB, free: 14.21 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.168e-06/0.5463, allocations: 2.594 kB / 0.7584 GB, free: 14.21 MB / 0.5294 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001004/0.5473, allocations: 0.6133 MB / 0.759 GB, free: 13.9 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 1.712e-05/0.5474, allocations: 11.09 kB / 0.759 GB, free: 13.89 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.706e-06/0.5474, allocations: 5.344 kB / 0.759 GB, free: 13.89 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.926e-05/0.5474, allocations: 13.55 kB / 0.7591 GB, free: 13.89 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004107/0.5478, allocations: 134.6 kB / 0.7592 GB, free: 13.85 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.099e-05/0.5478, allocations: 7 kB / 0.7592 GB, free: 13.85 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006127/0.5484, allocations: 82.41 kB / 0.7593 GB, free: 13.8 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.536e-05/0.5485, allocations: 25.16 kB / 0.7593 GB, free: 13.79 MB / 0.5294 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.0003081/0.5488, allocations: 281.7 kB / 0.7596 GB, free: 13.57 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001465/0.549, allocations: 98.91 kB / 0.7597 GB, free: 13.52 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009079/0.5499, allocations: 490.3 kB / 0.7601 GB, free: 13.25 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.087e-05/0.5499, allocations: 3.625 kB / 0.7601 GB, free: 13.25 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.28e-06/0.5499, allocations: 0 / 0.7601 GB, free: 13.25 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006698/0.5506, allocations: 453.8 kB / 0.7606 GB, free: 12.94 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001881/0.5525, allocations: 1.367 MB / 0.7619 GB, free: 11.79 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.346e-06/0.5525, allocations: 4.031 kB / 0.7619 GB, free: 11.79 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003135/0.5528, allocations: 75.88 kB / 0.762 GB, free: 11.71 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.781e-06/0.5528, allocations: 7.938 kB / 0.762 GB, free: 11.71 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.868e-05/0.5529, allocations: 12.06 kB / 0.762 GB, free: 11.7 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.572e-06/0.5529, allocations: 11.94 kB / 0.762 GB, free: 11.68 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.707e-06/0.5529, allocations: 3.984 kB / 0.762 GB, free: 11.68 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001229/0.5541, allocations: 0.7746 MB / 0.7628 GB, free: 10.87 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000345/0.5545, allocations: 219.9 kB / 0.763 GB, free: 10.64 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000116/0.5546, allocations: 15.92 kB / 0.763 GB, free: 10.62 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000468/0.5551, allocations: 23.97 kB / 0.763 GB, free: 10.6 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.73e-05/0.5552, allocations: 27.97 kB / 0.763 GB, free: 10.57 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.645e-05/0.5552, allocations: 19.98 kB / 0.7631 GB, free: 10.55 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.0007697/0.556, allocations: 0.6589 MB / 0.7637 GB, free: 9.883 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.8e-07/0.556, allocations: 4 kB / 0.7637 GB, free: 9.879 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.0009683/0.557, allocations: 335.4 kB / 0.764 GB, free: 9.551 MB / 0.5294 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.0007007/0.5577, allocations: 401.3 kB / 0.7644 GB, free: 9.164 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.0007927/0.5585, allocations: 420.6 kB / 0.7648 GB, free: 8.754 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.5585, allocations: 0 / 0.7648 GB, free: 8.754 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.000349/0.5588, allocations: 196 kB / 0.765 GB, free: 8.562 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002239/0.5611, allocations: 0.6095 MB / 0.7656 GB, free: 7.969 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002153/0.5633, allocations: 1.582 MB / 0.7671 GB, free: 6.336 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005478/0.5638, allocations: 1.04 MB / 0.7681 GB, free: 5.266 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.0005287/0.5643, allocations: 194.6 kB / 0.7683 GB, free: 5.078 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001407/0.5645, allocations: 79.42 kB / 0.7684 GB, free: 5 MB / 0.5294 GB Notification: Performance of SimCode: time 8.446e-06/0.5645, allocations: 0 / 0.7684 GB, free: 5 MB / 0.5294 GB Notification: Performance of Templates: time 0.03239/0.5969, allocations: 21.24 MB / 0.7891 GB, free: 88 kB / 0.545 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 -s cvode -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe 2>&1)