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.007798/0.007798, allocations: 98.36 kB / 15.73 MB, free: 5.602 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.001513/0.001513, allocations: 194.5 kB / 16.68 MB, free: 5.523 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.491/1.491, allocations: 222.9 MB / 240.4 MB, free: 14.95 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002579/0.002579, allocations: 286.6 kB / 290.8 MB, free: 14.41 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.049/1.049, allocations: 169.3 MB / 0.4983 GB, free: 4.422 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00406/0.004061, allocations: 99.84 kB / 0.681 GB, free: 7.457 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5186/0.5227, allocations: 86.99 MB / 0.7659 GB, free: 3.828 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Interfaces.Examples.EightPortHeatMassExchanger): time 0.0894/0.6121, allocations: 77.13 MB / 0.8412 GB, free: 6.426 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.03169/0.6439, allocations: 18.9 MB / 0.8597 GB, free: 3.48 MB / 0.6231 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004488/0.6484, allocations: 107.4 kB / 0.8598 GB, free: 3.375 MB / 0.6231 GB Notification: Performance of NFTyping.typeComponents: time 0.004205/0.6527, allocations: 1.258 MB / 0.861 GB, free: 2.109 MB / 0.6231 GB Notification: Performance of NFTyping.typeBindings: time 0.01206/0.6648, allocations: 3.62 MB / 0.8646 GB, free: 14.48 MB / 0.6387 GB Notification: Performance of NFTyping.typeClassSections: time 0.006354/0.6712, allocations: 2.093 MB / 0.8666 GB, free: 12.4 MB / 0.6387 GB Notification: Performance of NFFlatten.flatten: time 0.01165/0.6828, allocations: 6.694 MB / 0.8731 GB, free: 5.688 MB / 0.6387 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003796/0.6867, allocations: 2.082 MB / 0.8752 GB, free: 3.555 MB / 0.6387 GB Notification: Performance of NFEvalConstants.evaluate: time 0.006236/0.6929, allocations: 2.315 MB / 0.8774 GB, free: 1.242 MB / 0.6387 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004071/0.697, allocations: 1.759 MB / 0.8792 GB, free: 15.48 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 0.0006393/0.6977, allocations: 200 kB / 0.8793 GB, free: 15.28 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005688/0.7034, allocations: 1.618 MB / 0.8809 GB, free: 13.66 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 0.0009028/0.7043, allocations: 0.541 MB / 0.8815 GB, free: 13.12 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 0.002347/0.7067, allocations: 1.252 MB / 0.8827 GB, free: 11.86 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.007558/0.7142, allocations: 3.754 MB / 0.8863 GB, free: 8.098 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 1.16e-05/0.7143, allocations: 8 kB / 0.8864 GB, free: 8.09 MB / 0.6544 GB Notification: Performance of FrontEnd: time 1.834e-06/0.7143, allocations: 0 / 0.8864 GB, free: 8.09 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 5.474e-05/0.7144, allocations: 0 / 0.8864 GB, free: 8.09 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.005202/0.7196, allocations: 2.794 MB / 0.8891 GB, free: 5.227 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 5.22e-05/0.7197, allocations: 12.03 kB / 0.8891 GB, free: 5.215 MB / 0.6544 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002702/0.7199, allocations: 202.8 kB / 0.8893 GB, free: 5.008 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007777/0.7207, allocations: 279.3 kB / 0.8896 GB, free: 4.734 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003753/0.7245, allocations: 2.032 MB / 0.8915 GB, free: 2.652 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001129/0.7246, allocations: 110.7 kB / 0.8916 GB, free: 2.543 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002235/0.7248, allocations: 147.9 kB / 0.8918 GB, free: 2.398 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002785/0.7276, allocations: 1.513 MB / 0.8933 GB, free: 0.8086 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.736e-05/0.7277, allocations: 7.938 kB / 0.8933 GB, free: 0.8008 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001253/0.7278, allocations: 56 kB / 0.8933 GB, free: 0.7461 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.243e-05/0.7279, allocations: 36 kB / 0.8934 GB, free: 0.7109 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002339/0.7302, allocations: 1.126 MB / 0.8945 GB, free: 15.57 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.01035/0.7406, allocations: 7.624 MB / 0.9019 GB, free: 7.379 MB / 0.67 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001127/0.7417, allocations: 483.5 kB / 0.9024 GB, free: 6.902 MB / 0.67 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00067/0.7424, allocations: 338.8 kB / 0.9027 GB, free: 6.57 MB / 0.67 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001132/0.7435, allocations: 1.156 MB / 0.9038 GB, free: 5.156 MB / 0.67 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.124e-05/0.7436, allocations: 47.06 kB / 0.9039 GB, free: 5.102 MB / 0.67 GB Notification: Performance of pre-optimization done (n=59): time 2.195e-06/0.7436, allocations: 0 / 0.9039 GB, free: 5.102 MB / 0.67 GB Notification: Performance of matching and sorting (n=59): time 0.002517/0.7461, allocations: 0.974 MB / 0.9048 GB, free: 4.121 MB / 0.67 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.841e-05/0.7462, allocations: 59.97 kB / 0.9049 GB, free: 4.051 MB / 0.67 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002626/0.7488, allocations: 1.783 MB / 0.9066 GB, free: 2.23 MB / 0.67 GB Notification: Performance of collectPreVariables (initialization): time 0.0001136/0.749, allocations: 49.7 kB / 0.9067 GB, free: 2.176 MB / 0.67 GB Notification: Performance of collectInitialEqns (initialization): time 0.001001/0.75, allocations: 0.9334 MB / 0.9076 GB, free: 1.234 MB / 0.67 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003284/0.7503, allocations: 234 kB / 0.9078 GB, free: 1.004 MB / 0.67 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003448/0.7507, allocations: 226.8 kB / 0.908 GB, free: 0.7773 MB / 0.67 GB Notification: Performance of setup shared object (initialization): time 0.0001755/0.7508, allocations: 353.9 kB / 0.9083 GB, free: 436 kB / 0.67 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006927/0.7515, allocations: 326.4 kB / 0.9087 GB, free: 108 kB / 0.67 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00112/0.7527, allocations: 0.686 MB / 0.9093 GB, free: 15.27 MB / 0.6856 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001755/0.7544, allocations: 1.016 MB / 0.9103 GB, free: 14.12 MB / 0.6856 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.005e-06/0.7544, allocations: 4 kB / 0.9103 GB, free: 14.12 MB / 0.6856 GB Notification: Performance of matching and sorting (n=135) (initialization): time 0.002478/0.7569, allocations: 1.215 MB / 0.9115 GB, free: 12.89 MB / 0.6856 GB Notification: Performance of prepare postOptimizeDAE: time 2.812e-05/0.757, allocations: 14.97 kB / 0.9115 GB, free: 12.88 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.596e-05/0.757, allocations: 8 kB / 0.9115 GB, free: 12.88 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.69e-05/0.757, allocations: 20.77 kB / 0.9115 GB, free: 12.86 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001032/0.7581, allocations: 291.6 kB / 0.9118 GB, free: 12.57 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.444e-05/0.7581, allocations: 23.88 kB / 0.9119 GB, free: 12.55 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001313/0.7594, allocations: 166.9 kB / 0.912 GB, free: 12.38 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.992e-05/0.7595, allocations: 59.98 kB / 0.9121 GB, free: 12.32 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.0008464/0.7604, allocations: 437.4 kB / 0.9125 GB, free: 11.89 MB / 0.6856 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004302/0.7608, allocations: 198.7 kB / 0.9127 GB, free: 11.69 MB / 0.6856 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00189/0.7627, allocations: 0.8641 MB / 0.9135 GB, free: 10.82 MB / 0.6856 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.661e-05/0.7627, allocations: 11.94 kB / 0.9135 GB, free: 10.81 MB / 0.6856 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.942e-06/0.7628, allocations: 3.938 kB / 0.9135 GB, free: 10.81 MB / 0.6856 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001404/0.7642, allocations: 0.7996 MB / 0.9143 GB, free: 9.965 MB / 0.6856 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004358/0.7685, allocations: 2.451 MB / 0.9167 GB, free: 7.418 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.031e-06/0.7686, allocations: 0 / 0.9167 GB, free: 7.418 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007927/0.7694, allocations: 179.7 kB / 0.9169 GB, free: 7.242 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.181e-05/0.7694, allocations: 4 kB / 0.9169 GB, free: 7.238 MB / 0.6856 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.081e-05/0.7694, allocations: 19.94 kB / 0.9169 GB, free: 7.219 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.423e-06/0.7694, allocations: 4 kB / 0.9169 GB, free: 7.215 MB / 0.6856 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.569e-06/0.7695, allocations: 8.031 kB / 0.9169 GB, free: 7.207 MB / 0.6856 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002661/0.7722, allocations: 1.349 MB / 0.9182 GB, free: 5.82 MB / 0.6856 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007258/0.7729, allocations: 375.5 kB / 0.9186 GB, free: 5.434 MB / 0.6856 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002036/0.7731, allocations: 12 kB / 0.9186 GB, free: 5.422 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009667/0.7741, allocations: 71.91 kB / 0.9187 GB, free: 5.352 MB / 0.6856 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001212/0.7742, allocations: 52.44 kB / 0.9187 GB, free: 5.301 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.171e-05/0.7743, allocations: 35.97 kB / 0.9188 GB, free: 5.266 MB / 0.6856 GB Notification: Performance of sorting global known variables: time 0.001827/0.7761, allocations: 1.243 MB / 0.92 GB, free: 4.004 MB / 0.6856 GB Notification: Performance of sort global known variables: time 1.9e-07/0.7761, allocations: 0 / 0.92 GB, free: 4.004 MB / 0.6856 GB Notification: Performance of remove unused functions: time 0.002024/0.7782, allocations: 0.6548 MB / 0.9206 GB, free: 3.348 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.004135/0.7823, allocations: 2.404 MB / 0.923 GB, free: 0.9023 MB / 0.6856 GB Notification: Performance of simCode: created initialization part: time 0.001939/0.7843, allocations: 0.8164 MB / 0.9238 GB, free: 92 kB / 0.6856 GB Notification: Performance of simCode: created event and clocks part: time 1.37e-05/0.7843, allocations: 4.188 kB / 0.9238 GB, free: 88 kB / 0.6856 GB Notification: Performance of simCode: created simulation system equations: time 0.0007779/0.7851, allocations: 362.8 kB / 0.9241 GB, free: 15.73 MB / 0.7012 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005811/0.7909, allocations: 1.202 MB / 0.9253 GB, free: 14.55 MB / 0.7012 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02363/0.8146, allocations: 12.62 MB / 0.9376 GB, free: 1.418 MB / 0.7012 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001391/0.816, allocations: 1.409 MB / 0.939 GB, free: 15.97 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 0.001628/0.8176, allocations: 390.8 kB / 0.9393 GB, free: 15.6 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001314/0.819, allocations: 0.7648 MB / 0.9401 GB, free: 14.84 MB / 0.7169 GB Notification: Performance of SimCode: time 1.232e-06/0.819, allocations: 0 / 0.9401 GB, free: 14.84 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5049/1.324, allocations: 57.63 MB / 0.9964 GB, free: 177.9 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.09/13.41, allocations: 12.52 kB / 0.9964 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)