Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/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 8.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger,fileNamePrefix="Buildings_8_0_0_Buildings_Fluid_Interfaces_Examples_FourPortHeatMassExchanger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger,fileNamePrefix="Buildings_8_0_0_Buildings_Fluid_Interfaces_Examples_FourPortHeatMassExchanger",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo): time 2.917/2.917, allocations: 287.5 MB / 302.4 MB, free: 8.332 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001448/0.001448, allocations: 186.2 kB / 371 MB, free: 10.88 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.152/2.152, allocations: 205.4 MB / 0.6297 GB, free: 10.62 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000925/0.0009247, allocations: 86 kB / 0.743 GB, free: 6.633 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0006451/0.0006454, allocations: 21.14 kB / 0.8659 GB, free: 140.7 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2827/0.2834, allocations: 115.3 MB / 0.9784 GB, free: 28.29 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger): time 0.06623/0.3497, allocations: 38.31 MB / 1.016 GB, free: 5.863 MB / 0.6355 GB Notification: Performance of NFInst.instExpressions: time 0.02695/0.3767, allocations: 9.659 MB / 1.025 GB, free: 12.18 MB / 0.6511 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002496/0.3793, allocations: 43.69 kB / 1.025 GB, free: 12.14 MB / 0.6511 GB Notification: Performance of NFTyping.typeComponents: time 0.003017/0.3824, allocations: 465.1 kB / 1.026 GB, free: 11.68 MB / 0.6511 GB Notification: Performance of NFTyping.typeBindings: time 0.008148/0.3906, allocations: 1.466 MB / 1.027 GB, free: 10.21 MB / 0.6511 GB Notification: Performance of NFTyping.typeClassSections: time 0.00544/0.3961, allocations: 0.8753 MB / 1.028 GB, free: 9.348 MB / 0.6511 GB Notification: Performance of NFFlatten.flatten: time 0.009538/0.4056, allocations: 3.835 MB / 1.032 GB, free: 5.504 MB / 0.6511 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002541/0.4082, allocations: 0.7493 MB / 1.033 GB, free: 4.746 MB / 0.6511 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003994/0.4123, allocations: 0.9916 MB / 1.034 GB, free: 3.75 MB / 0.6511 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002747/0.4151, allocations: 0.8127 MB / 1.034 GB, free: 2.934 MB / 0.6511 GB Notification: Performance of NFPackage.collectConstants: time 0.0003575/0.4155, allocations: 36 kB / 1.034 GB, free: 2.898 MB / 0.6511 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003593/0.4191, allocations: 490.8 kB / 1.035 GB, free: 2.418 MB / 0.6511 GB Notification: Performance of NFScalarize.scalarize: time 0.0005864/0.4197, allocations: 199.1 kB / 1.035 GB, free: 2.223 MB / 0.6511 GB Notification: Performance of NFVerifyModel.verify: time 0.0008289/0.4206, allocations: 257.1 kB / 1.035 GB, free: 1.965 MB / 0.6511 GB Notification: Performance of NFConvertDAE.convert: time 0.00414/0.4247, allocations: 1.368 MB / 1.037 GB, free: 0.5938 MB / 0.6511 GB Notification: Performance of FrontEnd - DAE generated: time 8.587e-06/0.4248, allocations: 4 kB / 1.037 GB, free: 0.5898 MB / 0.6511 GB Notification: Performance of FrontEnd: time 4.037e-06/0.4248, allocations: 0 / 1.037 GB, free: 0.5898 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 4.227e-05/0.4249, allocations: 0 / 1.037 GB, free: 0.5898 MB / 0.6511 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.005003/0.4299, allocations: 1.308 MB / 1.038 GB, free: 15.23 MB / 0.6667 GB Notification: Performance of prepare preOptimizeDAE: time 6.19e-05/0.43, allocations: 8.031 kB / 1.038 GB, free: 15.22 MB / 0.6667 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004609/0.4305, allocations: 114.5 kB / 1.038 GB, free: 15.1 MB / 0.6667 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008323/0.4313, allocations: 134.5 kB / 1.038 GB, free: 14.96 MB / 0.6667 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003921/0.4352, allocations: 1.025 MB / 1.039 GB, free: 13.9 MB / 0.6667 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001027/0.4354, allocations: 57.94 kB / 1.039 GB, free: 13.84 MB / 0.6667 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002268/0.4357, allocations: 75.91 kB / 1.039 GB, free: 13.77 MB / 0.6667 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003063/0.4387, allocations: 0.7944 MB / 1.04 GB, free: 12.94 MB / 0.6667 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.727e-05/0.4388, allocations: 4 kB / 1.04 GB, free: 12.93 MB / 0.6667 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001528/0.439, allocations: 31.98 kB / 1.04 GB, free: 12.9 MB / 0.6667 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.757e-05/0.4391, allocations: 23.94 kB / 1.04 GB, free: 12.88 MB / 0.6667 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002642/0.4417, allocations: 0.5867 MB / 1.041 GB, free: 12.29 MB / 0.6667 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.008786/0.4505, allocations: 3.548 MB / 1.044 GB, free: 8.52 MB / 0.6667 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001224/0.4518, allocations: 268.5 kB / 1.044 GB, free: 8.25 MB / 0.6667 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008282/0.4527, allocations: 189.2 kB / 1.045 GB, free: 8.062 MB / 0.6667 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000916/0.4536, allocations: 0.657 MB / 1.045 GB, free: 7.258 MB / 0.6667 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.548e-05/0.4537, allocations: 42.55 kB / 1.045 GB, free: 7.207 MB / 0.6667 GB Notification: Performance of pre-optimization done (n=31): time 4.669e-06/0.4537, allocations: 4 kB / 1.045 GB, free: 7.203 MB / 0.6667 GB Notification: Performance of matching and sorting (n=31): time 0.002738/0.4565, allocations: 0.5315 MB / 1.046 GB, free: 6.664 MB / 0.6667 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.118e-05/0.4566, allocations: 59.36 kB / 1.046 GB, free: 6.594 MB / 0.6667 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002609/0.4592, allocations: 0.9137 MB / 1.047 GB, free: 5.66 MB / 0.6667 GB Notification: Performance of collectPreVariables (initialization): time 0.0001425/0.4594, allocations: 37.7 kB / 1.047 GB, free: 5.617 MB / 0.6667 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008372/0.4602, allocations: 499.6 kB / 1.047 GB, free: 5.121 MB / 0.6667 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002401/0.4605, allocations: 118.3 kB / 1.047 GB, free: 5.004 MB / 0.6667 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.89e-05/0.4606, allocations: 8 kB / 1.047 GB, free: 4.996 MB / 0.6667 GB Notification: Performance of setup shared object (initialization): time 0.0002098/0.4608, allocations: 334 kB / 1.048 GB, free: 4.664 MB / 0.6667 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008774/0.4617, allocations: 173 kB / 1.048 GB, free: 4.496 MB / 0.6667 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001085/0.4628, allocations: 354.9 kB / 1.048 GB, free: 4.074 MB / 0.6667 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009901/0.4638, allocations: 231.8 kB / 1.048 GB, free: 3.848 MB / 0.6667 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.784e-06/0.4638, allocations: 4 kB / 1.048 GB, free: 3.844 MB / 0.6667 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.00284/0.4667, allocations: 0.6254 MB / 1.049 GB, free: 3.211 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 4.628e-05/0.4668, allocations: 17.77 kB / 1.049 GB, free: 3.195 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.017e-05/0.4668, allocations: 4 kB / 1.049 GB, free: 3.191 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.51e-05/0.4669, allocations: 8 kB / 1.049 GB, free: 3.184 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001138/0.468, allocations: 127.8 kB / 1.049 GB, free: 3.059 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.117e-05/0.4681, allocations: 12 kB / 1.049 GB, free: 3.047 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001953/0.4701, allocations: 119.2 kB / 1.049 GB, free: 2.93 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001257/0.4702, allocations: 28 kB / 1.049 GB, free: 2.902 MB / 0.6667 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.0008828/0.4711, allocations: 276 kB / 1.05 GB, free: 2.625 MB / 0.6667 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003997/0.4716, allocations: 98.78 kB / 1.05 GB, free: 2.527 MB / 0.6667 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0023/0.4739, allocations: 0.506 MB / 1.05 GB, free: 2.012 MB / 0.6667 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.025e-05/0.4739, allocations: 4 kB / 1.05 GB, free: 2.008 MB / 0.6667 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.067e-06/0.474, allocations: 0 / 1.05 GB, free: 2.008 MB / 0.6667 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001686/0.4757, allocations: 480.8 kB / 1.051 GB, free: 1.508 MB / 0.6667 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00526/0.481, allocations: 1.381 MB / 1.052 GB, free: 56 kB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.116e-05/0.481, allocations: 0 / 1.052 GB, free: 56 kB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008845/0.4819, allocations: 80.09 kB / 1.052 GB, free: 15.97 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.616e-05/0.482, allocations: 11.95 kB / 1.052 GB, free: 15.96 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.717e-05/0.4821, allocations: 11.94 kB / 1.052 GB, free: 15.95 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.346e-06/0.4821, allocations: 0 / 1.052 GB, free: 15.95 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.735e-06/0.4821, allocations: 4 kB / 1.052 GB, free: 15.95 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003087/0.4852, allocations: 0.7812 MB / 1.053 GB, free: 15.14 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009248/0.4862, allocations: 247.7 kB / 1.053 GB, free: 14.88 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003354/0.4866, allocations: 15.95 kB / 1.053 GB, free: 14.86 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001642/0.4882, allocations: 55.92 kB / 1.053 GB, free: 14.8 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001725/0.4884, allocations: 31.95 kB / 1.053 GB, free: 14.77 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001138/0.4886, allocations: 15.98 kB / 1.053 GB, free: 14.76 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 0.002116/0.4907, allocations: 0.6352 MB / 1.054 GB, free: 14.11 MB / 0.6823 GB Notification: Performance of sort global known variables: time 5.62e-07/0.4908, allocations: 0 / 1.054 GB, free: 14.11 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.002465/0.4932, allocations: 323.5 kB / 1.054 GB, free: 13.8 MB / 0.6823 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.005405/0.4987, allocations: 1.602 MB / 1.056 GB, free: 12.16 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.002229/0.501, allocations: 440.2 kB / 1.056 GB, free: 11.73 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 1.112e-05/0.5011, allocations: 0 / 1.056 GB, free: 11.73 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.0009318/0.502, allocations: 200.9 kB / 1.056 GB, free: 11.54 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007219/0.5093, allocations: 0.5965 MB / 1.057 GB, free: 10.94 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02501/0.5343, allocations: 5.447 MB / 1.062 GB, free: 5.215 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001431/0.5358, allocations: 1.036 MB / 1.063 GB, free: 4.148 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 0.002056/0.538, allocations: 194.9 kB / 1.063 GB, free: 3.957 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001214/0.5392, allocations: 367.2 kB / 1.064 GB, free: 3.598 MB / 0.6823 GB Notification: Performance of SimCode: time 1.292e-06/0.5393, allocations: 0 / 1.064 GB, free: 3.598 MB / 0.6823 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7752/1.314, allocations: 28.94 MB / 1.092 GB, free: 81.89 MB / 0.6823 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001921/1.315, allocations: 240.8 kB / 1.092 GB, free: 81.65 MB / 0.6823 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.602/4.917, allocations: 0 / 1.092 GB, free: 81.65 MB / 0.6823 GB (rm -f Buildings_8.0.0_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe ; mkfifo Buildings_8.0.0_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe >> ../files/Buildings_8.0.0_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Fluid_Interfaces_Examples_FourPortHeatMassExchanger_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Fluid_Interfaces_Examples_FourPortHeatMassExchanger.fmu > Buildings_8.0.0_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe 2>&1)