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.001135/0.001136, allocations: 107.4 kB / 15.23 MB, free: 0.6406 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.001279/0.00128, allocations: 191 kB / 16.14 MB, free: 6.703 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.61/1.61, allocations: 205.1 MB / 222 MB, free: 4.949 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.6695/0.6695, allocations: 95.48 MB / 364.8 MB, free: 10.16 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.001566/0.001566, allocations: 68.34 kB / 444.7 MB, free: 10.13 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3958/0.3973, allocations: 69.07 MB / 0.5017 GB, free: 17.64 MB / 382.1 MB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange): time 0.6348/1.032, allocations: 154.5 MB / 0.6525 GB, free: 13.05 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.001206/1.033, allocations: 0.7804 MB / 0.6533 GB, free: 13 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001194/1.034, allocations: 2.625 kB / 0.6533 GB, free: 13 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0003913/1.034, allocations: 48.52 kB / 0.6533 GB, free: 12.99 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.002009/1.036, allocations: 0.5117 MB / 0.6538 GB, free: 12.89 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003584/1.036, allocations: 153.3 kB / 0.654 GB, free: 12.86 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.001698/1.038, allocations: 0.497 MB / 0.6545 GB, free: 12.78 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002174/1.038, allocations: 62.06 kB / 0.6545 GB, free: 12.77 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001147/1.038, allocations: 42.45 kB / 0.6546 GB, free: 12.77 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001458/1.039, allocations: 66.5 kB / 0.6546 GB, free: 12.77 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 3.118e-05/1.039, allocations: 6.25 kB / 0.6546 GB, free: 12.77 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008354/1.04, allocations: 316.2 kB / 0.6549 GB, free: 12.75 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 9.443e-05/1.04, allocations: 21.98 kB / 0.655 GB, free: 12.75 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001088/1.04, allocations: 60.89 kB / 0.655 GB, free: 12.75 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0005381/1.04, allocations: 289.2 kB / 0.6553 GB, free: 12.73 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 8.496e-06/1.04, allocations: 0 / 0.6553 GB, free: 12.73 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.643e-06/1.04, allocations: 0 / 0.6553 GB, free: 12.73 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 7.554e-06/1.04, allocations: 0 / 0.6553 GB, free: 12.73 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.0009004/1.041, allocations: 469 kB / 0.6558 GB, free: 12.32 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 5.515e-05/1.041, allocations: 18.48 kB / 0.6558 GB, free: 12.32 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002787/1.042, allocations: 39.91 kB / 0.6558 GB, free: 12.3 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002509/1.042, allocations: 210 kB / 0.656 GB, free: 12.09 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.368e-05/1.042, allocations: 6.312 kB / 0.656 GB, free: 12.09 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.04e-05/1.042, allocations: 11.5 kB / 0.656 GB, free: 12.09 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000274/1.042, allocations: 123.1 kB / 0.6561 GB, free: 12.05 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.818e-06/1.042, allocations: 0 / 0.6561 GB, free: 12.05 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.495e-05/1.042, allocations: 1.094 kB / 0.6561 GB, free: 12.05 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.663e-06/1.042, allocations: 4.719 kB / 0.6561 GB, free: 12.05 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002616/1.043, allocations: 103.5 kB / 0.6562 GB, free: 12.04 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007255/1.043, allocations: 459.7 kB / 0.6567 GB, free: 11.75 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002218/1.043, allocations: 93.45 kB / 0.6568 GB, free: 11.72 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001219/1.044, allocations: 45.23 kB / 0.6568 GB, free: 11.71 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.451e-05/1.044, allocations: 0 / 0.6568 GB, free: 11.71 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.022e-05/1.044, allocations: 38.06 kB / 0.6569 GB, free: 11.67 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=7): time 1.002e-06/1.044, allocations: 1.203 kB / 0.6569 GB, free: 11.67 MB / 0.4981 GB Notification: Performance of matching and sorting (n=7): time 0.0005505/1.044, allocations: 144.4 kB / 0.657 GB, free: 11.62 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.244e-05/1.044, allocations: 52.81 kB / 0.657 GB, free: 11.56 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002191/1.045, allocations: 188.3 kB / 0.6572 GB, free: 11.46 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.098e-05/1.045, allocations: 25.7 kB / 0.6572 GB, free: 11.43 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001028/1.045, allocations: 121.4 kB / 0.6574 GB, free: 11.34 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 2.403e-05/1.045, allocations: 24.81 kB / 0.6574 GB, free: 11.32 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.73e-05/1.045, allocations: 17.88 kB / 0.6574 GB, free: 11.31 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001436/1.045, allocations: 329.3 kB / 0.6577 GB, free: 10.99 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001109/1.045, allocations: 27.89 kB / 0.6577 GB, free: 10.99 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.976e-05/1.045, allocations: 38.97 kB / 0.6578 GB, free: 10.99 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002074/1.045, allocations: 77.23 kB / 0.6579 GB, free: 10.98 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.863e-06/1.045, allocations: 0 / 0.6579 GB, free: 10.98 MB / 0.4981 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002952/1.046, allocations: 121.9 kB / 0.658 GB, free: 10.93 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 2.343e-05/1.046, allocations: 5.062 kB / 0.658 GB, free: 10.93 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.47e-06/1.046, allocations: 0 / 0.658 GB, free: 10.93 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.973e-05/1.046, allocations: 5.031 kB / 0.658 GB, free: 10.93 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001523/1.046, allocations: 21.89 kB / 0.658 GB, free: 10.93 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.074e-06/1.046, allocations: 0.5312 kB / 0.658 GB, free: 10.93 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000107/1.046, allocations: 15.97 kB / 0.658 GB, free: 10.92 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.096e-05/1.046, allocations: 1.656 kB / 0.658 GB, free: 10.92 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.0001188/1.046, allocations: 128.7 kB / 0.6581 GB, free: 10.8 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.271e-05/1.046, allocations: 15.34 kB / 0.6582 GB, free: 10.79 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003973/1.047, allocations: 125.7 kB / 0.6583 GB, free: 10.75 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.023e-06/1.047, allocations: 3.516 kB / 0.6583 GB, free: 10.75 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.382e-06/1.047, allocations: 0.5 kB / 0.6583 GB, free: 10.75 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.647e-06/1.047, allocations: 3.938 kB / 0.6583 GB, free: 10.75 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002661/1.047, allocations: 218.5 kB / 0.6585 GB, free: 10.56 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.655e-06/1.047, allocations: 3.625 kB / 0.6585 GB, free: 10.56 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001314/1.047, allocations: 22.38 kB / 0.6585 GB, free: 10.55 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.788e-06/1.047, allocations: 1.031 kB / 0.6585 GB, free: 10.55 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.739e-05/1.047, allocations: 12.02 kB / 0.6585 GB, free: 10.55 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.383e-06/1.047, allocations: 0.5 kB / 0.6585 GB, free: 10.55 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.02e-07/1.047, allocations: 0.5 kB / 0.6585 GB, free: 10.55 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003789/1.048, allocations: 202.8 kB / 0.6587 GB, free: 10.41 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 6.166e-05/1.048, allocations: 94.7 kB / 0.6588 GB, free: 10.31 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.687e-05/1.048, allocations: 4.969 kB / 0.6588 GB, free: 10.3 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001231/1.048, allocations: 10.66 kB / 0.6588 GB, free: 10.3 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.737e-05/1.048, allocations: 4.172 kB / 0.6588 GB, free: 10.3 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.033e-06/1.048, allocations: 1.719 kB / 0.6588 GB, free: 10.3 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.00017/1.048, allocations: 145.4 kB / 0.659 GB, free: 10.23 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.5e-07/1.048, allocations: 1.625 kB / 0.659 GB, free: 10.23 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002886/1.048, allocations: 24.16 kB / 0.659 GB, free: 10.23 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.0002493/1.049, allocations: 117.5 kB / 0.6591 GB, free: 10.13 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0002992/1.049, allocations: 73.89 kB / 0.6592 GB, free: 10.13 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.825e-06/1.049, allocations: 0 / 0.6592 GB, free: 10.13 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001159/1.049, allocations: 44.52 kB / 0.6592 GB, free: 10.12 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004672/1.049, allocations: 30.09 kB / 0.6593 GB, free: 10.12 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005488/1.05, allocations: 302.1 kB / 0.6595 GB, free: 9.922 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00029/1.05, allocations: 0.7111 MB / 0.6602 GB, free: 9.223 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 7.666e-05/1.05, allocations: 8.453 kB / 0.6602 GB, free: 9.223 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.07e-05/1.05, allocations: 13.47 kB / 0.6603 GB, free: 9.215 MB / 0.4981 GB Notification: Performance of SimCode: time 3.21e-07/1.05, allocations: 0 / 0.6603 GB, free: 9.215 MB / 0.4981 GB Notification: Performance of Templates: time 0.004808/1.055, allocations: 1.592 MB / 0.6618 GB, free: 9.078 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)