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.379/1.379, allocations: 252 MB / 267.6 MB, free: 10.93 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.001088/0.001088, allocations: 174.8 kB / 327.3 MB, free: 2.227 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.854/1.854, allocations: 205.4 MB / 0.5783 GB, free: 20.26 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.0008379/0.0008378, allocations: 86.3 kB / 0.6829 GB, free: 12.89 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003498/0.0003499, allocations: 10.09 kB / 0.797 GB, free: 135.1 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2092/0.2096, allocations: 106.4 MB / 0.9008 GB, free: 63.91 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange): time 0.1558/0.3654, allocations: 135.1 MB / 1.033 GB, free: 8.387 MB / 0.6823 GB Notification: Performance of NFInst.instExpressions: time 0.00138/0.3669, allocations: 1.052 MB / 1.034 GB, free: 7.332 MB / 0.6823 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001012/0.367, allocations: 4 kB / 1.034 GB, free: 7.328 MB / 0.6823 GB Notification: Performance of NFTyping.typeComponents: time 0.0002541/0.3672, allocations: 27.81 kB / 1.034 GB, free: 7.301 MB / 0.6823 GB Notification: Performance of NFTyping.typeBindings: time 0.0006596/0.3679, allocations: 199 kB / 1.034 GB, free: 7.105 MB / 0.6823 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003041/0.3682, allocations: 143.5 kB / 1.034 GB, free: 6.965 MB / 0.6823 GB Notification: Performance of NFFlatten.flatten: time 0.0004231/0.3687, allocations: 211.3 kB / 1.034 GB, free: 6.758 MB / 0.6823 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001207/0.3688, allocations: 45.28 kB / 1.034 GB, free: 6.711 MB / 0.6823 GB Notification: Performance of NFEvalConstants.evaluate: time 8.148e-05/0.3689, allocations: 39.84 kB / 1.034 GB, free: 6.672 MB / 0.6823 GB Notification: Performance of NFSimplifyModel.simplify: time 8.107e-05/0.369, allocations: 47.7 kB / 1.035 GB, free: 6.625 MB / 0.6823 GB Notification: Performance of NFPackage.collectConstants: time 1.458e-05/0.369, allocations: 4 kB / 1.035 GB, free: 6.621 MB / 0.6823 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004837/0.3695, allocations: 283.5 kB / 1.035 GB, free: 6.344 MB / 0.6823 GB Notification: Performance of NFScalarize.scalarize: time 4.111e-05/0.3695, allocations: 23.86 kB / 1.035 GB, free: 6.32 MB / 0.6823 GB Notification: Performance of NFVerifyModel.verify: time 3.646e-05/0.3696, allocations: 45.64 kB / 1.035 GB, free: 6.27 MB / 0.6823 GB Notification: Performance of NFConvertDAE.convert: time 0.0002869/0.3699, allocations: 199.9 kB / 1.035 GB, free: 6.074 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 5.3e-06/0.3699, allocations: 0 / 1.035 GB, free: 6.074 MB / 0.6823 GB Notification: Performance of FrontEnd: time 1.232e-06/0.3699, allocations: 4 kB / 1.035 GB, free: 6.07 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 5.17e-06/0.3699, allocations: 0 / 1.035 GB, free: 6.07 MB / 0.6823 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.0006336/0.3706, allocations: 447.7 kB / 1.035 GB, free: 5.586 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 4.01e-05/0.3706, allocations: 8.031 kB / 1.035 GB, free: 5.578 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002707/0.3709, allocations: 47.67 kB / 1.036 GB, free: 5.531 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002456/0.3711, allocations: 198.9 kB / 1.036 GB, free: 5.297 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.385e-05/0.3712, allocations: 7.938 kB / 1.036 GB, free: 5.289 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.208e-05/0.3712, allocations: 12 kB / 1.036 GB, free: 5.277 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002925/0.3715, allocations: 126.2 kB / 1.036 GB, free: 5.148 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.768e-06/0.3715, allocations: 8 kB / 1.036 GB, free: 5.141 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.878e-05/0.3715, allocations: 7.953 kB / 1.036 GB, free: 5.133 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.099e-06/0.3715, allocations: 0 / 1.036 GB, free: 5.133 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002836/0.3718, allocations: 99.94 kB / 1.036 GB, free: 5.035 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007268/0.3726, allocations: 456.2 kB / 1.036 GB, free: 4.539 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002061/0.3728, allocations: 94.55 kB / 1.036 GB, free: 4.438 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001215/0.3729, allocations: 56.86 kB / 1.037 GB, free: 4.379 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 2.159e-05/0.3729, allocations: 0 / 1.037 GB, free: 4.379 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.948e-05/0.373, allocations: 30.56 kB / 1.037 GB, free: 4.34 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=7): time 8.92e-07/0.373, allocations: 0 / 1.037 GB, free: 4.34 MB / 0.6823 GB Notification: Performance of matching and sorting (n=7): time 0.0004464/0.3734, allocations: 161.4 kB / 1.037 GB, free: 4.176 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.431e-05/0.3735, allocations: 63.39 kB / 1.037 GB, free: 4.102 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001873/0.3737, allocations: 175.5 kB / 1.037 GB, free: 3.922 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 2.852e-05/0.3737, allocations: 29.7 kB / 1.037 GB, free: 3.887 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 7.885e-05/0.3738, allocations: 112 kB / 1.037 GB, free: 3.773 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 2.172e-05/0.3739, allocations: 23.7 kB / 1.037 GB, free: 3.75 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.019e-06/0.3739, allocations: 0 / 1.037 GB, free: 3.75 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001356/0.374, allocations: 326.8 kB / 1.037 GB, free: 3.422 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001217/0.3741, allocations: 35.92 kB / 1.037 GB, free: 3.387 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001088/0.3743, allocations: 43.97 kB / 1.038 GB, free: 3.344 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001205/0.3744, allocations: 39.98 kB / 1.038 GB, free: 3.305 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.3744, allocations: 0 / 1.038 GB, free: 3.305 MB / 0.6823 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002955/0.3747, allocations: 129.9 kB / 1.038 GB, free: 3.172 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 1.867e-05/0.3747, allocations: 7.984 kB / 1.038 GB, free: 3.164 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.432e-06/0.3747, allocations: 4.078 kB / 1.038 GB, free: 3.16 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.341e-05/0.3748, allocations: 0 / 1.038 GB, free: 3.16 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001344/0.3749, allocations: 19.98 kB / 1.038 GB, free: 3.141 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.697e-06/0.3749, allocations: 7.938 kB / 1.038 GB, free: 3.133 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001033/0.375, allocations: 15.94 kB / 1.038 GB, free: 3.117 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.628e-06/0.375, allocations: 11.88 kB / 1.038 GB, free: 3.105 MB / 0.6823 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001037/0.3751, allocations: 121.8 kB / 1.038 GB, free: 2.977 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.406e-05/0.3752, allocations: 15.75 kB / 1.038 GB, free: 2.961 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000347/0.3755, allocations: 131 kB / 1.038 GB, free: 2.828 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.827e-06/0.3756, allocations: 4 kB / 1.038 GB, free: 2.824 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.428e-06/0.3756, allocations: 0 / 1.038 GB, free: 2.824 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.362e-06/0.3756, allocations: 7.938 kB / 1.038 GB, free: 2.816 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002285/0.3758, allocations: 213.6 kB / 1.038 GB, free: 2.559 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.024e-06/0.3758, allocations: 0 / 1.038 GB, free: 2.559 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000113/0.3759, allocations: 27.92 kB / 1.038 GB, free: 2.531 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.552e-06/0.376, allocations: 4 kB / 1.038 GB, free: 2.527 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.247e-06/0.376, allocations: 0 / 1.038 GB, free: 2.527 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.222e-06/0.376, allocations: 4 kB / 1.038 GB, free: 2.523 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.11e-07/0.376, allocations: 4 kB / 1.038 GB, free: 2.52 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003204/0.3763, allocations: 219.3 kB / 1.038 GB, free: 2.289 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 6.784e-05/0.3764, allocations: 96.94 kB / 1.039 GB, free: 2.176 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.15e-05/0.3764, allocations: 4 kB / 1.039 GB, free: 2.172 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001166/0.3765, allocations: 4 kB / 1.039 GB, free: 2.168 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.683e-05/0.3766, allocations: 7.984 kB / 1.039 GB, free: 2.16 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.681e-06/0.3766, allocations: 0 / 1.039 GB, free: 2.16 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 0.0001158/0.3767, allocations: 143.5 kB / 1.039 GB, free: 2.02 MB / 0.6823 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3767, allocations: 0 / 1.039 GB, free: 2.02 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.0002335/0.377, allocations: 19.91 kB / 1.039 GB, free: 2 MB / 0.6823 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 (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.0002083/0.3772, allocations: 121.2 kB / 1.039 GB, free: 1.871 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.000283/0.3775, allocations: 79.95 kB / 1.039 GB, free: 1.793 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.3775, allocations: 4 kB / 1.039 GB, free: 1.789 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.0001437/0.3776, allocations: 47.91 kB / 1.039 GB, free: 1.742 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000407/0.3781, allocations: 30.72 kB / 1.039 GB, free: 1.715 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005638/0.3786, allocations: 335.1 kB / 1.039 GB, free: 1.355 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000292/0.3789, allocations: 0.7083 MB / 1.04 GB, free: 0.6211 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.167e-05/0.379, allocations: 19.44 kB / 1.04 GB, free: 0.6055 MB / 0.6823 GB Notification: Performance of SimCode: time 2.61e-07/0.379, allocations: 0 / 1.04 GB, free: 0.6055 MB / 0.6823 GB Notification: Performance of Templates: time 0.003237/0.3822, allocations: 1.658 MB / 1.042 GB, free: 14.96 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)