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/BuildingSystems 2.0.0-master/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/ModelicaServices 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) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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) 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 BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/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/BuildingSystems 2.0.0-master/package.mo): time 0.8115/0.8115, allocations: 143.4 MB / 159.2 MB, free: 4.895 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001434/0.001434, allocations: 188.5 kB / 191.9 MB, free: 5.738 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.539/1.539, allocations: 222.9 MB / 447.3 MB, free: 5.879 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001063/0.001063, allocations: 95.03 kB / 0.517 GB, free: 3.723 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001802/0.001802, allocations: 280 kB / 0.5973 GB, free: 49.4 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001375/0.001375, allocations: 79.86 kB / 0.6885 GB, free: 3.863 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3991/0.4004, allocations: 81.29 MB / 0.7679 GB, free: 27.68 MB / 458.7 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Interfaces.Examples.FourPortHeatMassExchanger): time 0.03222/0.4327, allocations: 41.32 MB / 0.8083 GB, free: 2.219 MB / 474.7 MB Notification: Performance of NFInst.instExpressions: time 0.0157/0.4485, allocations: 10.44 MB / 0.8185 GB, free: 7.762 MB / 490.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002274/0.4508, allocations: 47.69 kB / 0.8185 GB, free: 7.715 MB / 490.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00219/0.453, allocations: 0.5244 MB / 0.819 GB, free: 7.188 MB / 490.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005989/0.4591, allocations: 1.742 MB / 0.8207 GB, free: 5.438 MB / 490.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003452/0.4625, allocations: 1.071 MB / 0.8218 GB, free: 4.379 MB / 490.7 MB Notification: Performance of NFFlatten.flatten: time 0.005877/0.4684, allocations: 4.522 MB / 0.8262 GB, free: 15.85 MB / 0.4948 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001846/0.4703, allocations: 0.8751 MB / 0.827 GB, free: 14.96 MB / 0.4948 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002784/0.4731, allocations: 1.066 MB / 0.8281 GB, free: 13.89 MB / 0.4948 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002025/0.4752, allocations: 0.8944 MB / 0.829 GB, free: 12.99 MB / 0.4948 GB Notification: Performance of NFPackage.collectConstants: time 0.0003418/0.4755, allocations: 48 kB / 0.829 GB, free: 12.94 MB / 0.4948 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002739/0.4783, allocations: 0.7833 MB / 0.8298 GB, free: 12.16 MB / 0.4948 GB Notification: Performance of NFScalarize.scalarize: time 0.0004537/0.4788, allocations: 219 kB / 0.83 GB, free: 11.94 MB / 0.4948 GB Notification: Performance of NFVerifyModel.verify: time 0.001289/0.4801, allocations: 0.5712 MB / 0.8305 GB, free: 11.37 MB / 0.4948 GB Notification: Performance of NFConvertDAE.convert: time 0.003632/0.4837, allocations: 1.877 MB / 0.8324 GB, free: 9.484 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 6.923e-06/0.4837, allocations: 4 kB / 0.8324 GB, free: 9.48 MB / 0.4948 GB Notification: Performance of FrontEnd: time 1.282e-06/0.4837, allocations: 4 kB / 0.8324 GB, free: 9.477 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 6.266e-05/0.4838, allocations: 0 / 0.8324 GB, free: 9.477 MB / 0.4948 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.003597/0.4874, allocations: 1.503 MB / 0.8338 GB, free: 7.918 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.971e-05/0.4875, allocations: 12.03 kB / 0.8339 GB, free: 7.906 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005288/0.488, allocations: 131.4 kB / 0.834 GB, free: 7.777 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002269/0.4903, allocations: 1.064 MB / 0.835 GB, free: 6.672 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.858e-05/0.4904, allocations: 61.98 kB / 0.8351 GB, free: 6.609 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001283/0.4905, allocations: 72 kB / 0.8351 GB, free: 6.539 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001638/0.4922, allocations: 0.7905 MB / 0.8359 GB, free: 5.715 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.645e-05/0.4922, allocations: 3.938 kB / 0.8359 GB, free: 5.711 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.378e-05/0.4923, allocations: 28 kB / 0.836 GB, free: 5.684 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.86e-05/0.4923, allocations: 31.98 kB / 0.836 GB, free: 5.652 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001171/0.4935, allocations: 0.5711 MB / 0.8365 GB, free: 5.082 MB / 0.4948 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.004454/0.498, allocations: 3.536 MB / 0.84 GB, free: 1.316 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006216/0.4986, allocations: 260.1 kB / 0.8402 GB, free: 1.055 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003751/0.499, allocations: 174.1 kB / 0.8404 GB, free: 0.8828 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005691/0.4996, allocations: 0.6731 MB / 0.8411 GB, free: 64 kB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.214e-05/0.4996, allocations: 34.56 kB / 0.8411 GB, free: 20 kB / 0.4948 GB Notification: Performance of pre-optimization done (n=31): time 3.667e-06/0.4996, allocations: 0 / 0.8411 GB, free: 20 kB / 0.4948 GB Notification: Performance of matching and sorting (n=31): time 0.001327/0.501, allocations: 0.5119 MB / 0.8416 GB, free: 15.5 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.838e-05/0.501, allocations: 55.41 kB / 0.8416 GB, free: 15.43 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001141/0.5022, allocations: 0.9254 MB / 0.8426 GB, free: 14.49 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 3.954e-05/0.5022, allocations: 29.7 kB / 0.8426 GB, free: 14.45 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003819/0.5026, allocations: 499.5 kB / 0.8431 GB, free: 13.96 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001114/0.5027, allocations: 114.4 kB / 0.8432 GB, free: 13.84 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001631/0.5029, allocations: 122 kB / 0.8433 GB, free: 13.71 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001602/0.5031, allocations: 329.9 kB / 0.8436 GB, free: 13.39 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003666/0.5034, allocations: 165 kB / 0.8438 GB, free: 13.23 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005034/0.504, allocations: 347 kB / 0.8441 GB, free: 12.82 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008324/0.5048, allocations: 0.5109 MB / 0.8446 GB, free: 12.23 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.699e-06/0.5048, allocations: 0 / 0.8446 GB, free: 12.23 MB / 0.5105 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001113/0.5059, allocations: 0.6095 MB / 0.8452 GB, free: 11.62 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 2.453e-05/0.506, allocations: 11.98 kB / 0.8452 GB, free: 11.61 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.053e-05/0.506, allocations: 4 kB / 0.8452 GB, free: 11.6 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.09e-05/0.506, allocations: 8 kB / 0.8452 GB, free: 11.59 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004399/0.5065, allocations: 123.8 kB / 0.8453 GB, free: 11.47 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.23e-05/0.5065, allocations: 11.94 kB / 0.8453 GB, free: 11.46 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007856/0.5073, allocations: 111.5 kB / 0.8454 GB, free: 11.35 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.66e-05/0.5073, allocations: 28 kB / 0.8455 GB, free: 11.32 MB / 0.5105 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.0004006/0.5078, allocations: 282.6 kB / 0.8457 GB, free: 11.04 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001517/0.5079, allocations: 98.78 kB / 0.8458 GB, free: 10.94 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009551/0.5089, allocations: 483.1 kB / 0.8463 GB, free: 10.47 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.343e-05/0.5089, allocations: 4 kB / 0.8463 GB, free: 10.46 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.041e-06/0.5089, allocations: 0 / 0.8463 GB, free: 10.46 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007658/0.5097, allocations: 457.7 kB / 0.8467 GB, free: 9.988 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002428/0.5121, allocations: 1.355 MB / 0.8481 GB, free: 8.562 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.55e-06/0.5121, allocations: 0 / 0.8481 GB, free: 8.562 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003411/0.5125, allocations: 72.17 kB / 0.8481 GB, free: 8.492 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.658e-06/0.5125, allocations: 15.88 kB / 0.8481 GB, free: 8.477 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.237e-05/0.5126, allocations: 15.98 kB / 0.8482 GB, free: 8.461 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.943e-06/0.5126, allocations: 7.938 kB / 0.8482 GB, free: 8.453 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.063e-06/0.5126, allocations: 3.938 kB / 0.8482 GB, free: 8.449 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005793/0.5184, allocations: 3.573 MB / 0.8517 GB, free: 4.723 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003357/0.5187, allocations: 227.8 kB / 0.8519 GB, free: 4.48 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.747e-05/0.5188, allocations: 8 kB / 0.8519 GB, free: 4.473 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005693/0.5194, allocations: 55.94 kB / 0.8519 GB, free: 4.418 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.892e-05/0.5195, allocations: 31.84 kB / 0.852 GB, free: 4.387 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.585e-05/0.5195, allocations: 15.98 kB / 0.852 GB, free: 4.371 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.0008349/0.5204, allocations: 0.6469 MB / 0.8526 GB, free: 3.715 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.4e-07/0.5204, allocations: 0 / 0.8526 GB, free: 3.715 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.001381/0.5218, allocations: 463.5 kB / 0.853 GB, free: 3.262 MB / 0.5105 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.0008271/0.5226, allocations: 380.1 kB / 0.8534 GB, free: 2.895 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.0009372/0.5236, allocations: 428 kB / 0.8538 GB, free: 2.477 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.5236, allocations: 0 / 0.8538 GB, free: 2.477 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.0003681/0.524, allocations: 186.5 kB / 0.854 GB, free: 2.297 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002834/0.5268, allocations: 0.6094 MB / 0.8546 GB, free: 1.695 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002927/0.5297, allocations: 2.198 MB / 0.8567 GB, free: 15.44 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006263/0.5304, allocations: 1.04 MB / 0.8578 GB, free: 14.37 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.0009581/0.5313, allocations: 203.3 kB / 0.8579 GB, free: 14.17 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000188/0.5315, allocations: 83.41 kB / 0.858 GB, free: 14.09 MB / 0.5261 GB Notification: Performance of SimCode: time 1.152e-06/0.5316, allocations: 0 / 0.858 GB, free: 14.09 MB / 0.5261 GB Notification: Performance of Templates: time 0.03643/0.568, allocations: 21.09 MB / 0.8786 GB, free: 9.25 MB / 0.5417 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)