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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 1.6.0+build.1/package.mo", uses=false) Using package Buildings with version 1.6 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 1.6.0+build.1/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 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.0009591/0.000959, allocations: 100.2 kB / 15.05 MB, free: 1.105 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.0009644/0.0009645, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.392/1.392, allocations: 205.4 MB / 222.1 MB, free: 5.527 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 1.6.0+build.1/package.mo): time 0.6331/0.6331, allocations: 95.58 MB / 366 MB, free: 10.36 MB / 302.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Buildings requested package Modelica of version 3.2.1. Modelica 3.2.3 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005513/0.0005513, allocations: 23.94 kB / 446.8 MB, free: 9.359 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3013/0.3018, allocations: 70.34 MB / 0.505 GB, free: 16.48 MB / 382.1 MB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange): time 0.453/0.7549, allocations: 129.6 MB / 0.6316 GB, free: 2.016 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.002601/0.7576, allocations: 2.137 MB / 0.6337 GB, free: 1.992 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001071/0.7577, allocations: 1.562 kB / 0.6337 GB, free: 1.992 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002559/0.758, allocations: 36 kB / 0.6337 GB, free: 1.992 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001568/0.7595, allocations: 478.8 kB / 0.6342 GB, free: 1.988 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002107/0.7598, allocations: 95.31 kB / 0.6343 GB, free: 1.984 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008712/0.7606, allocations: 362.1 kB / 0.6346 GB, free: 1.98 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001437/0.7608, allocations: 49.47 kB / 0.6347 GB, free: 1.977 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.457e-05/0.7609, allocations: 30.84 kB / 0.6347 GB, free: 1.977 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.519e-05/0.761, allocations: 51.67 kB / 0.6348 GB, free: 1.973 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.51e-05/0.761, allocations: 3.594 kB / 0.6348 GB, free: 1.973 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003156/0.7613, allocations: 160.7 kB / 0.6349 GB, free: 1.973 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 4.279e-05/0.7614, allocations: 19.64 kB / 0.6349 GB, free: 1.973 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001504/0.7615, allocations: 43.8 kB / 0.635 GB, free: 17.94 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0002566/0.7618, allocations: 161.1 kB / 0.6351 GB, free: 17.93 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 2.585e-06/0.7618, allocations: 0 / 0.6351 GB, free: 17.93 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.984e-06/0.7618, allocations: 1.344 kB / 0.6351 GB, free: 17.93 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 4.488e-06/0.7618, allocations: 1.688 kB / 0.6351 GB, free: 17.93 MB / 0.4981 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 26 * Number of variables: 26 Notification: Performance of Generate backend data structure: time 0.0005859/0.7624, allocations: 440.6 kB / 0.6355 GB, free: 17.53 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.838e-05/0.7624, allocations: 12.39 kB / 0.6356 GB, free: 17.52 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002251/0.7627, allocations: 35.86 kB / 0.6356 GB, free: 17.52 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002333/0.7629, allocations: 215.9 kB / 0.6358 GB, free: 17.31 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.7e-05/0.7629, allocations: 7.781 kB / 0.6358 GB, free: 17.31 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.98e-05/0.763, allocations: 11.97 kB / 0.6358 GB, free: 17.3 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002825/0.7633, allocations: 122.7 kB / 0.6359 GB, free: 17.27 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.587e-06/0.7633, allocations: 0 / 0.6359 GB, free: 17.27 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.59e-05/0.7633, allocations: 6.594 kB / 0.6359 GB, free: 17.27 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.976e-06/0.7633, allocations: 3.688 kB / 0.6359 GB, free: 17.27 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002899/0.7636, allocations: 107.1 kB / 0.636 GB, free: 17.27 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000702/0.7643, allocations: 467.8 kB / 0.6365 GB, free: 16.97 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002144/0.7645, allocations: 91.67 kB / 0.6366 GB, free: 16.95 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.304e-05/0.7646, allocations: 7.875 kB / 0.6366 GB, free: 16.94 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.587e-05/0.7646, allocations: 39.17 kB / 0.6366 GB, free: 16.9 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=7): time 1.322e-06/0.7646, allocations: 4 kB / 0.6366 GB, free: 16.9 MB / 0.4981 GB Notification: Performance of matching and sorting (n=7): time 0.0004442/0.7651, allocations: 155.7 kB / 0.6368 GB, free: 16.86 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.857e-05/0.7651, allocations: 56.75 kB / 0.6368 GB, free: 16.79 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002155/0.7653, allocations: 188.2 kB / 0.637 GB, free: 16.69 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.72e-05/0.7654, allocations: 29.47 kB / 0.637 GB, free: 16.66 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 7.189e-05/0.7654, allocations: 115.5 kB / 0.6371 GB, free: 16.57 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 1.802e-05/0.7655, allocations: 24.73 kB / 0.6372 GB, free: 16.55 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.911e-06/0.7655, allocations: 3.75 kB / 0.6372 GB, free: 16.55 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001077/0.7656, allocations: 326.8 kB / 0.6375 GB, free: 16.24 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001197/0.7657, allocations: 37.69 kB / 0.6375 GB, free: 16.23 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001105/0.7658, allocations: 41.42 kB / 0.6376 GB, free: 16.23 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001107/0.766, allocations: 40.55 kB / 0.6376 GB, free: 16.23 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.864e-06/0.766, allocations: 0 / 0.6376 GB, free: 16.23 MB / 0.4981 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002769/0.7662, allocations: 130.8 kB / 0.6377 GB, free: 16.19 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.583e-05/0.7663, allocations: 4.062 kB / 0.6377 GB, free: 16.19 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.17e-06/0.7663, allocations: 0.5625 kB / 0.6377 GB, free: 16.19 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.397e-05/0.7663, allocations: 0.875 kB / 0.6377 GB, free: 16.19 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000134/0.7664, allocations: 22.72 kB / 0.6378 GB, free: 16.19 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.801e-06/0.7665, allocations: 0 / 0.6378 GB, free: 16.19 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.69e-05/0.7666, allocations: 19.25 kB / 0.6378 GB, free: 16.18 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.388e-06/0.7666, allocations: 1.969 kB / 0.6378 GB, free: 16.18 MB / 0.4981 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 9.751e-05/0.7667, allocations: 126.7 kB / 0.6379 GB, free: 16.06 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.413e-05/0.7667, allocations: 10.25 kB / 0.6379 GB, free: 16.06 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000344/0.7671, allocations: 134.9 kB / 0.638 GB, free: 16.02 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.005e-06/0.7671, allocations: 4.062 kB / 0.638 GB, free: 16.02 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.249e-06/0.7671, allocations: 0.875 kB / 0.638 GB, free: 16.02 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.097e-06/0.7671, allocations: 1.172 kB / 0.638 GB, free: 16.02 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002244/0.7673, allocations: 230.7 kB / 0.6383 GB, free: 15.82 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.313e-06/0.7673, allocations: 0 / 0.6383 GB, free: 15.82 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001076/0.7674, allocations: 22.8 kB / 0.6383 GB, free: 15.82 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.236e-06/0.7675, allocations: 4.969 kB / 0.6383 GB, free: 15.82 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.173e-05/0.7675, allocations: 5.188 kB / 0.6383 GB, free: 15.82 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.452e-06/0.7675, allocations: 1.25 kB / 0.6383 GB, free: 15.82 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.7675, allocations: 0 / 0.6383 GB, free: 15.82 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003071/0.7678, allocations: 220.1 kB / 0.6385 GB, free: 15.68 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.921e-05/0.7679, allocations: 93.41 kB / 0.6386 GB, free: 15.58 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.261e-05/0.7679, allocations: 1.047 kB / 0.6386 GB, free: 15.58 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001196/0.768, allocations: 13.62 kB / 0.6386 GB, free: 15.57 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.283e-05/0.7681, allocations: 10.86 kB / 0.6386 GB, free: 15.57 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.392e-06/0.7681, allocations: 1.797 kB / 0.6386 GB, free: 15.57 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001275/0.7682, allocations: 144.4 kB / 0.6388 GB, free: 15.5 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.3e-07/0.7682, allocations: 4 kB / 0.6388 GB, free: 15.49 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002597/0.7685, allocations: 23.03 kB / 0.6388 GB, free: 15.49 MB / 0.4981 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.0001813/0.7687, allocations: 104.5 kB / 0.6389 GB, free: 15.4 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0002873/0.769, allocations: 96.69 kB / 0.639 GB, free: 15.39 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.769, allocations: 0 / 0.639 GB, free: 15.39 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001199/0.7691, allocations: 46 kB / 0.639 GB, free: 15.39 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003354/0.7694, allocations: 39.14 kB / 0.6391 GB, free: 15.38 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005387/0.77, allocations: 318.9 kB / 0.6394 GB, free: 15.19 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002669/0.7703, allocations: 0.7108 MB / 0.64 GB, free: 14.5 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 7.302e-05/0.7704, allocations: 18.44 kB / 0.6401 GB, free: 14.49 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.307e-05/0.7704, allocations: 13.16 kB / 0.6401 GB, free: 14.48 MB / 0.4981 GB Notification: Performance of SimCode: time 2.31e-07/0.7704, allocations: 0 / 0.6401 GB, free: 14.48 MB / 0.4981 GB Notification: Performance of Templates: time 0.004674/0.7751, allocations: 1.525 MB / 0.6416 GB, free: 14.35 MB / 0.4981 GB make -j1 -f Buildings_1.6_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: