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.001868/0.001868, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.002017/0.002017, allocations: 192.6 kB / 16.25 MB, free: 6.621 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.429/1.429, allocations: 222.9 MB / 239.9 MB, free: 4.543 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002523/0.002523, allocations: 291.7 kB / 290.4 MB, free: 2.148 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.063/1.063, allocations: 178.6 MB / 0.5069 GB, free: 4.785 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002763/0.002763, allocations: 96.56 kB / 0.6059 GB, free: 25.04 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1812/0.184, allocations: 89.15 MB / 0.693 GB, free: 4.762 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Interfaces.Examples.FourPortHeatMassExchanger): time 0.04322/0.2272, allocations: 41.23 MB / 0.7332 GB, free: 11.4 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.01494/0.2422, allocations: 10.35 MB / 0.7433 GB, free: 1.023 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001488/0.2438, allocations: 51.69 kB / 0.7434 GB, free: 0.9727 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.00154/0.2453, allocations: 0.5595 MB / 0.7439 GB, free: 420 kB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.004521/0.2499, allocations: 1.757 MB / 0.7457 GB, free: 14.65 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.002808/0.2527, allocations: 1.082 MB / 0.7467 GB, free: 13.58 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.004339/0.257, allocations: 3.418 MB / 0.75 GB, free: 10.15 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001396/0.2584, allocations: 1.044 MB / 0.7511 GB, free: 9.086 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002743/0.2612, allocations: 1.249 MB / 0.7523 GB, free: 7.84 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001143/0.2624, allocations: 0.9178 MB / 0.7532 GB, free: 6.918 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 0.0001453/0.2625, allocations: 100 kB / 0.7533 GB, free: 6.82 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001803/0.2643, allocations: 0.8732 MB / 0.7541 GB, free: 5.945 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0002919/0.2646, allocations: 287 kB / 0.7544 GB, free: 5.664 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0006547/0.2653, allocations: 0.626 MB / 0.755 GB, free: 5.035 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.002626/0.2679, allocations: 1.916 MB / 0.7569 GB, free: 3.113 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 6.542e-06/0.2679, allocations: 0 / 0.7569 GB, free: 3.113 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.753e-06/0.2679, allocations: 0 / 0.7569 GB, free: 3.113 MB / 0.545 GB Notification: Performance of Transformations before backend: time 1.805e-05/0.268, allocations: 4 kB / 0.7569 GB, free: 3.109 MB / 0.545 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.002664/0.2706, allocations: 1.507 MB / 0.7584 GB, free: 1.551 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.354e-05/0.2707, allocations: 8.031 kB / 0.7584 GB, free: 1.543 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003644/0.2711, allocations: 135.4 kB / 0.7585 GB, free: 1.41 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001721/0.2728, allocations: 1.084 MB / 0.7596 GB, free: 288 kB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.839e-05/0.2729, allocations: 54 kB / 0.7596 GB, free: 236 kB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001152/0.273, allocations: 72 kB / 0.7597 GB, free: 164 kB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2904/0.5634, allocations: 0.7868 MB / 0.7604 GB, free: 69.71 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 3e-05/0.5634, allocations: 1.219 kB / 0.7604 GB, free: 69.71 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.98e-05/0.5635, allocations: 30.91 kB / 0.7605 GB, free: 69.71 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.79e-05/0.5636, allocations: 19.67 kB / 0.7605 GB, free: 69.71 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001154/0.5647, allocations: 0.571 MB / 0.7611 GB, free: 69.71 MB / 0.545 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.004225/0.5689, allocations: 3.537 MB / 0.7645 GB, free: 67.34 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005969/0.5696, allocations: 269 kB / 0.7648 GB, free: 67.23 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003476/0.5699, allocations: 176.9 kB / 0.7649 GB, free: 67.18 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003578/0.5703, allocations: 0.6533 MB / 0.7656 GB, free: 66.42 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.034e-05/0.5703, allocations: 40.69 kB / 0.7656 GB, free: 66.38 MB / 0.545 GB Notification: Performance of pre-optimization done (n=31): time 2.424e-06/0.5703, allocations: 0.75 kB / 0.7656 GB, free: 66.38 MB / 0.545 GB Notification: Performance of matching and sorting (n=31): time 0.001243/0.5716, allocations: 0.5141 MB / 0.7661 GB, free: 66.18 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.767e-05/0.5716, allocations: 55.33 kB / 0.7662 GB, free: 66.12 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001162/0.5728, allocations: 0.9367 MB / 0.7671 GB, free: 65.73 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 4.142e-05/0.5728, allocations: 33.77 kB / 0.7671 GB, free: 65.7 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003004/0.5731, allocations: 0.4938 MB / 0.7676 GB, free: 65.32 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 8.4e-05/0.5732, allocations: 111.8 kB / 0.7677 GB, free: 65.23 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001487/0.5734, allocations: 112.3 kB / 0.7678 GB, free: 65.17 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 5.448e-05/0.5735, allocations: 331.5 kB / 0.7681 GB, free: 64.86 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00034/0.5738, allocations: 168.8 kB / 0.7683 GB, free: 64.8 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004229/0.5742, allocations: 351.5 kB / 0.7686 GB, free: 64.54 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007339/0.575, allocations: 0.5165 MB / 0.7691 GB, free: 64.2 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.92e-06/0.575, allocations: 1.375 kB / 0.7691 GB, free: 64.2 MB / 0.545 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001069/0.5761, allocations: 0.6076 MB / 0.7697 GB, free: 63.96 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 2.168e-05/0.5761, allocations: 8.812 kB / 0.7697 GB, free: 63.96 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.121e-05/0.5761, allocations: 6 kB / 0.7697 GB, free: 63.96 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.263e-05/0.5761, allocations: 7.781 kB / 0.7697 GB, free: 63.96 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000438/0.5766, allocations: 132.5 kB / 0.7699 GB, free: 63.94 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.482e-05/0.5766, allocations: 8.094 kB / 0.7699 GB, free: 63.94 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006785/0.5773, allocations: 106.9 kB / 0.77 GB, free: 63.89 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.745e-05/0.5773, allocations: 25 kB / 0.77 GB, free: 63.89 MB / 0.545 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.000315/0.5777, allocations: 282.4 kB / 0.7703 GB, free: 63.68 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001409/0.5778, allocations: 102.2 kB / 0.7704 GB, free: 63.63 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009229/0.5787, allocations: 492 kB / 0.7708 GB, free: 63.43 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.109e-05/0.5788, allocations: 5.094 kB / 0.7708 GB, free: 63.43 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.739e-06/0.5788, allocations: 3.406 kB / 0.7708 GB, free: 63.43 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006609/0.5794, allocations: 448.9 kB / 0.7713 GB, free: 63.18 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001881/0.5813, allocations: 1.358 MB / 0.7726 GB, free: 62.45 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.538e-06/0.5813, allocations: 3.156 kB / 0.7726 GB, free: 62.45 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003323/0.5817, allocations: 72.12 kB / 0.7727 GB, free: 62.44 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.149e-06/0.5817, allocations: 6.406 kB / 0.7727 GB, free: 62.44 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.648e-05/0.5817, allocations: 9.172 kB / 0.7727 GB, free: 62.44 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.518e-06/0.5817, allocations: 7.719 kB / 0.7727 GB, free: 62.43 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.344e-06/0.5817, allocations: 1.219 kB / 0.7727 GB, free: 62.43 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001355/0.5831, allocations: 0.772 MB / 0.7734 GB, free: 62.03 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003431/0.5835, allocations: 222 kB / 0.7737 GB, free: 61.85 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001218/0.5836, allocations: 11.78 kB / 0.7737 GB, free: 61.84 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005733/0.5842, allocations: 60.31 kB / 0.7737 GB, free: 61.83 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.157e-05/0.5843, allocations: 27.59 kB / 0.7738 GB, free: 61.83 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.098e-05/0.5843, allocations: 21.16 kB / 0.7738 GB, free: 61.82 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.000881/0.5852, allocations: 0.6467 MB / 0.7744 GB, free: 61.54 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.823e-06/0.5852, allocations: 1.781 kB / 0.7744 GB, free: 61.54 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.00104/0.5863, allocations: 335.3 kB / 0.7747 GB, free: 61.49 MB / 0.545 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.0007652/0.587, allocations: 373.7 kB / 0.7751 GB, free: 61.38 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.001021/0.5881, allocations: 459 kB / 0.7755 GB, free: 61.25 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 3.536e-06/0.5881, allocations: 0 / 0.7755 GB, free: 61.25 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0003587/0.5884, allocations: 194.4 kB / 0.7757 GB, free: 61.19 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002508/0.591, allocations: 0.6106 MB / 0.7763 GB, free: 61.06 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002275/0.5932, allocations: 1.946 MB / 0.7782 GB, free: 59.8 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005894/0.5938, allocations: 1.033 MB / 0.7792 GB, free: 59.07 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.000758/0.5946, allocations: 198.9 kB / 0.7794 GB, free: 59.03 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001633/0.5948, allocations: 83.59 kB / 0.7795 GB, free: 59.01 MB / 0.545 GB Notification: Performance of SimCode: time 3e-07/0.5948, allocations: 0.7656 kB / 0.7795 GB, free: 59.01 MB / 0.545 GB Notification: Performance of Templates: time 0.03714/0.6319, allocations: 20.77 MB / 0.7998 GB, free: 50.34 MB / 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 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe 2>&1)