Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_1.6_Buildings.Fluid.MixingVolumes.Examples.MixingVolume.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 1.6.0+build.1/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Using package Buildings with version 1.6 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 1.6.0+build.1/package.mo) Running command: translateModel(Buildings.Fluid.MixingVolumes.Examples.MixingVolume,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Fluid.MixingVolumes.Examples.MixingVolume") translateModel(Buildings.Fluid.MixingVolumes.Examples.MixingVolume,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Fluid.MixingVolumes.Examples.MixingVolume") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 1.6.0+build.1/package.mo): time 0.5318/0.5318, allocations: 94.74 MB / 102 MB, free: 14.21 MB / 90.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.001558/0.001558, allocations: 160.6 kB / 125.3 MB, free: 8.082 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.375/1.375, allocations: 170.5 MB / 319 MB, free: 1.309 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001828/0.001828, allocations: 103.5 kB / 381 MB, free: 3.32 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 9.668e-06/9.688e-06, allocations: 4 kB / 448.6 MB, free: 45.19 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1228/0.1228, allocations: 61.52 MB / 0.4981 GB, free: 15.62 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 10.58/10.7, allocations: 5.268 GB / 5.767 GB, free: 93.96 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002259/10.7, allocations: 83.95 kB / 5.767 GB, free: 93.88 MB / 0.5105 GB Notification: Performance of FrontEnd: time 4.809/15.51, allocations: 1.201 GB / 6.967 GB, free: 55.12 MB / 0.573 GB Notification: Performance of Transformations before backend: time 0.000419/15.51, allocations: 58.45 kB / 6.967 GB, free: 55.11 MB / 0.573 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 404 * Number of variables: 404 Notification: Performance of Generate backend data structure: time 0.01644/15.53, allocations: 3.247 MB / 6.971 GB, free: 53.66 MB / 0.573 GB Notification: Performance of prepare preOptimizeDAE: time 5.717e-05/15.53, allocations: 11.25 kB / 6.971 GB, free: 53.66 MB / 0.573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002189/15.53, allocations: 271.9 kB / 6.971 GB, free: 53.54 MB / 0.573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2914/15.82, allocations: 79.68 MB / 7.049 GB, free: 46.36 MB / 0.573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002807/15.82, allocations: 185.1 kB / 7.049 GB, free: 46.23 MB / 0.573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004088/15.83, allocations: 99.53 kB / 7.049 GB, free: 46.23 MB / 0.573 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004258/15.83, allocations: 1.679 MB / 7.051 GB, free: 46.23 MB / 0.573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003942/15.83, allocations: 1.717 MB / 7.052 GB, free: 46.03 MB / 0.573 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.238e-05/15.83, allocations: 2.75 kB / 7.052 GB, free: 46.03 MB / 0.573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001777/15.83, allocations: 5.547 kB / 7.052 GB, free: 46.03 MB / 0.573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.987e-05/15.83, allocations: 57.08 kB / 7.052 GB, free: 46.02 MB / 0.573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01485/15.85, allocations: 6.984 MB / 7.059 GB, free: 42.46 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001367/15.85, allocations: 0.6514 MB / 7.06 GB, free: 42.21 MB / 0.573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001055/15.85, allocations: 0.5639 MB / 7.06 GB, free: 41.99 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007901/15.85, allocations: 0.5798 MB / 7.061 GB, free: 41.41 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.828e-05/15.85, allocations: 51.16 kB / 7.061 GB, free: 41.36 MB / 0.573 GB Notification: Performance of pre-optimization done (n=121): time 4.709e-06/15.85, allocations: 2.266 kB / 7.061 GB, free: 41.36 MB / 0.573 GB Notification: Performance of matching and sorting (n=142): time 0.02175/15.87, allocations: 6.737 MB / 7.068 GB, free: 36.19 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.356e-05/15.87, allocations: 68.72 kB / 7.068 GB, free: 36.11 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001514/15.88, allocations: 1.03 MB / 7.069 GB, free: 35.18 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 0.0002039/15.88, allocations: 25.7 kB / 7.069 GB, free: 35.15 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003888/15.88, allocations: 0.6334 MB / 7.069 GB, free: 34.59 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.000468/15.88, allocations: 492.3 kB / 7.07 GB, free: 34.15 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.176e-05/15.88, allocations: 0 / 7.07 GB, free: 34.15 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.000134/15.88, allocations: 367.9 kB / 7.07 GB, free: 33.81 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001024/15.88, allocations: 0.6636 MB / 7.071 GB, free: 33.19 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001213/15.88, allocations: 1.058 MB / 7.072 GB, free: 32.05 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003597/15.88, allocations: 1.249 MB / 7.073 GB, free: 31.09 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.516e-06/15.88, allocations: 4 kB / 7.073 GB, free: 31.08 MB / 0.573 GB Notification: Performance of matching and sorting (n=207) (initialization): time 0.006008/15.89, allocations: 2.606 MB / 7.076 GB, free: 28.88 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.001016/15.89, allocations: 3.562 MB / 7.079 GB, free: 25.13 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.103e-05/15.89, allocations: 12 kB / 7.079 GB, free: 25.12 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001476/15.89, allocations: 381.2 kB / 7.079 GB, free: 24.81 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001698/15.89, allocations: 375.5 kB / 7.08 GB, free: 24.5 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01526/15.91, allocations: 7.74 MB / 7.087 GB, free: 16.86 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00325/15.91, allocations: 167.1 kB / 7.087 GB, free: 16.73 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002306/15.91, allocations: 85.73 kB / 7.088 GB, free: 16.66 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 1.243e-05/15.91, allocations: 4 kB / 7.088 GB, free: 16.65 MB / 0.573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00678/15.92, allocations: 2.61 MB / 7.09 GB, free: 14.41 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.554e-05/15.92, allocations: 12 kB / 7.09 GB, free: 14.4 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001449/15.92, allocations: 389.2 kB / 7.091 GB, free: 14.09 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001565/15.92, allocations: 370.6 kB / 7.091 GB, free: 13.77 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005707/15.93, allocations: 5.464 MB / 7.096 GB, free: 8.266 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002234/15.93, allocations: 157.5 kB / 7.096 GB, free: 8.148 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001807/15.93, allocations: 81.47 kB / 7.096 GB, free: 8.078 MB / 0.573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 40 * Number of states: 0 () * Number of discrete variables: 5 (vol2.i_w,vol.regularFlow[1],vol.regularFlow[2],vol.inFlow[2],vol.inFlow[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (201): * Single equations (assignments): 197 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 1,(2,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000674/15.93, allocations: 152.9 kB / 7.097 GB, free: 7.922 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003306/15.93, allocations: 173.9 kB / 7.097 GB, free: 7.75 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007181/15.94, allocations: 2.636 MB / 7.099 GB, free: 5.227 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.037e-05/15.94, allocations: 19.98 kB / 7.099 GB, free: 5.207 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.434e-05/15.94, allocations: 0 / 7.099 GB, free: 5.207 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.894e-05/15.94, allocations: 11.97 kB / 7.099 GB, free: 5.195 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00983/15.95, allocations: 4.274 MB / 7.104 GB, free: 0.9102 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.434e-06/15.95, allocations: 0 / 7.104 GB, free: 0.9102 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001422/15.95, allocations: 315.6 kB / 7.104 GB, free: 0.6016 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002097/15.95, allocations: 445.9 kB / 7.104 GB, free: 160 kB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001665/15.95, allocations: 43.89 kB / 7.104 GB, free: 116 kB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004969/15.96, allocations: 4.402 MB / 7.109 GB, free: 11.37 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.432e-06/15.96, allocations: 4 kB / 7.109 GB, free: 11.37 MB / 0.5886 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.008247/15.96, allocations: 3.252 MB / 7.112 GB, free: 8.078 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002031/15.97, allocations: 462.7 kB / 7.112 GB, free: 7.605 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007359/15.97, allocations: 16 kB / 7.112 GB, free: 7.59 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002293/15.97, allocations: 127.6 kB / 7.112 GB, free: 7.465 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002257/15.97, allocations: 89.16 kB / 7.112 GB, free: 7.379 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003207/15.97, allocations: 91.92 kB / 7.113 GB, free: 7.289 MB / 0.5886 GB Notification: Performance of sort global known variables: time 0.00188/15.97, allocations: 0.7709 MB / 7.113 GB, free: 6.52 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.009478/15.98, allocations: 1.601 MB / 7.115 GB, free: 4.918 MB / 0.5886 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 12 (vol1.dynBal.medium.p,vol1.dynBal.medium.Xi[1],vol1.dynBal.medium.T,vol.medium.p,vol.medium.Xi[1],vol.medium.T,entFloRat.h_out,entFloRat1.h_out,vol2.dynBal.medium.p,vol2.dynBal.medium.Xi[1],vol2.dynBal.medium.T,entFloRat2.h_out) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (160): * Single equations (assignments): 155 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 1,(2,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.007368/15.99, allocations: 2.909 MB / 7.118 GB, free: 2.215 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.4099/16.4, allocations: 3.583 MB / 7.121 GB, free: 101.5 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 1.449e-05/16.4, allocations: 2 kB / 7.121 GB, free: 101.5 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.002211/16.4, allocations: 1.272 MB / 7.122 GB, free: 101.2 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004161/16.41, allocations: 0.7462 MB / 7.123 GB, free: 101.2 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008598/16.41, allocations: 3.729 MB / 7.127 GB, free: 100.5 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001875/16.42, allocations: 1.803 MB / 7.129 GB, free: 99.8 MB / 0.5886 GB Notification: Performance of SimCode: time 1.172e-06/16.42, allocations: 0 / 7.129 GB, free: 99.8 MB / 0.5886 GB Notification: Performance of Templates: time 0.109/16.53, allocations: 66.02 MB / 7.193 GB, free: 97.67 MB / 0.5886 GB make -j1 -f Buildings_1.6_Buildings.Fluid.MixingVolumes.Examples.MixingVolume.makefile (rm -f Buildings_1.6_Buildings.Fluid.MixingVolumes.Examples.MixingVolume.pipe ; mkfifo Buildings_1.6_Buildings.Fluid.MixingVolumes.Examples.MixingVolume.pipe ; head -c 1048576 < Buildings_1.6_Buildings.Fluid.MixingVolumes.Examples.MixingVolume.pipe >> ../files/Buildings_1.6_Buildings.Fluid.MixingVolumes.Examples.MixingVolume.sim & ./Buildings_1.6_Buildings.Fluid.MixingVolumes.Examples.MixingVolume -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_1.6_Buildings.Fluid.MixingVolumes.Examples.MixingVolume.pipe 2>&1)