Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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(BuildingSystems.Fluid.Interfaces.Examples.FourPortHeatMassExchanger,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Interfaces_Examples_FourPortHeatMassExchanger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.Interfaces.Examples.FourPortHeatMassExchanger,fileNamePrefix="BuildingSystems_BuildingSystems_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.006522/0.00653, allocations: 103.8 kB / 15.74 MB, free: 6.445 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.001511/0.001511, allocations: 196.4 kB / 16.67 MB, free: 6.352 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.504/1.504, allocations: 222.9 MB / 240.4 MB, free: 4.273 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002651/0.002651, allocations: 286.6 kB / 290.8 MB, free: 1.871 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.065/1.065, allocations: 169.3 MB / 0.4983 GB, free: 13.78 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002963/0.002963, allocations: 96.78 kB / 0.681 GB, free: 15.95 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1913/0.1942, allocations: 86.97 MB / 0.7659 GB, free: 8.902 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Interfaces.Examples.FourPortHeatMassExchanger): time 0.4343/0.6285, allocations: 41.56 MB / 0.8065 GB, free: 5.547 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.01957/0.6482, allocations: 10.39 MB / 0.8166 GB, free: 14.11 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002794/0.651, allocations: 60.22 kB / 0.8167 GB, free: 14.08 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.002323/0.6534, allocations: 0.6428 MB / 0.8173 GB, free: 13.68 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.006707/0.6601, allocations: 1.886 MB / 0.8192 GB, free: 12.56 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.003723/0.6639, allocations: 1.181 MB / 0.8203 GB, free: 11.92 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.006007/0.6699, allocations: 3.411 MB / 0.8237 GB, free: 10.26 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001932/0.6718, allocations: 1.063 MB / 0.8247 GB, free: 9.789 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00393/0.6758, allocations: 1.236 MB / 0.8259 GB, free: 9.203 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00217/0.678, allocations: 0.8847 MB / 0.8268 GB, free: 8.793 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.0002432/0.6782, allocations: 98.84 kB / 0.8269 GB, free: 8.793 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002897/0.6811, allocations: 0.8594 MB / 0.8277 GB, free: 8.449 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.000413/0.6816, allocations: 272.5 kB / 0.828 GB, free: 8.289 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.001055/0.6826, allocations: 0.633 MB / 0.8286 GB, free: 7.902 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.003927/0.6866, allocations: 1.943 MB / 0.8305 GB, free: 7.008 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 6.422e-06/0.6866, allocations: 1.531 kB / 0.8305 GB, free: 7.008 MB / 0.5919 GB Notification: Performance of FrontEnd: time 5.821e-06/0.6866, allocations: 4 kB / 0.8305 GB, free: 7.004 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 2.442e-05/0.6866, allocations: 3.938 kB / 0.8305 GB, free: 7 MB / 0.5919 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.003317/0.69, allocations: 1.548 MB / 0.832 GB, free: 5.789 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 5.22e-05/0.69, allocations: 9.594 kB / 0.832 GB, free: 5.789 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001647/0.6902, allocations: 122.3 kB / 0.8321 GB, free: 5.684 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004922/0.6907, allocations: 141.5 kB / 0.8323 GB, free: 5.613 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002213/0.6929, allocations: 1.114 MB / 0.8333 GB, free: 4.738 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.168e-05/0.693, allocations: 59.09 kB / 0.8334 GB, free: 4.707 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001312/0.6931, allocations: 75.39 kB / 0.8335 GB, free: 4.68 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001557/0.6947, allocations: 0.7925 MB / 0.8342 GB, free: 4.172 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.373e-05/0.6947, allocations: 0 / 0.8342 GB, free: 4.172 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.476e-05/0.6948, allocations: 27.22 kB / 0.8343 GB, free: 4.152 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.207e-05/0.6949, allocations: 19.47 kB / 0.8343 GB, free: 4.152 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001245/0.6961, allocations: 0.5676 MB / 0.8348 GB, free: 3.871 MB / 0.5919 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.005169/0.7013, allocations: 3.56 MB / 0.8383 GB, free: 0.7461 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006564/0.702, allocations: 266.1 kB / 0.8386 GB, free: 0.6094 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003488/0.7023, allocations: 174.6 kB / 0.8387 GB, free: 0.5234 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006685/0.703, allocations: 0.6558 MB / 0.8394 GB, free: 15.75 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.441e-05/0.7031, allocations: 35.78 kB / 0.8394 GB, free: 15.71 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=31): time 2.845e-06/0.7031, allocations: 1.625 kB / 0.8394 GB, free: 15.71 MB / 0.6075 GB Notification: Performance of matching and sorting (n=31): time 0.001369/0.7044, allocations: 0.5182 MB / 0.8399 GB, free: 15.45 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.848e-05/0.7045, allocations: 55.09 kB / 0.84 GB, free: 15.38 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001376/0.7059, allocations: 0.9527 MB / 0.8409 GB, free: 14.84 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 6.057e-05/0.706, allocations: 33.05 kB / 0.8409 GB, free: 14.8 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004894/0.7065, allocations: 0.5004 MB / 0.8414 GB, free: 14.35 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001374/0.7066, allocations: 118 kB / 0.8415 GB, free: 14.25 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001763/0.7068, allocations: 112.3 kB / 0.8416 GB, free: 14.18 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001737/0.707, allocations: 334.8 kB / 0.842 GB, free: 13.85 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003841/0.7074, allocations: 165.6 kB / 0.8421 GB, free: 13.77 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005418/0.7079, allocations: 347.3 kB / 0.8425 GB, free: 13.47 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008868/0.7088, allocations: 0.5099 MB / 0.8429 GB, free: 13.08 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.114e-06/0.7088, allocations: 5.375 kB / 0.843 GB, free: 13.07 MB / 0.6075 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001327/0.7102, allocations: 0.6229 MB / 0.8436 GB, free: 12.75 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 2.398e-05/0.7102, allocations: 9.438 kB / 0.8436 GB, free: 12.75 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.18e-05/0.7102, allocations: 5.188 kB / 0.8436 GB, free: 12.75 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.422e-05/0.7102, allocations: 7.656 kB / 0.8436 GB, free: 12.75 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004741/0.7107, allocations: 129.7 kB / 0.8437 GB, free: 12.71 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.447e-05/0.7108, allocations: 9.406 kB / 0.8437 GB, free: 12.71 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008004/0.7116, allocations: 88.11 kB / 0.8438 GB, free: 12.66 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.843e-05/0.7116, allocations: 28.84 kB / 0.8438 GB, free: 12.65 MB / 0.6075 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.0004602/0.7121, allocations: 274.6 kB / 0.8441 GB, free: 12.43 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002018/0.7123, allocations: 104.1 kB / 0.8442 GB, free: 12.38 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001042/0.7133, allocations: 0.492 MB / 0.8447 GB, free: 12.1 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.511e-05/0.7134, allocations: 4.375 kB / 0.8447 GB, free: 12.1 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.47e-06/0.7134, allocations: 0 / 0.8447 GB, free: 12.1 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007675/0.7142, allocations: 450.4 kB / 0.8451 GB, free: 11.8 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00248/0.7166, allocations: 1.361 MB / 0.8464 GB, free: 10.78 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.889e-06/0.7167, allocations: 1.125 kB / 0.8464 GB, free: 10.78 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000349/0.717, allocations: 80.62 kB / 0.8465 GB, free: 10.76 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.959e-06/0.717, allocations: 6.219 kB / 0.8465 GB, free: 10.75 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.797e-05/0.7171, allocations: 9.125 kB / 0.8465 GB, free: 10.75 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.661e-06/0.7171, allocations: 3 kB / 0.8465 GB, free: 10.75 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.146e-06/0.7171, allocations: 1.125 kB / 0.8465 GB, free: 10.75 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001446/0.7185, allocations: 0.7749 MB / 0.8473 GB, free: 10.25 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004347/0.719, allocations: 230.7 kB / 0.8475 GB, free: 10.05 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001327/0.7191, allocations: 16.58 kB / 0.8475 GB, free: 10.04 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005275/0.7197, allocations: 29.81 kB / 0.8475 GB, free: 10.02 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.302e-05/0.7198, allocations: 28.41 kB / 0.8476 GB, free: 10 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.604e-05/0.7198, allocations: 19.55 kB / 0.8476 GB, free: 9.996 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0009881/0.7208, allocations: 0.6607 MB / 0.8482 GB, free: 9.613 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.71e-07/0.7208, allocations: 0 / 0.8482 GB, free: 9.613 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.001366/0.7222, allocations: 341.5 kB / 0.8486 GB, free: 9.531 MB / 0.6075 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.00282/0.725, allocations: 1.607 MB / 0.8501 GB, free: 8.371 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.001149/0.7262, allocations: 420.5 kB / 0.8505 GB, free: 8.191 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 6.673e-06/0.7262, allocations: 1.594 kB / 0.8505 GB, free: 8.191 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0004581/0.7267, allocations: 191.4 kB / 0.8507 GB, free: 8.105 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002928/0.7296, allocations: 0.6082 MB / 0.8513 GB, free: 7.785 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01159/0.7412, allocations: 6.834 MB / 0.858 GB, free: 3.402 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007589/0.742, allocations: 1.04 MB / 0.859 GB, free: 2.539 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.0009427/0.743, allocations: 198.8 kB / 0.8592 GB, free: 2.453 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005377/0.7435, allocations: 370.6 kB / 0.8595 GB, free: 2.152 MB / 0.6075 GB Notification: Performance of SimCode: time 1.183e-06/0.7435, allocations: 3.938 kB / 0.8596 GB, free: 2.148 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07206/0.8156, allocations: 29.8 MB / 0.8886 GB, free: 5.172 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.01/10.82, allocations: 2.188 kB / 0.8887 GB, free: 5.172 MB / 0.6387 GB (rm -f BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_Interfaces_Examples_FourPortHeatMassExchanger_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Fluid_Interfaces_Examples_FourPortHeatMassExchanger.fmu > BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe 2>&1)