Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.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.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: translateModel(Buildings.Fluid.Examples.ResistanceVolumeFlowReversal,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal") translateModel(Buildings.Fluid.Examples.ResistanceVolumeFlowReversal,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal") [: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.1.4-maint.8.1.x/package.mo): time 1.627/1.627, allocations: 289.8 MB / 297 MB, free: 6.668 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001307/0.001307, allocations: 185.2 kB / 366.3 MB, free: 1.965 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.681/1.681, allocations: 205.1 MB / 0.6256 GB, free: 5.84 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000947/0.0009472, allocations: 89.7 kB / 0.7396 GB, free: 39.66 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 9.388e-06/9.578e-06, allocations: 0 / 0.859 GB, free: 13.38 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7276/0.7276, allocations: 116.3 MB / 0.9725 GB, free: 68.44 MB / 0.6511 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.05/1.778, allocations: 420.5 MB / 1.383 GB, free: 63.83 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000269/1.778, allocations: 84.86 kB / 1.383 GB, free: 63.79 MB / 0.823 GB Notification: Performance of FrontEnd: time 5.817/7.595, allocations: 1.449 GB / 2.832 GB, free: 140.4 MB / 0.9636 GB Notification: Performance of Transformations before backend: time 0.001236/7.596, allocations: 150.3 kB / 2.833 GB, free: 140.4 MB / 0.9636 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 835 * Number of variables: 835 Notification: Performance of Generate backend data structure: time 0.01939/7.616, allocations: 4.626 MB / 2.837 GB, free: 138.4 MB / 0.9636 GB Notification: Performance of prepare preOptimizeDAE: time 5.921e-05/7.616, allocations: 10.47 kB / 2.837 GB, free: 138.4 MB / 0.9636 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006562/7.622, allocations: 0.8314 MB / 2.838 GB, free: 138.1 MB / 0.9636 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02131/7.644, allocations: 6.858 MB / 2.845 GB, free: 137.2 MB / 0.9636 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002223/7.644, allocations: 105.5 kB / 2.845 GB, free: 137.2 MB / 0.9636 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001337/7.645, allocations: 208.5 kB / 2.845 GB, free: 137.2 MB / 0.9636 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01048/7.656, allocations: 4.856 MB / 2.85 GB, free: 137.2 MB / 0.9636 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01012/7.666, allocations: 4.891 MB / 2.854 GB, free: 136.5 MB / 0.9636 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.877e-05/7.666, allocations: 9.281 kB / 2.854 GB, free: 136.5 MB / 0.9636 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004779/7.667, allocations: 10.78 kB / 2.854 GB, free: 136.5 MB / 0.9636 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.795e-05/7.667, allocations: 89.59 kB / 2.854 GB, free: 136.5 MB / 0.9636 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04494/7.712, allocations: 22.29 MB / 2.876 GB, free: 125.5 MB / 0.9636 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004815/7.716, allocations: 2.649 MB / 2.879 GB, free: 124.6 MB / 0.9636 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00284/7.719, allocations: 1.718 MB / 2.881 GB, free: 123.9 MB / 0.9636 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01726/7.737, allocations: 6.807 MB / 2.887 GB, free: 120.1 MB / 0.9636 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003104/7.74, allocations: 1.748 MB / 2.889 GB, free: 119.5 MB / 0.9636 GB Notification: Performance of pre-optimization done (n=157): time 7.504e-06/7.74, allocations: 0 / 2.889 GB, free: 119.5 MB / 0.9636 GB Notification: Performance of matching and sorting (n=157): time 0.01279/7.753, allocations: 4.803 MB / 2.894 GB, free: 117.9 MB / 0.9636 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.077e-05/7.753, allocations: 152.7 kB / 2.894 GB, free: 117.7 MB / 0.9636 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0116/7.764, allocations: 4.051 MB / 2.898 GB, free: 115.9 MB / 0.9636 GB Notification: Performance of collectPreVariables (initialization): time 0.001063/7.765, allocations: 33.27 kB / 2.898 GB, free: 115.8 MB / 0.9636 GB Notification: Performance of collectInitialEqns (initialization): time 0.002962/7.768, allocations: 1.603 MB / 2.899 GB, free: 114.5 MB / 0.9636 GB Notification: Performance of collectInitialBindings (initialization): time 0.002051/7.771, allocations: 0.5435 MB / 2.9 GB, free: 114 MB / 0.9636 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008863/7.771, allocations: 3.391 kB / 2.9 GB, free: 114 MB / 0.9636 GB Notification: Performance of setup shared object (initialization): time 0.0003825/7.772, allocations: 411.8 kB / 2.9 GB, free: 113.6 MB / 0.9636 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003434/7.775, allocations: 1.557 MB / 2.902 GB, free: 112.9 MB / 0.9636 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004917/7.78, allocations: 2.841 MB / 2.904 GB, free: 110.4 MB / 0.9636 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005816/7.786, allocations: 2.15 MB / 2.907 GB, free: 109.3 MB / 0.9636 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.379e-05/7.786, allocations: 10.84 kB / 2.907 GB, free: 109.3 MB / 0.9636 GB Notification: Performance of matching and sorting (n=340) (initialization): time 0.06633/7.853, allocations: 11.14 MB / 2.917 GB, free: 102 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 0.005204/7.858, allocations: 14.98 MB / 2.932 GB, free: 85.89 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001891/7.858, allocations: 32 kB / 2.932 GB, free: 85.86 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.069/7.927, allocations: 10.74 MB / 2.943 GB, free: 75.41 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003938/7.931, allocations: 0.702 MB / 2.943 GB, free: 74.7 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01312/7.944, allocations: 5.855 MB / 2.949 GB, free: 68.77 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007543/7.952, allocations: 444.9 kB / 2.949 GB, free: 68.33 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00124/7.953, allocations: 199.2 kB / 2.95 GB, free: 68.14 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 1.746e-05/7.953, allocations: 10.8 kB / 2.95 GB, free: 68.14 MB / 0.9636 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.06189/8.015, allocations: 10.42 MB / 2.96 GB, free: 57.71 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001957/8.015, allocations: 36 kB / 2.96 GB, free: 57.68 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.06924/8.085, allocations: 10.68 MB / 2.97 GB, free: 46.97 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00361/8.088, allocations: 0.6787 MB / 2.971 GB, free: 46.29 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01635/8.105, allocations: 8.331 MB / 2.979 GB, free: 37.72 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00671/8.111, allocations: 373.8 kB / 2.979 GB, free: 37.36 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001022/8.112, allocations: 191.8 kB / 2.98 GB, free: 37.17 MB / 0.9636 GB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: val.port_internal.h_outflow:VARIABLE(min = -10000000000.0 max = 10000000000.0 unit = "J/kg" nominal = 1000000.0 protected = true ) "Specific thermodynamic enthalpy close to the connection point if m_flow < 0" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 147 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count,allowFlowReversal.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (284): * Single equations (assignments): 277 * Array equations: 2 * Algorithm blocks: 1 * Record equations: 1 * 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: 0 * Non-linear torn systems: 3 {12 15,10 11,2 5} Notification: Performance of prepare postOptimizeDAE: time 0.001167/8.114, allocations: 204.5 kB / 2.98 GB, free: 36.96 MB / 0.9636 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001915/8.116, allocations: 434.6 kB / 2.98 GB, free: 36.53 MB / 0.9636 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009017/8.125, allocations: 4.457 MB / 2.985 GB, free: 32.09 MB / 0.9636 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.476e-05/8.125, allocations: 19.91 kB / 2.985 GB, free: 32.07 MB / 0.9636 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.871e-06/8.125, allocations: 0 / 2.985 GB, free: 32.07 MB / 0.9636 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006174/8.131, allocations: 4.812 MB / 2.989 GB, free: 27.03 MB / 0.9636 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01781/8.149, allocations: 8.967 MB / 2.998 GB, free: 18.05 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.237e-06/8.149, allocations: 0 / 2.998 GB, free: 18.05 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002367/8.151, allocations: 439.4 kB / 2.998 GB, free: 17.62 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005174/8.156, allocations: 1.865 MB / 3 GB, free: 15.77 MB / 0.9636 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00037/8.157, allocations: 27.97 kB / 3 GB, free: 15.75 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006394/8.163, allocations: 3.549 MB / 3.004 GB, free: 12.12 MB / 0.9636 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.476e-06/8.163, allocations: 4 kB / 3.004 GB, free: 12.12 MB / 0.9636 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01096/8.174, allocations: 6.739 MB / 3.01 GB, free: 5.355 MB / 0.9636 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004012/8.178, allocations: 1.007 MB / 3.011 GB, free: 4.324 MB / 0.9636 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002035/8.18, allocations: 11.89 kB / 3.011 GB, free: 4.312 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005042/8.185, allocations: 223.3 kB / 3.012 GB, free: 4.094 MB / 0.9636 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003607/8.186, allocations: 105.7 kB / 3.012 GB, free: 3.992 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003658/8.186, allocations: 87.92 kB / 3.012 GB, free: 3.906 MB / 0.9636 GB Notification: Performance of sort global known variables: time 0.005199/8.191, allocations: 3.06 MB / 3.015 GB, free: 0.8555 MB / 0.9636 GB Notification: Performance of remove unused functions: time 0.01942/8.211, allocations: 2.697 MB / 3.017 GB, free: 14.15 MB / 0.9792 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (pump.vol.dynBal.U,hea.outCon.T,val.filter.x[1],val.filter.x[2]) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (138): * Single equations (assignments): 129 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 2 * 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: 0 * Non-linear torn systems: 3 {12 5,2 5,10 11} Notification: Performance of Backend phase and start with SimCode phase: time 0.00413/8.215, allocations: 1.207 MB / 3.019 GB, free: 13.05 MB / 0.9792 GB Notification: Performance of simCode: created initialization part: time 0.0221/8.237, allocations: 7.095 MB / 3.026 GB, free: 5.926 MB / 0.9792 GB Notification: Performance of simCode: created event and clocks part: time 1.245e-05/8.237, allocations: 2.344 kB / 3.026 GB, free: 5.926 MB / 0.9792 GB Notification: Performance of simCode: created simulation system equations: time 0.00618/8.243, allocations: 2.108 MB / 3.028 GB, free: 3.82 MB / 0.9792 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01539/8.259, allocations: 2.307 MB / 3.03 GB, free: 1.57 MB / 0.9792 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.6754/8.934, allocations: 7.785 MB / 3.037 GB, free: 232.7 MB / 0.9792 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005081/8.939, allocations: 3.718 MB / 3.041 GB, free: 231.9 MB / 0.9792 GB Notification: Performance of SimCode: time 1.543e-06/8.939, allocations: 0 / 3.041 GB, free: 231.9 MB / 0.9792 GB Notification: Performance of Templates: time 0.2156/9.155, allocations: 118.1 MB / 3.156 GB, free: 227.7 MB / 0.9792 GB make -j1 -f Buildings_8_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.makefile (rm -f Buildings_8_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.pipe ; mkfifo Buildings_8_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.pipe >> ../files/Buildings_8_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.sim & ./Buildings_8_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.pipe 2>&1)