Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_3.0.0_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.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/Buildings 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-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(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange") translateModel(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001061/0.001061, allocations: 91.22 kB / 15.36 MB, free: 0.7383 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.008766/0.008767, allocations: 173 kB / 16.26 MB, free: 6.613 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.482/1.482, allocations: 223.3 MB / 240.3 MB, free: 5.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.852/2.852, allocations: 473.4 MB / 0.7469 GB, free: 6.102 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003544/0.0003548, allocations: 12.56 kB / 0.9158 GB, free: 33.21 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3529/0.3532, allocations: 162.2 MB / 1.074 GB, free: 7.539 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange): time 0.1767/0.53, allocations: 144.8 MB / 1.216 GB, free: 6.145 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001719/0.5318, allocations: 1.133 MB / 1.217 GB, free: 5.008 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001091/0.5319, allocations: 4 kB / 1.217 GB, free: 5.004 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0003408/0.5322, allocations: 47.8 kB / 1.217 GB, free: 4.957 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.0009043/0.5332, allocations: 274.9 kB / 1.217 GB, free: 4.688 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003072/0.5335, allocations: 147.5 kB / 1.217 GB, free: 4.543 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0005015/0.534, allocations: 239.3 kB / 1.217 GB, free: 4.309 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001478/0.5341, allocations: 53.38 kB / 1.217 GB, free: 4.254 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 7.654e-05/0.5342, allocations: 43.78 kB / 1.217 GB, free: 4.211 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 8.688e-05/0.5343, allocations: 43.77 kB / 1.218 GB, free: 4.168 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 1.481e-05/0.5343, allocations: 11.94 kB / 1.218 GB, free: 4.156 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006509/0.535, allocations: 411.1 kB / 1.218 GB, free: 3.754 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 5.319e-05/0.5351, allocations: 23.84 kB / 1.218 GB, free: 3.73 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 6.29e-05/0.5351, allocations: 77.38 kB / 1.218 GB, free: 3.648 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.000417/0.5356, allocations: 291.2 kB / 1.218 GB, free: 3.363 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 3.938e-06/0.5356, allocations: 0 / 1.218 GB, free: 3.363 MB / 0.9669 GB Notification: Performance of FrontEnd: time 2.014e-06/0.5356, allocations: 0 / 1.218 GB, free: 3.363 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 4.359e-06/0.5356, allocations: 0 / 1.218 GB, free: 3.363 MB / 0.9669 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.0006593/0.5363, allocations: 451 kB / 1.219 GB, free: 2.875 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.77e-05/0.5363, allocations: 8.031 kB / 1.219 GB, free: 2.867 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003022/0.5366, allocations: 40.66 kB / 1.219 GB, free: 2.828 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002381/0.5369, allocations: 208 kB / 1.219 GB, free: 2.586 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.583e-05/0.5369, allocations: 11.94 kB / 1.219 GB, free: 2.574 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.113e-05/0.5369, allocations: 8 kB / 1.219 GB, free: 2.566 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002834/0.5372, allocations: 125.6 kB / 1.219 GB, free: 2.438 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.358e-06/0.5372, allocations: 4 kB / 1.219 GB, free: 2.434 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.619e-05/0.5373, allocations: 4 kB / 1.219 GB, free: 2.43 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.106e-05/0.5373, allocations: 4 kB / 1.219 GB, free: 2.426 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002894/0.5376, allocations: 101 kB / 1.219 GB, free: 2.328 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007251/0.5383, allocations: 456.1 kB / 1.22 GB, free: 1.832 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002275/0.5385, allocations: 102.5 kB / 1.22 GB, free: 1.723 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001304/0.5387, allocations: 44.89 kB / 1.22 GB, free: 1.676 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 2.63e-05/0.5387, allocations: 7.984 kB / 1.22 GB, free: 1.668 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.16e-05/0.5387, allocations: 34.56 kB / 1.22 GB, free: 1.625 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=7): time 1.332e-06/0.5387, allocations: 0 / 1.22 GB, free: 1.625 MB / 0.9669 GB Notification: Performance of matching and sorting (n=7): time 0.0004973/0.5392, allocations: 161.4 kB / 1.22 GB, free: 1.461 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.011e-05/0.5393, allocations: 51.41 kB / 1.22 GB, free: 1.398 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001943/0.5395, allocations: 180.1 kB / 1.22 GB, free: 1.215 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 1.561e-05/0.5395, allocations: 29.64 kB / 1.22 GB, free: 1.18 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 8.346e-05/0.5396, allocations: 116 kB / 1.22 GB, free: 1.062 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 2.421e-05/0.5396, allocations: 23.64 kB / 1.22 GB, free: 1.039 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.856e-05/0.5397, allocations: 17.72 kB / 1.22 GB, free: 1.016 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.000216/0.5399, allocations: 322.8 kB / 1.221 GB, free: 0.6914 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001204/0.54, allocations: 47.91 kB / 1.221 GB, free: 0.6445 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001113/0.5401, allocations: 31.98 kB / 1.221 GB, free: 0.6133 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002492/0.5404, allocations: 92.81 kB / 1.221 GB, free: 0.5195 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/0.5404, allocations: 0 / 1.221 GB, free: 0.5195 MB / 0.9669 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002826/0.5407, allocations: 125.5 kB / 1.221 GB, free: 400 kB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.869e-05/0.5407, allocations: 9.562 kB / 1.221 GB, free: 392 kB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.919e-06/0.5407, allocations: 4 kB / 1.221 GB, free: 388 kB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.47e-05/0.5408, allocations: 0 / 1.221 GB, free: 388 kB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000135/0.5409, allocations: 23.92 kB / 1.221 GB, free: 364 kB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.22e-06/0.5409, allocations: 3.938 kB / 1.221 GB, free: 360 kB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.911e-05/0.541, allocations: 15.98 kB / 1.221 GB, free: 344 kB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.057e-05/0.541, allocations: 4 kB / 1.221 GB, free: 340 kB / 0.9669 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 0.0001106/0.5411, allocations: 129.7 kB / 1.221 GB, free: 200 kB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.622e-05/0.5412, allocations: 11.81 kB / 1.221 GB, free: 188 kB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003778/0.5416, allocations: 131 kB / 1.221 GB, free: 48 kB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.899e-06/0.5416, allocations: 3.984 kB / 1.221 GB, free: 44 kB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.893e-06/0.5416, allocations: 0 / 1.221 GB, free: 44 kB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.176e-06/0.5416, allocations: 7.938 kB / 1.221 GB, free: 36 kB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002596/0.5419, allocations: 225.5 kB / 1.222 GB, free: 15.77 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.875e-06/0.5419, allocations: 4 kB / 1.222 GB, free: 15.76 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001046/0.542, allocations: 15.98 kB / 1.222 GB, free: 15.75 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.067e-06/0.542, allocations: 4 kB / 1.222 GB, free: 15.74 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.057e-06/0.542, allocations: 0 / 1.222 GB, free: 15.74 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.242e-06/0.542, allocations: 0 / 1.222 GB, free: 15.74 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.542, allocations: 0 / 1.222 GB, free: 15.74 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004211/0.5425, allocations: 227.9 kB / 1.222 GB, free: 15.5 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 6.677e-05/0.5425, allocations: 89.02 kB / 1.222 GB, free: 15.4 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.236e-05/0.5426, allocations: 0 / 1.222 GB, free: 15.4 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001223/0.5427, allocations: 11.98 kB / 1.222 GB, free: 15.39 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.383e-05/0.5428, allocations: 7.938 kB / 1.222 GB, free: 15.38 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.592e-06/0.5428, allocations: 11.92 kB / 1.222 GB, free: 15.37 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0001193/0.5429, allocations: 136.2 kB / 1.222 GB, free: 15.23 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.6e-07/0.5429, allocations: 4 kB / 1.222 GB, free: 15.23 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002461/0.5431, allocations: 19.91 kB / 1.222 GB, free: 15.21 MB / 0.9825 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.0001943/0.5433, allocations: 103.2 kB / 1.222 GB, free: 15.1 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0002925/0.5437, allocations: 99.94 kB / 1.222 GB, free: 15 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.5437, allocations: 0 / 1.222 GB, free: 15 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001245/0.5438, allocations: 43.92 kB / 1.222 GB, free: 14.96 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004442/0.5442, allocations: 34.2 kB / 1.222 GB, free: 14.93 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006124/0.5449, allocations: 305.5 kB / 1.223 GB, free: 14.6 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003484/0.5452, allocations: 0.7082 MB / 1.223 GB, free: 13.87 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 8.336e-05/0.5453, allocations: 12.89 kB / 1.223 GB, free: 13.86 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.474e-05/0.5454, allocations: 15.42 kB / 1.223 GB, free: 13.84 MB / 0.9825 GB Notification: Performance of SimCode: time 2.1e-07/0.5454, allocations: 0 / 1.223 GB, free: 13.84 MB / 0.9825 GB Notification: Performance of Templates: time 0.004747/0.5501, allocations: 1.463 MB / 1.225 GB, free: 12.39 MB / 0.9825 GB make -j1 -f Buildings_3.0.0_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.makefile (rm -f Buildings_3.0.0_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.pipe ; mkfifo Buildings_3.0.0_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.pipe ; head -c 1048576 < Buildings_3.0.0_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.pipe >> ../files/Buildings_3.0.0_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.sim & ./Buildings_3.0.0_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_3.0.0_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.pipe 2>&1)