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.65/1.65, allocations: 252 MB / 267.3 MB, free: 10.87 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.001147/0.001147, allocations: 177.9 kB / 327 MB, free: 2.102 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.669/1.669, allocations: 205.4 MB / 0.578 GB, free: 20.13 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.000785/0.0007851, allocations: 87.59 kB / 0.6826 GB, free: 12.77 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003141/0.0003142, allocations: 8.188 kB / 0.7971 GB, free: 135.1 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1729/0.1733, allocations: 106.3 MB / 0.9009 GB, free: 63.39 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger): time 0.02853/0.2018, allocations: 40.5 MB / 0.9405 GB, free: 22.74 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.01019/0.2121, allocations: 10.22 MB / 0.9504 GB, free: 12.5 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001237/0.2133, allocations: 47.69 kB / 0.9505 GB, free: 12.46 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 0.001148/0.2145, allocations: 0.5244 MB / 0.951 GB, free: 11.93 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 0.003209/0.2177, allocations: 1.74 MB / 0.9527 GB, free: 10.18 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.001981/0.2197, allocations: 1.045 MB / 0.9537 GB, free: 9.148 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.003175/0.2229, allocations: 4.497 MB / 0.9581 GB, free: 4.645 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001115/0.224, allocations: 0.8498 MB / 0.9589 GB, free: 3.773 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001211/0.2252, allocations: 1.034 MB / 0.9599 GB, free: 2.734 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006821/0.2259, allocations: 0.8592 MB / 0.9608 GB, free: 1.871 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 8.475e-05/0.226, allocations: 40 kB / 0.9608 GB, free: 1.832 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001407/0.2274, allocations: 0.7715 MB / 0.9616 GB, free: 1.059 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 0.0001591/0.2276, allocations: 207 kB / 0.9618 GB, free: 0.8555 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 0.000376/0.228, allocations: 0.5768 MB / 0.9623 GB, free: 276 kB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.001802/0.2298, allocations: 1.815 MB / 0.9641 GB, free: 14.45 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 3.437e-06/0.2298, allocations: 4 kB / 0.9641 GB, free: 14.45 MB / 0.6198 GB Notification: Performance of FrontEnd: time 3.186e-06/0.2298, allocations: 0 / 0.9641 GB, free: 14.45 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 1.193e-05/0.2299, allocations: 3.938 kB / 0.9641 GB, free: 14.44 MB / 0.6198 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.001938/0.2318, allocations: 1.297 MB / 0.9654 GB, free: 13.09 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.256e-05/0.2318, allocations: 8.031 kB / 0.9654 GB, free: 13.08 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001404/0.232, allocations: 118.7 kB / 0.9655 GB, free: 12.96 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002824/0.2323, allocations: 135.4 kB / 0.9656 GB, free: 12.82 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001519/0.2338, allocations: 1.056 MB / 0.9667 GB, free: 11.73 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.438e-05/0.2339, allocations: 54 kB / 0.9667 GB, free: 11.67 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001034/0.234, allocations: 75.98 kB / 0.9668 GB, free: 11.6 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001283/0.2353, allocations: 0.7944 MB / 0.9676 GB, free: 10.77 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.12e-05/0.2353, allocations: 3.938 kB / 0.9676 GB, free: 10.77 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.212e-05/0.2354, allocations: 32 kB / 0.9676 GB, free: 10.73 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.226e-05/0.2354, allocations: 16 kB / 0.9676 GB, free: 10.72 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001129/0.2365, allocations: 0.5906 MB / 0.9682 GB, free: 10.13 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.003624/0.2402, allocations: 3.54 MB / 0.9716 GB, free: 6.355 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005759/0.2408, allocations: 270.4 kB / 0.9719 GB, free: 6.082 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003521/0.2411, allocations: 188.8 kB / 0.9721 GB, free: 5.895 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004784/0.2416, allocations: 0.6609 MB / 0.9727 GB, free: 5.086 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.263e-05/0.2417, allocations: 38.56 kB / 0.9728 GB, free: 5.039 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=31): time 1.563e-06/0.2417, allocations: 4 kB / 0.9728 GB, free: 5.035 MB / 0.6198 GB Notification: Performance of matching and sorting (n=31): time 0.001107/0.2428, allocations: 0.5372 MB / 0.9733 GB, free: 4.492 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.071e-05/0.2428, allocations: 55.41 kB / 0.9734 GB, free: 4.426 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001067/0.2439, allocations: 0.9215 MB / 0.9743 GB, free: 3.484 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 3.813e-05/0.2439, allocations: 37.7 kB / 0.9743 GB, free: 3.441 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003658/0.2443, allocations: 0.4917 MB / 0.9748 GB, free: 2.941 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 9.496e-05/0.2444, allocations: 110.4 kB / 0.9749 GB, free: 2.832 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.307e-05/0.2445, allocations: 12 kB / 0.9749 GB, free: 2.82 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 0.0001315/0.2446, allocations: 329.9 kB / 0.9752 GB, free: 2.492 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003695/0.245, allocations: 181 kB / 0.9754 GB, free: 2.312 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004803/0.2455, allocations: 354.9 kB / 0.9757 GB, free: 1.895 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000842/0.2463, allocations: 0.5459 MB / 0.9762 GB, free: 1.277 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.487e-06/0.2463, allocations: 0 / 0.9762 GB, free: 1.277 MB / 0.6198 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001096/0.2474, allocations: 0.6366 MB / 0.9769 GB, free: 0.6328 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.638e-05/0.2475, allocations: 8 kB / 0.9769 GB, free: 0.625 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.175e-06/0.2475, allocations: 4 kB / 0.9769 GB, free: 0.6211 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.919e-05/0.2475, allocations: 8 kB / 0.9769 GB, free: 0.6133 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00045/0.2479, allocations: 136.2 kB / 0.977 GB, free: 492 kB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.448e-05/0.248, allocations: 11.94 kB / 0.977 GB, free: 480 kB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006527/0.2486, allocations: 119.1 kB / 0.9771 GB, free: 360 kB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.403e-05/0.2487, allocations: 24 kB / 0.9772 GB, free: 336 kB / 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000315/0.249, allocations: 269.9 kB / 0.9774 GB, free: 56 kB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001381/0.2492, allocations: 103 kB / 0.9775 GB, free: 15.95 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009644/0.2501, allocations: 0.4962 MB / 0.978 GB, free: 15.45 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.256e-06/0.2502, allocations: 3.984 kB / 0.978 GB, free: 15.44 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.318e-06/0.2502, allocations: 4 kB / 0.978 GB, free: 15.44 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000742/0.2509, allocations: 480.7 kB / 0.9785 GB, free: 14.94 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001979/0.2529, allocations: 1.362 MB / 0.9798 GB, free: 13.5 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.474e-06/0.2529, allocations: 12 kB / 0.9798 GB, free: 13.49 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003412/0.2533, allocations: 79.89 kB / 0.9799 GB, free: 13.41 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.18e-06/0.2533, allocations: 4 kB / 0.9799 GB, free: 13.41 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.879e-05/0.2533, allocations: 11.98 kB / 0.9799 GB, free: 13.4 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.207e-06/0.2533, allocations: 4.094 kB / 0.9799 GB, free: 13.39 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.585e-06/0.2533, allocations: 8 kB / 0.9799 GB, free: 13.39 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001241/0.2546, allocations: 0.7812 MB / 0.9807 GB, free: 12.57 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002952/0.2549, allocations: 243.7 kB / 0.9809 GB, free: 12.32 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001061/0.255, allocations: 8 kB / 0.9809 GB, free: 12.31 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005795/0.2556, allocations: 63.78 kB / 0.981 GB, free: 12.25 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.552e-05/0.2557, allocations: 23.97 kB / 0.981 GB, free: 12.22 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.291e-05/0.2557, allocations: 19.98 kB / 0.981 GB, free: 12.2 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 0.000777/0.2565, allocations: 0.643 MB / 0.9816 GB, free: 11.55 MB / 0.6355 GB Notification: Performance of sort global known variables: time 1.6e-07/0.2565, allocations: 7.938 kB / 0.9817 GB, free: 11.54 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0008381/0.2574, allocations: 335.4 kB / 0.982 GB, free: 11.21 MB / 0.6355 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.002083/0.2595, allocations: 1.607 MB / 0.9835 GB, free: 9.574 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0008298/0.2603, allocations: 437 kB / 0.984 GB, free: 9.148 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.2603, allocations: 0 / 0.984 GB, free: 9.148 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 0.0003969/0.2607, allocations: 199.7 kB / 0.9841 GB, free: 8.953 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002887/0.2636, allocations: 0.6043 MB / 0.9847 GB, free: 8.363 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01444/0.2781, allocations: 7.558 MB / 0.9921 GB, free: 424 kB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008772/0.279, allocations: 1.036 MB / 0.9931 GB, free: 15.35 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 0.001261/0.2802, allocations: 195.4 kB / 0.9933 GB, free: 15.16 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007257/0.281, allocations: 371.2 kB / 0.9937 GB, free: 14.79 MB / 0.6511 GB Notification: Performance of SimCode: time 7.11e-07/0.281, allocations: 0 / 0.9937 GB, free: 14.79 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06841/0.3494, allocations: 28.2 MB / 1.021 GB, free: 2.914 MB / 0.6667 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003087/0.3498, allocations: 277.9 kB / 1.021 GB, free: 2.543 MB / 0.6667 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.146/3.496, allocations: 2.953 kB / 1.021 GB, free: 2.543 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)