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.575/1.575, allocations: 251.9 MB / 266.9 MB, free: 10.98 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.001107/0.001107, allocations: 174.3 kB / 326.5 MB, free: 2.227 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.889/1.889, allocations: 205.4 MB / 0.5775 GB, free: 20.28 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.0009082/0.000908, allocations: 93.97 kB / 0.6821 GB, free: 12.88 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003538/0.0003539, allocations: 12.06 kB / 0.7963 GB, free: 135.2 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2419/0.2423, allocations: 106.3 MB / 0.9001 GB, free: 63.86 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger): time 0.02948/0.2718, allocations: 34.82 MB / 0.9341 GB, free: 28.93 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.01182/0.2837, allocations: 8.855 MB / 0.9428 GB, free: 20.07 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002157/0.2859, allocations: 43.69 kB / 0.9428 GB, free: 20.02 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 0.002329/0.2883, allocations: 0.6141 MB / 0.9434 GB, free: 19.41 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 0.006037/0.2943, allocations: 1.772 MB / 0.9452 GB, free: 17.63 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.003999/0.2984, allocations: 1.282 MB / 0.9464 GB, free: 16.37 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.003851/0.3022, allocations: 1.956 MB / 0.9483 GB, free: 14.41 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001262/0.3035, allocations: 0.7416 MB / 0.9491 GB, free: 13.66 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00195/0.3055, allocations: 0.8796 MB / 0.9499 GB, free: 12.77 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0008652/0.3064, allocations: 0.5365 MB / 0.9504 GB, free: 12.23 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 9.972e-05/0.3065, allocations: 36 kB / 0.9505 GB, free: 12.2 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001672/0.3082, allocations: 0.5461 MB / 0.951 GB, free: 11.65 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 0.0001842/0.3084, allocations: 199.1 kB / 0.9512 GB, free: 11.46 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 0.0003083/0.3087, allocations: 253.1 kB / 0.9514 GB, free: 11.2 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.001519/0.3102, allocations: 1.345 MB / 0.9527 GB, free: 9.855 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 3.607e-06/0.3102, allocations: 0 / 0.9527 GB, free: 9.855 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.784e-06/0.3102, allocations: 0 / 0.9527 GB, free: 9.855 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 1.465e-05/0.3103, allocations: 0 / 0.9527 GB, free: 9.855 MB / 0.6042 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.002036/0.3123, allocations: 1.301 MB / 0.954 GB, free: 8.5 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 4.551e-05/0.3124, allocations: 8.031 kB / 0.954 GB, free: 8.492 MB / 0.6042 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001196/0.3125, allocations: 114.5 kB / 0.9541 GB, free: 8.371 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002937/0.3128, allocations: 138.5 kB / 0.9543 GB, free: 8.234 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001425/0.3142, allocations: 0.9668 MB / 0.9552 GB, free: 7.227 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.901e-05/0.3143, allocations: 54 kB / 0.9553 GB, free: 7.172 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.581e-05/0.3144, allocations: 71.98 kB / 0.9553 GB, free: 7.102 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001178/0.3155, allocations: 0.7827 MB / 0.9561 GB, free: 6.285 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.11e-05/0.3156, allocations: 4 kB / 0.9561 GB, free: 6.281 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.698e-05/0.3156, allocations: 28 kB / 0.9561 GB, free: 6.254 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.95e-05/0.3157, allocations: 24 kB / 0.9561 GB, free: 6.23 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009633/0.3166, allocations: 0.5867 MB / 0.9567 GB, free: 5.645 MB / 0.6042 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.003488/0.3201, allocations: 3.567 MB / 0.9602 GB, free: 1.848 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005221/0.3207, allocations: 271.8 kB / 0.9605 GB, free: 1.574 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004034/0.3211, allocations: 0.657 MB / 0.9611 GB, free: 0.7695 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.311e-05/0.3211, allocations: 39.09 kB / 0.9611 GB, free: 0.7227 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=31): time 2.615e-06/0.3211, allocations: 3.938 kB / 0.9611 GB, free: 0.7188 MB / 0.6042 GB Notification: Performance of matching and sorting (n=31): time 0.001061/0.3222, allocations: 0.5444 MB / 0.9617 GB, free: 172 kB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.882e-05/0.3222, allocations: 55.41 kB / 0.9617 GB, free: 104 kB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001253/0.3235, allocations: 0.9567 MB / 0.9627 GB, free: 15.12 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 4.575e-05/0.3236, allocations: 37.7 kB / 0.9627 GB, free: 15.08 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004189/0.324, allocations: 499.5 kB / 0.9632 GB, free: 14.58 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001139/0.3241, allocations: 114.4 kB / 0.9633 GB, free: 14.47 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.174e-05/0.3241, allocations: 12 kB / 0.9633 GB, free: 14.46 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 0.0001246/0.3243, allocations: 329.9 kB / 0.9636 GB, free: 14.13 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003647/0.3246, allocations: 169 kB / 0.9638 GB, free: 13.97 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005156/0.3252, allocations: 364.9 kB / 0.9641 GB, free: 13.54 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004201/0.3256, allocations: 227.9 kB / 0.9643 GB, free: 13.32 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.429e-06/0.3256, allocations: 0 / 0.9643 GB, free: 13.32 MB / 0.6198 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001177/0.3268, allocations: 0.6328 MB / 0.965 GB, free: 12.68 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 2.378e-05/0.3268, allocations: 11.94 kB / 0.965 GB, free: 12.66 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.415e-05/0.3269, allocations: 8.422 kB / 0.965 GB, free: 12.66 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.361e-05/0.3269, allocations: 12 kB / 0.965 GB, free: 12.64 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004565/0.3273, allocations: 127.8 kB / 0.9651 GB, free: 12.52 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.71e-05/0.3274, allocations: 8 kB / 0.9651 GB, free: 12.51 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007625/0.3281, allocations: 119.1 kB / 0.9652 GB, free: 12.39 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.102e-05/0.3282, allocations: 31.98 kB / 0.9653 GB, free: 12.36 MB / 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004722/0.3287, allocations: 284.4 kB / 0.9655 GB, free: 12.08 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001373/0.3288, allocations: 94.88 kB / 0.9656 GB, free: 11.98 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001112/0.33, allocations: 0.4963 MB / 0.9661 GB, free: 11.48 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.175e-05/0.33, allocations: 4 kB / 0.9661 GB, free: 11.48 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.059e-06/0.33, allocations: 0 / 0.9661 GB, free: 11.48 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007339/0.3307, allocations: 476.6 kB / 0.9666 GB, free: 10.98 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002324/0.3331, allocations: 1.381 MB / 0.9679 GB, free: 9.531 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.47e-06/0.3331, allocations: 0 / 0.9679 GB, free: 9.531 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003579/0.3335, allocations: 87.88 kB / 0.968 GB, free: 9.445 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.626e-06/0.3335, allocations: 0 / 0.968 GB, free: 9.445 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.842e-05/0.3335, allocations: 12.16 kB / 0.968 GB, free: 9.434 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.624e-06/0.3335, allocations: 7.953 kB / 0.968 GB, free: 9.426 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.258e-06/0.3335, allocations: 4 kB / 0.968 GB, free: 9.422 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001342/0.3349, allocations: 0.8439 MB / 0.9688 GB, free: 8.523 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004448/0.3353, allocations: 255.7 kB / 0.9691 GB, free: 8.254 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001162/0.3355, allocations: 12 kB / 0.9691 GB, free: 8.242 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005501/0.336, allocations: 55.84 kB / 0.9692 GB, free: 8.188 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.451e-05/0.3361, allocations: 31.86 kB / 0.9692 GB, free: 8.156 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.379e-05/0.3361, allocations: 15.98 kB / 0.9692 GB, free: 8.141 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.0008955/0.3371, allocations: 0.6743 MB / 0.9699 GB, free: 7.453 MB / 0.6198 GB Notification: Performance of sort global known variables: time 2.41e-07/0.3371, allocations: 3.938 kB / 0.9699 GB, free: 7.449 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.001024/0.3381, allocations: 335.4 kB / 0.9702 GB, free: 7.121 MB / 0.6198 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002444/0.3405, allocations: 2.027 MB / 0.9722 GB, free: 5.047 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.000999/0.3416, allocations: 440.3 kB / 0.9726 GB, free: 4.617 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 4.238e-06/0.3416, allocations: 0 / 0.9726 GB, free: 4.617 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0003891/0.342, allocations: 192.6 kB / 0.9728 GB, free: 4.43 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002988/0.345, allocations: 0.5926 MB / 0.9733 GB, free: 3.844 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005391/0.3504, allocations: 5.951 MB / 0.9792 GB, free: 13.72 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006578/0.3511, allocations: 1.06 MB / 0.9802 GB, free: 12.63 MB / 0.6355 GB Notification: Performance of simCode: alias equations: time 0.0009652/0.3521, allocations: 195.5 kB / 0.9804 GB, free: 12.44 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004882/0.3526, allocations: 371.2 kB / 0.9807 GB, free: 12.07 MB / 0.6355 GB Notification: Performance of SimCode: time 9.12e-07/0.3526, allocations: 4 kB / 0.9807 GB, free: 12.07 MB / 0.6355 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05844/0.411, allocations: 28.87 MB / 1.009 GB, free: 15.51 MB / 0.6667 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000213/0.4113, allocations: 251.3 kB / 1.009 GB, free: 15.26 MB / 0.6667 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.12/3.531, allocations: 2.812 kB / 1.009 GB, free: 15.26 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)