Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.conf.json Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: translateModel(Buildings.Fluid.Examples.ResistanceVolumeFlowReversal,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_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(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo): time 1.967/1.967, allocations: 253.1 MB / 260.4 MB, free: 0.5352 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001708/0.001708, allocations: 190.3 kB / 319.6 MB, free: 7.629 MB / 250.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.01/2.01, allocations: 205.4 MB / 0.5704 GB, free: 25.55 MB / 426.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00134/0.00134, allocations: 97.61 kB / 0.6746 GB, free: 3.035 MB / 0.4948 GB Notification: Performance of FrontEnd - loaded program: time 1.088e-05/1.105e-05, allocations: 0 / 0.7843 GB, free: 2.668 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5129/0.513, allocations: 106.2 MB / 0.888 GB, free: 77.08 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.072/1.586, allocations: 413 MB / 1.291 GB, free: 9.672 MB / 0.8073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004244/1.586, allocations: 88.66 kB / 1.291 GB, free: 9.633 MB / 0.8073 GB Notification: Performance of FrontEnd: time 7.208/8.794, allocations: 1.449 GB / 2.741 GB, free: 8.109 MB / 0.9167 GB Notification: Performance of Transformations before backend: time 0.001234/8.796, allocations: 151.8 kB / 2.741 GB, free: 7.961 MB / 0.9167 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.02028/8.816, allocations: 4.619 MB / 2.745 GB, free: 3.258 MB / 0.9167 GB Notification: Performance of prepare preOptimizeDAE: time 4.633e-05/8.816, allocations: 8.031 kB / 2.745 GB, free: 3.25 MB / 0.9167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007677/8.824, allocations: 0.8362 MB / 2.746 GB, free: 2.406 MB / 0.9167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.4501/9.274, allocations: 6.852 MB / 2.753 GB, free: 189.5 MB / 0.9167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003011/9.274, allocations: 109.2 kB / 2.753 GB, free: 189.5 MB / 0.9167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001639/9.276, allocations: 206.2 kB / 2.753 GB, free: 189.5 MB / 0.9167 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0148/9.291, allocations: 4.857 MB / 2.758 GB, free: 189.4 MB / 0.9167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01557/9.307, allocations: 4.887 MB / 2.763 GB, free: 188.8 MB / 0.9167 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001169/9.307, allocations: 9.562 kB / 2.763 GB, free: 188.8 MB / 0.9167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007778/9.307, allocations: 14.19 kB / 2.763 GB, free: 188.8 MB / 0.9167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.306e-05/9.308, allocations: 82.5 kB / 2.763 GB, free: 188.8 MB / 0.9167 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05511/9.363, allocations: 22.28 MB / 2.784 GB, free: 179.2 MB / 0.9167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007104/9.37, allocations: 2.646 MB / 2.787 GB, free: 179.1 MB / 0.9167 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004095/9.374, allocations: 1.721 MB / 2.789 GB, free: 179.1 MB / 0.9167 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01994/9.394, allocations: 6.806 MB / 2.795 GB, free: 177 MB / 0.9167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004044/9.398, allocations: 1.746 MB / 2.797 GB, free: 176.9 MB / 0.9167 GB Notification: Performance of pre-optimization done (n=157): time 5.671e-06/9.398, allocations: 3.906 kB / 2.797 GB, free: 176.9 MB / 0.9167 GB Notification: Performance of matching and sorting (n=157): time 0.01834/9.416, allocations: 4.801 MB / 2.802 GB, free: 176.6 MB / 0.9167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.645e-05/9.417, allocations: 150.3 kB / 2.802 GB, free: 176.4 MB / 0.9167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01082/9.427, allocations: 4.052 MB / 2.806 GB, free: 176.1 MB / 0.9167 GB Notification: Performance of collectPreVariables (initialization): time 0.0009446/9.428, allocations: 30.77 kB / 2.806 GB, free: 176.1 MB / 0.9167 GB Notification: Performance of collectInitialEqns (initialization): time 0.003375/9.432, allocations: 1.609 MB / 2.807 GB, free: 175.5 MB / 0.9167 GB Notification: Performance of collectInitialBindings (initialization): time 0.002209/9.434, allocations: 0.5394 MB / 2.808 GB, free: 175.2 MB / 0.9167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004569/9.435, allocations: 2.156 kB / 2.808 GB, free: 175.2 MB / 0.9167 GB Notification: Performance of setup shared object (initialization): time 0.000259/9.435, allocations: 416 kB / 2.808 GB, free: 174.9 MB / 0.9167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004392/9.439, allocations: 1.557 MB / 2.81 GB, free: 174.9 MB / 0.9167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005716/9.445, allocations: 2.834 MB / 2.813 GB, free: 173.3 MB / 0.9167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007244/9.452, allocations: 2.157 MB / 2.815 GB, free: 173.3 MB / 0.9167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.824e-05/9.453, allocations: 7.219 kB / 2.815 GB, free: 173.3 MB / 0.9167 GB Notification: Performance of matching and sorting (n=340) (initialization): time 0.1321/9.585, allocations: 11.13 MB / 2.826 GB, free: 172.9 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 0.003709/9.588, allocations: 14.98 MB / 2.84 GB, free: 157.2 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001699/9.589, allocations: 31.81 kB / 2.84 GB, free: 157.2 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.1521/9.741, allocations: 10.74 MB / 2.851 GB, free: 157.2 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005819/9.747, allocations: 0.695 MB / 2.851 GB, free: 157.2 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02278/9.77, allocations: 5.858 MB / 2.857 GB, free: 155.6 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009822/9.779, allocations: 446.1 kB / 2.858 GB, free: 155.5 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001249/9.781, allocations: 197.2 kB / 2.858 GB, free: 155.5 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 1.388e-05/9.781, allocations: 3.906 kB / 2.858 GB, free: 155.5 MB / 0.9167 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.1293/9.91, allocations: 10.41 MB / 2.868 GB, free: 155.4 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001424/9.91, allocations: 33.09 kB / 2.868 GB, free: 155.4 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.153/10.06, allocations: 10.69 MB / 2.878 GB, free: 155.4 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005685/10.07, allocations: 0.6859 MB / 2.879 GB, free: 155.4 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02732/10.1, allocations: 8.333 MB / 2.887 GB, free: 152.2 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008778/10.11, allocations: 380.7 kB / 2.888 GB, free: 152.2 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00112/10.11, allocations: 192.4 kB / 2.888 GB, free: 152.2 MB / 0.9167 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.001396/10.11, allocations: 207.3 kB / 2.888 GB, free: 152 MB / 0.9167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00194/10.11, allocations: 431.4 kB / 2.888 GB, free: 151.8 MB / 0.9167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01727/10.13, allocations: 4.458 MB / 2.893 GB, free: 151.6 MB / 0.9167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.808e-05/10.13, allocations: 22.19 kB / 2.893 GB, free: 151.6 MB / 0.9167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.895e-06/10.13, allocations: 0 / 2.893 GB, free: 151.6 MB / 0.9167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01245/10.14, allocations: 4.811 MB / 2.897 GB, free: 150.3 MB / 0.9167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03735/10.18, allocations: 8.961 MB / 2.906 GB, free: 149.4 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.38e-05/10.18, allocations: 2.312 kB / 2.906 GB, free: 149.4 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005521/10.18, allocations: 432.3 kB / 2.907 GB, free: 149.4 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01578/10.2, allocations: 1.856 MB / 2.908 GB, free: 149.4 MB / 0.9167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006293/10.2, allocations: 30.08 kB / 2.908 GB, free: 149.4 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01325/10.21, allocations: 3.547 MB / 2.912 GB, free: 147.8 MB / 0.9167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.769e-06/10.21, allocations: 3.781 kB / 2.912 GB, free: 147.8 MB / 0.9167 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02108/10.23, allocations: 6.736 MB / 2.918 GB, free: 147.3 MB / 0.9167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005326/10.24, allocations: 1.013 MB / 2.919 GB, free: 146.9 MB / 0.9167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002502/10.24, allocations: 3.906 kB / 2.919 GB, free: 146.9 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007963/10.25, allocations: 225.2 kB / 2.92 GB, free: 146.9 MB / 0.9167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007823/10.25, allocations: 103.2 kB / 2.92 GB, free: 146.9 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005341/10.25, allocations: 92.45 kB / 2.92 GB, free: 146.9 MB / 0.9167 GB Notification: Performance of sort global known variables: time 0.009253/10.26, allocations: 3.065 MB / 2.923 GB, free: 146.7 MB / 0.9167 GB Notification: Performance of remove unused functions: time 0.01642/10.28, allocations: 2.692 MB / 2.925 GB, free: 146.4 MB / 0.9167 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.003901/10.28, allocations: 1.196 MB / 2.927 GB, free: 146.2 MB / 0.9167 GB Notification: Performance of simCode: created initialization part: time 0.03523/10.32, allocations: 7.103 MB / 2.934 GB, free: 145.7 MB / 0.9167 GB Notification: Performance of simCode: created event and clocks part: time 1.418e-05/10.32, allocations: 4.375 kB / 2.934 GB, free: 145.7 MB / 0.9167 GB Notification: Performance of simCode: created simulation system equations: time 0.01052/10.33, allocations: 2.108 MB / 2.936 GB, free: 145.7 MB / 0.9167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02258/10.35, allocations: 2.309 MB / 2.938 GB, free: 145.7 MB / 0.9167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03275/10.38, allocations: 7.784 MB / 2.946 GB, free: 144.2 MB / 0.9167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01011/10.39, allocations: 3.717 MB / 2.949 GB, free: 143.4 MB / 0.9167 GB Notification: Performance of SimCode: time 1.393e-06/10.39, allocations: 0 / 2.949 GB, free: 143.4 MB / 0.9167 GB Notification: Performance of Templates: time 0.3113/10.7, allocations: 118 MB / 3.064 GB, free: 105.5 MB / 0.9167 GB