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.001288/0.001288, allocations: 98.58 kB / 16.29 MB, free: 6.012 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.001283/0.001283, allocations: 177.6 kB / 17.22 MB, free: 5.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.589/1.589, allocations: 205.1 MB / 223.1 MB, free: 12.31 MB / 190.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.85/1.85, allocations: 292.3 MB / 0.5495 GB, free: 17.62 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.001378/0.001378, allocations: 68.23 kB / 0.6722 GB, free: 6.535 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2787/0.2801, allocations: 114.6 MB / 0.7841 GB, free: 3.867 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange): time 0.6582/0.9383, allocations: 149 MB / 0.9296 GB, free: 5.047 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001824/0.9402, allocations: 1.139 MB / 0.9307 GB, free: 4.129 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001784/0.9404, allocations: 5.469 kB / 0.9307 GB, free: 4.125 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.000387/0.9408, allocations: 56.58 kB / 0.9307 GB, free: 4.086 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.001036/0.9419, allocations: 301.7 kB / 0.931 GB, free: 3.867 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005318/0.9424, allocations: 158 kB / 0.9312 GB, free: 3.762 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0005999/0.9431, allocations: 222.8 kB / 0.9314 GB, free: 3.633 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001584/0.9432, allocations: 56.05 kB / 0.9314 GB, free: 3.605 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001036/0.9433, allocations: 54.44 kB / 0.9315 GB, free: 3.57 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 9.788e-05/0.9435, allocations: 61.61 kB / 0.9316 GB, free: 3.527 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.376e-05/0.9435, allocations: 14.62 kB / 0.9316 GB, free: 3.523 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006895/0.9442, allocations: 366 kB / 0.9319 GB, free: 3.184 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 5.799e-05/0.9443, allocations: 31.86 kB / 0.9319 GB, free: 3.152 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 7.105e-05/0.9443, allocations: 67.64 kB / 0.932 GB, free: 3.086 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0004444/0.9448, allocations: 291.2 kB / 0.9323 GB, free: 2.801 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 1.142e-05/0.9448, allocations: 4 kB / 0.9323 GB, free: 2.797 MB / 0.7169 GB Notification: Performance of FrontEnd: time 3.406e-06/0.9448, allocations: 0 / 0.9323 GB, free: 2.797 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 6.683e-06/0.9448, allocations: 3.938 kB / 0.9323 GB, free: 2.793 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.0006487/0.9455, allocations: 471.5 kB / 0.9327 GB, free: 2.289 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.819e-05/0.9455, allocations: 12.03 kB / 0.9328 GB, free: 2.277 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002926/0.9458, allocations: 32.72 kB / 0.9328 GB, free: 2.246 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002134/0.9461, allocations: 215.8 kB / 0.933 GB, free: 1.996 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.46e-05/0.9461, allocations: 4 kB / 0.933 GB, free: 1.992 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.345e-05/0.9461, allocations: 19.92 kB / 0.933 GB, free: 1.973 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002559/0.9464, allocations: 117.6 kB / 0.9331 GB, free: 1.852 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.047e-06/0.9464, allocations: 0 / 0.9331 GB, free: 1.852 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.421e-05/0.9464, allocations: 4 kB / 0.9331 GB, free: 1.848 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.184e-06/0.9464, allocations: 4 kB / 0.9331 GB, free: 1.844 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002334/0.9467, allocations: 87.94 kB / 0.9332 GB, free: 1.758 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006835/0.9473, allocations: 460.1 kB / 0.9337 GB, free: 1.258 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002105/0.9476, allocations: 91.73 kB / 0.9338 GB, free: 1.16 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001036/0.9477, allocations: 32.95 kB / 0.9338 GB, free: 1.125 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.891e-05/0.9477, allocations: 7.984 kB / 0.9338 GB, free: 1.117 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.399e-05/0.9477, allocations: 34.56 kB / 0.9338 GB, free: 1.074 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.473e-06/0.9478, allocations: 0 / 0.9338 GB, free: 1.074 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0004124/0.9482, allocations: 141.4 kB / 0.934 GB, free: 0.9297 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.949e-05/0.9482, allocations: 55.91 kB / 0.934 GB, free: 0.8633 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001868/0.9484, allocations: 184.1 kB / 0.9342 GB, free: 0.6758 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.768e-05/0.9484, allocations: 25.7 kB / 0.9342 GB, free: 0.6445 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 7.702e-05/0.9485, allocations: 116 kB / 0.9343 GB, free: 0.5273 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.991e-05/0.9486, allocations: 19.7 kB / 0.9343 GB, free: 0.5078 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.463e-05/0.9486, allocations: 25.72 kB / 0.9344 GB, free: 488 kB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 0.000137/0.9487, allocations: 327.6 kB / 0.9347 GB, free: 152 kB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001036/0.9489, allocations: 31.97 kB / 0.9347 GB, free: 120 kB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.229e-05/0.949, allocations: 37.48 kB / 0.9347 GB, free: 84 kB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001853/0.9492, allocations: 72.81 kB / 0.9348 GB, free: 8 kB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.904e-06/0.9492, allocations: 0 / 0.9348 GB, free: 8 kB / 0.7169 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002715/0.9494, allocations: 125.4 kB / 0.9349 GB, free: 15.88 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.713e-05/0.9495, allocations: 8 kB / 0.9349 GB, free: 15.87 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.631e-06/0.9495, allocations: 0 / 0.9349 GB, free: 15.87 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.416e-05/0.9495, allocations: 0.5 kB / 0.9349 GB, free: 15.87 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001197/0.9496, allocations: 17.11 kB / 0.935 GB, free: 15.86 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.409e-06/0.9496, allocations: 2.344 kB / 0.935 GB, free: 15.86 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.281e-05/0.9497, allocations: 23.83 kB / 0.935 GB, free: 15.83 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.288e-06/0.9497, allocations: 3.875 kB / 0.935 GB, free: 15.83 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001017/0.9499, allocations: 129.8 kB / 0.9351 GB, free: 15.7 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.317e-05/0.9499, allocations: 7.906 kB / 0.9351 GB, free: 15.69 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003032/0.9502, allocations: 123 kB / 0.9352 GB, free: 15.57 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.435e-06/0.9502, allocations: 0 / 0.9352 GB, free: 15.57 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.528e-06/0.9502, allocations: 0 / 0.9352 GB, free: 15.57 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.196e-06/0.9502, allocations: 0 / 0.9352 GB, free: 15.57 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002147/0.9505, allocations: 229.5 kB / 0.9355 GB, free: 15.29 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.213e-06/0.9505, allocations: 4 kB / 0.9355 GB, free: 15.29 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.654e-05/0.9506, allocations: 16.55 kB / 0.9355 GB, free: 15.27 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.763e-06/0.9506, allocations: 0 / 0.9355 GB, free: 15.27 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.728e-06/0.9506, allocations: 0 / 0.9355 GB, free: 15.27 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.482e-06/0.9506, allocations: 0 / 0.9355 GB, free: 15.27 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.51e-07/0.9506, allocations: 4 kB / 0.9355 GB, free: 15.27 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000289/0.9509, allocations: 215.2 kB / 0.9357 GB, free: 15.04 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 5.205e-05/0.951, allocations: 93.98 kB / 0.9358 GB, free: 14.93 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.751e-05/0.951, allocations: 0 / 0.9358 GB, free: 14.93 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001125/0.9511, allocations: 7.984 kB / 0.9358 GB, free: 14.93 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.53e-05/0.9512, allocations: 15.97 kB / 0.9358 GB, free: 14.91 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.481e-06/0.9512, allocations: 0 / 0.9358 GB, free: 14.91 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.000113/0.9513, allocations: 132.8 kB / 0.9359 GB, free: 14.78 MB / 0.7325 GB Notification: Performance of sort global known variables: time 2.1e-07/0.9513, allocations: 0 / 0.9359 GB, free: 14.78 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002456/0.9515, allocations: 27.91 kB / 0.9359 GB, free: 14.75 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 (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.0001877/0.9517, allocations: 111.2 kB / 0.9361 GB, free: 14.63 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.000265/0.952, allocations: 75.89 kB / 0.9361 GB, free: 14.56 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.952, allocations: 3.938 kB / 0.9361 GB, free: 14.55 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0001055/0.9521, allocations: 37.95 kB / 0.9362 GB, free: 14.52 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000429/0.9526, allocations: 34.78 kB / 0.9362 GB, free: 14.49 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005368/0.9531, allocations: 257.4 kB / 0.9364 GB, free: 14.22 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002778/0.9534, allocations: 0.708 MB / 0.9371 GB, free: 13.48 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 5.967e-05/0.9535, allocations: 12.88 kB / 0.9371 GB, free: 13.47 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.931e-05/0.9535, allocations: 11.44 kB / 0.9372 GB, free: 13.46 MB / 0.7325 GB Notification: Performance of SimCode: time 2.3e-07/0.9535, allocations: 0 / 0.9372 GB, free: 13.46 MB / 0.7325 GB Notification: Performance of Templates: time 0.004424/0.958, allocations: 1.582 MB / 0.9387 GB, free: 11.95 MB / 0.7325 GB make -j1 -f Buildings_8_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.makefile (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 -s cvode -lv LOG_STATS > Buildings_8_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.pipe 2>&1)