Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.EightPortHeatMassExchanger.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: "" <> buildModelFMU(BuildingSystems.Fluid.Interfaces.Examples.EightPortHeatMassExchanger,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Interfaces_Examples_EightPortHeatMassExchanger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.Interfaces.Examples.EightPortHeatMassExchanger,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Interfaces_Examples_EightPortHeatMassExchanger",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001172/0.001172, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001216/0.001216, allocations: 189.5 kB / 16.25 MB, free: 6.625 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.245/1.245, allocations: 222.9 MB / 239.9 MB, free: 4.531 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001876/0.001876, allocations: 291.6 kB / 290.3 MB, free: 2.137 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8592/0.8592, allocations: 169.2 MB / 0.4978 GB, free: 14.08 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001763/0.001763, allocations: 94.44 kB / 0.5948 GB, free: 28.11 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.12/0.1218, allocations: 86.99 MB / 0.6797 GB, free: 0.9844 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Interfaces.Examples.EightPortHeatMassExchanger): time 0.0576/0.1795, allocations: 76.47 MB / 0.7544 GB, free: 4.281 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.01996/0.1994, allocations: 18.76 MB / 0.7727 GB, free: 1.477 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001963/0.2014, allocations: 99.38 kB / 0.7728 GB, free: 1.379 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.002088/0.2036, allocations: 1.092 MB / 0.7739 GB, free: 288 kB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.2403/0.4439, allocations: 3.382 MB / 0.7772 GB, free: 8.699 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.003944/0.4478, allocations: 1.932 MB / 0.7791 GB, free: 8.688 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.006564/0.4544, allocations: 6.715 MB / 0.7856 GB, free: 8.68 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001948/0.4564, allocations: 2.067 MB / 0.7877 GB, free: 8.449 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003763/0.4601, allocations: 2.34 MB / 0.7899 GB, free: 8.43 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001437/0.4616, allocations: 1.818 MB / 0.7917 GB, free: 8.102 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.000207/0.4618, allocations: 199.5 kB / 0.7919 GB, free: 8.102 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002668/0.4645, allocations: 1.641 MB / 0.7935 GB, free: 8.074 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0003835/0.4649, allocations: 0.5408 MB / 0.794 GB, free: 7.988 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0008752/0.4657, allocations: 1.252 MB / 0.7953 GB, free: 7.648 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.003118/0.4689, allocations: 3.728 MB / 0.7989 GB, free: 7.16 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.527e-06/0.4689, allocations: 3.125 kB / 0.7989 GB, free: 7.16 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.112e-06/0.4689, allocations: 0 / 0.7989 GB, free: 7.16 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 2.069e-05/0.4689, allocations: 0 / 0.7989 GB, free: 7.16 MB / 0.5606 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 344 * Number of variables: 344 Notification: Performance of Generate backend data structure: time 0.003729/0.4726, allocations: 2.718 MB / 0.8016 GB, free: 21.86 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.261e-05/0.4727, allocations: 14.41 kB / 0.8016 GB, free: 21.86 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001867/0.4729, allocations: 200.2 kB / 0.8018 GB, free: 21.81 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005524/0.4734, allocations: 265.1 kB / 0.802 GB, free: 21.69 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002189/0.4756, allocations: 1.978 MB / 0.8039 GB, free: 21.2 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.061e-05/0.4757, allocations: 113.5 kB / 0.8041 GB, free: 21.19 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000161/0.4759, allocations: 140.4 kB / 0.8042 GB, free: 21.19 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002104/0.478, allocations: 1.513 MB / 0.8057 GB, free: 20.96 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.109e-05/0.478, allocations: 7.625 kB / 0.8057 GB, free: 20.96 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001014/0.4781, allocations: 62.28 kB / 0.8057 GB, free: 20.96 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.825e-05/0.4782, allocations: 36.19 kB / 0.8058 GB, free: 20.96 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001769/0.4799, allocations: 1.127 MB / 0.8069 GB, free: 20.94 MB / 0.5762 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.005969/0.4859, allocations: 7.564 MB / 0.8143 GB, free: 16.68 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007487/0.4867, allocations: 479.6 kB / 0.8147 GB, free: 16.64 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005027/0.4872, allocations: 338.8 kB / 0.815 GB, free: 16.63 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000724/0.4879, allocations: 1.155 MB / 0.8162 GB, free: 15.32 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.284e-05/0.4879, allocations: 42.38 kB / 0.8162 GB, free: 15.28 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=59): time 1.794e-06/0.488, allocations: 0 / 0.8162 GB, free: 15.28 MB / 0.5762 GB Notification: Performance of matching and sorting (n=59): time 0.001724/0.4897, allocations: 0.9581 MB / 0.8171 GB, free: 15.13 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.688e-05/0.4897, allocations: 60.19 kB / 0.8172 GB, free: 15.07 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001597/0.4913, allocations: 1.76 MB / 0.8189 GB, free: 14.84 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 5.726e-05/0.4914, allocations: 41.11 kB / 0.819 GB, free: 14.81 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004702/0.4919, allocations: 0.9371 MB / 0.8199 GB, free: 14.49 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.000123/0.492, allocations: 220.8 kB / 0.8201 GB, free: 14.35 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000216/0.4922, allocations: 225.3 kB / 0.8203 GB, free: 14.32 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.000133/0.4924, allocations: 347.4 kB / 0.8206 GB, free: 14.02 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000552/0.4929, allocations: 330.2 kB / 0.8209 GB, free: 14.02 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006645/0.4936, allocations: 0.6858 MB / 0.8216 GB, free: 13.61 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001163/0.4948, allocations: 1.018 MB / 0.8226 GB, free: 13.21 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.069e-06/0.4948, allocations: 6.375 kB / 0.8226 GB, free: 13.21 MB / 0.5762 GB Notification: Performance of matching and sorting (n=135) (initialization): time 0.001653/0.4964, allocations: 1.221 MB / 0.8238 GB, free: 12.94 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.511e-05/0.4965, allocations: 7.719 kB / 0.8238 GB, free: 12.94 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.08e-05/0.4965, allocations: 13.55 kB / 0.8238 GB, free: 12.93 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.922e-05/0.4965, allocations: 15.84 kB / 0.8238 GB, free: 12.93 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008229/0.4973, allocations: 298.1 kB / 0.8241 GB, free: 12.92 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.539e-05/0.4974, allocations: 19.73 kB / 0.8241 GB, free: 12.92 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001139/0.4985, allocations: 231.2 kB / 0.8244 GB, free: 12.82 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.569e-05/0.4986, allocations: 55.23 kB / 0.8244 GB, free: 12.81 MB / 0.5762 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 45 * 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 (135): * Single equations (assignments): 135 * 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.0004347/0.499, allocations: 430.2 kB / 0.8248 GB, free: 12.54 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002144/0.4992, allocations: 197.5 kB / 0.825 GB, free: 12.43 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001341/0.5006, allocations: 0.8702 MB / 0.8259 GB, free: 12.11 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.613e-05/0.5006, allocations: 9.734 kB / 0.8259 GB, free: 12.11 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.038e-06/0.5006, allocations: 0 / 0.8259 GB, free: 12.11 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001058/0.5017, allocations: 0.7973 MB / 0.8266 GB, free: 11.67 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0028/0.5045, allocations: 2.434 MB / 0.829 GB, free: 10.53 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.539e-06/0.5045, allocations: 5.078 kB / 0.829 GB, free: 10.53 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006518/0.5052, allocations: 180.5 kB / 0.8292 GB, free: 10.52 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.288e-06/0.5052, allocations: 2.656 kB / 0.8292 GB, free: 10.52 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.534e-05/0.5052, allocations: 23.38 kB / 0.8292 GB, free: 10.51 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.997e-06/0.5052, allocations: 5.438 kB / 0.8292 GB, free: 10.51 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.044e-06/0.5052, allocations: 2.812 kB / 0.8292 GB, free: 10.51 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001771/0.507, allocations: 1.334 MB / 0.8305 GB, free: 9.867 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003954/0.5074, allocations: 363.2 kB / 0.8309 GB, free: 9.605 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002048/0.5076, allocations: 21.03 kB / 0.8309 GB, free: 9.594 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009662/0.5086, allocations: 121.7 kB / 0.831 GB, free: 9.566 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.62e-05/0.5087, allocations: 47.45 kB / 0.8311 GB, free: 9.551 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.156e-05/0.5087, allocations: 37.31 kB / 0.8311 GB, free: 9.539 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.001122/0.5099, allocations: 1.221 MB / 0.8323 GB, free: 8.859 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.392e-06/0.5099, allocations: 0 / 0.8323 GB, free: 8.859 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.001309/0.5112, allocations: 0.6418 MB / 0.8329 GB, free: 8.707 MB / 0.5762 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 4 (eigPor.vol1.dynBal.U,eigPor.vol2.dynBal.U,eigPor.vol3.dynBal.U,eigPor.vol4.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 (64): * Single equations (assignments): 59 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 5 * 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.002998/0.5142, allocations: 2.36 MB / 0.8352 GB, free: 7.223 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.001517/0.5157, allocations: 0.8933 MB / 0.8361 GB, free: 6.887 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 4.869e-06/0.5157, allocations: 7.688 kB / 0.8361 GB, free: 6.883 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0005768/0.5163, allocations: 350.1 kB / 0.8364 GB, free: 6.75 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004048/0.5204, allocations: 1.208 MB / 0.8376 GB, free: 6.137 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02296/0.5433, allocations: 14.73 MB / 0.852 GB, free: 10.36 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008275/0.5442, allocations: 1.409 MB / 0.8534 GB, free: 8.918 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.001382/0.5456, allocations: 382.1 kB / 0.8537 GB, free: 8.555 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000856/0.5465, allocations: 0.7648 MB / 0.8545 GB, free: 7.789 MB / 0.5919 GB Notification: Performance of SimCode: time 4.71e-07/0.5465, allocations: 0 / 0.8545 GB, free: 7.789 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8937/1.44, allocations: 56.24 MB / 0.9094 GB, free: 0.5625 MB / 0.6387 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002466/1.44, allocations: 270.1 kB / 0.9097 GB, free: 212 kB / 0.6387 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.143/4.583, allocations: 0 / 0.9097 GB, free: 212 kB / 0.6387 GB (rm -f BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.EightPortHeatMassExchanger.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.EightPortHeatMassExchanger.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.EightPortHeatMassExchanger.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.EightPortHeatMassExchanger.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_Interfaces_Examples_EightPortHeatMassExchanger_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Fluid_Interfaces_Examples_EightPortHeatMassExchanger.fmu > BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.EightPortHeatMassExchanger.pipe 2>&1)