Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_1.6_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_1.6_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange") translateModel(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_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.001166/0.001166, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001129/0.001129, allocations: 198.7 kB / 16.54 MB, free: 6.672 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.403/1.403, allocations: 222.9 MB / 240.2 MB, free: 4.414 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.822/2.822, allocations: 472.6 MB / 0.7451 GB, free: 4.641 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001996/0.001996, allocations: 65.48 kB / 0.912 GB, free: 33.4 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3583/0.3604, allocations: 159.9 MB / 1.068 GB, free: 10.43 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange): time 0.1766/0.537, allocations: 149 MB / 1.214 GB, free: 4.863 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001687/0.5388, allocations: 1.137 MB / 1.215 GB, free: 3.723 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001884/0.539, allocations: 8 kB / 1.215 GB, free: 3.715 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0004079/0.5395, allocations: 55.67 kB / 1.215 GB, free: 3.66 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.000955/0.5404, allocations: 298.6 kB / 1.215 GB, free: 3.367 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005166/0.541, allocations: 171.3 kB / 1.215 GB, free: 3.199 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0005499/0.5415, allocations: 223.3 kB / 1.216 GB, free: 2.98 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001474/0.5417, allocations: 53.38 kB / 1.216 GB, free: 2.926 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 7.916e-05/0.5418, allocations: 55.77 kB / 1.216 GB, free: 2.871 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 9.505e-05/0.5419, allocations: 55.78 kB / 1.216 GB, free: 2.816 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 2.849e-05/0.5419, allocations: 12 kB / 1.216 GB, free: 2.805 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006414/0.5426, allocations: 367.2 kB / 1.216 GB, free: 2.445 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 6.912e-05/0.5426, allocations: 35.84 kB / 1.216 GB, free: 2.41 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 6.349e-05/0.5427, allocations: 59.67 kB / 1.216 GB, free: 2.352 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0004913/0.5432, allocations: 295.2 kB / 1.216 GB, free: 2.062 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 5.38e-06/0.5432, allocations: 0 / 1.216 GB, free: 2.062 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.733e-06/0.5432, allocations: 0 / 1.216 GB, free: 2.062 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 6.923e-06/0.5432, allocations: 0 / 1.216 GB, free: 2.062 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.0007056/0.544, allocations: 466.9 kB / 1.217 GB, free: 1.559 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.154e-05/0.544, allocations: 8.031 kB / 1.217 GB, free: 1.551 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003276/0.5443, allocations: 44.72 kB / 1.217 GB, free: 1.508 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002347/0.5446, allocations: 204 kB / 1.217 GB, free: 1.27 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.578e-05/0.5446, allocations: 11.94 kB / 1.217 GB, free: 1.258 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.01e-05/0.5446, allocations: 12 kB / 1.217 GB, free: 1.246 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000295/0.5449, allocations: 113.6 kB / 1.217 GB, free: 1.129 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.247e-06/0.545, allocations: 0 / 1.217 GB, free: 1.129 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.962e-05/0.545, allocations: 8 kB / 1.217 GB, free: 1.121 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.302e-06/0.545, allocations: 0 / 1.217 GB, free: 1.121 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002691/0.5453, allocations: 96.97 kB / 1.217 GB, free: 1.027 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007309/0.546, allocations: 460.1 kB / 1.218 GB, free: 0.5273 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002175/0.5463, allocations: 90.48 kB / 1.218 GB, free: 440 kB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001125/0.5464, allocations: 40.94 kB / 1.218 GB, free: 396 kB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 2.293e-05/0.5464, allocations: 0 / 1.218 GB, free: 396 kB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.573e-05/0.5464, allocations: 38.56 kB / 1.218 GB, free: 348 kB / 0.9669 GB Notification: Performance of pre-optimization done (n=7): time 1.072e-06/0.5464, allocations: 0 / 1.218 GB, free: 348 kB / 0.9669 GB Notification: Performance of matching and sorting (n=7): time 0.0004795/0.5469, allocations: 145.4 kB / 1.218 GB, free: 196 kB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.757e-05/0.547, allocations: 51.41 kB / 1.218 GB, free: 132 kB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002227/0.5472, allocations: 187.3 kB / 1.218 GB, free: 15.94 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 1.532e-05/0.5472, allocations: 29.64 kB / 1.218 GB, free: 15.9 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 8.552e-05/0.5473, allocations: 116 kB / 1.218 GB, free: 15.79 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 2.761e-05/0.5474, allocations: 23.66 kB / 1.218 GB, free: 15.76 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.561e-05/0.5474, allocations: 17.72 kB / 1.218 GB, free: 15.74 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001051/0.5475, allocations: 330.8 kB / 1.219 GB, free: 15.41 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000112/0.5477, allocations: 31.97 kB / 1.219 GB, free: 15.38 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001016/0.5478, allocations: 39.97 kB / 1.219 GB, free: 15.34 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002084/0.548, allocations: 69.3 kB / 1.219 GB, free: 15.27 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.744e-06/0.548, allocations: 0 / 1.219 GB, free: 15.27 MB / 0.9825 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002805/0.5483, allocations: 125.4 kB / 1.219 GB, free: 15.14 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.777e-05/0.5483, allocations: 4 kB / 1.219 GB, free: 15.13 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.045e-06/0.5483, allocations: 3.984 kB / 1.219 GB, free: 15.13 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.44e-05/0.5483, allocations: 7.938 kB / 1.219 GB, free: 15.12 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001288/0.5485, allocations: 15.98 kB / 1.219 GB, free: 15.11 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.301e-06/0.5485, allocations: 0 / 1.219 GB, free: 15.11 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.336e-05/0.5486, allocations: 11.94 kB / 1.219 GB, free: 15.09 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.236e-06/0.5486, allocations: 4 kB / 1.219 GB, free: 15.09 MB / 0.9825 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.937e-05/0.5487, allocations: 130.3 kB / 1.219 GB, free: 14.95 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.984e-05/0.5488, allocations: 19.81 kB / 1.219 GB, free: 14.93 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003325/0.5491, allocations: 119 kB / 1.219 GB, free: 14.81 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.916e-06/0.5491, allocations: 0 / 1.219 GB, free: 14.81 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.51e-06/0.5491, allocations: 0 / 1.219 GB, free: 14.81 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.141e-06/0.5491, allocations: 7.969 kB / 1.219 GB, free: 14.8 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002137/0.5493, allocations: 221.5 kB / 1.22 GB, free: 14.54 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.373e-06/0.5494, allocations: 4 kB / 1.22 GB, free: 14.53 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001038/0.5495, allocations: 19.98 kB / 1.22 GB, free: 14.51 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.126e-06/0.5495, allocations: 0 / 1.22 GB, free: 14.51 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.043e-05/0.5495, allocations: 0 / 1.22 GB, free: 14.51 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.753e-06/0.5495, allocations: 0 / 1.22 GB, free: 14.51 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.5495, allocations: 0 / 1.22 GB, free: 14.51 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003119/0.5498, allocations: 215.2 kB / 1.22 GB, free: 14.29 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 5.664e-05/0.5499, allocations: 97 kB / 1.22 GB, free: 14.17 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.33e-05/0.5499, allocations: 3.938 kB / 1.22 GB, free: 14.17 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001134/0.55, allocations: 4 kB / 1.22 GB, free: 14.16 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.395e-05/0.5501, allocations: 11.98 kB / 1.22 GB, free: 14.15 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.821e-06/0.5501, allocations: 3.938 kB / 1.22 GB, free: 14.15 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0001198/0.5502, allocations: 131.2 kB / 1.22 GB, free: 14.02 MB / 0.9825 GB Notification: Performance of sort global known variables: time 9e-08/0.5502, allocations: 0 / 1.22 GB, free: 14.02 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002536/0.5505, allocations: 23.98 kB / 1.22 GB, free: 14 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.0001983/0.5507, allocations: 107.2 kB / 1.22 GB, free: 13.88 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0002984/0.551, allocations: 79.83 kB / 1.22 GB, free: 13.8 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.465e-06/0.551, allocations: 4 kB / 1.22 GB, free: 13.8 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001191/0.5512, allocations: 35.97 kB / 1.22 GB, free: 13.76 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004909/0.5517, allocations: 29.23 kB / 1.22 GB, free: 13.73 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007002/0.5524, allocations: 268.7 kB / 1.221 GB, free: 13.45 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002902/0.5527, allocations: 0.7117 MB / 1.221 GB, free: 12.71 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 8.699e-05/0.5528, allocations: 8.891 kB / 1.221 GB, free: 12.7 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.623e-05/0.5528, allocations: 15.44 kB / 1.221 GB, free: 12.68 MB / 0.9825 GB Notification: Performance of SimCode: time 4.21e-07/0.5528, allocations: 0 / 1.221 GB, free: 12.68 MB / 0.9825 GB Notification: Performance of Templates: time 0.004802/0.5576, allocations: 1.587 MB / 1.223 GB, free: 11.12 MB / 0.9825 GB make -j1 -f Buildings_1.6_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.makefile (rm -f Buildings_1.6_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.pipe ; mkfifo Buildings_1.6_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.pipe ; head -c 1048576 < Buildings_1.6_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.pipe >> ../files/Buildings_1.6_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.sim & ./Buildings_1.6_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_1.6_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.pipe 2>&1)