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.001576/0.001576, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.002287/0.002287, allocations: 189.6 kB / 16.25 MB, free: 6.629 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.63/1.63, allocations: 205.1 MB / 222.1 MB, free: 4.73 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.5796/0.5796, allocations: 95.47 MB / 364.9 MB, free: 10.08 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.001462/0.001462, allocations: 83.73 kB / 444.9 MB, free: 9.98 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4325/0.4339, allocations: 69.07 MB / 0.5019 GB, free: 17.55 MB / 382.1 MB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange): time 0.6395/1.073, allocations: 154.4 MB / 0.6527 GB, free: 12.68 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.001464/1.075, allocations: 0.7732 MB / 0.6534 GB, free: 12.62 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002067/1.075, allocations: 6.188 kB / 0.6534 GB, free: 12.62 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0004359/1.076, allocations: 42.53 kB / 0.6535 GB, free: 12.61 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.002745/1.079, allocations: 0.5542 MB / 0.654 GB, free: 12.5 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006628/1.079, allocations: 148 kB / 0.6541 GB, free: 12.48 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.001514/1.081, allocations: 494 kB / 0.6546 GB, free: 12.4 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001703/1.081, allocations: 76.73 kB / 0.6547 GB, free: 12.39 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001078/1.081, allocations: 45.58 kB / 0.6547 GB, free: 12.39 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001119/1.081, allocations: 65.42 kB / 0.6548 GB, free: 12.39 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 2.431e-05/1.081, allocations: 13.53 kB / 0.6548 GB, free: 12.39 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005613/1.082, allocations: 303.8 kB / 0.6551 GB, free: 12.37 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 7.041e-05/1.082, allocations: 37.39 kB / 0.6551 GB, free: 12.37 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 7.245e-05/1.082, allocations: 58.92 kB / 0.6552 GB, free: 12.37 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0005649/1.083, allocations: 295 kB / 0.6555 GB, free: 12.34 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.729e-06/1.083, allocations: 0 / 0.6555 GB, free: 12.34 MB / 0.4981 GB Notification: Performance of FrontEnd: time 3.397e-06/1.083, allocations: 0 / 0.6555 GB, free: 12.34 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 8.926e-06/1.083, allocations: 1.203 kB / 0.6555 GB, free: 12.34 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.0008043/1.083, allocations: 466.3 kB / 0.6559 GB, free: 11.94 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.913e-05/1.083, allocations: 14.89 kB / 0.6559 GB, free: 11.93 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002614/1.084, allocations: 36.44 kB / 0.656 GB, free: 11.92 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002382/1.084, allocations: 215.7 kB / 0.6562 GB, free: 11.71 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.324e-05/1.084, allocations: 10.56 kB / 0.6562 GB, free: 11.71 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.787e-05/1.084, allocations: 12 kB / 0.6562 GB, free: 11.71 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002784/1.084, allocations: 121.6 kB / 0.6563 GB, free: 11.67 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.728e-06/1.084, allocations: 0 / 0.6563 GB, free: 11.67 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.773e-05/1.084, allocations: 3.938 kB / 0.6563 GB, free: 11.67 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.829e-06/1.084, allocations: 9 kB / 0.6563 GB, free: 11.66 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002571/1.085, allocations: 88.62 kB / 0.6564 GB, free: 11.66 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001072/1.086, allocations: 460.9 kB / 0.6568 GB, free: 11.37 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003086/1.086, allocations: 94 kB / 0.6569 GB, free: 11.34 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001666/1.086, allocations: 39.98 kB / 0.657 GB, free: 11.33 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 3.726e-05/1.086, allocations: 3.734 kB / 0.657 GB, free: 11.33 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.902e-05/1.086, allocations: 31.56 kB / 0.657 GB, free: 11.29 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=7): time 1.934e-06/1.086, allocations: 4.531 kB / 0.657 GB, free: 11.29 MB / 0.4981 GB Notification: Performance of matching and sorting (n=7): time 0.0006683/1.087, allocations: 145.6 kB / 0.6572 GB, free: 11.25 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.374e-05/1.087, allocations: 53.16 kB / 0.6572 GB, free: 11.18 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003632/1.087, allocations: 187.2 kB / 0.6574 GB, free: 11.09 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 4.412e-05/1.087, allocations: 26.42 kB / 0.6574 GB, free: 11.05 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001219/1.088, allocations: 122.3 kB / 0.6575 GB, free: 10.96 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 3.743e-05/1.088, allocations: 29.8 kB / 0.6575 GB, free: 10.94 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.734e-05/1.088, allocations: 22.42 kB / 0.6576 GB, free: 10.93 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0002008/1.088, allocations: 322.6 kB / 0.6579 GB, free: 10.61 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001429/1.088, allocations: 30.77 kB / 0.6579 GB, free: 10.61 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001199/1.088, allocations: 35.5 kB / 0.6579 GB, free: 10.61 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002291/1.088, allocations: 78.05 kB / 0.658 GB, free: 10.6 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.364e-06/1.088, allocations: 4 kB / 0.658 GB, free: 10.6 MB / 0.4981 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0003006/1.089, allocations: 117.5 kB / 0.6581 GB, free: 10.55 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.771e-05/1.089, allocations: 5.562 kB / 0.6581 GB, free: 10.55 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.732e-06/1.089, allocations: 0 / 0.6581 GB, free: 10.55 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.603e-05/1.089, allocations: 6.844 kB / 0.6581 GB, free: 10.55 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001343/1.089, allocations: 16.14 kB / 0.6582 GB, free: 10.55 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.925e-06/1.089, allocations: 3.453 kB / 0.6582 GB, free: 10.55 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000112/1.089, allocations: 14.84 kB / 0.6582 GB, free: 10.55 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.999e-06/1.089, allocations: 1.797 kB / 0.6582 GB, free: 10.55 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.0001075/1.089, allocations: 118.2 kB / 0.6583 GB, free: 10.43 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.2e-05/1.089, allocations: 13.69 kB / 0.6583 GB, free: 10.43 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003575/1.09, allocations: 144.4 kB / 0.6584 GB, free: 10.37 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.825e-06/1.09, allocations: 0.9688 kB / 0.6584 GB, free: 10.37 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.799e-06/1.09, allocations: 0.9688 kB / 0.6584 GB, free: 10.37 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.917e-06/1.09, allocations: 4 kB / 0.6584 GB, free: 10.37 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002564/1.09, allocations: 220.5 kB / 0.6587 GB, free: 10.18 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.433e-06/1.09, allocations: 1.094 kB / 0.6587 GB, free: 10.18 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001039/1.09, allocations: 17.45 kB / 0.6587 GB, free: 10.18 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.685e-06/1.09, allocations: 0 / 0.6587 GB, free: 10.18 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.219e-05/1.09, allocations: 3.938 kB / 0.6587 GB, free: 10.18 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.923e-06/1.09, allocations: 2.625 kB / 0.6587 GB, free: 10.18 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.505e-06/1.09, allocations: 4 kB / 0.6587 GB, free: 10.17 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003026/1.09, allocations: 216.2 kB / 0.6589 GB, free: 10.03 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 6.119e-05/1.091, allocations: 86.97 kB / 0.659 GB, free: 9.93 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.471e-05/1.091, allocations: 3.938 kB / 0.659 GB, free: 9.926 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001191/1.091, allocations: 10.8 kB / 0.659 GB, free: 9.926 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.394e-05/1.091, allocations: 5.594 kB / 0.659 GB, free: 9.926 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.334e-06/1.091, allocations: 2.531 kB / 0.659 GB, free: 9.926 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001446/1.091, allocations: 144 kB / 0.6591 GB, free: 9.848 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.4e-07/1.091, allocations: 5.469 kB / 0.6591 GB, free: 9.844 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002704/1.091, allocations: 23.12 kB / 0.6592 GB, free: 9.844 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.0002172/1.091, allocations: 111.4 kB / 0.6593 GB, free: 9.754 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0002741/1.092, allocations: 81.91 kB / 0.6593 GB, free: 9.746 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.225e-06/1.092, allocations: 0 / 0.6593 GB, free: 9.746 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001004/1.092, allocations: 38.89 kB / 0.6594 GB, free: 9.746 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003899/1.092, allocations: 35.05 kB / 0.6594 GB, free: 9.742 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006652/1.093, allocations: 299.4 kB / 0.6597 GB, free: 9.535 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003897/1.093, allocations: 0.7141 MB / 0.6604 GB, free: 8.832 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 8.619e-05/1.093, allocations: 11.61 kB / 0.6604 GB, free: 8.832 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.881e-05/1.093, allocations: 12.22 kB / 0.6604 GB, free: 8.824 MB / 0.4981 GB Notification: Performance of SimCode: time 5.01e-07/1.093, allocations: 4 kB / 0.6604 GB, free: 8.82 MB / 0.4981 GB Notification: Performance of Templates: time 0.005234/1.099, allocations: 1.651 MB / 0.662 GB, free: 8.676 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)