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.001747/0.001747, allocations: 105.4 kB / 15.69 MB, free: 136 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.002631/0.002631, allocations: 193.9 kB / 16.62 MB, free: 6.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.69/1.69, allocations: 205.1 MB / 222.5 MB, free: 4.555 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.6958/0.6958, allocations: 95.48 MB / 365.3 MB, free: 9.848 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.002006/0.002006, allocations: 67.91 kB / 446.1 MB, free: 8.898 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4389/0.441, allocations: 69.09 MB / 0.5031 GB, free: 17.33 MB / 382.1 MB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange): time 0.6053/1.046, allocations: 156.5 MB / 0.656 GB, free: 13.68 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.001165/1.048, allocations: 0.7753 MB / 0.6567 GB, free: 13.62 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001465/1.048, allocations: 2.812 kB / 0.6568 GB, free: 13.62 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0004462/1.048, allocations: 47.88 kB / 0.6568 GB, free: 13.61 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.002325/1.051, allocations: 0.6133 MB / 0.6574 GB, free: 13.46 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004326/1.051, allocations: 170 kB / 0.6576 GB, free: 13.43 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.001487/1.052, allocations: 495.7 kB / 0.658 GB, free: 13.35 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001949/1.053, allocations: 66.7 kB / 0.6581 GB, free: 13.34 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000129/1.053, allocations: 48.45 kB / 0.6581 GB, free: 13.34 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001288/1.053, allocations: 71.66 kB / 0.6582 GB, free: 13.33 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 3.893e-05/1.053, allocations: 12.06 kB / 0.6582 GB, free: 13.33 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007448/1.054, allocations: 291 kB / 0.6585 GB, free: 13.32 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 8.115e-05/1.054, allocations: 33.41 kB / 0.6585 GB, free: 13.32 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001107/1.054, allocations: 63.48 kB / 0.6586 GB, free: 13.32 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0006237/1.055, allocations: 289.9 kB / 0.6589 GB, free: 13.29 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 6.603e-06/1.055, allocations: 0 / 0.6589 GB, free: 13.29 MB / 0.4981 GB Notification: Performance of FrontEnd: time 2.615e-06/1.055, allocations: 1 kB / 0.6589 GB, free: 13.29 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 9.849e-06/1.055, allocations: 0 / 0.6589 GB, free: 13.29 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.0008281/1.056, allocations: 471.8 kB / 0.6593 GB, free: 12.88 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 5.188e-05/1.056, allocations: 11.86 kB / 0.6593 GB, free: 12.88 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003246/1.056, allocations: 38.22 kB / 0.6594 GB, free: 12.87 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004077/1.056, allocations: 218.4 kB / 0.6596 GB, free: 12.66 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.778e-05/1.056, allocations: 8.75 kB / 0.6596 GB, free: 12.66 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.612e-05/1.056, allocations: 10.03 kB / 0.6596 GB, free: 12.66 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002926/1.057, allocations: 126.4 kB / 0.6597 GB, free: 12.61 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.088e-05/1.057, allocations: 3.938 kB / 0.6597 GB, free: 12.61 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.82e-05/1.057, allocations: 3.562 kB / 0.6597 GB, free: 12.61 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.303e-06/1.057, allocations: 2.969 kB / 0.6597 GB, free: 12.61 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000275/1.057, allocations: 98.33 kB / 0.6598 GB, free: 12.61 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008632/1.058, allocations: 460.7 kB / 0.6603 GB, free: 12.31 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002507/1.058, allocations: 89.12 kB / 0.6603 GB, free: 12.29 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001182/1.058, allocations: 41.19 kB / 0.6604 GB, free: 12.28 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 3.432e-05/1.058, allocations: 2.844 kB / 0.6604 GB, free: 12.28 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.116e-05/1.058, allocations: 34.56 kB / 0.6604 GB, free: 12.23 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=7): time 1.753e-06/1.058, allocations: 0 / 0.6604 GB, free: 12.23 MB / 0.4981 GB Notification: Performance of matching and sorting (n=7): time 0.0004491/1.059, allocations: 148.6 kB / 0.6606 GB, free: 12.19 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.782e-05/1.059, allocations: 53.8 kB / 0.6606 GB, free: 12.13 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001818/1.059, allocations: 184.9 kB / 0.6608 GB, free: 12.03 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.177e-05/1.059, allocations: 29.39 kB / 0.6608 GB, free: 12 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 7.627e-05/1.059, allocations: 118.5 kB / 0.6609 GB, free: 11.9 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 2.207e-05/1.059, allocations: 29.5 kB / 0.661 GB, free: 11.88 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.213e-05/1.059, allocations: 24.92 kB / 0.661 GB, free: 11.87 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001265/1.059, allocations: 322.8 kB / 0.6613 GB, free: 11.55 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001065/1.06, allocations: 34.98 kB / 0.6613 GB, free: 11.55 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.004e-05/1.06, allocations: 29.45 kB / 0.6613 GB, free: 11.55 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001965/1.06, allocations: 79.66 kB / 0.6614 GB, free: 11.54 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/1.06, allocations: 0 / 0.6614 GB, free: 11.54 MB / 0.4981 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.000284/1.06, allocations: 123.6 kB / 0.6615 GB, free: 11.5 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.434e-05/1.06, allocations: 4.656 kB / 0.6615 GB, free: 11.5 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.023e-06/1.06, allocations: 0.875 kB / 0.6615 GB, free: 11.5 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.942e-05/1.06, allocations: 6.375 kB / 0.6616 GB, free: 11.49 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001327/1.06, allocations: 17.28 kB / 0.6616 GB, free: 11.49 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.053e-06/1.06, allocations: 0 / 0.6616 GB, free: 11.49 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.343e-05/1.06, allocations: 13.17 kB / 0.6616 GB, free: 11.49 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.939e-06/1.06, allocations: 2.406 kB / 0.6616 GB, free: 11.49 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001093/1.061, allocations: 125.8 kB / 0.6617 GB, free: 11.37 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.858e-05/1.061, allocations: 15.19 kB / 0.6617 GB, free: 11.36 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003202/1.061, allocations: 128.3 kB / 0.6618 GB, free: 11.32 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.786e-06/1.061, allocations: 0 / 0.6618 GB, free: 11.32 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.282e-06/1.061, allocations: 1.062 kB / 0.6618 GB, free: 11.32 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.767e-06/1.061, allocations: 4 kB / 0.6618 GB, free: 11.32 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002422/1.061, allocations: 223.2 kB / 0.6621 GB, free: 11.13 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-06/1.061, allocations: 3.359 kB / 0.6621 GB, free: 11.13 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001109/1.061, allocations: 17.97 kB / 0.6621 GB, free: 11.13 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.194e-06/1.061, allocations: 0 / 0.6621 GB, free: 11.13 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.493e-05/1.061, allocations: 3.938 kB / 0.6621 GB, free: 11.12 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.026e-06/1.061, allocations: 4 kB / 0.6621 GB, free: 11.12 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.595e-06/1.061, allocations: 7.922 kB / 0.6621 GB, free: 11.11 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003045/1.062, allocations: 215.7 kB / 0.6623 GB, free: 10.97 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 5.045e-05/1.062, allocations: 88.03 kB / 0.6624 GB, free: 10.87 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.433e-05/1.062, allocations: 3.938 kB / 0.6624 GB, free: 10.87 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001139/1.062, allocations: 7.172 kB / 0.6624 GB, free: 10.87 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.514e-05/1.062, allocations: 7.547 kB / 0.6624 GB, free: 10.87 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.351e-06/1.062, allocations: 1.094 kB / 0.6624 GB, free: 10.87 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001168/1.062, allocations: 142.1 kB / 0.6625 GB, free: 10.79 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1e-07/1.062, allocations: 0 / 0.6625 GB, free: 10.79 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002684/1.062, allocations: 30.44 kB / 0.6626 GB, free: 10.79 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 (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.0002161/1.063, allocations: 111.5 kB / 0.6627 GB, free: 10.7 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0002844/1.063, allocations: 80.28 kB / 0.6628 GB, free: 10.69 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/1.063, allocations: 4 kB / 0.6628 GB, free: 10.69 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001048/1.063, allocations: 37.45 kB / 0.6628 GB, free: 10.69 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003792/1.063, allocations: 27.3 kB / 0.6628 GB, free: 10.69 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006618/1.064, allocations: 265.5 kB / 0.6631 GB, free: 10.52 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002801/1.064, allocations: 0.7082 MB / 0.6638 GB, free: 9.824 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 6.702e-05/1.064, allocations: 11.69 kB / 0.6638 GB, free: 9.82 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.072e-05/1.064, allocations: 14.94 kB / 0.6638 GB, free: 9.812 MB / 0.4981 GB Notification: Performance of SimCode: time 2.3e-07/1.064, allocations: 0 / 0.6638 GB, free: 9.812 MB / 0.4981 GB Notification: Performance of Templates: time 0.005151/1.07, allocations: 1.715 MB / 0.6655 GB, free: 9.66 MB / 0.4981 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)