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.001278/0.001279, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001176/0.001176, allocations: 194.7 kB / 16.14 MB, free: 6.664 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.277/1.277, allocations: 205.1 MB / 222 MB, free: 4.973 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.568/1.568, allocations: 292.3 MB / 0.5484 GB, free: 13.64 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.001332/0.001332, allocations: 67.47 kB / 0.6709 GB, free: 26.34 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1862/0.1876, allocations: 114.5 MB / 0.7828 GB, free: 13.96 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger): time 0.03977/0.2274, allocations: 41.35 MB / 0.8232 GB, free: 4.457 MB / 0.6387 GB Notification: Performance of NFInst.instExpressions: time 0.01391/0.2413, allocations: 10.39 MB / 0.8333 GB, free: 10.04 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001882/0.2433, allocations: 47.69 kB / 0.8334 GB, free: 9.996 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 0.001943/0.2453, allocations: 0.5244 MB / 0.8339 GB, free: 9.469 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 0.004803/0.2501, allocations: 1.734 MB / 0.8356 GB, free: 7.727 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.003056/0.2532, allocations: 1.079 MB / 0.8366 GB, free: 6.66 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.005043/0.2582, allocations: 4.506 MB / 0.841 GB, free: 2.141 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001429/0.2597, allocations: 0.8789 MB / 0.8419 GB, free: 1.246 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002154/0.2618, allocations: 1.042 MB / 0.8429 GB, free: 204 kB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00145/0.2633, allocations: 0.8943 MB / 0.8438 GB, free: 15.29 MB / 0.67 GB Notification: Performance of NFPackage.collectConstants: time 0.0002146/0.2635, allocations: 48 kB / 0.8438 GB, free: 15.25 MB / 0.67 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002056/0.2656, allocations: 0.7872 MB / 0.8446 GB, free: 14.46 MB / 0.67 GB Notification: Performance of NFScalarize.scalarize: time 0.0003087/0.2659, allocations: 231 kB / 0.8448 GB, free: 14.23 MB / 0.67 GB Notification: Performance of NFVerifyModel.verify: time 0.0007855/0.2667, allocations: 0.5713 MB / 0.8454 GB, free: 13.66 MB / 0.67 GB Notification: Performance of NFConvertDAE.convert: time 0.00244/0.2692, allocations: 1.866 MB / 0.8472 GB, free: 11.79 MB / 0.67 GB Notification: Performance of FrontEnd - DAE generated: time 5.481e-06/0.2692, allocations: 4 kB / 0.8472 GB, free: 11.78 MB / 0.67 GB Notification: Performance of FrontEnd: time 1.292e-06/0.2692, allocations: 0 / 0.8472 GB, free: 11.78 MB / 0.67 GB Notification: Performance of Transformations before backend: time 3.619e-05/0.2692, allocations: 0 / 0.8472 GB, free: 11.78 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.002683/0.2719, allocations: 1.507 MB / 0.8487 GB, free: 10.22 MB / 0.67 GB Notification: Performance of prepare preOptimizeDAE: time 4.493e-05/0.272, allocations: 16.02 kB / 0.8487 GB, free: 10.2 MB / 0.67 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001554/0.2721, allocations: 114.7 kB / 0.8488 GB, free: 10.08 MB / 0.67 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003984/0.2725, allocations: 127.5 kB / 0.8489 GB, free: 9.957 MB / 0.67 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001731/0.2743, allocations: 1.068 MB / 0.8499 GB, free: 8.852 MB / 0.67 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.522e-05/0.2743, allocations: 65.98 kB / 0.85 GB, free: 8.785 MB / 0.67 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001015/0.2744, allocations: 68 kB / 0.8501 GB, free: 8.719 MB / 0.67 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001394/0.2758, allocations: 0.7944 MB / 0.8508 GB, free: 7.891 MB / 0.67 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.21e-05/0.2759, allocations: 0 / 0.8508 GB, free: 7.891 MB / 0.67 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.617e-05/0.276, allocations: 28 kB / 0.8509 GB, free: 7.863 MB / 0.67 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.678e-05/0.276, allocations: 23.98 kB / 0.8509 GB, free: 7.84 MB / 0.67 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001128/0.2771, allocations: 0.571 MB / 0.8515 GB, free: 7.266 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.00387/0.281, allocations: 3.54 MB / 0.8549 GB, free: 3.496 MB / 0.67 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005748/0.2816, allocations: 266.4 kB / 0.8552 GB, free: 3.227 MB / 0.67 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003389/0.282, allocations: 175.3 kB / 0.8553 GB, free: 3.055 MB / 0.67 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004779/0.2824, allocations: 0.6648 MB / 0.856 GB, free: 2.242 MB / 0.67 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.789e-05/0.2825, allocations: 34.56 kB / 0.856 GB, free: 2.199 MB / 0.67 GB Notification: Performance of pre-optimization done (n=31): time 1.834e-06/0.2825, allocations: 4 kB / 0.856 GB, free: 2.195 MB / 0.67 GB Notification: Performance of matching and sorting (n=31): time 0.001163/0.2837, allocations: 0.506 MB / 0.8565 GB, free: 1.684 MB / 0.67 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.696e-05/0.2837, allocations: 59.39 kB / 0.8566 GB, free: 1.613 MB / 0.67 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001065/0.2848, allocations: 0.9254 MB / 0.8575 GB, free: 0.668 MB / 0.67 GB Notification: Performance of collectPreVariables (initialization): time 3.831e-05/0.2848, allocations: 33.7 kB / 0.8575 GB, free: 0.6289 MB / 0.67 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003602/0.2852, allocations: 495.6 kB / 0.858 GB, free: 140 kB / 0.67 GB Notification: Performance of collectInitialBindings (initialization): time 9.839e-05/0.2853, allocations: 118.4 kB / 0.8581 GB, free: 20 kB / 0.67 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001738/0.2855, allocations: 118 kB / 0.8582 GB, free: 15.89 MB / 0.6856 GB Notification: Performance of setup shared object (initialization): time 0.0001067/0.2856, allocations: 329.9 kB / 0.8585 GB, free: 15.57 MB / 0.6856 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003566/0.286, allocations: 161 kB / 0.8587 GB, free: 15.41 MB / 0.6856 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004836/0.2865, allocations: 362.8 kB / 0.859 GB, free: 14.98 MB / 0.6856 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008261/0.2873, allocations: 0.5108 MB / 0.8595 GB, free: 14.4 MB / 0.6856 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.437e-06/0.2873, allocations: 0 / 0.8595 GB, free: 14.4 MB / 0.6856 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001102/0.2884, allocations: 0.6131 MB / 0.8601 GB, free: 13.78 MB / 0.6856 GB Notification: Performance of prepare postOptimizeDAE: time 2.066e-05/0.2884, allocations: 8.688 kB / 0.8601 GB, free: 13.77 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.004e-05/0.2885, allocations: 8 kB / 0.8601 GB, free: 13.76 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.117e-05/0.2885, allocations: 12 kB / 0.8601 GB, free: 13.75 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004348/0.2889, allocations: 123.8 kB / 0.8603 GB, free: 13.63 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.479e-05/0.289, allocations: 11.98 kB / 0.8603 GB, free: 13.62 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006914/0.2897, allocations: 115.1 kB / 0.8604 GB, free: 13.5 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.879e-05/0.2897, allocations: 27.94 kB / 0.8604 GB, free: 13.48 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.0003307/0.2901, allocations: 269.7 kB / 0.8607 GB, free: 13.2 MB / 0.6856 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001523/0.2902, allocations: 94.88 kB / 0.8608 GB, free: 13.11 MB / 0.6856 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009832/0.2912, allocations: 492.2 kB / 0.8612 GB, free: 12.62 MB / 0.6856 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.052e-05/0.2912, allocations: 4 kB / 0.8612 GB, free: 12.62 MB / 0.6856 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.278e-06/0.2912, allocations: 0 / 0.8612 GB, free: 12.62 MB / 0.6856 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007302/0.292, allocations: 464.8 kB / 0.8617 GB, free: 12.14 MB / 0.6856 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002098/0.2941, allocations: 1.351 MB / 0.863 GB, free: 10.71 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.28e-06/0.2941, allocations: 3.938 kB / 0.863 GB, free: 10.71 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00035/0.2945, allocations: 75.83 kB / 0.8631 GB, free: 10.64 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.093e-05/0.2945, allocations: 7.984 kB / 0.8631 GB, free: 10.63 MB / 0.6856 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.316e-05/0.2945, allocations: 12.06 kB / 0.8631 GB, free: 10.62 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.868e-06/0.2945, allocations: 4 kB / 0.8631 GB, free: 10.61 MB / 0.6856 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.044e-06/0.2945, allocations: 0 / 0.8631 GB, free: 10.61 MB / 0.6856 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001351/0.2959, allocations: 0.7618 MB / 0.8638 GB, free: 9.82 MB / 0.6856 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003265/0.2962, allocations: 235.6 kB / 0.8641 GB, free: 9.57 MB / 0.6856 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001205/0.2964, allocations: 8 kB / 0.8641 GB, free: 9.562 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005657/0.2969, allocations: 52 kB / 0.8641 GB, free: 9.512 MB / 0.6856 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.826e-05/0.297, allocations: 23.97 kB / 0.8641 GB, free: 9.488 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.727e-05/0.2971, allocations: 15.98 kB / 0.8642 GB, free: 9.473 MB / 0.6856 GB Notification: Performance of sorting global known variables: time 0.0008691/0.2979, allocations: 0.6469 MB / 0.8648 GB, free: 8.816 MB / 0.6856 GB Notification: Performance of sort global known variables: time 1.7e-07/0.298, allocations: 0 / 0.8648 GB, free: 8.816 MB / 0.6856 GB Notification: Performance of remove unused functions: time 0.001073/0.299, allocations: 331.4 kB / 0.8651 GB, free: 8.492 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.002261/0.3013, allocations: 1.579 MB / 0.8666 GB, free: 6.875 MB / 0.6856 GB Notification: Performance of simCode: created initialization part: time 0.0008497/0.3022, allocations: 428 kB / 0.8671 GB, free: 6.457 MB / 0.6856 GB Notification: Performance of simCode: created event and clocks part: time 2.905e-06/0.3022, allocations: 0 / 0.8671 GB, free: 6.457 MB / 0.6856 GB Notification: Performance of simCode: created simulation system equations: time 0.0003646/0.3026, allocations: 183.8 kB / 0.8672 GB, free: 6.277 MB / 0.6856 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00265/0.3052, allocations: 0.6027 MB / 0.8678 GB, free: 5.684 MB / 0.6856 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0114/0.3166, allocations: 7.44 MB / 0.8751 GB, free: 13.85 MB / 0.7012 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005662/0.3172, allocations: 1.032 MB / 0.8761 GB, free: 12.79 MB / 0.7012 GB Notification: Performance of simCode: alias equations: time 0.0007972/0.318, allocations: 199.1 kB / 0.8763 GB, free: 12.59 MB / 0.7012 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004347/0.3185, allocations: 367.3 kB / 0.8766 GB, free: 12.23 MB / 0.7012 GB Notification: Performance of SimCode: time 7.71e-07/0.3185, allocations: 0 / 0.8766 GB, free: 12.23 MB / 0.7012 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.577/0.8955, allocations: 28.34 MB / 0.9043 GB, free: 308 kB / 0.7169 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003178/0.8958, allocations: 246 kB / 0.9045 GB, free: 52 kB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.343/3.239, allocations: 3.094 kB / 0.9045 GB, free: 52 kB / 0.7169 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)