Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/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 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(Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger,fileNamePrefix="Buildings_8_Buildings_Fluid_Interfaces_Examples_FourPortHeatMassExchanger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger,fileNamePrefix="Buildings_8_Buildings_Fluid_Interfaces_Examples_FourPortHeatMassExchanger",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.001542/0.001542, allocations: 105.4 kB / 15.7 MB, free: 24 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.001734/0.001734, allocations: 194.7 kB / 16.64 MB, free: 6.453 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.411/1.411, allocations: 205.1 MB / 222.5 MB, free: 4.504 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.661/1.661, allocations: 292.3 MB / 0.549 GB, free: 12.71 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001481/0.001481, allocations: 68.48 kB / 0.6718 GB, free: 26.2 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2892/0.2907, allocations: 114.5 MB / 0.7836 GB, free: 13.24 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger): time 0.0411/0.3319, allocations: 41.58 MB / 0.8242 GB, free: 3.496 MB / 0.6387 GB Notification: Performance of NFInst.instExpressions: time 0.01576/0.3477, allocations: 10.31 MB / 0.8343 GB, free: 9.168 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002762/0.3505, allocations: 59.69 kB / 0.8344 GB, free: 9.109 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 0.002431/0.3531, allocations: 0.6365 MB / 0.835 GB, free: 8.469 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 0.006361/0.3594, allocations: 1.87 MB / 0.8368 GB, free: 6.59 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.003552/0.363, allocations: 1.193 MB / 0.838 GB, free: 5.406 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.005568/0.3686, allocations: 3.386 MB / 0.8413 GB, free: 2.012 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001899/0.3706, allocations: 1.064 MB / 0.8423 GB, free: 0.9297 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003616/0.3742, allocations: 1.231 MB / 0.8435 GB, free: 15.7 MB / 0.67 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001732/0.3759, allocations: 0.8789 MB / 0.8444 GB, free: 14.82 MB / 0.67 GB Notification: Performance of NFPackage.collectConstants: time 0.0002084/0.3762, allocations: 100 kB / 0.8445 GB, free: 14.72 MB / 0.67 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002436/0.3786, allocations: 0.8617 MB / 0.8453 GB, free: 13.86 MB / 0.67 GB Notification: Performance of NFScalarize.scalarize: time 0.000358/0.379, allocations: 287 kB / 0.8456 GB, free: 13.57 MB / 0.67 GB Notification: Performance of NFVerifyModel.verify: time 0.0009382/0.3799, allocations: 0.6337 MB / 0.8462 GB, free: 12.94 MB / 0.67 GB Notification: Performance of NFConvertDAE.convert: time 0.003464/0.3834, allocations: 1.912 MB / 0.8481 GB, free: 11.02 MB / 0.67 GB Notification: Performance of FrontEnd - DAE generated: time 9.458e-06/0.3835, allocations: 7.984 kB / 0.8481 GB, free: 11.01 MB / 0.67 GB Notification: Performance of FrontEnd: time 1.973e-06/0.3835, allocations: 0 / 0.8481 GB, free: 11.01 MB / 0.67 GB Notification: Performance of Transformations before backend: time 2.387e-05/0.3835, allocations: 4 kB / 0.8481 GB, free: 11.01 MB / 0.67 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.002708/0.3862, allocations: 1.503 MB / 0.8496 GB, free: 9.453 MB / 0.67 GB Notification: Performance of prepare preOptimizeDAE: time 5.462e-05/0.3863, allocations: 16.02 kB / 0.8496 GB, free: 9.438 MB / 0.67 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001366/0.3864, allocations: 118.6 kB / 0.8497 GB, free: 9.312 MB / 0.67 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003669/0.3868, allocations: 127.5 kB / 0.8498 GB, free: 9.188 MB / 0.67 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001807/0.3886, allocations: 1.092 MB / 0.8509 GB, free: 8.051 MB / 0.67 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.738e-05/0.3887, allocations: 50 kB / 0.8509 GB, free: 8.004 MB / 0.67 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001036/0.3888, allocations: 79.89 kB / 0.851 GB, free: 7.926 MB / 0.67 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001378/0.3902, allocations: 0.7905 MB / 0.8518 GB, free: 7.098 MB / 0.67 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.64e-05/0.3902, allocations: 0 / 0.8518 GB, free: 7.098 MB / 0.67 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.668e-05/0.3903, allocations: 35.98 kB / 0.8518 GB, free: 7.062 MB / 0.67 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.112e-05/0.3903, allocations: 23.98 kB / 0.8518 GB, free: 7.039 MB / 0.67 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001059/0.3914, allocations: 0.5711 MB / 0.8524 GB, free: 6.469 MB / 0.67 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.004435/0.3959, allocations: 3.547 MB / 0.8558 GB, free: 2.691 MB / 0.67 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006341/0.3965, allocations: 254.4 kB / 0.8561 GB, free: 2.434 MB / 0.67 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003469/0.3969, allocations: 176.8 kB / 0.8563 GB, free: 2.258 MB / 0.67 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005587/0.3974, allocations: 0.6571 MB / 0.8569 GB, free: 1.453 MB / 0.67 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.218e-05/0.3975, allocations: 38.56 kB / 0.8569 GB, free: 1.406 MB / 0.67 GB Notification: Performance of pre-optimization done (n=31): time 3.867e-06/0.3975, allocations: 0 / 0.8569 GB, free: 1.406 MB / 0.67 GB Notification: Performance of matching and sorting (n=31): time 0.001353/0.3989, allocations: 0.5139 MB / 0.8574 GB, free: 0.8867 MB / 0.67 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.206e-05/0.3989, allocations: 63.39 kB / 0.8575 GB, free: 0.8125 MB / 0.67 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001185/0.4001, allocations: 0.9371 MB / 0.8584 GB, free: 15.86 MB / 0.6856 GB Notification: Performance of collectPreVariables (initialization): time 4.876e-05/0.4002, allocations: 33.7 kB / 0.8584 GB, free: 15.82 MB / 0.6856 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003658/0.4006, allocations: 499.6 kB / 0.8589 GB, free: 15.32 MB / 0.6856 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001146/0.4007, allocations: 114.4 kB / 0.859 GB, free: 15.21 MB / 0.6856 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001684/0.4009, allocations: 114.1 kB / 0.8591 GB, free: 15.09 MB / 0.6856 GB Notification: Performance of setup shared object (initialization): time 0.0001306/0.401, allocations: 333.9 kB / 0.8595 GB, free: 14.76 MB / 0.6856 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003491/0.4014, allocations: 165 kB / 0.8596 GB, free: 14.6 MB / 0.6856 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000484/0.4019, allocations: 350.8 kB / 0.8599 GB, free: 14.18 MB / 0.6856 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008545/0.4027, allocations: 0.5186 MB / 0.8605 GB, free: 13.59 MB / 0.6856 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.907e-06/0.4027, allocations: 0 / 0.8605 GB, free: 13.59 MB / 0.6856 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001246/0.404, allocations: 0.6214 MB / 0.8611 GB, free: 12.96 MB / 0.6856 GB Notification: Performance of prepare postOptimizeDAE: time 3.181e-05/0.404, allocations: 8 kB / 0.8611 GB, free: 12.95 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.138e-05/0.404, allocations: 7.938 kB / 0.8611 GB, free: 12.95 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.911e-05/0.4041, allocations: 8 kB / 0.8611 GB, free: 12.94 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004706/0.4046, allocations: 127.7 kB / 0.8612 GB, free: 12.81 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.553e-05/0.4046, allocations: 8 kB / 0.8612 GB, free: 12.8 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007011/0.4053, allocations: 83.31 kB / 0.8613 GB, free: 12.72 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.405e-05/0.4054, allocations: 31.94 kB / 0.8613 GB, free: 12.69 MB / 0.6856 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.0004364/0.4058, allocations: 274 kB / 0.8616 GB, free: 12.42 MB / 0.6856 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001724/0.406, allocations: 98.78 kB / 0.8617 GB, free: 12.32 MB / 0.6856 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001002/0.407, allocations: 492.3 kB / 0.8622 GB, free: 11.83 MB / 0.6856 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.945e-05/0.407, allocations: 8 kB / 0.8622 GB, free: 11.82 MB / 0.6856 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.101e-06/0.407, allocations: 0 / 0.8622 GB, free: 11.82 MB / 0.6856 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007338/0.4078, allocations: 456.6 kB / 0.8626 GB, free: 11.35 MB / 0.6856 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002238/0.41, allocations: 1.354 MB / 0.8639 GB, free: 9.918 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.025e-06/0.41, allocations: 4 kB / 0.8639 GB, free: 9.914 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003579/0.4104, allocations: 83.81 kB / 0.864 GB, free: 9.832 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.895e-06/0.4104, allocations: 4 kB / 0.864 GB, free: 9.828 MB / 0.6856 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.776e-05/0.4105, allocations: 12.16 kB / 0.864 GB, free: 9.816 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.469e-06/0.4105, allocations: 0 / 0.864 GB, free: 9.816 MB / 0.6856 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.113e-06/0.4105, allocations: 8.062 kB / 0.864 GB, free: 9.809 MB / 0.6856 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001377/0.4119, allocations: 0.7629 MB / 0.8648 GB, free: 9.016 MB / 0.6856 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000358/0.4122, allocations: 223.7 kB / 0.865 GB, free: 8.777 MB / 0.6856 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001233/0.4124, allocations: 8 kB / 0.865 GB, free: 8.77 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005325/0.4129, allocations: 40.02 kB / 0.865 GB, free: 8.73 MB / 0.6856 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.528e-05/0.413, allocations: 27.91 kB / 0.8651 GB, free: 8.703 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.31e-05/0.4131, allocations: 19.98 kB / 0.8651 GB, free: 8.684 MB / 0.6856 GB Notification: Performance of sorting global known variables: time 0.0009266/0.414, allocations: 0.6548 MB / 0.8657 GB, free: 8.02 MB / 0.6856 GB Notification: Performance of sort global known variables: time 1.5e-07/0.414, allocations: 0 / 0.8657 GB, free: 8.02 MB / 0.6856 GB Notification: Performance of remove unused functions: time 0.001105/0.4151, allocations: 339.4 kB / 0.866 GB, free: 7.688 MB / 0.6856 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.002358/0.4175, allocations: 1.601 MB / 0.8676 GB, free: 6.059 MB / 0.6856 GB Notification: Performance of simCode: created initialization part: time 0.001014/0.4185, allocations: 424.3 kB / 0.868 GB, free: 5.645 MB / 0.6856 GB Notification: Performance of simCode: created event and clocks part: time 3.286e-06/0.4185, allocations: 0 / 0.868 GB, free: 5.645 MB / 0.6856 GB Notification: Performance of simCode: created simulation system equations: time 0.0003994/0.4189, allocations: 191.7 kB / 0.8682 GB, free: 5.457 MB / 0.6856 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002797/0.4217, allocations: 0.6046 MB / 0.8688 GB, free: 4.867 MB / 0.6856 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009749/0.4315, allocations: 6.791 MB / 0.8754 GB, free: 13.78 MB / 0.7012 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005744/0.4321, allocations: 1.032 MB / 0.8764 GB, free: 12.71 MB / 0.7012 GB Notification: Performance of simCode: alias equations: time 0.0008662/0.433, allocations: 183.3 kB / 0.8766 GB, free: 12.53 MB / 0.7012 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004689/0.4335, allocations: 379.3 kB / 0.877 GB, free: 12.16 MB / 0.7012 GB Notification: Performance of SimCode: time 1.292e-06/0.4335, allocations: 0 / 0.877 GB, free: 12.16 MB / 0.7012 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06675/0.5002, allocations: 29.54 MB / 0.9058 GB, free: 15.03 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.786/10.29, allocations: 18.14 kB / 0.9058 GB, free: 15.02 MB / 0.7325 GB (rm -f Buildings_8_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe ; mkfifo Buildings_8_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe >> ../files/Buildings_8_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.sim & python3 -m fmpy simulate --output-file Buildings_8_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 Buildings_8_Buildings_Fluid_Interfaces_Examples_FourPortHeatMassExchanger.fmu > Buildings_8_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe 2>&1)