Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_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 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/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_8_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange") translateModel(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_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.0007993/0.0007994, allocations: 87.11 kB / 15.06 MB, free: 1.09 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.001151/0.001151, allocations: 168.7 kB / 15.95 MB, free: 204 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.293/1.293, allocations: 205.4 MB / 222.1 MB, free: 5.656 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.684/1.684, allocations: 292.7 MB / 0.5499 GB, free: 14.54 MB / 462.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: Performance of FrontEnd - loaded program: time 0.000509/0.0005091, allocations: 15.91 kB / 0.6737 GB, free: 26.15 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2218/0.2224, allocations: 116.3 MB / 0.7873 GB, free: 11.9 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange): time 0.5853/0.8077, allocations: 135.1 MB / 0.9192 GB, free: 5.816 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001319/0.8091, allocations: 1.055 MB / 0.9203 GB, free: 5.809 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001031/0.8092, allocations: 2.625 kB / 0.9203 GB, free: 5.809 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0002619/0.8095, allocations: 32.28 kB / 0.9203 GB, free: 5.809 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0006808/0.8101, allocations: 196 kB / 0.9205 GB, free: 5.805 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003713/0.8105, allocations: 139 kB / 0.9206 GB, free: 5.801 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0004453/0.811, allocations: 219.2 kB / 0.9208 GB, free: 5.797 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001259/0.8111, allocations: 44.66 kB / 0.9209 GB, free: 5.793 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 8.063e-05/0.8112, allocations: 38.56 kB / 0.9209 GB, free: 5.793 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 9.141e-05/0.8113, allocations: 48.94 kB / 0.921 GB, free: 5.793 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.614e-05/0.8113, allocations: 2.406 kB / 0.921 GB, free: 5.793 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005586/0.8119, allocations: 293.2 kB / 0.9212 GB, free: 5.785 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 4.337e-05/0.8119, allocations: 17.59 kB / 0.9212 GB, free: 5.785 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.859e-05/0.812, allocations: 46.69 kB / 0.9213 GB, free: 5.754 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.00032/0.8123, allocations: 201.4 kB / 0.9215 GB, free: 5.734 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.92e-06/0.8123, allocations: 0.6562 kB / 0.9215 GB, free: 5.734 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.573e-06/0.8123, allocations: 0 / 0.9215 GB, free: 5.734 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.68e-06/0.8124, allocations: 0 / 0.9215 GB, free: 5.734 MB / 0.7169 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.000949/0.8133, allocations: 453 kB / 0.9219 GB, free: 21.33 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.983e-05/0.8134, allocations: 8.781 kB / 0.9219 GB, free: 21.33 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002826/0.8136, allocations: 43.89 kB / 0.922 GB, free: 21.32 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002248/0.8139, allocations: 200.5 kB / 0.9222 GB, free: 21.11 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.622e-05/0.8139, allocations: 8.031 kB / 0.9222 GB, free: 21.11 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.959e-05/0.8139, allocations: 10.53 kB / 0.9222 GB, free: 21.11 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002681/0.8142, allocations: 127.5 kB / 0.9223 GB, free: 21.07 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.628e-06/0.8142, allocations: 0 / 0.9223 GB, free: 21.07 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.684e-05/0.8142, allocations: 4.625 kB / 0.9223 GB, free: 21.07 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.134e-06/0.8143, allocations: 12.36 kB / 0.9223 GB, free: 21.07 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000252/0.8145, allocations: 101.9 kB / 0.9224 GB, free: 21.06 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006607/0.8152, allocations: 455.3 kB / 0.9228 GB, free: 20.78 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001903/0.8154, allocations: 95.59 kB / 0.9229 GB, free: 20.75 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001045/0.8155, allocations: 47.88 kB / 0.923 GB, free: 20.74 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 2.435e-05/0.8155, allocations: 0 / 0.923 GB, free: 20.74 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.759e-05/0.8156, allocations: 38.45 kB / 0.923 GB, free: 20.7 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=7): time 9.02e-07/0.8156, allocations: 2.734 kB / 0.923 GB, free: 20.7 MB / 0.7325 GB Notification: Performance of matching and sorting (n=7): time 0.0004156/0.816, allocations: 159.8 kB / 0.9232 GB, free: 20.66 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.021e-05/0.816, allocations: 58.86 kB / 0.9232 GB, free: 20.59 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001619/0.8162, allocations: 178.8 kB / 0.9234 GB, free: 20.49 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 1.602e-05/0.8162, allocations: 25.7 kB / 0.9234 GB, free: 20.46 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001018/0.8163, allocations: 115.2 kB / 0.9235 GB, free: 20.37 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 1.98e-05/0.8164, allocations: 20.38 kB / 0.9236 GB, free: 20.36 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.4e-06/0.8164, allocations: 0 / 0.9236 GB, free: 20.36 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001096/0.8165, allocations: 325.3 kB / 0.9239 GB, free: 20.05 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001006/0.8166, allocations: 37.83 kB / 0.9239 GB, free: 20.04 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.676e-05/0.8167, allocations: 38.25 kB / 0.9239 GB, free: 20.04 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.916e-05/0.8168, allocations: 41.78 kB / 0.924 GB, free: 20.04 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.793e-06/0.8168, allocations: 0 / 0.924 GB, free: 20.04 MB / 0.7325 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002418/0.8171, allocations: 134.5 kB / 0.9241 GB, free: 20 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.325e-05/0.8171, allocations: 3.5 kB / 0.9241 GB, free: 20 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.46e-06/0.8171, allocations: 0.6094 kB / 0.9241 GB, free: 20 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.275e-05/0.8171, allocations: 0 / 0.9241 GB, free: 20 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001279/0.8172, allocations: 28 kB / 0.9241 GB, free: 20 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.614e-06/0.8173, allocations: 0.5625 kB / 0.9241 GB, free: 20 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.801e-05/0.8173, allocations: 22.48 kB / 0.9242 GB, free: 19.98 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.618e-06/0.8174, allocations: 0.6094 kB / 0.9242 GB, free: 19.98 MB / 0.7325 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.508e-05/0.8175, allocations: 123.5 kB / 0.9243 GB, free: 19.87 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.286e-05/0.8175, allocations: 10.22 kB / 0.9243 GB, free: 19.87 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003059/0.8178, allocations: 134.7 kB / 0.9244 GB, free: 19.83 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.447e-06/0.8178, allocations: 0 / 0.9244 GB, free: 19.83 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.861e-06/0.8178, allocations: 5.797 kB / 0.9244 GB, free: 19.83 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.957e-06/0.8178, allocations: 4.594 kB / 0.9244 GB, free: 19.82 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000222/0.8181, allocations: 228.5 kB / 0.9246 GB, free: 19.63 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.285e-06/0.8181, allocations: 0.75 kB / 0.9246 GB, free: 19.63 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001016/0.8182, allocations: 25.33 kB / 0.9247 GB, free: 19.62 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.034e-06/0.8182, allocations: 0 / 0.9247 GB, free: 19.62 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.508e-06/0.8182, allocations: 0.7969 kB / 0.9247 GB, free: 19.62 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.633e-06/0.8182, allocations: 1.031 kB / 0.9247 GB, free: 19.62 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.214e-06/0.8182, allocations: 1.312 kB / 0.9247 GB, free: 19.62 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002913/0.8185, allocations: 223.9 kB / 0.9249 GB, free: 19.48 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 5.898e-05/0.8186, allocations: 96.69 kB / 0.925 GB, free: 19.38 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.093e-05/0.8186, allocations: 0 / 0.925 GB, free: 19.38 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001063/0.8187, allocations: 12.8 kB / 0.925 GB, free: 19.38 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.747e-05/0.8188, allocations: 8.078 kB / 0.925 GB, free: 19.38 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.921e-06/0.8188, allocations: 3.594 kB / 0.925 GB, free: 19.38 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0001069/0.8189, allocations: 138.2 kB / 0.9251 GB, free: 19.29 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.3e-07/0.8189, allocations: 2.969 kB / 0.9251 GB, free: 19.29 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002348/0.8191, allocations: 21.92 kB / 0.9252 GB, free: 19.29 MB / 0.7325 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.0001577/0.8193, allocations: 103.6 kB / 0.9253 GB, free: 19.2 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0002545/0.8196, allocations: 99.42 kB / 0.9253 GB, free: 19.2 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.8196, allocations: 0 / 0.9253 GB, free: 19.2 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0001026/0.8197, allocations: 42.28 kB / 0.9254 GB, free: 19.2 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004041/0.8201, allocations: 38.98 kB / 0.9254 GB, free: 19.19 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005137/0.8206, allocations: 307.8 kB / 0.9257 GB, free: 19 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002851/0.8209, allocations: 0.7078 MB / 0.9264 GB, free: 18.3 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 7.581e-05/0.821, allocations: 13.3 kB / 0.9264 GB, free: 18.3 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.691e-05/0.821, allocations: 13.22 kB / 0.9264 GB, free: 18.29 MB / 0.7325 GB Notification: Performance of SimCode: time 2.2e-07/0.821, allocations: 0 / 0.9264 GB, free: 18.29 MB / 0.7325 GB Notification: Performance of Templates: time 0.004106/0.8252, allocations: 1.414 MB / 0.9278 GB, free: 18.18 MB / 0.7325 GB make -j1 -f Buildings_8_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.makefile Environment - environmentSimulation: (rm -f Buildings_8_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.pipe ; mkfifo Buildings_8_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.pipe >> ../files/Buildings_8_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.sim & ./Buildings_8_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.pipe 2>&1) Environment - environmentSimulation: