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.001492/0.001492, 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.001226/0.001226, allocations: 188.6 kB / 16.25 MB, free: 6.629 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.281/1.281, allocations: 205.1 MB / 222.1 MB, free: 4.715 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.645/1.645, allocations: 292.3 MB / 0.5486 GB, free: 13.59 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.001349/0.001349, allocations: 66.08 kB / 0.6711 GB, free: 26.21 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2053/0.2066, allocations: 114.6 MB / 0.783 GB, free: 13.82 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger): time 0.03819/0.2448, allocations: 41.26 MB / 0.8233 GB, free: 4.398 MB / 0.6387 GB Notification: Performance of NFInst.instExpressions: time 0.01362/0.2585, allocations: 10.24 MB / 0.8333 GB, free: 10.13 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001626/0.2602, allocations: 47.69 kB / 0.8333 GB, free: 10.08 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 0.001889/0.2621, allocations: 0.5634 MB / 0.8339 GB, free: 9.516 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 0.004585/0.2667, allocations: 1.742 MB / 0.8356 GB, free: 7.77 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.002685/0.2694, allocations: 1.092 MB / 0.8366 GB, free: 6.688 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.004046/0.2735, allocations: 3.41 MB / 0.84 GB, free: 3.27 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001443/0.2749, allocations: 1.048 MB / 0.841 GB, free: 2.199 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002933/0.2779, allocations: 1.255 MB / 0.8422 GB, free: 0.9453 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001434/0.2793, allocations: 0.9178 MB / 0.8431 GB, free: 24 kB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 0.000196/0.2795, allocations: 100 kB / 0.8432 GB, free: 15.92 MB / 0.67 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001931/0.2815, allocations: 0.8654 MB / 0.844 GB, free: 15.06 MB / 0.67 GB Notification: Performance of NFScalarize.scalarize: time 0.0002863/0.2818, allocations: 287 kB / 0.8443 GB, free: 14.78 MB / 0.67 GB Notification: Performance of NFVerifyModel.verify: time 0.0007948/0.2826, allocations: 0.6259 MB / 0.8449 GB, free: 14.15 MB / 0.67 GB Notification: Performance of NFConvertDAE.convert: time 0.002428/0.285, allocations: 1.912 MB / 0.8468 GB, free: 12.23 MB / 0.67 GB Notification: Performance of FrontEnd - DAE generated: time 4.488e-06/0.285, allocations: 7.938 kB / 0.8468 GB, free: 12.22 MB / 0.67 GB Notification: Performance of FrontEnd: time 1.202e-06/0.285, allocations: 0 / 0.8468 GB, free: 12.22 MB / 0.67 GB Notification: Performance of Transformations before backend: time 1.667e-05/0.2851, allocations: 0 / 0.8468 GB, free: 12.22 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.002255/0.2873, allocations: 1.511 MB / 0.8483 GB, free: 10.66 MB / 0.67 GB Notification: Performance of prepare preOptimizeDAE: time 3.904e-05/0.2874, allocations: 12.03 kB / 0.8483 GB, free: 10.65 MB / 0.67 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001378/0.2875, allocations: 118.7 kB / 0.8484 GB, free: 10.52 MB / 0.67 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003351/0.2879, allocations: 127.5 kB / 0.8485 GB, free: 10.4 MB / 0.67 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001519/0.2894, allocations: 1.064 MB / 0.8496 GB, free: 9.289 MB / 0.67 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.447e-05/0.2894, allocations: 58 kB / 0.8496 GB, free: 9.234 MB / 0.67 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001099/0.2896, allocations: 76 kB / 0.8497 GB, free: 9.16 MB / 0.67 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001384/0.291, allocations: 0.7827 MB / 0.8505 GB, free: 8.34 MB / 0.67 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.388e-05/0.291, allocations: 7.938 kB / 0.8505 GB, free: 8.332 MB / 0.67 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.88e-05/0.2911, allocations: 32 kB / 0.8505 GB, free: 8.301 MB / 0.67 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.696e-05/0.2911, allocations: 20 kB / 0.8505 GB, free: 8.281 MB / 0.67 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001096/0.2922, allocations: 0.5672 MB / 0.8511 GB, free: 7.711 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.003684/0.2959, allocations: 3.544 MB / 0.8545 GB, free: 3.938 MB / 0.67 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005889/0.2965, allocations: 254.5 kB / 0.8548 GB, free: 3.68 MB / 0.67 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003399/0.2968, allocations: 172.8 kB / 0.8549 GB, free: 3.508 MB / 0.67 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005348/0.2974, allocations: 0.6648 MB / 0.8556 GB, free: 2.695 MB / 0.67 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.689e-05/0.2974, allocations: 34.56 kB / 0.8556 GB, free: 2.652 MB / 0.67 GB Notification: Performance of pre-optimization done (n=31): time 1.763e-06/0.2974, allocations: 7.938 kB / 0.8556 GB, free: 2.645 MB / 0.67 GB Notification: Performance of matching and sorting (n=31): time 0.001197/0.2986, allocations: 0.5059 MB / 0.8561 GB, free: 2.133 MB / 0.67 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.41e-05/0.2987, allocations: 59.39 kB / 0.8562 GB, free: 2.062 MB / 0.67 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001172/0.2999, allocations: 0.9254 MB / 0.8571 GB, free: 1.117 MB / 0.67 GB Notification: Performance of collectPreVariables (initialization): time 4.72e-05/0.2999, allocations: 33.7 kB / 0.8571 GB, free: 1.078 MB / 0.67 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004051/0.3004, allocations: 499.6 kB / 0.8576 GB, free: 0.5859 MB / 0.67 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001148/0.3005, allocations: 118.4 kB / 0.8577 GB, free: 480 kB / 0.67 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001664/0.3006, allocations: 122 kB / 0.8578 GB, free: 348 kB / 0.67 GB Notification: Performance of setup shared object (initialization): time 0.0001331/0.3008, allocations: 325.9 kB / 0.8581 GB, free: 16 kB / 0.67 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003662/0.3012, allocations: 161 kB / 0.8583 GB, free: 15.86 MB / 0.6856 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005103/0.3017, allocations: 366.9 kB / 0.8586 GB, free: 15.43 MB / 0.6856 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008285/0.3025, allocations: 0.5147 MB / 0.8591 GB, free: 14.84 MB / 0.6856 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.467e-06/0.3025, allocations: 0 / 0.8591 GB, free: 14.84 MB / 0.6856 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001075/0.3036, allocations: 0.6091 MB / 0.8597 GB, free: 14.23 MB / 0.6856 GB Notification: Performance of prepare postOptimizeDAE: time 2.252e-05/0.3037, allocations: 11.03 kB / 0.8597 GB, free: 14.22 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.191e-05/0.3037, allocations: 7.984 kB / 0.8597 GB, free: 14.21 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.074e-05/0.3037, allocations: 16 kB / 0.8598 GB, free: 14.2 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004327/0.3041, allocations: 119.8 kB / 0.8599 GB, free: 14.08 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.328e-05/0.3042, allocations: 11.94 kB / 0.8599 GB, free: 14.07 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006757/0.3048, allocations: 115.1 kB / 0.86 GB, free: 13.95 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.99e-05/0.3049, allocations: 31.94 kB / 0.86 GB, free: 13.92 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.0003247/0.3052, allocations: 269.7 kB / 0.8603 GB, free: 13.65 MB / 0.6856 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001439/0.3054, allocations: 98.78 kB / 0.8604 GB, free: 13.55 MB / 0.6856 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009338/0.3063, allocations: 484.3 kB / 0.8608 GB, free: 13.07 MB / 0.6856 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.287e-05/0.3064, allocations: 4 kB / 0.8608 GB, free: 13.07 MB / 0.6856 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.109e-06/0.3064, allocations: 0 / 0.8608 GB, free: 13.07 MB / 0.6856 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007078/0.3071, allocations: 464.8 kB / 0.8613 GB, free: 12.58 MB / 0.6856 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001894/0.309, allocations: 1.351 MB / 0.8626 GB, free: 11.16 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.347e-06/0.309, allocations: 0 / 0.8626 GB, free: 11.16 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003313/0.3093, allocations: 79.83 kB / 0.8627 GB, free: 11.08 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.072e-06/0.3094, allocations: 4 kB / 0.8627 GB, free: 11.08 MB / 0.6856 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.861e-05/0.3094, allocations: 11.98 kB / 0.8627 GB, free: 11.07 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.376e-06/0.3094, allocations: 7.938 kB / 0.8627 GB, free: 11.06 MB / 0.6856 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/0.3094, allocations: 0 / 0.8627 GB, free: 11.06 MB / 0.6856 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001226/0.3106, allocations: 0.7579 MB / 0.8634 GB, free: 10.27 MB / 0.6856 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002787/0.3109, allocations: 235.7 kB / 0.8637 GB, free: 10.02 MB / 0.6856 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001186/0.3111, allocations: 8 kB / 0.8637 GB, free: 10.01 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005686/0.3116, allocations: 51.91 kB / 0.8637 GB, free: 9.961 MB / 0.6856 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.983e-05/0.3117, allocations: 27.91 kB / 0.8638 GB, free: 9.934 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.86e-05/0.3118, allocations: 19.98 kB / 0.8638 GB, free: 9.914 MB / 0.6856 GB Notification: Performance of sorting global known variables: time 0.0007893/0.3126, allocations: 0.6469 MB / 0.8644 GB, free: 9.258 MB / 0.6856 GB Notification: Performance of sort global known variables: time 1.5e-07/0.3126, allocations: 0 / 0.8644 GB, free: 9.258 MB / 0.6856 GB Notification: Performance of remove unused functions: time 0.0008957/0.3135, allocations: 323.5 kB / 0.8647 GB, free: 8.941 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.002198/0.3157, allocations: 1.582 MB / 0.8663 GB, free: 7.324 MB / 0.6856 GB Notification: Performance of simCode: created initialization part: time 0.000971/0.3167, allocations: 456 kB / 0.8667 GB, free: 6.879 MB / 0.6856 GB Notification: Performance of simCode: created event and clocks part: time 6.042e-06/0.3167, allocations: 3.938 kB / 0.8667 GB, free: 6.875 MB / 0.6856 GB Notification: Performance of simCode: created simulation system equations: time 0.0003671/0.3171, allocations: 187.7 kB / 0.8669 GB, free: 6.691 MB / 0.6856 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002651/0.3197, allocations: 0.6254 MB / 0.8675 GB, free: 6.09 MB / 0.6856 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01135/0.3311, allocations: 7.428 MB / 0.8747 GB, free: 14.27 MB / 0.7012 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006049/0.3317, allocations: 1.04 MB / 0.8758 GB, free: 13.2 MB / 0.7012 GB Notification: Performance of simCode: alias equations: time 0.0008858/0.3326, allocations: 199.1 kB / 0.876 GB, free: 13.01 MB / 0.7012 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004409/0.3331, allocations: 371.3 kB / 0.8763 GB, free: 12.64 MB / 0.7012 GB Notification: Performance of SimCode: time 8.81e-07/0.3331, allocations: 0 / 0.8763 GB, free: 12.64 MB / 0.7012 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0469/0.38, allocations: 28.95 MB / 0.9046 GB, free: 156 kB / 0.7169 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001875/0.3802, allocations: 254.2 kB / 0.9048 GB, free: 15.89 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.496/2.876, allocations: 3.938 kB / 0.9048 GB, free: 15.89 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Fluid_Interfaces_Examples_FourPortHeatMassExchanger_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Fluid_Interfaces_Examples_FourPortHeatMassExchanger.fmu > Buildings_8_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe 2>&1)