Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.EightPortHeatMassExchanger.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.EightPortHeatMassExchanger,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Interfaces_Examples_EightPortHeatMassExchanger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.Interfaces.Examples.EightPortHeatMassExchanger,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Interfaces_Examples_EightPortHeatMassExchanger",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.007728/0.007728, allocations: 103.3 kB / 15.73 MB, free: 6 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.001219/0.001219, allocations: 193.8 kB / 16.68 MB, free: 5.922 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.213/1.213, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001996/0.001996, allocations: 299 kB / 290.8 MB, free: 14.44 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8667/0.8667, allocations: 169.2 MB / 0.4983 GB, free: 4.457 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001761/0.001761, allocations: 104.1 kB / 0.681 GB, free: 7.445 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4069/0.4086, allocations: 86.98 MB / 0.7659 GB, free: 3.816 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Interfaces.Examples.EightPortHeatMassExchanger): time 0.0648/0.4735, allocations: 77.14 MB / 0.8412 GB, free: 6.402 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.02364/0.4971, allocations: 18.89 MB / 0.8597 GB, free: 3.465 MB / 0.6231 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003263/0.5004, allocations: 111.3 kB / 0.8598 GB, free: 3.355 MB / 0.6231 GB Notification: Performance of NFTyping.typeComponents: time 0.003137/0.5036, allocations: 1.25 MB / 0.861 GB, free: 2.098 MB / 0.6231 GB Notification: Performance of NFTyping.typeBindings: time 0.008379/0.512, allocations: 3.626 MB / 0.8646 GB, free: 14.46 MB / 0.6387 GB Notification: Performance of NFTyping.typeClassSections: time 0.004639/0.5167, allocations: 2.099 MB / 0.8666 GB, free: 12.38 MB / 0.6387 GB Notification: Performance of NFFlatten.flatten: time 0.007807/0.5245, allocations: 6.682 MB / 0.8731 GB, free: 5.676 MB / 0.6387 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002966/0.5275, allocations: 2.09 MB / 0.8752 GB, free: 3.531 MB / 0.6387 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004542/0.532, allocations: 2.308 MB / 0.8774 GB, free: 1.227 MB / 0.6387 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002817/0.5349, allocations: 1.751 MB / 0.8791 GB, free: 15.47 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 0.0005362/0.5354, allocations: 200 kB / 0.8793 GB, free: 15.27 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0038/0.5392, allocations: 1.626 MB / 0.8809 GB, free: 13.65 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 0.0005331/0.5398, allocations: 0.5332 MB / 0.8814 GB, free: 13.11 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 0.001447/0.5412, allocations: 1.252 MB / 0.8827 GB, free: 11.86 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.005047/0.5463, allocations: 3.751 MB / 0.8863 GB, free: 8.094 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.5463, allocations: 0 / 0.8863 GB, free: 8.094 MB / 0.6544 GB Notification: Performance of FrontEnd: time 1.663e-06/0.5463, allocations: 0 / 0.8863 GB, free: 8.094 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 4.189e-05/0.5464, allocations: 0 / 0.8863 GB, free: 8.094 MB / 0.6544 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 344 * Number of variables: 344 Notification: Performance of Generate backend data structure: time 0.004319/0.5507, allocations: 2.707 MB / 0.889 GB, free: 5.32 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 4.065e-05/0.5507, allocations: 12.03 kB / 0.889 GB, free: 5.309 MB / 0.6544 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002227/0.551, allocations: 202.8 kB / 0.8892 GB, free: 5.102 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006295/0.5516, allocations: 269.9 kB / 0.8894 GB, free: 4.836 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003096/0.5547, allocations: 2.03 MB / 0.8914 GB, free: 2.758 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.099e-05/0.5548, allocations: 106.7 kB / 0.8915 GB, free: 2.652 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001775/0.555, allocations: 140 kB / 0.8916 GB, free: 2.516 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002417/0.5574, allocations: 1.532 MB / 0.8931 GB, free: 0.9062 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.98e-05/0.5575, allocations: 3.938 kB / 0.8931 GB, free: 0.9023 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001213/0.5576, allocations: 60 kB / 0.8932 GB, free: 0.8438 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.673e-05/0.5576, allocations: 36 kB / 0.8932 GB, free: 0.8086 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002064/0.5597, allocations: 1.122 MB / 0.8943 GB, free: 15.68 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.007689/0.5674, allocations: 7.599 MB / 0.9018 GB, free: 7.504 MB / 0.67 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009016/0.5683, allocations: 477.1 kB / 0.9022 GB, free: 7.031 MB / 0.67 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006074/0.5689, allocations: 334.9 kB / 0.9025 GB, free: 6.703 MB / 0.67 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007816/0.5697, allocations: 1.156 MB / 0.9037 GB, free: 5.289 MB / 0.67 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.808e-05/0.5698, allocations: 51.16 kB / 0.9037 GB, free: 5.23 MB / 0.67 GB Notification: Performance of pre-optimization done (n=59): time 2.084e-06/0.5698, allocations: 0 / 0.9037 GB, free: 5.23 MB / 0.67 GB Notification: Performance of matching and sorting (n=59): time 0.002083/0.5719, allocations: 0.9612 MB / 0.9046 GB, free: 4.262 MB / 0.67 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.175e-05/0.5719, allocations: 59.91 kB / 0.9047 GB, free: 4.191 MB / 0.67 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002042/0.574, allocations: 1.787 MB / 0.9065 GB, free: 2.367 MB / 0.67 GB Notification: Performance of collectPreVariables (initialization): time 6.512e-05/0.574, allocations: 49.7 kB / 0.9065 GB, free: 2.312 MB / 0.67 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006811/0.5747, allocations: 0.9239 MB / 0.9074 GB, free: 1.379 MB / 0.67 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001933/0.5749, allocations: 217 kB / 0.9076 GB, free: 1.164 MB / 0.67 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000268/0.5752, allocations: 230.6 kB / 0.9078 GB, free: 0.9336 MB / 0.67 GB Notification: Performance of setup shared object (initialization): time 0.0001274/0.5753, allocations: 349.9 kB / 0.9082 GB, free: 0.5859 MB / 0.67 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006431/0.576, allocations: 326.4 kB / 0.9085 GB, free: 272 kB / 0.67 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009077/0.5769, allocations: 0.6938 MB / 0.9091 GB, free: 15.42 MB / 0.6856 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001494/0.5784, allocations: 1.008 MB / 0.9101 GB, free: 14.28 MB / 0.6856 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.003e-06/0.5784, allocations: 4 kB / 0.9101 GB, free: 14.28 MB / 0.6856 GB Notification: Performance of matching and sorting (n=135) (initialization): time 0.002144/0.5806, allocations: 1.21 MB / 0.9113 GB, free: 13.06 MB / 0.6856 GB Notification: Performance of prepare postOptimizeDAE: time 1.977e-05/0.5806, allocations: 8 kB / 0.9113 GB, free: 13.05 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.327e-05/0.5806, allocations: 8 kB / 0.9113 GB, free: 13.04 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.522e-05/0.5807, allocations: 20.73 kB / 0.9114 GB, free: 13.02 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009555/0.5816, allocations: 299.5 kB / 0.9116 GB, free: 12.73 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.837e-05/0.5816, allocations: 15.94 kB / 0.9117 GB, free: 12.71 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001049/0.5827, allocations: 162.4 kB / 0.9118 GB, free: 12.55 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.247e-05/0.5828, allocations: 59.98 kB / 0.9119 GB, free: 12.5 MB / 0.6856 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 45 * 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 (135): * Single equations (assignments): 135 * 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.0006112/0.5834, allocations: 441.3 kB / 0.9123 GB, free: 12.05 MB / 0.6856 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002665/0.5837, allocations: 189.7 kB / 0.9125 GB, free: 11.87 MB / 0.6856 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00163/0.5853, allocations: 0.8643 MB / 0.9133 GB, free: 11 MB / 0.6856 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.365e-05/0.5853, allocations: 8 kB / 0.9133 GB, free: 10.99 MB / 0.6856 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.24e-06/0.5853, allocations: 0 / 0.9133 GB, free: 10.99 MB / 0.6856 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001246/0.5866, allocations: 0.7996 MB / 0.9141 GB, free: 10.15 MB / 0.6856 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003652/0.5903, allocations: 2.451 MB / 0.9165 GB, free: 7.602 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.01e-06/0.5903, allocations: 4.031 kB / 0.9165 GB, free: 7.598 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000764/0.591, allocations: 175.8 kB / 0.9167 GB, free: 7.426 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.556e-06/0.5911, allocations: 7.938 kB / 0.9167 GB, free: 7.418 MB / 0.6856 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.986e-05/0.5911, allocations: 16 kB / 0.9167 GB, free: 7.402 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.506e-06/0.5911, allocations: 7.938 kB / 0.9167 GB, free: 7.395 MB / 0.6856 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.529e-06/0.5911, allocations: 8 kB / 0.9167 GB, free: 7.387 MB / 0.6856 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002342/0.5935, allocations: 1.344 MB / 0.918 GB, free: 6.004 MB / 0.6856 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000655/0.5941, allocations: 358.6 kB / 0.9184 GB, free: 5.633 MB / 0.6856 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002114/0.5944, allocations: 16 kB / 0.9184 GB, free: 5.617 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009222/0.5953, allocations: 75.73 kB / 0.9184 GB, free: 5.543 MB / 0.6856 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001063/0.5954, allocations: 52.59 kB / 0.9185 GB, free: 5.492 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.346e-05/0.5955, allocations: 35.95 kB / 0.9185 GB, free: 5.457 MB / 0.6856 GB Notification: Performance of sorting global known variables: time 0.00165/0.5971, allocations: 1.243 MB / 0.9197 GB, free: 4.195 MB / 0.6856 GB Notification: Performance of sort global known variables: time 1.7e-07/0.5971, allocations: 0 / 0.9197 GB, free: 4.195 MB / 0.6856 GB Notification: Performance of remove unused functions: time 0.001578/0.5987, allocations: 0.6513 MB / 0.9204 GB, free: 3.543 MB / 0.6856 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 4 (eigPor.vol1.dynBal.U,eigPor.vol2.dynBal.U,eigPor.vol3.dynBal.U,eigPor.vol4.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 (64): * Single equations (assignments): 59 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 5 * 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.003436/0.6022, allocations: 2.389 MB / 0.9227 GB, free: 1.109 MB / 0.6856 GB Notification: Performance of simCode: created initialization part: time 0.001606/0.6038, allocations: 0.8165 MB / 0.9235 GB, free: 304 kB / 0.6856 GB Notification: Performance of simCode: created event and clocks part: time 3.827e-06/0.6038, allocations: 0 / 0.9235 GB, free: 304 kB / 0.6856 GB Notification: Performance of simCode: created simulation system equations: time 0.0006967/0.6045, allocations: 355.1 kB / 0.9239 GB, free: 15.95 MB / 0.7012 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005003/0.6095, allocations: 1.203 MB / 0.925 GB, free: 14.77 MB / 0.7012 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0185/0.628, allocations: 12.55 MB / 0.9373 GB, free: 1.703 MB / 0.7012 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001045/0.6291, allocations: 1.405 MB / 0.9387 GB, free: 268 kB / 0.7012 GB Notification: Performance of simCode: alias equations: time 0.001388/0.6305, allocations: 378 kB / 0.939 GB, free: 15.9 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001005/0.6315, allocations: 0.7687 MB / 0.9398 GB, free: 15.13 MB / 0.7169 GB Notification: Performance of SimCode: time 7.81e-07/0.6316, allocations: 0 / 0.9398 GB, free: 15.13 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3931/1.025, allocations: 57.25 MB / 0.9957 GB, free: 177.9 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.55/11.58, allocations: 5.875 kB / 0.9957 GB, free: 177.9 MB / 0.7325 GB (rm -f BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.EightPortHeatMassExchanger.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.EightPortHeatMassExchanger.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.EightPortHeatMassExchanger.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.EightPortHeatMassExchanger.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_Interfaces_Examples_EightPortHeatMassExchanger_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Fluid_Interfaces_Examples_EightPortHeatMassExchanger.fmu > BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.EightPortHeatMassExchanger.pipe 2>&1)