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.001601/0.001601, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002026/0.002026, allocations: 193.8 kB / 16.53 MB, free: 6.664 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.249/2.249, allocations: 222.9 MB / 240.2 MB, free: 4.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.003579/0.003579, allocations: 271 kB / 290.7 MB, free: 2.008 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.607/1.607, allocations: 169.3 MB / 0.4982 GB, free: 13.93 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.003167/0.003168, allocations: 95.69 kB / 0.5953 GB, free: 28.01 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2341/0.2373, allocations: 86.98 MB / 0.6803 GB, free: 0.5664 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Interfaces.Examples.EightPortHeatMassExchanger): time 0.1257/0.3631, allocations: 77.13 MB / 0.7556 GB, free: 3.184 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.04324/0.4064, allocations: 18.89 MB / 0.774 GB, free: 256 kB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.006299/0.4128, allocations: 111.3 kB / 0.7742 GB, free: 144 kB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.4826/0.8954, allocations: 1.244 MB / 0.7754 GB, free: 7.812 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.02028/0.9158, allocations: 3.629 MB / 0.7789 GB, free: 7.797 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.01044/0.9262, allocations: 2.082 MB / 0.7809 GB, free: 7.766 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.01665/0.9429, allocations: 6.672 MB / 0.7875 GB, free: 7.758 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.006855/0.9498, allocations: 2.091 MB / 0.7895 GB, free: 7.52 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01006/0.9599, allocations: 2.292 MB / 0.7917 GB, free: 7.453 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00531/0.9653, allocations: 1.761 MB / 0.7935 GB, free: 7.125 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.001341/0.9667, allocations: 199.1 kB / 0.7937 GB, free: 7.125 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.008459/0.9752, allocations: 1.614 MB / 0.7952 GB, free: 7.094 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.001928/0.9772, allocations: 0.5387 MB / 0.7958 GB, free: 7.008 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.00448/0.9817, allocations: 1.247 MB / 0.797 GB, free: 6.668 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.01429/0.996, allocations: 3.715 MB / 0.8006 GB, free: 6.176 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 1.482e-05/0.9961, allocations: 0.5312 kB / 0.8006 GB, free: 6.176 MB / 0.5606 GB Notification: Performance of FrontEnd: time 4.428e-06/0.9962, allocations: 4 kB / 0.8006 GB, free: 6.172 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 0.0001879/0.9964, allocations: 0.5312 kB / 0.8006 GB, free: 6.172 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.01631/1.013, allocations: 2.717 MB / 0.8033 GB, free: 20.87 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 8.11e-05/1.013, allocations: 9.188 kB / 0.8033 GB, free: 20.87 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001011/1.014, allocations: 203.3 kB / 0.8035 GB, free: 20.83 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002032/1.016, allocations: 267.5 kB / 0.8037 GB, free: 20.7 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007361/1.023, allocations: 1.909 MB / 0.8056 GB, free: 20.22 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002044/1.024, allocations: 104.9 kB / 0.8057 GB, free: 20.21 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006939/1.024, allocations: 145 kB / 0.8058 GB, free: 20.21 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006165/1.03, allocations: 1.516 MB / 0.8073 GB, free: 19.98 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.822e-05/1.031, allocations: 5.438 kB / 0.8073 GB, free: 19.98 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003351/1.031, allocations: 59.34 kB / 0.8074 GB, free: 19.98 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.727e-05/1.031, allocations: 40.61 kB / 0.8074 GB, free: 19.98 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004458/1.036, allocations: 1.121 MB / 0.8085 GB, free: 19.96 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.01777/1.053, allocations: 7.658 MB / 0.816 GB, free: 15.68 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001873/1.055, allocations: 479.8 kB / 0.8164 GB, free: 15.65 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001281/1.057, allocations: 334 kB / 0.8168 GB, free: 15.64 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00149/1.058, allocations: 1.156 MB / 0.8179 GB, free: 14.32 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.593e-05/1.058, allocations: 46.12 kB / 0.8179 GB, free: 14.28 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=59): time 4.749e-06/1.058, allocations: 0 / 0.8179 GB, free: 14.28 MB / 0.5762 GB Notification: Performance of matching and sorting (n=59): time 0.004815/1.063, allocations: 0.9613 MB / 0.8189 GB, free: 14.14 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.9e-05/1.063, allocations: 58.28 kB / 0.8189 GB, free: 14.07 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005477/1.069, allocations: 1.787 MB / 0.8207 GB, free: 13.84 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 0.0003212/1.069, allocations: 43.33 kB / 0.8207 GB, free: 13.81 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.001279/1.07, allocations: 0.929 MB / 0.8216 GB, free: 13.49 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004147/1.071, allocations: 214.4 kB / 0.8218 GB, free: 13.36 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006093/1.071, allocations: 234.6 kB / 0.822 GB, free: 13.29 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0002215/1.072, allocations: 349.9 kB / 0.8224 GB, free: 12.96 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001373/1.073, allocations: 330.6 kB / 0.8227 GB, free: 12.86 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00181/1.075, allocations: 0.6916 MB / 0.8234 GB, free: 12.32 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003161/1.078, allocations: 1.013 MB / 0.8244 GB, free: 11.68 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2e-05/1.078, allocations: 2.844 kB / 0.8244 GB, free: 11.68 MB / 0.5762 GB Notification: Performance of matching and sorting (n=135) (initialization): time 0.005011/1.083, allocations: 1.218 MB / 0.8255 GB, free: 11.26 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 4.325e-05/1.083, allocations: 11.5 kB / 0.8256 GB, free: 11.26 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.508e-05/1.083, allocations: 8.5 kB / 0.8256 GB, free: 11.26 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.957e-05/1.083, allocations: 18.94 kB / 0.8256 GB, free: 11.25 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001942/1.085, allocations: 291.2 kB / 0.8259 GB, free: 11.24 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.24e-05/1.085, allocations: 23.89 kB / 0.8259 GB, free: 11.24 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003423/1.089, allocations: 163.8 kB / 0.826 GB, free: 11.15 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002096/1.089, allocations: 51.33 kB / 0.8261 GB, free: 11.14 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.00181/1.091, allocations: 436.3 kB / 0.8265 GB, free: 10.86 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001225/1.092, allocations: 198.3 kB / 0.8267 GB, free: 10.76 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003737/1.096, allocations: 0.8693 MB / 0.8275 GB, free: 10.43 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.422e-05/1.096, allocations: 8.578 kB / 0.8276 GB, free: 10.43 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.167e-05/1.096, allocations: 0 / 0.8276 GB, free: 10.43 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002389/1.098, allocations: 0.7934 MB / 0.8283 GB, free: 10 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0087/1.107, allocations: 2.45 MB / 0.8307 GB, free: 8.336 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.212e-05/1.107, allocations: 2.312 kB / 0.8307 GB, free: 8.336 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001507/1.109, allocations: 183.9 kB / 0.8309 GB, free: 8.289 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.679e-05/1.109, allocations: 7 kB / 0.8309 GB, free: 8.289 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.065e-05/1.109, allocations: 21.17 kB / 0.8309 GB, free: 8.273 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.209e-05/1.109, allocations: 9.062 kB / 0.8309 GB, free: 8.27 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.34e-06/1.109, allocations: 2.156 kB / 0.8309 GB, free: 8.27 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004985/1.114, allocations: 1.33 MB / 0.8322 GB, free: 7.484 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001536/1.115, allocations: 369.6 kB / 0.8326 GB, free: 7.176 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005648/1.116, allocations: 17.47 kB / 0.8326 GB, free: 7.164 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001843/1.118, allocations: 65.95 kB / 0.8327 GB, free: 7.133 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001778/1.118, allocations: 45.94 kB / 0.8327 GB, free: 7.109 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001157/1.118, allocations: 41.25 kB / 0.8327 GB, free: 7.094 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.003648/1.122, allocations: 1.235 MB / 0.834 GB, free: 6.41 MB / 0.5762 GB Notification: Performance of sort global known variables: time 7.42e-07/1.122, allocations: 3.938 kB / 0.834 GB, free: 6.406 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.00411/1.126, allocations: 0.6591 MB / 0.8346 GB, free: 6.242 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.007378/1.133, allocations: 2.391 MB / 0.8369 GB, free: 4.742 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.003923/1.137, allocations: 0.8862 MB / 0.8378 GB, free: 4.414 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 1.465e-05/1.137, allocations: 6.219 kB / 0.8378 GB, free: 4.41 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.001473/1.139, allocations: 353.4 kB / 0.8381 GB, free: 4.273 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01248/1.151, allocations: 1.208 MB / 0.8393 GB, free: 3.656 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04321/1.195, allocations: 14.23 MB / 0.8532 GB, free: 7.961 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002034/1.197, allocations: 1.416 MB / 0.8546 GB, free: 6.508 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.003579/1.2, allocations: 374.3 kB / 0.855 GB, free: 6.152 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001766/1.202, allocations: 0.7648 MB / 0.8557 GB, free: 5.387 MB / 0.5919 GB Notification: Performance of SimCode: time 1.744e-06/1.202, allocations: 2.719 kB / 0.8557 GB, free: 5.387 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1242/1.326, allocations: 57.35 MB / 0.9117 GB, free: 12.95 MB / 0.6544 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.98/15.3, allocations: 8.609 kB / 0.9117 GB, free: 12.94 MB / 0.6544 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 & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.EightPortHeatMassExchanger_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 BuildingSystems_BuildingSystems_Fluid_Interfaces_Examples_EightPortHeatMassExchanger.fmu > BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.EightPortHeatMassExchanger.pipe 2>&1)