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.004888/0.004888, allocations: 99.34 kB / 15.73 MB, free: 6.008 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.001164/0.001164, allocations: 195.8 kB / 16.68 MB, free: 5.934 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.381/1.381, allocations: 222.9 MB / 240.4 MB, free: 4.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002322/0.002322, allocations: 278.1 kB / 290.8 MB, free: 1.945 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9537/0.9537, allocations: 169.3 MB / 0.4983 GB, free: 13.82 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00174/0.00174, allocations: 92.28 kB / 0.681 GB, free: 15.98 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1889/0.1907, allocations: 86.97 MB / 0.7659 GB, free: 8.926 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Interfaces.Examples.EightPortHeatMassExchanger): time 0.5447/0.7354, allocations: 77.15 MB / 0.8412 GB, free: 11.82 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.03059/0.766, allocations: 18.88 MB / 0.8597 GB, free: 12.56 MB / 0.6231 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.006162/0.7723, allocations: 113.5 kB / 0.8598 GB, free: 12.52 MB / 0.6231 GB Notification: Performance of NFTyping.typeComponents: time 0.004829/0.7772, allocations: 1.295 MB / 0.8611 GB, free: 11.42 MB / 0.6231 GB Notification: Performance of NFTyping.typeBindings: time 0.01215/0.7893, allocations: 3.806 MB / 0.8648 GB, free: 8.406 MB / 0.6231 GB Notification: Performance of NFTyping.typeClassSections: time 0.006319/0.7957, allocations: 2.103 MB / 0.8668 GB, free: 6.781 MB / 0.6231 GB Notification: Performance of NFFlatten.flatten: time 0.01172/0.8074, allocations: 6.694 MB / 0.8734 GB, free: 2.848 MB / 0.6231 GB Notification: Performance of NFFlatten.resolveConnections: time 0.005676/0.8131, allocations: 2.088 MB / 0.8754 GB, free: 1.527 MB / 0.6231 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0083/0.8215, allocations: 2.378 MB / 0.8777 GB, free: 128 kB / 0.6231 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004386/0.8259, allocations: 1.758 MB / 0.8794 GB, free: 15.06 MB / 0.6387 GB Notification: Performance of NFPackage.collectConstants: time 0.0009811/0.8269, allocations: 200.5 kB / 0.8796 GB, free: 14.88 MB / 0.6387 GB Notification: Performance of NFFlatten.collectFunctions: time 0.006012/0.8329, allocations: 1.626 MB / 0.8812 GB, free: 13.25 MB / 0.6387 GB Notification: Performance of NFScalarize.scalarize: time 0.001269/0.8342, allocations: 0.5371 MB / 0.8818 GB, free: 12.71 MB / 0.6387 GB Notification: Performance of NFVerifyModel.verify: time 0.003337/0.8376, allocations: 1.252 MB / 0.883 GB, free: 11.46 MB / 0.6387 GB Notification: Performance of NFConvertDAE.convert: time 0.009606/0.8472, allocations: 3.758 MB / 0.8866 GB, free: 7.691 MB / 0.6387 GB Notification: Performance of FrontEnd - DAE generated: time 7.534e-06/0.8472, allocations: 0 / 0.8866 GB, free: 7.691 MB / 0.6387 GB Notification: Performance of FrontEnd: time 1.984e-06/0.8472, allocations: 8 kB / 0.8867 GB, free: 7.684 MB / 0.6387 GB Notification: Performance of Transformations before backend: time 0.0001378/0.8474, allocations: 0 / 0.8867 GB, free: 7.684 MB / 0.6387 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.006846/0.8542, allocations: 2.794 MB / 0.8894 GB, free: 4.82 MB / 0.6387 GB Notification: Performance of prepare preOptimizeDAE: time 4.435e-05/0.8543, allocations: 8.031 kB / 0.8894 GB, free: 4.812 MB / 0.6387 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004172/0.8547, allocations: 198.8 kB / 0.8896 GB, free: 4.609 MB / 0.6387 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009935/0.8557, allocations: 279.5 kB / 0.8898 GB, free: 4.336 MB / 0.6387 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004085/0.8598, allocations: 2.043 MB / 0.8918 GB, free: 2.246 MB / 0.6387 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.018e-05/0.8599, allocations: 106.7 kB / 0.8919 GB, free: 2.141 MB / 0.6387 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002464/0.8602, allocations: 144 kB / 0.8921 GB, free: 2 MB / 0.6387 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002869/0.8631, allocations: 1.509 MB / 0.8936 GB, free: 424 kB / 0.6387 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.187e-05/0.8632, allocations: 15.89 kB / 0.8936 GB, free: 408 kB / 0.6387 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001587/0.8633, allocations: 55.98 kB / 0.8936 GB, free: 352 kB / 0.6387 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.253e-05/0.8634, allocations: 47.98 kB / 0.8937 GB, free: 304 kB / 0.6387 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002665/0.8661, allocations: 1.123 MB / 0.8948 GB, free: 15.16 MB / 0.6544 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.01008/0.8762, allocations: 7.616 MB / 0.9022 GB, free: 6.973 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00103/0.8772, allocations: 477.1 kB / 0.9027 GB, free: 6.5 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006398/0.8779, allocations: 337.2 kB / 0.903 GB, free: 6.172 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009102/0.8788, allocations: 1.156 MB / 0.9041 GB, free: 4.758 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.917e-05/0.8789, allocations: 43.12 kB / 0.9041 GB, free: 4.707 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=59): time 3.056e-06/0.8789, allocations: 0 / 0.9041 GB, free: 4.707 MB / 0.6544 GB Notification: Performance of matching and sorting (n=59): time 0.002677/0.8815, allocations: 0.9701 MB / 0.9051 GB, free: 3.73 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.429e-05/0.8816, allocations: 63.97 kB / 0.9052 GB, free: 3.656 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003061/0.8847, allocations: 1.787 MB / 0.9069 GB, free: 1.832 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 0.000164/0.8849, allocations: 37.7 kB / 0.9069 GB, free: 1.789 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 0.000791/0.8856, allocations: 0.9451 MB / 0.9079 GB, free: 0.8359 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002276/0.8859, allocations: 234 kB / 0.9081 GB, free: 0.6055 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003118/0.8862, allocations: 222.8 kB / 0.9083 GB, free: 392 kB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 0.0001316/0.8863, allocations: 361.8 kB / 0.9086 GB, free: 24 kB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007399/0.8871, allocations: 330.4 kB / 0.909 GB, free: 15.7 MB / 0.67 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00104/0.8881, allocations: 0.6899 MB / 0.9096 GB, free: 14.86 MB / 0.67 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001707/0.8899, allocations: 1.012 MB / 0.9106 GB, free: 13.72 MB / 0.67 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.905e-06/0.8899, allocations: 0 / 0.9106 GB, free: 13.72 MB / 0.67 GB Notification: Performance of matching and sorting (n=135) (initialization): time 0.00263/0.8925, allocations: 1.222 MB / 0.9118 GB, free: 12.49 MB / 0.67 GB Notification: Performance of prepare postOptimizeDAE: time 2.534e-05/0.8926, allocations: 12.88 kB / 0.9118 GB, free: 12.48 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.709e-05/0.8926, allocations: 11.98 kB / 0.9118 GB, free: 12.46 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.957e-05/0.8926, allocations: 20 kB / 0.9119 GB, free: 12.45 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001024/0.8936, allocations: 287.5 kB / 0.9121 GB, free: 12.16 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.833e-05/0.8937, allocations: 19.94 kB / 0.9121 GB, free: 12.14 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001355/0.895, allocations: 174.9 kB / 0.9123 GB, free: 11.97 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000103/0.8952, allocations: 51.98 kB / 0.9124 GB, free: 11.92 MB / 0.67 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.0007932/0.896, allocations: 438 kB / 0.9128 GB, free: 11.48 MB / 0.67 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005435/0.8965, allocations: 202.7 kB / 0.913 GB, free: 11.29 MB / 0.67 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001847/0.8984, allocations: 0.8666 MB / 0.9138 GB, free: 10.41 MB / 0.67 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.577e-05/0.8984, allocations: 8 kB / 0.9138 GB, free: 10.4 MB / 0.67 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.392e-06/0.8984, allocations: 0 / 0.9138 GB, free: 10.4 MB / 0.67 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001366/0.8998, allocations: 0.7957 MB / 0.9146 GB, free: 9.562 MB / 0.67 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004583/0.9044, allocations: 2.443 MB / 0.917 GB, free: 7.027 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.097e-06/0.9044, allocations: 3.938 kB / 0.917 GB, free: 7.023 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007924/0.9052, allocations: 183.7 kB / 0.9172 GB, free: 6.844 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.238e-05/0.9052, allocations: 4.25 kB / 0.9172 GB, free: 6.84 MB / 0.67 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.866e-05/0.9053, allocations: 20 kB / 0.9172 GB, free: 6.82 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.795e-06/0.9053, allocations: 4 kB / 0.9172 GB, free: 6.816 MB / 0.67 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.208e-06/0.9053, allocations: 3.938 kB / 0.9172 GB, free: 6.812 MB / 0.67 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002496/0.9078, allocations: 1.341 MB / 0.9185 GB, free: 5.43 MB / 0.67 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000772/0.9086, allocations: 383.4 kB / 0.9189 GB, free: 5.035 MB / 0.67 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003722/0.909, allocations: 12 kB / 0.9189 GB, free: 5.023 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00117/0.9102, allocations: 75.8 kB / 0.919 GB, free: 4.949 MB / 0.67 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001185/0.9103, allocations: 48.44 kB / 0.919 GB, free: 4.902 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.426e-05/0.9104, allocations: 39.97 kB / 0.919 GB, free: 4.863 MB / 0.67 GB Notification: Performance of sorting global known variables: time 0.001917/0.9123, allocations: 1.235 MB / 0.9202 GB, free: 3.609 MB / 0.67 GB Notification: Performance of sort global known variables: time 2.71e-07/0.9123, allocations: 0 / 0.9202 GB, free: 3.609 MB / 0.67 GB Notification: Performance of remove unused functions: time 0.001949/0.9143, allocations: 0.6626 MB / 0.9209 GB, free: 2.945 MB / 0.67 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.004099/0.9184, allocations: 2.409 MB / 0.9232 GB, free: 0.4922 MB / 0.67 GB Notification: Performance of simCode: created initialization part: time 0.001869/0.9203, allocations: 0.8242 MB / 0.9241 GB, free: 15.67 MB / 0.6856 GB Notification: Performance of simCode: created event and clocks part: time 6.983e-06/0.9203, allocations: 4 kB / 0.9241 GB, free: 15.66 MB / 0.6856 GB Notification: Performance of simCode: created simulation system equations: time 0.0007219/0.921, allocations: 350.9 kB / 0.9244 GB, free: 15.32 MB / 0.6856 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005617/0.9266, allocations: 1.207 MB / 0.9256 GB, free: 14.14 MB / 0.6856 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02208/0.9487, allocations: 12.63 MB / 0.9379 GB, free: 1 MB / 0.6856 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001413/0.9502, allocations: 1.401 MB / 0.9393 GB, free: 15.56 MB / 0.7012 GB Notification: Performance of simCode: alias equations: time 0.001828/0.9521, allocations: 383.5 kB / 0.9396 GB, free: 15.2 MB / 0.7012 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001181/0.9533, allocations: 0.7648 MB / 0.9404 GB, free: 14.43 MB / 0.7012 GB Notification: Performance of SimCode: time 9.32e-07/0.9533, allocations: 0 / 0.9404 GB, free: 14.43 MB / 0.7012 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1078/1.061, allocations: 57.64 MB / 0.9967 GB, free: 5.531 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.03/12.09, allocations: 11.03 kB / 0.9967 GB, free: 5.523 MB / 0.7481 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)