Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.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.Examples.ResistanceVolumeFlowReversal,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.8.0.x_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal") translateModel(Buildings.Fluid.Examples.ResistanceVolumeFlowReversal,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.8.0.x_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.0.1-maint.8.0.x/package.mo): time 1.541/1.541, allocations: 285.5 MB / 292.8 MB, free: 10.5 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.002176/0.002176, allocations: 165.3 kB / 361.1 MB, free: 7.109 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.694/1.694, allocations: 205.1 MB / 0.6195 GB, free: 10.31 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.0009915/0.0009918, allocations: 89.14 kB / 0.7326 GB, free: 44.27 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 9.829e-06/1.008e-05, allocations: 0 / 0.8511 GB, free: 3 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7507/0.7507, allocations: 115.3 MB / 0.9637 GB, free: 78.04 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.057/1.807, allocations: 419.5 MB / 1.373 GB, free: 142.5 MB / 0.8542 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004149/1.808, allocations: 83.08 kB / 1.373 GB, free: 142.4 MB / 0.8542 GB Notification: Performance of FrontEnd: time 5.706/7.514, allocations: 1.449 GB / 2.823 GB, free: 121.2 MB / 0.9636 GB Notification: Performance of Transformations before backend: time 0.0009742/7.515, allocations: 150.6 kB / 2.823 GB, free: 121.2 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.01667/7.531, allocations: 4.617 MB / 2.827 GB, free: 119.5 MB / 0.9636 GB Notification: Performance of prepare preOptimizeDAE: time 5.676e-05/7.531, allocations: 10.38 kB / 2.827 GB, free: 119.5 MB / 0.9636 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00604/7.537, allocations: 0.8265 MB / 2.828 GB, free: 119.2 MB / 0.9636 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01964/7.557, allocations: 6.864 MB / 2.835 GB, free: 118.4 MB / 0.9636 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001741/7.557, allocations: 108.5 kB / 2.835 GB, free: 118.4 MB / 0.9636 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001105/7.558, allocations: 210.4 kB / 2.835 GB, free: 118.4 MB / 0.9636 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.008225/7.567, allocations: 4.856 MB / 2.84 GB, free: 118.3 MB / 0.9636 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007611/7.574, allocations: 4.892 MB / 2.845 GB, free: 117.6 MB / 0.9636 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.682e-05/7.574, allocations: 16.3 kB / 2.845 GB, free: 117.6 MB / 0.9636 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004537/7.575, allocations: 6.438 kB / 2.845 GB, free: 117.6 MB / 0.9636 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.669e-05/7.575, allocations: 84.69 kB / 2.845 GB, free: 117.6 MB / 0.9636 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03453/7.609, allocations: 22.27 MB / 2.866 GB, free: 107.8 MB / 0.9636 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003814/7.613, allocations: 2.643 MB / 2.869 GB, free: 107.8 MB / 0.9636 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002103/7.615, allocations: 1.723 MB / 2.871 GB, free: 107.8 MB / 0.9636 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01327/7.629, allocations: 6.823 MB / 2.877 GB, free: 105.6 MB / 0.9636 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002275/7.631, allocations: 1.745 MB / 2.879 GB, free: 105.5 MB / 0.9636 GB Notification: Performance of pre-optimization done (n=157): time 4.359e-06/7.631, allocations: 3.812 kB / 2.879 GB, free: 105.5 MB / 0.9636 GB Notification: Performance of matching and sorting (n=157): time 0.01088/7.642, allocations: 4.795 MB / 2.884 GB, free: 105.2 MB / 0.9636 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.07e-05/7.642, allocations: 152.3 kB / 2.884 GB, free: 105 MB / 0.9636 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0076/7.65, allocations: 4.054 MB / 2.888 GB, free: 104.7 MB / 0.9636 GB Notification: Performance of collectPreVariables (initialization): time 0.0007943/7.651, allocations: 32.92 kB / 2.888 GB, free: 104.7 MB / 0.9636 GB Notification: Performance of collectInitialEqns (initialization): time 0.001889/7.652, allocations: 1.603 MB / 2.889 GB, free: 103.8 MB / 0.9636 GB Notification: Performance of collectInitialBindings (initialization): time 0.001326/7.654, allocations: 0.542 MB / 2.89 GB, free: 103.5 MB / 0.9636 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001834/7.654, allocations: 0 / 2.89 GB, free: 103.5 MB / 0.9636 GB Notification: Performance of setup shared object (initialization): time 0.0001765/7.654, allocations: 414.6 kB / 2.89 GB, free: 103.2 MB / 0.9636 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002097/7.656, allocations: 1.557 MB / 2.892 GB, free: 103.2 MB / 0.9636 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002873/7.659, allocations: 2.832 MB / 2.895 GB, free: 101.6 MB / 0.9636 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004088/7.663, allocations: 2.165 MB / 2.897 GB, free: 101.6 MB / 0.9636 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.664e-05/7.663, allocations: 7.781 kB / 2.897 GB, free: 101.6 MB / 0.9636 GB Notification: Performance of matching and sorting (n=340) (initialization): time 0.06223/7.725, allocations: 11.13 MB / 2.908 GB, free: 101.2 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 0.005984/7.732, allocations: 14.98 MB / 2.922 GB, free: 85.47 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000149/7.732, allocations: 33.59 kB / 2.922 GB, free: 85.47 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.07325/7.805, allocations: 10.74 MB / 2.933 GB, free: 85.44 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003796/7.809, allocations: 0.6948 MB / 2.933 GB, free: 85.44 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0127/7.822, allocations: 5.853 MB / 2.939 GB, free: 83.85 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007087/7.829, allocations: 451.7 kB / 2.94 GB, free: 83.68 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001068/7.83, allocations: 197.5 kB / 2.94 GB, free: 83.68 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 1.554e-05/7.83, allocations: 3.719 kB / 2.94 GB, free: 83.68 MB / 0.9636 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.06029/7.89, allocations: 10.41 MB / 2.95 GB, free: 83.58 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001493/7.89, allocations: 36.47 kB / 2.95 GB, free: 83.58 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.07169/7.962, allocations: 10.68 MB / 2.96 GB, free: 83.55 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003572/7.966, allocations: 0.6856 MB / 2.961 GB, free: 83.55 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01636/7.982, allocations: 8.334 MB / 2.969 GB, free: 80.42 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006909/7.989, allocations: 375.6 kB / 2.97 GB, free: 80.31 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001014/7.99, allocations: 190.7 kB / 2.97 GB, free: 80.31 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.00126/7.991, allocations: 220.2 kB / 2.97 GB, free: 80.18 MB / 0.9636 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002013/7.993, allocations: 431.2 kB / 2.97 GB, free: 79.95 MB / 0.9636 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01014/8.004, allocations: 4.456 MB / 2.975 GB, free: 79.78 MB / 0.9636 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.701e-05/8.004, allocations: 22.64 kB / 2.975 GB, free: 79.78 MB / 0.9636 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.97e-06/8.004, allocations: 0 / 2.975 GB, free: 79.78 MB / 0.9636 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006924/8.011, allocations: 4.798 MB / 2.979 GB, free: 78.16 MB / 0.9636 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01953/8.03, allocations: 8.981 MB / 2.988 GB, free: 74.35 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.209e-05/8.03, allocations: 2.75 kB / 2.988 GB, free: 74.35 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002497/8.033, allocations: 428 kB / 2.989 GB, free: 74.34 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005741/8.038, allocations: 1.866 MB / 2.99 GB, free: 74.04 MB / 0.9636 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000352/8.039, allocations: 29.22 kB / 2.99 GB, free: 74.03 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007129/8.046, allocations: 3.555 MB / 2.994 GB, free: 71.78 MB / 0.9636 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.135e-06/8.046, allocations: 3.031 kB / 2.994 GB, free: 71.78 MB / 0.9636 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01296/8.059, allocations: 6.731 MB / 3.001 GB, free: 68.63 MB / 0.9636 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004607/8.064, allocations: 1.01 MB / 3.002 GB, free: 68.07 MB / 0.9636 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002071/8.066, allocations: 6.016 kB / 3.002 GB, free: 68.07 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005206/8.071, allocations: 226.4 kB / 3.002 GB, free: 67.91 MB / 0.9636 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003725/8.071, allocations: 108.2 kB / 3.002 GB, free: 67.84 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003941/8.072, allocations: 87.53 kB / 3.002 GB, free: 67.78 MB / 0.9636 GB Notification: Performance of sort global known variables: time 0.005716/8.077, allocations: 3.064 MB / 3.005 GB, free: 65.17 MB / 0.9636 GB Notification: Performance of remove unused functions: time 0.01638/8.094, allocations: 2.704 MB / 3.008 GB, free: 62.48 MB / 0.9636 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.004704/8.099, allocations: 1.206 MB / 3.009 GB, free: 61.49 MB / 0.9636 GB Notification: Performance of simCode: created initialization part: time 0.02038/8.119, allocations: 7.1 MB / 3.016 GB, free: 55.12 MB / 0.9636 GB Notification: Performance of simCode: created event and clocks part: time 1.133e-05/8.119, allocations: 4.656 kB / 3.016 GB, free: 55.12 MB / 0.9636 GB Notification: Performance of simCode: created simulation system equations: time 0.005641/8.125, allocations: 2.107 MB / 3.018 GB, free: 53.04 MB / 0.9636 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0146/8.139, allocations: 2.313 MB / 3.02 GB, free: 50.81 MB / 0.9636 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02936/8.169, allocations: 7.771 MB / 3.028 GB, free: 42.98 MB / 0.9636 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007165/8.176, allocations: 3.719 MB / 3.031 GB, free: 39.23 MB / 0.9636 GB Notification: Performance of SimCode: time 1.062e-06/8.176, allocations: 0 / 3.031 GB, free: 39.23 MB / 0.9636 GB Notification: Performance of Templates: time 0.7904/8.966, allocations: 118.1 MB / 3.147 GB, free: 223.4 MB / 0.9792 GB make -j1 -f Buildings_maint.8.0.x_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.makefile (rm -f Buildings_maint.8.0.x_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.sim & ./Buildings_maint.8.0.x_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.8.0.x_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.pipe 2>&1)