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.001018/0.001018, allocations: 86.41 kB / 15.06 MB, free: 1.09 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.001177/0.001177, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.614/1.614, allocations: 205.4 MB / 222.1 MB, free: 5.645 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.85/1.85, allocations: 292.7 MB / 0.5499 GB, free: 14.54 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.0005317/0.0005318, allocations: 13.78 kB / 0.6738 GB, free: 26.18 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2599/0.2605, allocations: 116.3 MB / 0.7874 GB, free: 11.86 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger): time 0.03789/0.2984, allocations: 38.32 MB / 0.8248 GB, free: 5.414 MB / 0.6387 GB Notification: Performance of NFInst.instExpressions: time 0.01432/0.3128, allocations: 9.655 MB / 0.8342 GB, free: 11.74 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0022/0.315, allocations: 47.69 kB / 0.8343 GB, free: 11.7 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 0.001672/0.3167, allocations: 453.1 kB / 0.8347 GB, free: 11.25 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 0.004907/0.3217, allocations: 1.484 MB / 0.8362 GB, free: 9.762 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.003148/0.3248, allocations: 0.8692 MB / 0.837 GB, free: 8.902 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.005947/0.3308, allocations: 3.845 MB / 0.8408 GB, free: 5.047 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001552/0.3324, allocations: 0.7415 MB / 0.8415 GB, free: 4.297 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00243/0.3348, allocations: 0.9915 MB / 0.8425 GB, free: 3.301 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001274/0.3361, allocations: 0.8049 MB / 0.8433 GB, free: 2.492 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 0.0001058/0.3362, allocations: 44 kB / 0.8433 GB, free: 2.449 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001705/0.3379, allocations: 494.8 kB / 0.8438 GB, free: 1.965 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 0.0002333/0.3382, allocations: 199.1 kB / 0.844 GB, free: 1.77 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 0.0004161/0.3386, allocations: 261.1 kB / 0.8442 GB, free: 1.508 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.001634/0.3402, allocations: 1.364 MB / 0.8455 GB, free: 144 kB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 6.762e-06/0.3402, allocations: 4 kB / 0.8455 GB, free: 140 kB / 0.6544 GB Notification: Performance of FrontEnd: time 2.474e-06/0.3402, allocations: 0 / 0.8455 GB, free: 140 kB / 0.6544 GB Notification: Performance of Transformations before backend: time 1.753e-05/0.3403, allocations: 0 / 0.8455 GB, free: 140 kB / 0.6544 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.002167/0.3424, allocations: 1.297 MB / 0.8468 GB, free: 14.79 MB / 0.67 GB Notification: Performance of prepare preOptimizeDAE: time 4.703e-05/0.3425, allocations: 16.02 kB / 0.8468 GB, free: 14.77 MB / 0.67 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001466/0.3427, allocations: 122.5 kB / 0.8469 GB, free: 14.64 MB / 0.67 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003022/0.343, allocations: 134.5 kB / 0.8471 GB, free: 14.51 MB / 0.67 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001707/0.3447, allocations: 1.021 MB / 0.8481 GB, free: 13.45 MB / 0.67 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.282e-05/0.3447, allocations: 57.94 kB / 0.8481 GB, free: 13.39 MB / 0.67 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001146/0.3449, allocations: 75.91 kB / 0.8482 GB, free: 13.31 MB / 0.67 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001387/0.3463, allocations: 0.7944 MB / 0.849 GB, free: 12.48 MB / 0.67 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.316e-05/0.3463, allocations: 0 / 0.849 GB, free: 12.48 MB / 0.67 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.842e-05/0.3464, allocations: 32 kB / 0.849 GB, free: 12.45 MB / 0.67 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.025e-05/0.3464, allocations: 23.98 kB / 0.849 GB, free: 12.43 MB / 0.67 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001109/0.3475, allocations: 0.5789 MB / 0.8496 GB, free: 11.85 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.004189/0.3517, allocations: 3.54 MB / 0.853 GB, free: 8.078 MB / 0.67 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005869/0.3523, allocations: 283.2 kB / 0.8533 GB, free: 7.797 MB / 0.67 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003395/0.3527, allocations: 188.8 kB / 0.8535 GB, free: 7.609 MB / 0.67 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005708/0.3533, allocations: 0.6571 MB / 0.8541 GB, free: 6.805 MB / 0.67 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.739e-05/0.3533, allocations: 34.56 kB / 0.8542 GB, free: 6.762 MB / 0.67 GB Notification: Performance of pre-optimization done (n=31): time 2.966e-06/0.3533, allocations: 0 / 0.8542 GB, free: 6.762 MB / 0.67 GB Notification: Performance of matching and sorting (n=31): time 0.001137/0.3545, allocations: 0.5449 MB / 0.8547 GB, free: 6.211 MB / 0.67 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.449e-05/0.3545, allocations: 59.34 kB / 0.8548 GB, free: 6.141 MB / 0.67 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001167/0.3557, allocations: 0.9214 MB / 0.8557 GB, free: 5.199 MB / 0.67 GB Notification: Performance of collectPreVariables (initialization): time 4.239e-05/0.3558, allocations: 37.7 kB / 0.8557 GB, free: 5.156 MB / 0.67 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004486/0.3562, allocations: 499.6 kB / 0.8562 GB, free: 4.66 MB / 0.67 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001211/0.3563, allocations: 110.4 kB / 0.8563 GB, free: 4.551 MB / 0.67 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.313e-05/0.3564, allocations: 12 kB / 0.8563 GB, free: 4.539 MB / 0.67 GB Notification: Performance of setup shared object (initialization): time 0.0001382/0.3565, allocations: 334 kB / 0.8566 GB, free: 4.207 MB / 0.67 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003348/0.3569, allocations: 169 kB / 0.8568 GB, free: 4.043 MB / 0.67 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004748/0.3573, allocations: 358.9 kB / 0.8571 GB, free: 3.613 MB / 0.67 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004098/0.3578, allocations: 235.7 kB / 0.8573 GB, free: 3.383 MB / 0.67 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.28e-06/0.3578, allocations: 7.938 kB / 0.8573 GB, free: 3.375 MB / 0.67 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.00103/0.3588, allocations: 0.629 MB / 0.858 GB, free: 2.738 MB / 0.67 GB Notification: Performance of prepare postOptimizeDAE: time 1.825e-05/0.3588, allocations: 6.812 kB / 0.858 GB, free: 2.734 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.787e-06/0.3589, allocations: 8 kB / 0.858 GB, free: 2.727 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.788e-05/0.3589, allocations: 8 kB / 0.858 GB, free: 2.719 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004253/0.3593, allocations: 136.2 kB / 0.8581 GB, free: 2.586 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.734e-05/0.3594, allocations: 12.05 kB / 0.8581 GB, free: 2.574 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006599/0.36, allocations: 115.2 kB / 0.8582 GB, free: 2.461 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.551e-05/0.3601, allocations: 27.95 kB / 0.8583 GB, free: 2.434 MB / 0.67 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.0003608/0.3604, allocations: 274.7 kB / 0.8585 GB, free: 2.156 MB / 0.67 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001213/0.3606, allocations: 102.8 kB / 0.8586 GB, free: 2.055 MB / 0.67 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009499/0.3615, allocations: 0.5039 MB / 0.8591 GB, free: 1.547 MB / 0.67 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.171e-05/0.3616, allocations: 4 kB / 0.8591 GB, free: 1.543 MB / 0.67 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.931e-06/0.3616, allocations: 0 / 0.8591 GB, free: 1.543 MB / 0.67 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007103/0.3623, allocations: 472.8 kB / 0.8596 GB, free: 1.051 MB / 0.67 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002043/0.3643, allocations: 1.377 MB / 0.8609 GB, free: 15.6 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.238e-06/0.3643, allocations: 0 / 0.8609 GB, free: 15.6 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003195/0.3647, allocations: 79.89 kB / 0.861 GB, free: 15.52 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.386e-06/0.3647, allocations: 7.984 kB / 0.861 GB, free: 15.52 MB / 0.6856 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.476e-05/0.3647, allocations: 11.95 kB / 0.861 GB, free: 15.5 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.102e-06/0.3647, allocations: 4 kB / 0.861 GB, free: 15.5 MB / 0.6856 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/0.3648, allocations: 4.156 kB / 0.861 GB, free: 15.5 MB / 0.6856 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001212/0.366, allocations: 0.7851 MB / 0.8618 GB, free: 14.68 MB / 0.6856 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003499/0.3663, allocations: 247.6 kB / 0.862 GB, free: 14.42 MB / 0.6856 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001054/0.3664, allocations: 15.94 kB / 0.862 GB, free: 14.4 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005193/0.367, allocations: 59.86 kB / 0.8621 GB, free: 14.34 MB / 0.6856 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.989e-05/0.3671, allocations: 23.97 kB / 0.8621 GB, free: 14.32 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.638e-05/0.3671, allocations: 15.98 kB / 0.8621 GB, free: 14.3 MB / 0.6856 GB Notification: Performance of sorting global known variables: time 0.0009417/0.368, allocations: 0.643 MB / 0.8628 GB, free: 13.65 MB / 0.6856 GB Notification: Performance of sort global known variables: time 1.61e-07/0.3681, allocations: 0 / 0.8628 GB, free: 13.65 MB / 0.6856 GB Notification: Performance of remove unused functions: time 0.001016/0.3691, allocations: 323.5 kB / 0.8631 GB, free: 13.34 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 (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.002176/0.3713, allocations: 1.596 MB / 0.8646 GB, free: 11.71 MB / 0.6856 GB Notification: Performance of simCode: created initialization part: time 0.001011/0.3723, allocations: 448.7 kB / 0.865 GB, free: 11.27 MB / 0.6856 GB Notification: Performance of simCode: created event and clocks part: time 5.12e-06/0.3723, allocations: 0 / 0.865 GB, free: 11.27 MB / 0.6856 GB Notification: Performance of simCode: created simulation system equations: time 0.0003667/0.3727, allocations: 200 kB / 0.8652 GB, free: 11.07 MB / 0.6856 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002575/0.3753, allocations: 0.5883 MB / 0.8658 GB, free: 10.49 MB / 0.6856 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009501/0.3848, allocations: 5.443 MB / 0.8711 GB, free: 4.766 MB / 0.6856 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006671/0.3855, allocations: 1.036 MB / 0.8721 GB, free: 3.699 MB / 0.6856 GB Notification: Performance of simCode: alias equations: time 0.0008525/0.3863, allocations: 207.1 kB / 0.8723 GB, free: 3.496 MB / 0.6856 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004668/0.3868, allocations: 367.3 kB / 0.8727 GB, free: 3.137 MB / 0.6856 GB Notification: Performance of SimCode: time 1.193e-06/0.3868, allocations: 0 / 0.8727 GB, free: 3.137 MB / 0.6856 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05323/0.44, allocations: 28.92 MB / 0.9009 GB, free: 6.652 MB / 0.7169 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001693/0.4402, allocations: 234.7 kB / 0.9012 GB, free: 6.414 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.443/2.883, allocations: 0 / 0.9012 GB, free: 6.414 MB / 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/linux/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) Environment - environmentSimulation: