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: translateModel(BuildingSystems.Fluid.Interfaces.Examples.FourPortHeatMassExchanger,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.FourPortHeatMassExchanger") translateModel(BuildingSystems.Fluid.Interfaces.Examples.FourPortHeatMassExchanger,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.FourPortHeatMassExchanger") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008578/0.0008579, allocations: 99.16 kB / 15.05 MB, free: 1.105 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.0009781/0.0009781, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.18/1.18, allocations: 223.2 MB / 239.9 MB, free: 5.422 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001713/0.001713, allocations: 266.6 kB / 291.2 MB, free: 1.984 MB / 238.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:5:3-5:34:writable] Warning: Got element f_alp that was not referenced in the package.order file. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:6:3-6:35:writable] Warning: Elements in the package.mo-file need to be in the same relative order as the package.order file. Got element named f_lay but it was already added because it was not the next element in the list at that time. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:6:3-6:35:writable] Warning: Got element f_lay that was not referenced in the package.order file. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:7:3-7:37:writable] Warning: Elements in the package.mo-file need to be in the same relative order as the package.order file. Got element named f_loss but it was already added because it was not the next element in the list at that time. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:7:3-7:37:writable] Warning: Got element f_loss that was not referenced in the package.order file. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:8:3-8:33:writable] Warning: Elements in the package.mo-file need to be in the same relative order as the package.order file. Got element named f_pv but it was already added because it was not the next element in the list at that time. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:8:3-8:33:writable] Warning: Got element f_pv that was not referenced in the package.order file. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:2:1-34:14:writable] Warning: f_pv was referenced in the package.order file, but was not found in package.mo, f_pv/package.mo or f_pv.mo. Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.7242/0.7242, allocations: 144.6 MB / 487 MB, free: 7.215 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003656/0.0003657, allocations: 12.69 kB / 0.5683 GB, free: 38.08 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1239/0.1243, allocations: 83.08 MB / 0.6494 GB, free: 3.652 MB / 446.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Interfaces.Examples.FourPortHeatMassExchanger): time 0.03027/0.1546, allocations: 34.8 MB / 0.6834 GB, free: 0.8008 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.01156/0.1662, allocations: 8.954 MB / 0.6921 GB, free: 7.828 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001101/0.1673, allocations: 47.69 kB / 0.6922 GB, free: 7.781 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00141/0.1687, allocations: 0.6063 MB / 0.6928 GB, free: 7.172 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003787/0.1725, allocations: 1.827 MB / 0.6946 GB, free: 5.34 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003103/0.1756, allocations: 1.351 MB / 0.6959 GB, free: 4.016 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.002521/0.1781, allocations: 1.968 MB / 0.6978 GB, free: 2.047 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008637/0.179, allocations: 0.7535 MB / 0.6985 GB, free: 1.285 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001209/0.1802, allocations: 0.8913 MB / 0.6994 GB, free: 400 kB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005606/0.1808, allocations: 0.5404 MB / 0.6999 GB, free: 15.85 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 7.43e-05/0.1809, allocations: 36 kB / 0.7 GB, free: 15.81 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001278/0.1822, allocations: 0.5461 MB / 0.7005 GB, free: 15.27 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001824/0.1824, allocations: 187.2 kB / 0.7007 GB, free: 15.08 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0002014/0.1826, allocations: 261.1 kB / 0.7009 GB, free: 14.82 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.001302/0.1839, allocations: 1.36 MB / 0.7023 GB, free: 13.46 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.356e-06/0.1839, allocations: 0 / 0.7023 GB, free: 13.46 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.393e-06/0.1839, allocations: 3.938 kB / 0.7023 GB, free: 13.45 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.048e-05/0.1839, allocations: 4 kB / 0.7023 GB, free: 13.45 MB / 0.4981 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.001951/0.1859, allocations: 1.306 MB / 0.7036 GB, free: 12.09 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 2.945e-05/0.1859, allocations: 8.031 kB / 0.7036 GB, free: 12.08 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002893/0.1862, allocations: 134.5 kB / 0.7037 GB, free: 11.95 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001466/0.1877, allocations: 0.9863 MB / 0.7047 GB, free: 10.92 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.955e-05/0.1877, allocations: 50 kB / 0.7047 GB, free: 10.87 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.681e-05/0.1878, allocations: 75.95 kB / 0.7048 GB, free: 10.8 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001242/0.1891, allocations: 0.7905 MB / 0.7055 GB, free: 9.973 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.854e-05/0.1891, allocations: 0 / 0.7055 GB, free: 9.973 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.012e-05/0.1892, allocations: 32 kB / 0.7056 GB, free: 9.941 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.929e-05/0.1892, allocations: 23.98 kB / 0.7056 GB, free: 9.918 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001016/0.1902, allocations: 0.5828 MB / 0.7062 GB, free: 9.336 MB / 0.4981 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.003789/0.194, allocations: 3.583 MB / 0.7097 GB, free: 5.527 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005105/0.1946, allocations: 273.1 kB / 0.7099 GB, free: 5.254 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004537/0.195, allocations: 0.6532 MB / 0.7106 GB, free: 4.453 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.428e-05/0.1951, allocations: 42.56 kB / 0.7106 GB, free: 4.402 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=31): time 1.653e-06/0.1951, allocations: 0 / 0.7106 GB, free: 4.402 MB / 0.4981 GB Notification: Performance of matching and sorting (n=31): time 0.001069/0.1962, allocations: 0.5486 MB / 0.7111 GB, free: 3.848 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.188e-05/0.1962, allocations: 55.41 kB / 0.7112 GB, free: 3.781 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001052/0.1973, allocations: 0.9612 MB / 0.7121 GB, free: 2.801 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 3.568e-05/0.1973, allocations: 37.7 kB / 0.7122 GB, free: 2.758 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003685/0.1977, allocations: 0.4956 MB / 0.7127 GB, free: 2.254 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 9.061e-05/0.1978, allocations: 110.5 kB / 0.7128 GB, free: 2.145 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.972e-05/0.1978, allocations: 12 kB / 0.7128 GB, free: 2.133 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001048/0.1979, allocations: 329.9 kB / 0.7131 GB, free: 1.805 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003339/0.1983, allocations: 173 kB / 0.7132 GB, free: 1.633 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004363/0.1987, allocations: 356.2 kB / 0.7136 GB, free: 1.215 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004027/0.1991, allocations: 231.8 kB / 0.7138 GB, free: 0.9883 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.709e-06/0.1992, allocations: 7.938 kB / 0.7138 GB, free: 0.9805 MB / 0.4981 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001024/0.2002, allocations: 0.6331 MB / 0.7144 GB, free: 348 kB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 2.048e-05/0.2002, allocations: 8 kB / 0.7144 GB, free: 340 kB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.205e-06/0.2002, allocations: 4 kB / 0.7144 GB, free: 336 kB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.792e-05/0.2002, allocations: 11.98 kB / 0.7145 GB, free: 324 kB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004213/0.2007, allocations: 127.8 kB / 0.7146 GB, free: 196 kB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.126e-05/0.2007, allocations: 8 kB / 0.7146 GB, free: 188 kB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006448/0.2013, allocations: 119.2 kB / 0.7147 GB, free: 68 kB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.163e-05/0.2014, allocations: 24 kB / 0.7147 GB, free: 44 kB / 0.4981 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.0003687/0.2018, allocations: 285.5 kB / 0.715 GB, free: 15.75 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001127/0.2019, allocations: 98.78 kB / 0.7151 GB, free: 15.66 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008843/0.2028, allocations: 0.4955 MB / 0.7156 GB, free: 15.15 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.412e-05/0.2028, allocations: 4 kB / 0.7156 GB, free: 15.14 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.767e-06/0.2028, allocations: 4 kB / 0.7156 GB, free: 15.14 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006617/0.2035, allocations: 473.2 kB / 0.716 GB, free: 14.65 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001963/0.2055, allocations: 1.394 MB / 0.7174 GB, free: 13.18 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.905e-06/0.2055, allocations: 0 / 0.7174 GB, free: 13.18 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003121/0.2058, allocations: 92.03 kB / 0.7175 GB, free: 13.09 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.608e-06/0.2058, allocations: 0 / 0.7175 GB, free: 13.09 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.183e-05/0.2058, allocations: 8 kB / 0.7175 GB, free: 13.09 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.707e-06/0.2058, allocations: 4 kB / 0.7175 GB, free: 13.08 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.955e-06/0.2059, allocations: 0 / 0.7175 GB, free: 13.08 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001172/0.207, allocations: 0.8686 MB / 0.7183 GB, free: 12.16 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003202/0.2074, allocations: 251.7 kB / 0.7186 GB, free: 11.89 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001032/0.2075, allocations: 8 kB / 0.7186 GB, free: 11.89 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005247/0.208, allocations: 65.95 kB / 0.7187 GB, free: 11.82 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.873e-05/0.2081, allocations: 31.86 kB / 0.7187 GB, free: 11.79 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.206e-05/0.2081, allocations: 19.98 kB / 0.7187 GB, free: 11.77 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0007486/0.2089, allocations: 0.6745 MB / 0.7194 GB, free: 11.09 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.9e-07/0.2089, allocations: 4 kB / 0.7194 GB, free: 11.09 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0008523/0.2097, allocations: 339.4 kB / 0.7197 GB, free: 10.75 MB / 0.5137 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.0006064/0.2103, allocations: 396.2 kB / 0.7201 GB, free: 10.37 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.0007798/0.2111, allocations: 440.4 kB / 0.7205 GB, free: 9.941 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.2111, allocations: 0 / 0.7205 GB, free: 9.941 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0003445/0.2115, allocations: 196.5 kB / 0.7207 GB, free: 9.75 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002356/0.2139, allocations: 0.5881 MB / 0.7212 GB, free: 9.168 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002254/0.2161, allocations: 1.942 MB / 0.7231 GB, free: 7.18 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005772/0.2167, allocations: 1.067 MB / 0.7242 GB, free: 6.078 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0005907/0.2173, allocations: 195.3 kB / 0.7244 GB, free: 5.891 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001427/0.2175, allocations: 79.42 kB / 0.7244 GB, free: 5.816 MB / 0.5137 GB Notification: Performance of SimCode: time 2.61e-07/0.2175, allocations: 0 / 0.7244 GB, free: 5.816 MB / 0.5137 GB Notification: Performance of Templates: time 0.02976/0.2472, allocations: 20.2 MB / 0.7442 GB, free: 1.93 MB / 0.5294 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.makefile Environment - environmentSimulation: (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 & ./BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.FourPortHeatMassExchanger -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe 2>&1) Environment - environmentSimulation: