Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: translateModel(Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.8.0.x_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger") translateModel(Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.8.0.x_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger") [: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 8.0.1-maint.8.0.x/package.mo): time 1.658/1.658, allocations: 285.5 MB / 292.8 MB, free: 14.3 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001546/0.001545, allocations: 184.1 kB / 361.1 MB, free: 11.65 MB / 302.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.428/1.428, allocations: 205.1 MB / 0.6195 GB, free: 4.121 MB / 462.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008428/0.0008428, allocations: 91.52 kB / 0.7326 GB, free: 53.58 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 9.067e-06/9.157e-06, allocations: 4 kB / 0.8511 GB, free: 9.84 MB / 0.5919 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2372/0.2372, allocations: 115.3 MB / 0.9637 GB, free: 6.344 MB / 0.7012 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.339/4.576, allocations: 2.094 GB / 3.058 GB, free: 70 MB / 0.9356 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002422/4.576, allocations: 95.08 kB / 3.058 GB, free: 69.91 MB / 0.9356 GB Notification: Performance of FrontEnd: time 10/14.58, allocations: 2.816 GB / 5.874 GB, free: 87.94 MB / 1.045 GB Notification: Performance of Transformations before backend: time 0.0002724/14.58, allocations: 74.92 kB / 5.874 GB, free: 87.93 MB / 1.045 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 536 * Number of variables: 536 Notification: Performance of Generate backend data structure: time 0.01311/14.59, allocations: 3.555 MB / 5.878 GB, free: 86.53 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 4.343e-05/14.59, allocations: 10.31 kB / 5.878 GB, free: 86.53 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01168/14.6, allocations: 1.545 MB / 5.879 GB, free: 86.36 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00815/14.61, allocations: 2.605 MB / 5.882 GB, free: 85.85 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001246/14.61, allocations: 383.4 kB / 5.882 GB, free: 85.84 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007212/14.61, allocations: 138.9 kB / 5.882 GB, free: 85.84 MB / 1.045 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004622/14.62, allocations: 2.551 MB / 5.885 GB, free: 85.83 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003836/14.62, allocations: 2.413 MB / 5.887 GB, free: 85.43 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.649e-05/14.62, allocations: 5.344 kB / 5.887 GB, free: 85.43 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002387/14.62, allocations: 3.906 kB / 5.887 GB, free: 85.43 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.911e-05/14.62, allocations: 92.91 kB / 5.887 GB, free: 85.43 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02154/14.64, allocations: 13.84 MB / 5.901 GB, free: 78.04 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001912/14.64, allocations: 1.408 MB / 5.902 GB, free: 77.82 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008405/14.64, allocations: 0.6349 MB / 5.903 GB, free: 77.8 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008025/14.65, allocations: 0.6461 MB / 5.903 GB, free: 77.15 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.102e-05/14.65, allocations: 54.47 kB / 5.903 GB, free: 77.11 MB / 1.045 GB Notification: Performance of pre-optimization done (n=110): time 4.679e-06/14.65, allocations: 0 / 5.903 GB, free: 77.11 MB / 1.045 GB Notification: Performance of matching and sorting (n=110): time 0.004221/14.65, allocations: 1.646 MB / 5.905 GB, free: 76.94 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.474e-05/14.65, allocations: 64 kB / 5.905 GB, free: 76.88 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002718/14.65, allocations: 1.57 MB / 5.906 GB, free: 76.65 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 0.0002841/14.65, allocations: 31.83 kB / 5.906 GB, free: 76.62 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 0.000678/14.65, allocations: 0.9494 MB / 5.907 GB, free: 76.05 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003479/14.65, allocations: 372.7 kB / 5.908 GB, free: 75.82 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000111/14.65, allocations: 2.812 kB / 5.908 GB, free: 75.82 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001334/14.65, allocations: 373.8 kB / 5.908 GB, free: 75.51 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001047/14.66, allocations: 0.6916 MB / 5.909 GB, free: 75.5 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001353/14.66, allocations: 1.337 MB / 5.91 GB, free: 74.74 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002257/14.66, allocations: 1.228 MB / 5.911 GB, free: 74.72 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.658e-06/14.66, allocations: 3.688 kB / 5.911 GB, free: 74.72 MB / 1.045 GB Notification: Performance of matching and sorting (n=216) (initialization): time 0.004363/14.66, allocations: 2.444 MB / 5.914 GB, free: 74.55 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 0.001102/14.66, allocations: 5.554 MB / 5.919 GB, free: 68.76 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.289e-05/14.66, allocations: 15.59 kB / 5.919 GB, free: 68.76 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.154e-05/14.66, allocations: 23.84 kB / 5.919 GB, free: 68.76 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003163/14.67, allocations: 0.5938 MB / 5.92 GB, free: 68.75 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001078/14.67, allocations: 2.411 MB / 5.922 GB, free: 66.41 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004296/14.67, allocations: 0.5014 MB / 5.923 GB, free: 66.32 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003295/14.67, allocations: 96.69 kB / 5.923 GB, free: 66.32 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 1.044e-05/14.67, allocations: 3.406 kB / 5.923 GB, free: 66.32 MB / 1.045 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004422/14.68, allocations: 2.185 MB / 5.925 GB, free: 66.29 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.69e-05/14.68, allocations: 11.03 kB / 5.925 GB, free: 66.29 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.991e-05/14.68, allocations: 24.97 kB / 5.925 GB, free: 66.29 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002573/14.68, allocations: 0.5531 MB / 5.925 GB, free: 66.29 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.229e-05/14.68, allocations: 31.44 kB / 5.925 GB, free: 66.29 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003504/14.68, allocations: 399.5 kB / 5.926 GB, free: 66.23 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002851/14.68, allocations: 91.53 kB / 5.926 GB, free: 66.23 MB / 1.045 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 61 * Number of states: 0 () * Number of discrete variables: 4 (masExcFor.i1_w,masExcFor.i2_w,masExcRev.i1_w,masExcRev.i2_w) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (214): * Single equations (assignments): 208 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 4 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 4 {1,1,1,1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0006087/14.69, allocations: 169.3 kB / 5.926 GB, free: 66.11 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007292/14.69, allocations: 218.9 kB / 5.926 GB, free: 66 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00349/14.69, allocations: 1.694 MB / 5.928 GB, free: 65.91 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.048e-05/14.69, allocations: 11.12 kB / 5.928 GB, free: 65.91 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.584e-06/14.69, allocations: 0 / 5.928 GB, free: 65.91 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.107e-05/14.69, allocations: 6.484 kB / 5.928 GB, free: 65.91 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008336/14.7, allocations: 4.049 MB / 5.932 GB, free: 65.36 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.585e-06/14.7, allocations: 5.812 kB / 5.932 GB, free: 65.36 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001723/14.7, allocations: 326.2 kB / 5.932 GB, free: 65.36 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.673e-05/14.7, allocations: 10 kB / 5.932 GB, free: 65.36 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.734e-05/14.7, allocations: 16.78 kB / 5.932 GB, free: 65.36 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007761/14.7, allocations: 2.379 MB / 5.935 GB, free: 63.02 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.766e-06/14.7, allocations: 11.06 kB / 5.935 GB, free: 63.02 MB / 1.045 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002893/14.7, allocations: 2.243 MB / 5.937 GB, free: 61.96 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001267/14.7, allocations: 0.506 MB / 5.937 GB, free: 61.73 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000564/14.71, allocations: 10.31 kB / 5.937 GB, free: 61.73 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002623/14.71, allocations: 264 kB / 5.937 GB, free: 61.72 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001234/14.71, allocations: 73.53 kB / 5.938 GB, free: 61.72 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001528/14.71, allocations: 67.25 kB / 5.938 GB, free: 61.72 MB / 1.045 GB Notification: Performance of sort global known variables: time 0.001808/14.71, allocations: 1.153 MB / 5.939 GB, free: 61.57 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.006625/14.72, allocations: 1.75 MB / 5.94 GB, free: 61.4 MB / 1.045 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 25 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (110): * Single equations (assignments): 106 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 4 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 4 {1,1,1,1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01198/14.73, allocations: 8.269 MB / 5.949 GB, free: 57.17 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.006195/14.73, allocations: 2.832 MB / 5.951 GB, free: 57.02 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 1.245e-05/14.73, allocations: 5.453 kB / 5.951 GB, free: 57.02 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 0.001273/14.74, allocations: 0.658 MB / 5.952 GB, free: 57.02 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003899/14.74, allocations: 0.7034 MB / 5.953 GB, free: 56.98 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00782/14.75, allocations: 3.25 MB / 5.956 GB, free: 55.98 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002257/14.75, allocations: 1.972 MB / 5.958 GB, free: 55.22 MB / 1.045 GB Notification: Performance of SimCode: time 1.262e-06/14.75, allocations: 0 / 5.958 GB, free: 55.22 MB / 1.045 GB Notification: Performance of Templates: time 0.1382/14.89, allocations: 81.62 MB / 6.037 GB, free: 47.62 MB / 1.045 GB make -j1 -f Buildings_maint.8.0.x_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.makefile (rm -f Buildings_maint.8.0.x_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.sim & ./Buildings_maint.8.0.x_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.8.0.x_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.pipe 2>&1)