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.00533/0.00533, allocations: 100.7 kB / 15.73 MB, free: 6.004 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.001307/0.001307, allocations: 199.1 kB / 16.68 MB, free: 5.926 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.244/1.244, 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.002024/0.002024, allocations: 284.2 kB / 290.8 MB, free: 14.46 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8825/0.8825, allocations: 169.2 MB / 0.4983 GB, free: 4.43 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001814/0.001814, allocations: 91.86 kB / 0.681 GB, free: 7.461 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4131/0.4149, allocations: 86.97 MB / 0.7659 GB, free: 3.84 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Interfaces.Examples.EightPortHeatMassExchanger): time 0.07455/0.4895, allocations: 77.15 MB / 0.8412 GB, free: 6.422 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.02554/0.5151, allocations: 18.89 MB / 0.8597 GB, free: 3.48 MB / 0.6231 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00381/0.519, allocations: 111.3 kB / 0.8598 GB, free: 3.371 MB / 0.6231 GB Notification: Performance of NFTyping.typeComponents: time 0.003724/0.5227, allocations: 1.246 MB / 0.861 GB, free: 2.117 MB / 0.6231 GB Notification: Performance of NFTyping.typeBindings: time 0.01095/0.5337, allocations: 3.625 MB / 0.8646 GB, free: 14.48 MB / 0.6387 GB Notification: Performance of NFTyping.typeClassSections: time 0.005466/0.5392, allocations: 2.104 MB / 0.8666 GB, free: 12.39 MB / 0.6387 GB Notification: Performance of NFFlatten.flatten: time 0.00895/0.5482, allocations: 6.686 MB / 0.8731 GB, free: 5.688 MB / 0.6387 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003555/0.5518, allocations: 2.086 MB / 0.8752 GB, free: 3.547 MB / 0.6387 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005313/0.5571, allocations: 2.377 MB / 0.8775 GB, free: 1.176 MB / 0.6387 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002946/0.5601, allocations: 1.742 MB / 0.8792 GB, free: 15.43 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 0.000625/0.5607, allocations: 200 kB / 0.8794 GB, free: 15.23 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004116/0.5648, allocations: 1.634 MB / 0.881 GB, free: 13.59 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 0.0008818/0.5657, allocations: 0.5332 MB / 0.8815 GB, free: 13.06 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 0.002808/0.5685, allocations: 1.248 MB / 0.8827 GB, free: 11.8 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.006418/0.575, allocations: 3.755 MB / 0.8864 GB, free: 8.039 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 4.018e-06/0.575, allocations: 0 / 0.8864 GB, free: 8.039 MB / 0.6544 GB Notification: Performance of FrontEnd: time 1.082e-06/0.575, allocations: 0 / 0.8864 GB, free: 8.039 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 0.0001058/0.5751, allocations: 0 / 0.8864 GB, free: 8.039 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.0054/0.5805, allocations: 2.711 MB / 0.889 GB, free: 5.262 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 3.863e-05/0.5806, allocations: 12.03 kB / 0.8891 GB, free: 5.25 MB / 0.6544 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003076/0.5809, allocations: 194.8 kB / 0.8892 GB, free: 5.051 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007773/0.5817, allocations: 277.9 kB / 0.8895 GB, free: 4.777 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003144/0.5848, allocations: 2.023 MB / 0.8915 GB, free: 2.703 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.715e-05/0.5849, allocations: 106.7 kB / 0.8916 GB, free: 2.598 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001777/0.5851, allocations: 140 kB / 0.8917 GB, free: 2.461 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002409/0.5875, allocations: 1.524 MB / 0.8932 GB, free: 0.8594 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.129e-05/0.5875, allocations: 4 kB / 0.8932 GB, free: 0.8555 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001107/0.5877, allocations: 56 kB / 0.8933 GB, free: 0.8008 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.512e-05/0.5877, allocations: 43.98 kB / 0.8933 GB, free: 0.7578 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002034/0.5897, allocations: 1.123 MB / 0.8944 GB, free: 15.62 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.007649/0.5974, allocations: 7.602 MB / 0.9018 GB, free: 7.449 MB / 0.67 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008573/0.5983, allocations: 480.4 kB / 0.9023 GB, free: 6.977 MB / 0.67 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005657/0.5989, allocations: 330.9 kB / 0.9026 GB, free: 6.652 MB / 0.67 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007659/0.5996, allocations: 1.164 MB / 0.9037 GB, free: 5.23 MB / 0.67 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.722e-05/0.5997, allocations: 39.12 kB / 0.9038 GB, free: 5.184 MB / 0.67 GB Notification: Performance of pre-optimization done (n=59): time 2.054e-06/0.5997, allocations: 3.938 kB / 0.9038 GB, free: 5.18 MB / 0.67 GB Notification: Performance of matching and sorting (n=59): time 0.00201/0.6017, allocations: 0.9612 MB / 0.9047 GB, free: 4.211 MB / 0.67 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.142e-05/0.6017, allocations: 59.91 kB / 0.9048 GB, free: 4.141 MB / 0.67 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002002/0.6037, allocations: 1.791 MB / 0.9065 GB, free: 2.312 MB / 0.67 GB Notification: Performance of collectPreVariables (initialization): time 7.706e-05/0.6038, allocations: 41.7 kB / 0.9066 GB, free: 2.266 MB / 0.67 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006683/0.6045, allocations: 0.9317 MB / 0.9075 GB, free: 1.324 MB / 0.67 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001837/0.6047, allocations: 217 kB / 0.9077 GB, free: 1.109 MB / 0.67 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002576/0.605, allocations: 226.6 kB / 0.9079 GB, free: 0.8828 MB / 0.67 GB Notification: Performance of setup shared object (initialization): time 0.0001143/0.6051, allocations: 349.9 kB / 0.9082 GB, free: 0.5352 MB / 0.67 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006096/0.6057, allocations: 338.3 kB / 0.9085 GB, free: 208 kB / 0.67 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008425/0.6065, allocations: 0.686 MB / 0.9092 GB, free: 15.37 MB / 0.6856 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001403/0.608, allocations: 1.008 MB / 0.9102 GB, free: 14.23 MB / 0.6856 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.005e-06/0.608, allocations: 4 kB / 0.9102 GB, free: 14.22 MB / 0.6856 GB Notification: Performance of matching and sorting (n=135) (initialization): time 0.002029/0.61, allocations: 1.218 MB / 0.9114 GB, free: 13 MB / 0.6856 GB Notification: Performance of prepare postOptimizeDAE: time 2.185e-05/0.61, allocations: 11.28 kB / 0.9114 GB, free: 12.99 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.421e-05/0.6101, allocations: 12 kB / 0.9114 GB, free: 12.98 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.606e-05/0.6101, allocations: 16 kB / 0.9114 GB, free: 12.96 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009111/0.611, allocations: 288 kB / 0.9117 GB, free: 12.68 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.956e-05/0.611, allocations: 23.92 kB / 0.9117 GB, free: 12.66 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001047/0.6121, allocations: 162.4 kB / 0.9119 GB, free: 12.5 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.097e-05/0.6122, allocations: 48 kB / 0.9119 GB, free: 12.45 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.0005979/0.6128, allocations: 449.3 kB / 0.9124 GB, free: 12 MB / 0.6856 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002864/0.6131, allocations: 189.7 kB / 0.9125 GB, free: 11.81 MB / 0.6856 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001552/0.6146, allocations: 0.8639 MB / 0.9134 GB, free: 10.95 MB / 0.6856 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.222e-05/0.6147, allocations: 11.98 kB / 0.9134 GB, free: 10.93 MB / 0.6856 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.799e-06/0.6147, allocations: 0 / 0.9134 GB, free: 10.93 MB / 0.6856 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001166/0.6158, allocations: 0.7879 MB / 0.9142 GB, free: 10.1 MB / 0.6856 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003539/0.6194, allocations: 2.455 MB / 0.9166 GB, free: 7.551 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.983e-06/0.6194, allocations: 4 kB / 0.9166 GB, free: 7.547 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007285/0.6202, allocations: 176 kB / 0.9167 GB, free: 7.375 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.436e-06/0.6202, allocations: 4 kB / 0.9167 GB, free: 7.371 MB / 0.6856 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.289e-05/0.6202, allocations: 23.98 kB / 0.9168 GB, free: 7.348 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.723e-06/0.6202, allocations: 7.938 kB / 0.9168 GB, free: 7.34 MB / 0.6856 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.439e-06/0.6202, allocations: 4 kB / 0.9168 GB, free: 7.336 MB / 0.6856 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002115/0.6224, allocations: 1.344 MB / 0.9181 GB, free: 5.953 MB / 0.6856 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005692/0.6229, allocations: 362.6 kB / 0.9184 GB, free: 5.578 MB / 0.6856 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002689/0.6232, allocations: 16 kB / 0.9184 GB, free: 5.562 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009156/0.6241, allocations: 67.7 kB / 0.9185 GB, free: 5.496 MB / 0.6856 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001013/0.6243, allocations: 52.48 kB / 0.9186 GB, free: 5.445 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.978e-05/0.6243, allocations: 35.98 kB / 0.9186 GB, free: 5.41 MB / 0.6856 GB Notification: Performance of sorting global known variables: time 0.001545/0.6259, allocations: 1.243 MB / 0.9198 GB, free: 4.148 MB / 0.6856 GB Notification: Performance of sort global known variables: time 1.2e-07/0.6259, allocations: 0 / 0.9198 GB, free: 4.148 MB / 0.6856 GB Notification: Performance of remove unused functions: time 0.001555/0.6274, allocations: 0.6552 MB / 0.9204 GB, free: 3.492 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.003301/0.6307, allocations: 2.389 MB / 0.9228 GB, free: 1.059 MB / 0.6856 GB Notification: Performance of simCode: created initialization part: time 0.001526/0.6323, allocations: 0.8233 MB / 0.9236 GB, free: 244 kB / 0.6856 GB Notification: Performance of simCode: created event and clocks part: time 3.497e-06/0.6323, allocations: 0 / 0.9236 GB, free: 244 kB / 0.6856 GB Notification: Performance of simCode: created simulation system equations: time 0.0006344/0.6329, allocations: 356.5 kB / 0.9239 GB, free: 15.89 MB / 0.7012 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004204/0.6372, allocations: 1.193 MB / 0.9251 GB, free: 14.72 MB / 0.7012 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01667/0.6538, allocations: 12.56 MB / 0.9374 GB, free: 1.648 MB / 0.7012 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009399/0.6548, allocations: 1.405 MB / 0.9387 GB, free: 212 kB / 0.7012 GB Notification: Performance of simCode: alias equations: time 0.00136/0.6562, allocations: 381.8 kB / 0.9391 GB, free: 15.84 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008747/0.6571, allocations: 0.7687 MB / 0.9398 GB, free: 15.07 MB / 0.7169 GB Notification: Performance of SimCode: time 1.082e-06/0.6571, allocations: 4 kB / 0.9398 GB, free: 15.07 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3902/1.047, allocations: 58.5 MB / 0.997 GB, free: 177.7 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.28/11.33, allocations: 12.05 kB / 0.997 GB, free: 177.7 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)