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.00133/0.00133, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001395/0.001395, allocations: 192.6 kB / 16.14 MB, free: 6.715 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.445/1.445, allocations: 222.9 MB / 239.8 MB, free: 4.613 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002577/0.002578, allocations: 290.3 kB / 290.2 MB, free: 2.219 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.127/1.127, allocations: 178.6 MB / 0.5068 GB, free: 4.781 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002731/0.002731, allocations: 96.05 kB / 0.6057 GB, free: 25.14 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1824/0.1851, allocations: 89.14 MB / 0.6928 GB, free: 4.844 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Interfaces.Examples.FourPortHeatMassExchanger): time 0.04598/0.2311, allocations: 41.33 MB / 0.7331 GB, free: 11.38 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.01667/0.2479, allocations: 10.47 MB / 0.7434 GB, free: 0.8906 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001863/0.2498, allocations: 55.62 kB / 0.7434 GB, free: 0.8359 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.001675/0.2514, allocations: 0.5284 MB / 0.7439 GB, free: 312 kB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.00497/0.2565, allocations: 1.753 MB / 0.7456 GB, free: 14.55 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.002882/0.2594, allocations: 1.074 MB / 0.7467 GB, free: 13.48 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.005637/0.265, allocations: 4.51 MB / 0.7511 GB, free: 8.961 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001407/0.2664, allocations: 0.8792 MB / 0.752 GB, free: 8.066 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002094/0.2685, allocations: 1.042 MB / 0.753 GB, free: 7.02 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00129/0.2698, allocations: 0.8944 MB / 0.7538 GB, free: 6.121 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 0.0001205/0.27, allocations: 48 kB / 0.7539 GB, free: 6.074 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001932/0.2719, allocations: 0.7755 MB / 0.7546 GB, free: 5.297 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0002845/0.2722, allocations: 231 kB / 0.7549 GB, free: 5.07 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.000785/0.273, allocations: 0.5712 MB / 0.7554 GB, free: 4.496 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.00274/0.2757, allocations: 1.877 MB / 0.7573 GB, free: 2.613 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 4.469e-06/0.2758, allocations: 4 kB / 0.7573 GB, free: 2.609 MB / 0.545 GB Notification: Performance of FrontEnd: time 3.476e-06/0.2758, allocations: 0 / 0.7573 GB, free: 2.609 MB / 0.545 GB Notification: Performance of Transformations before backend: time 1.438e-05/0.2758, allocations: 3.938 kB / 0.7573 GB, free: 2.605 MB / 0.545 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.002786/0.2786, allocations: 1.503 MB / 0.7587 GB, free: 1.047 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 5.321e-05/0.2786, allocations: 12.02 kB / 0.7587 GB, free: 1.035 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003868/0.279, allocations: 143.4 kB / 0.7589 GB, free: 0.8945 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.3402/0.6193, allocations: 1.068 MB / 0.7599 GB, free: 69.62 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.288e-05/0.6194, allocations: 54.41 kB / 0.76 GB, free: 69.62 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001481/0.6195, allocations: 71.83 kB / 0.76 GB, free: 69.62 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001718/0.6213, allocations: 0.7908 MB / 0.7608 GB, free: 69.49 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.389e-05/0.6213, allocations: 5 kB / 0.7608 GB, free: 69.49 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.594e-05/0.6214, allocations: 30.58 kB / 0.7609 GB, free: 69.49 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.004e-05/0.6214, allocations: 21.14 kB / 0.7609 GB, free: 69.49 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001225/0.6226, allocations: 0.5762 MB / 0.7614 GB, free: 69.36 MB / 0.545 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.00463/0.6273, allocations: 3.536 MB / 0.7649 GB, free: 66.92 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006576/0.628, allocations: 263.1 kB / 0.7651 GB, free: 66.82 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003866/0.6284, allocations: 175 kB / 0.7653 GB, free: 66.77 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004036/0.6288, allocations: 0.6559 MB / 0.7659 GB, free: 66.01 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.816e-05/0.6288, allocations: 41.42 kB / 0.766 GB, free: 65.96 MB / 0.545 GB Notification: Performance of pre-optimization done (n=31): time 2.495e-06/0.6288, allocations: 1.406 kB / 0.766 GB, free: 65.96 MB / 0.545 GB Notification: Performance of matching and sorting (n=31): time 0.001412/0.6302, allocations: 0.5158 MB / 0.7665 GB, free: 65.77 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.646e-05/0.6303, allocations: 59.62 kB / 0.7665 GB, free: 65.7 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00128/0.6316, allocations: 0.9384 MB / 0.7675 GB, free: 65.3 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 4.166e-05/0.6316, allocations: 32.55 kB / 0.7675 GB, free: 65.27 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003171/0.6319, allocations: 499 kB / 0.768 GB, free: 64.88 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.000101/0.632, allocations: 111.9 kB / 0.7681 GB, free: 64.8 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001643/0.6322, allocations: 120.5 kB / 0.7682 GB, free: 64.73 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 6.361e-05/0.6323, allocations: 325.2 kB / 0.7685 GB, free: 64.42 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003675/0.6327, allocations: 161.1 kB / 0.7687 GB, free: 64.37 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004735/0.6331, allocations: 352.3 kB / 0.769 GB, free: 64.11 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000752/0.6339, allocations: 0.5073 MB / 0.7695 GB, free: 63.77 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.12e-06/0.6339, allocations: 2.25 kB / 0.7695 GB, free: 63.77 MB / 0.545 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001212/0.6351, allocations: 0.6165 MB / 0.7701 GB, free: 63.52 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 2.293e-05/0.6352, allocations: 10.73 kB / 0.7701 GB, free: 63.52 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.222e-05/0.6352, allocations: 7.938 kB / 0.7701 GB, free: 63.52 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.798e-05/0.6352, allocations: 13.39 kB / 0.7701 GB, free: 63.52 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004602/0.6357, allocations: 121.6 kB / 0.7702 GB, free: 63.51 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.719e-05/0.6357, allocations: 15.48 kB / 0.7703 GB, free: 63.5 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008111/0.6365, allocations: 109.6 kB / 0.7704 GB, free: 63.46 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.117e-05/0.6366, allocations: 29.22 kB / 0.7704 GB, free: 63.45 MB / 0.545 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.0004455/0.637, allocations: 281.7 kB / 0.7707 GB, free: 63.25 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001758/0.6372, allocations: 99.22 kB / 0.7707 GB, free: 63.2 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001022/0.6383, allocations: 489.1 kB / 0.7712 GB, free: 63 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.406e-05/0.6383, allocations: 11.72 kB / 0.7712 GB, free: 62.99 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.773e-06/0.6383, allocations: 1.812 kB / 0.7712 GB, free: 62.99 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006975/0.639, allocations: 450.5 kB / 0.7717 GB, free: 62.74 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002206/0.6412, allocations: 1.356 MB / 0.773 GB, free: 62.01 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.55e-06/0.6412, allocations: 1.25 kB / 0.773 GB, free: 62.01 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003801/0.6416, allocations: 80.64 kB / 0.7731 GB, free: 62 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.676e-06/0.6416, allocations: 2.375 kB / 0.7731 GB, free: 62 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.246e-05/0.6417, allocations: 10.27 kB / 0.7731 GB, free: 62 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.147e-06/0.6417, allocations: 3.453 kB / 0.7731 GB, free: 62 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.18e-06/0.6417, allocations: 2.344 kB / 0.7731 GB, free: 62 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001382/0.6431, allocations: 0.7704 MB / 0.7738 GB, free: 61.59 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003675/0.6435, allocations: 226.4 kB / 0.774 GB, free: 61.41 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001203/0.6436, allocations: 7.438 kB / 0.7741 GB, free: 61.41 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005777/0.6442, allocations: 62.05 kB / 0.7741 GB, free: 61.39 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.118e-05/0.6443, allocations: 25.67 kB / 0.7741 GB, free: 61.39 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.932e-05/0.6443, allocations: 23.67 kB / 0.7742 GB, free: 61.39 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.001063/0.6454, allocations: 0.6485 MB / 0.7748 GB, free: 61.11 MB / 0.545 GB Notification: Performance of sort global known variables: time 3.41e-07/0.6454, allocations: 0 / 0.7748 GB, free: 61.11 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.001133/0.6465, allocations: 333 kB / 0.7751 GB, free: 61.05 MB / 0.545 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.0008521/0.6474, allocations: 385.8 kB / 0.7755 GB, free: 60.94 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0009796/0.6484, allocations: 426.1 kB / 0.7759 GB, free: 60.81 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 4.198e-06/0.6484, allocations: 1.25 kB / 0.7759 GB, free: 60.81 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0003872/0.6488, allocations: 188.6 kB / 0.7761 GB, free: 60.76 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002804/0.6516, allocations: 0.5932 MB / 0.7766 GB, free: 60.66 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002772/0.6544, allocations: 1.926 MB / 0.7785 GB, free: 59.41 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006419/0.6551, allocations: 1.056 MB / 0.7796 GB, free: 58.66 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.001061/0.6561, allocations: 198.3 kB / 0.7797 GB, free: 58.63 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001904/0.6563, allocations: 75.09 kB / 0.7798 GB, free: 58.62 MB / 0.545 GB Notification: Performance of SimCode: time 1.483e-06/0.6564, allocations: 0 / 0.7798 GB, free: 58.62 MB / 0.545 GB Notification: Performance of Templates: time 0.03833/0.6947, allocations: 20.2 MB / 0.7995 GB, free: 50.22 MB / 0.545 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.makefile (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)