Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: translateModel(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange") translateModel(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.434/1.434, allocations: 251.5 MB / 267.4 MB, free: 11.05 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001496/0.001496, allocations: 176.2 kB / 326.5 MB, free: 2.688 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.736/1.736, allocations: 205 MB / 0.5766 GB, free: 20.98 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007916/0.0007915, allocations: 82.38 kB / 0.6804 GB, free: 14.7 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003367/0.0003366, allocations: 11.56 kB / 0.7938 GB, free: 136.4 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2122/0.2126, allocations: 105.4 MB / 0.8967 GB, free: 68.14 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange): time 0.1444/0.357, allocations: 146.4 MB / 1.04 GB, free: 1.172 MB / 0.6823 GB Notification: Performance of NFInst.instExpressions: time 0.001652/0.3587, allocations: 1.141 MB / 1.041 GB, free: 28 kB / 0.6823 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000159/0.3589, allocations: 0 / 1.041 GB, free: 28 kB / 0.6823 GB Notification: Performance of NFTyping.typeComponents: time 0.0003762/0.3593, allocations: 51.73 kB / 1.041 GB, free: 15.98 MB / 0.698 GB Notification: Performance of NFTyping.typeBindings: time 0.0008138/0.3601, allocations: 286.9 kB / 1.041 GB, free: 15.7 MB / 0.698 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003473/0.3605, allocations: 143.5 kB / 1.041 GB, free: 15.55 MB / 0.698 GB Notification: Performance of NFFlatten.flatten: time 0.0004741/0.3609, allocations: 239.2 kB / 1.042 GB, free: 15.32 MB / 0.698 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001352/0.3611, allocations: 49.09 kB / 1.042 GB, free: 15.27 MB / 0.698 GB Notification: Performance of NFEvalConstants.evaluate: time 8.388e-05/0.3612, allocations: 43.83 kB / 1.042 GB, free: 15.23 MB / 0.698 GB Notification: Performance of NFSimplifyModel.simplify: time 8.841e-05/0.3613, allocations: 51.66 kB / 1.042 GB, free: 15.18 MB / 0.698 GB Notification: Performance of NFPackage.collectConstants: time 1.691e-05/0.3613, allocations: 8 kB / 1.042 GB, free: 15.17 MB / 0.698 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000613/0.3619, allocations: 407.2 kB / 1.042 GB, free: 14.77 MB / 0.698 GB Notification: Performance of NFScalarize.scalarize: time 5.026e-05/0.362, allocations: 23.84 kB / 1.042 GB, free: 14.75 MB / 0.698 GB Notification: Performance of NFVerifyModel.verify: time 6.156e-05/0.3621, allocations: 55.61 kB / 1.042 GB, free: 14.69 MB / 0.698 GB Notification: Performance of NFConvertDAE.convert: time 0.0003462/0.3624, allocations: 199.6 kB / 1.042 GB, free: 14.5 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 4.468e-06/0.3624, allocations: 3.938 kB / 1.042 GB, free: 14.49 MB / 0.698 GB Notification: Performance of FrontEnd: time 1.392e-06/0.3624, allocations: 0 / 1.042 GB, free: 14.49 MB / 0.698 GB Notification: Performance of Transformations before backend: time 6.021e-06/0.3624, allocations: 0 / 1.042 GB, free: 14.49 MB / 0.698 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 25 * Number of variables: 25 Notification: Performance of Generate backend data structure: time 0.0007161/0.3632, allocations: 447 kB / 1.043 GB, free: 14.01 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 4.741e-05/0.3632, allocations: 8.031 kB / 1.043 GB, free: 14 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003357/0.3636, allocations: 40.72 kB / 1.043 GB, free: 13.96 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000261/0.3638, allocations: 204.8 kB / 1.043 GB, free: 13.72 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.867e-05/0.3639, allocations: 19.88 kB / 1.043 GB, free: 13.7 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.059e-05/0.3639, allocations: 8 kB / 1.043 GB, free: 13.7 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000283/0.3642, allocations: 126.2 kB / 1.043 GB, free: 13.57 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.155e-06/0.3642, allocations: 0 / 1.043 GB, free: 13.57 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.562e-05/0.3642, allocations: 4 kB / 1.043 GB, free: 13.56 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.653e-06/0.3642, allocations: 4 kB / 1.043 GB, free: 13.56 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002703/0.3645, allocations: 100.8 kB / 1.043 GB, free: 13.46 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007304/0.3652, allocations: 464 kB / 1.044 GB, free: 12.96 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002185/0.3655, allocations: 102.5 kB / 1.044 GB, free: 12.85 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001184/0.3656, allocations: 40.91 kB / 1.044 GB, free: 12.8 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 2.239e-05/0.3656, allocations: 0 / 1.044 GB, free: 12.8 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.281e-05/0.3657, allocations: 34.56 kB / 1.044 GB, free: 12.76 MB / 0.698 GB Notification: Performance of pre-optimization done (n=7): time 1.432e-06/0.3657, allocations: 0 / 1.044 GB, free: 12.76 MB / 0.698 GB Notification: Performance of matching and sorting (n=7): time 0.0004515/0.3661, allocations: 161.5 kB / 1.044 GB, free: 12.6 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.285e-05/0.3662, allocations: 55.34 kB / 1.044 GB, free: 12.53 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001903/0.3664, allocations: 187.5 kB / 1.044 GB, free: 12.34 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 1.445e-05/0.3664, allocations: 25.7 kB / 1.044 GB, free: 12.31 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 7.397e-05/0.3665, allocations: 115.9 kB / 1.044 GB, free: 12.19 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 1.833e-05/0.3665, allocations: 19.66 kB / 1.044 GB, free: 12.17 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.642e-05/0.3665, allocations: 17.7 kB / 1.044 GB, free: 12.15 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 9.548e-05/0.3666, allocations: 334.7 kB / 1.045 GB, free: 11.81 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001129/0.3668, allocations: 35.98 kB / 1.045 GB, free: 11.78 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001013/0.3669, allocations: 39.97 kB / 1.045 GB, free: 11.74 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002062/0.3671, allocations: 81.3 kB / 1.045 GB, free: 11.66 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.873e-06/0.3671, allocations: 0 / 1.045 GB, free: 11.66 MB / 0.698 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002746/0.3674, allocations: 129.5 kB / 1.045 GB, free: 11.52 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 1.714e-05/0.3674, allocations: 7.984 kB / 1.045 GB, free: 11.52 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.719e-06/0.3674, allocations: 7.938 kB / 1.045 GB, free: 11.51 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.428e-05/0.3674, allocations: 0 / 1.045 GB, free: 11.51 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001307/0.3676, allocations: 23.98 kB / 1.045 GB, free: 11.48 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.38e-06/0.3676, allocations: 0 / 1.045 GB, free: 11.48 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001011/0.3677, allocations: 15.84 kB / 1.045 GB, free: 11.47 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.707e-06/0.3677, allocations: 7.938 kB / 1.045 GB, free: 11.46 MB / 0.698 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * 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 (8): * Single equations (assignments): 8 * 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 9.081e-05/0.3678, allocations: 125.8 kB / 1.045 GB, free: 11.33 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.572e-05/0.3678, allocations: 19.81 kB / 1.045 GB, free: 11.31 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003222/0.3682, allocations: 131 kB / 1.045 GB, free: 11.18 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.941e-06/0.3682, allocations: 3.984 kB / 1.045 GB, free: 11.17 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.489e-06/0.3682, allocations: 0 / 1.045 GB, free: 11.17 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.358e-06/0.3682, allocations: 7.984 kB / 1.045 GB, free: 11.16 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002095/0.3684, allocations: 221.5 kB / 1.046 GB, free: 10.9 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.232e-06/0.3684, allocations: 0 / 1.046 GB, free: 10.9 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000105/0.3685, allocations: 19.98 kB / 1.046 GB, free: 10.88 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.835e-06/0.3685, allocations: 0 / 1.046 GB, free: 10.88 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.287e-06/0.3686, allocations: 0 / 1.046 GB, free: 10.88 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.873e-06/0.3686, allocations: 0 / 1.046 GB, free: 10.88 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.984e-06/0.3686, allocations: 0 / 1.046 GB, free: 10.88 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003096/0.3689, allocations: 227.3 kB / 1.046 GB, free: 10.64 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 5.985e-05/0.369, allocations: 92.91 kB / 1.046 GB, free: 10.53 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.343e-05/0.369, allocations: 0 / 1.046 GB, free: 10.53 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001258/0.3691, allocations: 16 kB / 1.046 GB, free: 10.52 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.059e-05/0.3692, allocations: 11.98 kB / 1.046 GB, free: 10.5 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.54e-06/0.3692, allocations: 0 / 1.046 GB, free: 10.5 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.0001122/0.3693, allocations: 139.5 kB / 1.046 GB, free: 10.37 MB / 0.698 GB Notification: Performance of sort global known variables: time 1.21e-07/0.3693, allocations: 0 / 1.046 GB, free: 10.37 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0002318/0.3695, allocations: 23.94 kB / 1.046 GB, free: 10.34 MB / 0.698 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 simulation (7): * Single equations (assignments): 7 * 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 Backend phase and start with SimCode phase: time 0.0001701/0.3697, allocations: 107.2 kB / 1.046 GB, free: 10.23 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.0002856/0.37, allocations: 95.83 kB / 1.046 GB, free: 10.13 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 2.584e-06/0.37, allocations: 0 / 1.046 GB, free: 10.13 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.000121/0.3702, allocations: 43.97 kB / 1.046 GB, free: 10.09 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004306/0.3706, allocations: 31.97 kB / 1.046 GB, free: 10.06 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000593/0.3712, allocations: 317.5 kB / 1.047 GB, free: 9.719 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002718/0.3715, allocations: 0.7121 MB / 1.047 GB, free: 8.98 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.454e-05/0.3716, allocations: 15.44 kB / 1.047 GB, free: 8.969 MB / 0.698 GB Notification: Performance of SimCode: time 3.9e-07/0.3716, allocations: 0 / 1.047 GB, free: 8.969 MB / 0.698 GB Notification: Performance of Templates: time 0.003392/0.375, allocations: 1.634 MB / 1.049 GB, free: 7.344 MB / 0.698 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.makefile (rm -f Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.sim & ./Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.pipe 2>&1)