Running: ./testmodel.py --libraries=/home/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 (/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 7.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Examples.ResistanceVolumeFlowReversal,fileNamePrefix="Buildings_7_0_0_Buildings_Fluid_Examples_ResistanceVolumeFlowReversal",fmuType="me",version="2.0",platforms={"static"}) [: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 7.0.1/package.mo): time 2.102/2.102, allocations: 248.6 MB / 255.9 MB, free: 7.18 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001643/0.001642, allocations: 183.7 kB / 315.1 MB, free: 4.277 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.903/1.903, allocations: 205.1 MB / 0.5658 GB, free: 292 kB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001318/0.001318, allocations: 91.08 kB / 0.67 GB, free: 5.492 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.4525/0.4538, allocations: 112.4 MB / 0.7797 GB, free: 103.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.202/0.6559, allocations: 106.3 MB / 0.8835 GB, free: 13.35 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.489/2.145, allocations: 414.1 MB / 1.288 GB, free: 255.7 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002925/2.145, allocations: 79.19 kB / 1.288 GB, free: 255.7 MB / 0.8698 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 6.847/8.992, allocations: 1.454 GB / 2.742 GB, free: 121.2 MB / 0.9011 GB Notification: Performance of prepare preOptimizeDAE: time 4.708e-05/8.992, allocations: 11.81 kB / 2.742 GB, free: 121.2 MB / 0.9011 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007329/9, allocations: 0.8264 MB / 2.742 GB, free: 120.9 MB / 0.9011 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02897/9.029, allocations: 6.866 MB / 2.749 GB, free: 120.1 MB / 0.9011 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002687/9.029, allocations: 107.9 kB / 2.749 GB, free: 120.1 MB / 0.9011 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001737/9.031, allocations: 208.2 kB / 2.749 GB, free: 120.1 MB / 0.9011 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01511/9.046, allocations: 4.856 MB / 2.754 GB, free: 120.1 MB / 0.9011 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01667/9.063, allocations: 4.891 MB / 2.759 GB, free: 119.4 MB / 0.9011 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001267/9.063, allocations: 13.25 kB / 2.759 GB, free: 119.4 MB / 0.9011 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009533/9.064, allocations: 11.47 kB / 2.759 GB, free: 119.4 MB / 0.9011 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.06e-05/9.064, allocations: 81.34 kB / 2.759 GB, free: 119.4 MB / 0.9011 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05729/9.121, allocations: 22.27 MB / 2.781 GB, free: 109.5 MB / 0.9011 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007724/9.129, allocations: 2.656 MB / 2.783 GB, free: 109.5 MB / 0.9011 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005857/9.135, allocations: 1.726 MB / 2.785 GB, free: 109.5 MB / 0.9011 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02924/9.164, allocations: 6.806 MB / 2.792 GB, free: 107.2 MB / 0.9011 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00621/9.171, allocations: 1.746 MB / 2.793 GB, free: 107.2 MB / 0.9011 GB Notification: Performance of pre-optimization done (n=157): time 5.35e-06/9.171, allocations: 0 / 2.793 GB, free: 107.2 MB / 0.9011 GB Notification: Performance of matching and sorting (n=157): time 0.01973/9.191, allocations: 4.796 MB / 2.798 GB, free: 106.9 MB / 0.9011 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.404e-05/9.191, allocations: 152.7 kB / 2.798 GB, free: 106.7 MB / 0.9011 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01151/9.202, allocations: 4.057 MB / 2.802 GB, free: 106.4 MB / 0.9011 GB Notification: Performance of collectPreVariables (initialization): time 0.0008815/9.203, allocations: 32.7 kB / 2.802 GB, free: 106.3 MB / 0.9011 GB Notification: Performance of collectInitialEqns (initialization): time 0.00299/9.206, allocations: 1.601 MB / 2.804 GB, free: 105.5 MB / 0.9011 GB Notification: Performance of collectInitialBindings (initialization): time 0.002001/9.208, allocations: 0.5336 MB / 2.804 GB, free: 105.2 MB / 0.9011 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004224/9.209, allocations: 0 / 2.804 GB, free: 105.2 MB / 0.9011 GB Notification: Performance of setup shared object (initialization): time 0.0002349/9.209, allocations: 416.5 kB / 2.805 GB, free: 104.9 MB / 0.9011 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004068/9.213, allocations: 1.561 MB / 2.806 GB, free: 104.8 MB / 0.9011 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005516/9.219, allocations: 2.832 MB / 2.809 GB, free: 103.3 MB / 0.9011 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007729/9.226, allocations: 2.162 MB / 2.811 GB, free: 103.2 MB / 0.9011 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.233e-05/9.226, allocations: 9.75 kB / 2.811 GB, free: 103.2 MB / 0.9011 GB Notification: Performance of matching and sorting (n=340) (initialization): time 0.1749/9.401, allocations: 11.13 MB / 2.822 GB, free: 101.9 MB / 0.9011 GB Notification: Performance of prepare postOptimizeDAE: time 0.003661/9.405, allocations: 14.98 MB / 2.837 GB, free: 85.98 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001878/9.405, allocations: 37.38 kB / 2.837 GB, free: 85.98 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.1604/9.566, allocations: 10.74 MB / 2.847 GB, free: 85.04 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005983/9.572, allocations: 0.6972 MB / 2.848 GB, free: 84.99 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02471/9.597, allocations: 5.852 MB / 2.854 GB, free: 81.94 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009583/9.606, allocations: 445.6 kB / 2.854 GB, free: 81.71 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001251/9.607, allocations: 196 kB / 2.854 GB, free: 81.65 MB / 0.9011 GB Notification: Performance of prepare postOptimizeDAE: time 1.37e-05/9.608, allocations: 3.125 kB / 2.854 GB, free: 81.65 MB / 0.9011 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.1324/9.74, allocations: 10.42 MB / 2.864 GB, free: 74.42 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001518/9.74, allocations: 40.02 kB / 2.864 GB, free: 74.38 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.1546/9.895, allocations: 10.68 MB / 2.875 GB, free: 63.68 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005859/9.901, allocations: 0.6865 MB / 2.876 GB, free: 62.99 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02727/9.928, allocations: 8.345 MB / 2.884 GB, free: 54.4 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008689/9.937, allocations: 370 kB / 2.884 GB, free: 54.04 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001195/9.938, allocations: 191.8 kB / 2.884 GB, free: 53.85 MB / 0.9011 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.001502/9.94, allocations: 209.1 kB / 2.884 GB, free: 53.64 MB / 0.9011 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001865/9.941, allocations: 430.6 kB / 2.885 GB, free: 53.21 MB / 0.9011 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0166/9.958, allocations: 4.458 MB / 2.889 GB, free: 48.81 MB / 0.9011 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.541e-05/9.958, allocations: 19.98 kB / 2.889 GB, free: 48.79 MB / 0.9011 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.264e-06/9.958, allocations: 0 / 2.889 GB, free: 48.79 MB / 0.9011 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01211/9.97, allocations: 4.803 MB / 2.894 GB, free: 43.76 MB / 0.9011 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02779/9.998, allocations: 8.975 MB / 2.903 GB, free: 34.78 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.17e-05/9.998, allocations: 0 / 2.903 GB, free: 34.78 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004836/10, allocations: 431 kB / 2.903 GB, free: 34.36 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01055/10.01, allocations: 1.858 MB / 2.905 GB, free: 32.52 MB / 0.9011 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006454/10.01, allocations: 35.97 kB / 2.905 GB, free: 32.48 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01289/10.03, allocations: 3.552 MB / 2.908 GB, free: 28.85 MB / 0.9011 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.694e-06/10.03, allocations: 0 / 2.908 GB, free: 28.85 MB / 0.9011 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01917/10.05, allocations: 6.738 MB / 2.915 GB, free: 22.09 MB / 0.9011 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.02496/10.07, allocations: 9.524 MB / 2.924 GB, free: 12.53 MB / 0.9011 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004806/10.08, allocations: 1.01 MB / 2.925 GB, free: 11.5 MB / 0.9011 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002223/10.08, allocations: 4 kB / 2.925 GB, free: 11.49 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007819/10.09, allocations: 231.1 kB / 2.925 GB, free: 11.27 MB / 0.9011 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007729/10.09, allocations: 105.8 kB / 2.926 GB, free: 11.16 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005186/10.09, allocations: 83.92 kB / 2.926 GB, free: 11.08 MB / 0.9011 GB Notification: Performance of sort global known variables: time 0.008311/10.1, allocations: 3.062 MB / 2.929 GB, free: 8.031 MB / 0.9011 GB Notification: Performance of remove unused functions: time 0.02057/10.12, allocations: 3.029 MB / 2.932 GB, free: 4.996 MB / 0.9011 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.003625/10.12, allocations: 1.185 MB / 2.933 GB, free: 3.93 MB / 0.9011 GB Notification: Performance of simCode: created initialization part: time 0.4691/10.59, allocations: 7.099 MB / 2.94 GB, free: 205.9 MB / 0.9011 GB Notification: Performance of simCode: created event and clocks part: time 1.77e-05/10.59, allocations: 4.531 kB / 2.94 GB, free: 205.9 MB / 0.9011 GB Notification: Performance of simCode: created simulation system equations: time 0.01035/10.6, allocations: 2.112 MB / 2.942 GB, free: 205.8 MB / 0.9011 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02258/10.62, allocations: 2.304 MB / 2.944 GB, free: 205.8 MB / 0.9011 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02927/10.65, allocations: 7.791 MB / 2.952 GB, free: 204.4 MB / 0.9011 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008565/10.66, allocations: 3.725 MB / 2.955 GB, free: 203.6 MB / 0.9011 GB Notification: Performance of SimCode: time 1.633e-06/10.66, allocations: 0 / 2.955 GB, free: 203.6 MB / 0.9011 GB