Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Fluid_Interfaces_Examples_FourPortHeatMassExchanger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Fluid_Interfaces_Examples_FourPortHeatMassExchanger",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.365/1.365, allocations: 252 MB / 267 MB, free: 10.95 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001045/0.001044, allocations: 188.4 kB / 326.6 MB, free: 2.199 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.527/1.527, allocations: 205.4 MB / 0.5777 GB, free: 20.21 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0006972/0.0006972, allocations: 100.3 kB / 0.6823 GB, free: 12.83 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0002941/0.0002942, allocations: 12.56 kB / 0.7965 GB, free: 135.2 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1641/0.1644, allocations: 106.3 MB / 0.9003 GB, free: 63.75 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger): time 0.02511/0.1895, allocations: 38.32 MB / 0.9377 GB, free: 25.31 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.009646/0.1992, allocations: 9.62 MB / 0.9471 GB, free: 15.68 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001665/0.2009, allocations: 43.69 kB / 0.9472 GB, free: 15.63 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 0.001526/0.2025, allocations: 461 kB / 0.9476 GB, free: 15.18 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 0.003519/0.206, allocations: 1.468 MB / 0.949 GB, free: 13.71 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.001999/0.208, allocations: 0.845 MB / 0.9499 GB, free: 12.87 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.002767/0.2108, allocations: 3.832 MB / 0.9536 GB, free: 9.031 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007639/0.2116, allocations: 0.7375 MB / 0.9543 GB, free: 8.277 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001175/0.2127, allocations: 0.9877 MB / 0.9553 GB, free: 7.285 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006985/0.2134, allocations: 0.8088 MB / 0.9561 GB, free: 6.473 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 9.152e-05/0.2135, allocations: 36 kB / 0.9561 GB, free: 6.438 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001134/0.2147, allocations: 490.9 kB / 0.9566 GB, free: 5.957 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 0.0001434/0.2148, allocations: 195.1 kB / 0.9568 GB, free: 5.766 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 0.0001709/0.215, allocations: 265.1 kB / 0.957 GB, free: 5.5 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.0009684/0.216, allocations: 1.356 MB / 0.9583 GB, free: 4.141 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 4.789e-06/0.216, allocations: 4 kB / 0.9583 GB, free: 4.137 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.734e-06/0.216, allocations: 0 / 0.9583 GB, free: 4.137 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 1.222e-05/0.216, allocations: 0 / 0.9583 GB, free: 4.137 MB / 0.6042 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.0017/0.2177, allocations: 1.297 MB / 0.9596 GB, free: 2.785 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 3.454e-05/0.2178, allocations: 12.03 kB / 0.9596 GB, free: 2.773 MB / 0.6042 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000105/0.2179, allocations: 122.5 kB / 0.9597 GB, free: 2.645 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002513/0.2182, allocations: 134.5 kB / 0.9599 GB, free: 2.512 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001237/0.2194, allocations: 1.017 MB / 0.9609 GB, free: 1.453 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.069e-05/0.2194, allocations: 54 kB / 0.9609 GB, free: 1.398 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.099e-05/0.2195, allocations: 75.98 kB / 0.961 GB, free: 1.324 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001123/0.2207, allocations: 0.7905 MB / 0.9618 GB, free: 0.5 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.867e-05/0.2207, allocations: 0 / 0.9618 GB, free: 0.5 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.435e-05/0.2207, allocations: 32 kB / 0.9618 GB, free: 480 kB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.508e-05/0.2208, allocations: 19.94 kB / 0.9618 GB, free: 460 kB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001048/0.2218, allocations: 0.5789 MB / 0.9624 GB, free: 15.87 MB / 0.6198 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.004107/0.226, allocations: 3.544 MB / 0.9658 GB, free: 12.1 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005706/0.2265, allocations: 269.8 kB / 0.9661 GB, free: 11.83 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003648/0.2269, allocations: 193.2 kB / 0.9663 GB, free: 11.64 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005082/0.2274, allocations: 0.6532 MB / 0.9669 GB, free: 10.84 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.911e-05/0.2275, allocations: 42.55 kB / 0.967 GB, free: 10.79 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=31): time 2.635e-06/0.2275, allocations: 0 / 0.967 GB, free: 10.79 MB / 0.6198 GB Notification: Performance of matching and sorting (n=31): time 0.001181/0.2287, allocations: 0.5406 MB / 0.9675 GB, free: 10.24 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.914e-05/0.2287, allocations: 59.34 kB / 0.9675 GB, free: 10.17 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001097/0.2298, allocations: 0.9252 MB / 0.9684 GB, free: 9.223 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 4.762e-05/0.2299, allocations: 33.7 kB / 0.9685 GB, free: 9.184 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003816/0.2303, allocations: 499.7 kB / 0.9689 GB, free: 8.688 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 9.464e-05/0.2304, allocations: 110.4 kB / 0.9691 GB, free: 8.578 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.054e-05/0.2304, allocations: 16 kB / 0.9691 GB, free: 8.562 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 0.0001311/0.2305, allocations: 326 kB / 0.9694 GB, free: 8.238 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003588/0.2309, allocations: 173 kB / 0.9695 GB, free: 8.07 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004911/0.2314, allocations: 358.9 kB / 0.9699 GB, free: 7.641 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004291/0.2319, allocations: 223.9 kB / 0.9701 GB, free: 7.422 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.889e-06/0.2319, allocations: 4 kB / 0.9701 GB, free: 7.418 MB / 0.6198 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001138/0.233, allocations: 0.6405 MB / 0.9707 GB, free: 6.77 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 2.029e-05/0.233, allocations: 10.34 kB / 0.9707 GB, free: 6.762 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.308e-06/0.2331, allocations: 4 kB / 0.9707 GB, free: 6.758 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.725e-05/0.2331, allocations: 8.438 kB / 0.9708 GB, free: 6.75 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004492/0.2335, allocations: 131.8 kB / 0.9709 GB, free: 6.621 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.418e-05/0.2336, allocations: 11.94 kB / 0.9709 GB, free: 6.609 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006903/0.2343, allocations: 119.2 kB / 0.971 GB, free: 6.492 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.617e-05/0.2343, allocations: 31.94 kB / 0.971 GB, free: 6.461 MB / 0.6198 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003572/0.2347, allocations: 273.6 kB / 0.9713 GB, free: 6.184 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001252/0.2348, allocations: 98.78 kB / 0.9714 GB, free: 6.086 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009803/0.2358, allocations: 0.4886 MB / 0.9719 GB, free: 5.598 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.045e-06/0.2358, allocations: 0 / 0.9719 GB, free: 5.598 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.218e-06/0.2358, allocations: 4 kB / 0.9719 GB, free: 5.594 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007523/0.2366, allocations: 480.5 kB / 0.9723 GB, free: 5.094 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002063/0.2387, allocations: 1.362 MB / 0.9737 GB, free: 3.66 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.957e-06/0.2387, allocations: 4 kB / 0.9737 GB, free: 3.656 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003543/0.2391, allocations: 83.88 kB / 0.9737 GB, free: 3.574 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.987e-06/0.2391, allocations: 4 kB / 0.9737 GB, free: 3.57 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.125e-05/0.2391, allocations: 11.95 kB / 0.9738 GB, free: 3.559 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.49e-06/0.2391, allocations: 8.094 kB / 0.9738 GB, free: 3.551 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.186e-06/0.2391, allocations: 4 kB / 0.9738 GB, free: 3.547 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001324/0.2405, allocations: 0.7814 MB / 0.9745 GB, free: 2.734 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003429/0.2408, allocations: 239.8 kB / 0.9748 GB, free: 2.48 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001031/0.2409, allocations: 8 kB / 0.9748 GB, free: 2.473 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005706/0.2415, allocations: 67.83 kB / 0.9748 GB, free: 2.406 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.523e-05/0.2416, allocations: 23.91 kB / 0.9749 GB, free: 2.383 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.724e-05/0.2416, allocations: 19.98 kB / 0.9749 GB, free: 2.363 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.0008377/0.2425, allocations: 0.6391 MB / 0.9755 GB, free: 1.715 MB / 0.6198 GB Notification: Performance of sort global known variables: time 1.7e-07/0.2425, allocations: 0 / 0.9755 GB, free: 1.715 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0009117/0.2434, allocations: 331.4 kB / 0.9758 GB, free: 1.391 MB / 0.6198 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 (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.002094/0.2455, allocations: 1.592 MB / 0.9774 GB, free: 15.77 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0008809/0.2464, allocations: 428.5 kB / 0.9778 GB, free: 15.35 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.2464, allocations: 448 / 0.9778 GB, free: 15.35 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 0.0003938/0.2468, allocations: 203.7 kB / 0.978 GB, free: 15.15 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002808/0.2496, allocations: 0.5967 MB / 0.9786 GB, free: 14.55 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009856/0.2595, allocations: 5.454 MB / 0.9839 GB, free: 8.82 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006009/0.2601, allocations: 1.036 MB / 0.9849 GB, free: 7.754 MB / 0.6355 GB Notification: Performance of simCode: alias equations: time 0.0008394/0.261, allocations: 196.5 kB / 0.9851 GB, free: 7.562 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004667/0.2615, allocations: 363.3 kB / 0.9854 GB, free: 7.207 MB / 0.6355 GB Notification: Performance of SimCode: time 5.51e-07/0.2615, allocations: 0 / 0.9854 GB, free: 7.207 MB / 0.6355 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04742/0.3089, allocations: 28.81 MB / 1.014 GB, free: 10.72 MB / 0.6667 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002126/0.3091, allocations: 253.7 kB / 1.014 GB, free: 10.4 MB / 0.6667 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.756/3.065, allocations: 4.062 kB / 1.014 GB, free: 10.39 MB / 0.6667 GB (rm -f Buildings_maint.7.0.x_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Fluid_Interfaces_Examples_FourPortHeatMassExchanger_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Fluid_Interfaces_Examples_FourPortHeatMassExchanger.fmu > Buildings_maint.7.0.x_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe 2>&1)