Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Examples.ResistanceVolumeFlowReversal.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: translateModel(BuildingSystems.Fluid.Examples.ResistanceVolumeFlowReversal,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Examples.ResistanceVolumeFlowReversal") translateModel(BuildingSystems.Fluid.Examples.ResistanceVolumeFlowReversal,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.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/BuildingSystems 2.0.0-master/package.mo): time 0.7998/0.7998, allocations: 141.8 MB / 149.1 MB, free: 12.36 MB / 130.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001242/0.001242, allocations: 177.3 kB / 181.9 MB, free: 12.85 MB / 162.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.471/1.471, allocations: 221.3 MB / 436 MB, free: 352 kB / 322.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001051/0.001051, allocations: 104.5 kB / 0.507 GB, free: 13.23 MB / 418.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002014/0.002014, allocations: 277.5 kB / 0.5884 GB, free: 57.62 MB / 418.9 MB Notification: Performance of FrontEnd - loaded program: time 8.286e-06/8.316e-06, allocations: 4 kB / 0.6759 GB, free: 8 kB / 450.9 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4839/0.4839, allocations: 82.77 MB / 0.7567 GB, free: 34.92 MB / 466.9 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.788/1.272, allocations: 377.1 MB / 1.125 GB, free: 9.426 MB / 0.6747 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003077/1.272, allocations: 78.41 kB / 1.125 GB, free: 9.395 MB / 0.6747 GB Notification: Performance of FrontEnd: time 6.33/7.602, allocations: 1.475 GB / 2.6 GB, free: 93.33 MB / 0.7372 GB Notification: Performance of Transformations before backend: time 0.001403/7.603, allocations: 149.4 kB / 2.6 GB, free: 93.3 MB / 0.7372 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 834 * Number of variables: 834 Notification: Performance of Generate backend data structure: time 0.01964/7.623, allocations: 4.585 MB / 2.605 GB, free: 91.51 MB / 0.7372 GB Notification: Performance of prepare preOptimizeDAE: time 5.334e-05/7.623, allocations: 7.812 kB / 2.605 GB, free: 91.51 MB / 0.7372 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006366/7.63, allocations: 0.8244 MB / 2.606 GB, free: 91.2 MB / 0.7372 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02244/7.652, allocations: 6.817 MB / 2.612 GB, free: 90.36 MB / 0.7372 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003131/7.652, allocations: 105.8 kB / 2.612 GB, free: 90.36 MB / 0.7372 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001709/7.654, allocations: 207.9 kB / 2.612 GB, free: 90.36 MB / 0.7372 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0109/7.665, allocations: 4.853 MB / 2.617 GB, free: 90.35 MB / 0.7372 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01319/7.678, allocations: 4.859 MB / 2.622 GB, free: 89.68 MB / 0.7372 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.625e-05/7.678, allocations: 10.72 kB / 2.622 GB, free: 89.68 MB / 0.7372 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005793/7.679, allocations: 7.406 kB / 2.622 GB, free: 89.68 MB / 0.7372 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001034/7.679, allocations: 118.1 kB / 2.622 GB, free: 89.68 MB / 0.7372 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03588/7.715, allocations: 22.36 MB / 2.644 GB, free: 79.85 MB / 0.7372 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002886/7.718, allocations: 2.357 MB / 2.646 GB, free: 79.81 MB / 0.7372 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002073/7.72, allocations: 1.778 MB / 2.648 GB, free: 79.79 MB / 0.7372 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01271/7.733, allocations: 6.934 MB / 2.655 GB, free: 77.58 MB / 0.7372 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002219/7.735, allocations: 1.747 MB / 2.656 GB, free: 77.52 MB / 0.7372 GB Notification: Performance of pre-optimization done (n=158): time 4.89e-06/7.735, allocations: 0 / 2.656 GB, free: 77.52 MB / 0.7372 GB Notification: Performance of matching and sorting (n=158): time 0.01887/7.754, allocations: 6.189 MB / 2.662 GB, free: 77.19 MB / 0.7372 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.207e-05/7.754, allocations: 72 kB / 2.663 GB, free: 77.12 MB / 0.7372 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007083/7.761, allocations: 4.036 MB / 2.666 GB, free: 76.81 MB / 0.7372 GB Notification: Performance of collectPreVariables (initialization): time 0.0009111/7.762, allocations: 34.17 kB / 2.667 GB, free: 76.78 MB / 0.7372 GB Notification: Performance of collectInitialEqns (initialization): time 0.001834/7.764, allocations: 1.604 MB / 2.668 GB, free: 75.93 MB / 0.7372 GB Notification: Performance of collectInitialBindings (initialization): time 0.001356/7.765, allocations: 0.5389 MB / 2.669 GB, free: 75.59 MB / 0.7372 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001731/7.765, allocations: 0 / 2.669 GB, free: 75.59 MB / 0.7372 GB Notification: Performance of setup shared object (initialization): time 0.0001548/7.766, allocations: 411.3 kB / 2.669 GB, free: 75.28 MB / 0.7372 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002032/7.768, allocations: 1.548 MB / 2.671 GB, free: 75.27 MB / 0.7372 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002659/7.77, allocations: 2.804 MB / 2.673 GB, free: 73.72 MB / 0.7372 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003811/7.774, allocations: 2.138 MB / 2.675 GB, free: 73.7 MB / 0.7372 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.688e-05/7.774, allocations: 10.31 kB / 2.675 GB, free: 73.7 MB / 0.7372 GB Notification: Performance of matching and sorting (n=336) (initialization): time 0.06421/7.838, allocations: 11.77 MB / 2.687 GB, free: 73.34 MB / 0.7372 GB Notification: Performance of prepare postOptimizeDAE: time 0.004954/7.843, allocations: 14.94 MB / 2.701 GB, free: 57.61 MB / 0.7372 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001374/7.844, allocations: 32.97 kB / 2.701 GB, free: 57.61 MB / 0.7372 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.06936/7.913, allocations: 10.75 MB / 2.712 GB, free: 57.43 MB / 0.7372 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003628/7.917, allocations: 0.6445 MB / 2.713 GB, free: 57.43 MB / 0.7372 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0123/7.929, allocations: 5.858 MB / 2.718 GB, free: 55.81 MB / 0.7372 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008754/7.938, allocations: 440.2 kB / 2.719 GB, free: 55.64 MB / 0.7372 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001209/7.939, allocations: 205 kB / 2.719 GB, free: 55.63 MB / 0.7372 GB Notification: Performance of prepare postOptimizeDAE: time 2.235e-05/7.939, allocations: 6.125 kB / 2.719 GB, free: 55.63 MB / 0.7372 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.06872/8.008, allocations: 11.05 MB / 2.73 GB, free: 52.79 MB / 0.7372 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001548/8.008, allocations: 36 kB / 2.73 GB, free: 52.76 MB / 0.7372 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.06817/8.076, allocations: 10.7 MB / 2.74 GB, free: 42.55 MB / 0.7372 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00322/8.079, allocations: 0.6314 MB / 2.741 GB, free: 41.95 MB / 0.7372 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01422/8.094, allocations: 8.332 MB / 2.749 GB, free: 33.38 MB / 0.7372 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007603/8.101, allocations: 373.2 kB / 2.749 GB, free: 33.01 MB / 0.7372 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007417/8.102, allocations: 187.8 kB / 2.75 GB, free: 32.82 MB / 0.7372 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 (282): * Single equations (assignments): 277 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 0 * 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.001273/8.103, allocations: 215.2 kB / 2.75 GB, free: 32.61 MB / 0.7372 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001677/8.105, allocations: 426.7 kB / 2.75 GB, free: 32.19 MB / 0.7372 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01177/8.117, allocations: 4.818 MB / 2.755 GB, free: 27.45 MB / 0.7372 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.491e-05/8.117, allocations: 19.98 kB / 2.755 GB, free: 27.43 MB / 0.7372 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.267e-06/8.117, allocations: 0 / 2.755 GB, free: 27.43 MB / 0.7372 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.009005/8.126, allocations: 5.127 MB / 2.76 GB, free: 22.07 MB / 0.7372 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03514/8.161, allocations: 9.983 MB / 2.77 GB, free: 12.08 MB / 0.7372 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.504e-05/8.161, allocations: 0 / 2.77 GB, free: 12.08 MB / 0.7372 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002718/8.164, allocations: 375.6 kB / 2.77 GB, free: 11.71 MB / 0.7372 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005569/8.17, allocations: 1.871 MB / 2.772 GB, free: 9.859 MB / 0.7372 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004632/8.17, allocations: 27.97 kB / 2.772 GB, free: 9.832 MB / 0.7372 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006676/8.177, allocations: 3.541 MB / 2.775 GB, free: 6.219 MB / 0.7372 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.626e-06/8.177, allocations: 4 kB / 2.775 GB, free: 6.215 MB / 0.7372 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.512/8.689, allocations: 7.931 MB / 2.783 GB, free: 143.4 MB / 0.7372 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005172/8.694, allocations: 1.014 MB / 2.784 GB, free: 143.3 MB / 0.7372 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00194/8.696, allocations: 7 kB / 2.784 GB, free: 143.3 MB / 0.7372 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004865/8.701, allocations: 229 kB / 2.784 GB, free: 143.3 MB / 0.7372 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004049/8.701, allocations: 108 kB / 2.784 GB, free: 143.3 MB / 0.7372 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003713/8.702, allocations: 87.83 kB / 2.784 GB, free: 143.3 MB / 0.7372 GB Notification: Performance of sort global known variables: time 0.006264/8.708, allocations: 3.05 MB / 2.787 GB, free: 143.2 MB / 0.7372 GB Notification: Performance of remove unused functions: time 0.01525/8.723, allocations: 2.67 MB / 2.79 GB, free: 143.2 MB / 0.7372 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.s[1],val.filter.s[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 (139): * Single equations (assignments): 130 * 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.003359/8.727, allocations: 1.15 MB / 2.791 GB, free: 143 MB / 0.7372 GB Notification: Performance of simCode: created initialization part: time 0.01851/8.745, allocations: 7.01 MB / 2.798 GB, free: 142.7 MB / 0.7372 GB Notification: Performance of simCode: created event and clocks part: time 1.313e-05/8.745, allocations: 0 / 2.798 GB, free: 142.7 MB / 0.7372 GB Notification: Performance of simCode: created simulation system equations: time 0.005199/8.75, allocations: 2.122 MB / 2.8 GB, free: 142.6 MB / 0.7372 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01437/8.765, allocations: 2.285 MB / 2.802 GB, free: 142.6 MB / 0.7372 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01856/8.783, allocations: 7.763 MB / 2.81 GB, free: 141.2 MB / 0.7372 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004677/8.788, allocations: 3.698 MB / 2.813 GB, free: 140.4 MB / 0.7372 GB Notification: Performance of SimCode: time 2.184e-06/8.788, allocations: 3.125 kB / 2.813 GB, free: 140.4 MB / 0.7372 GB Notification: Performance of Templates: time 0.2056/8.994, allocations: 116.2 MB / 2.927 GB, free: 135.3 MB / 0.7372 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.Examples.ResistanceVolumeFlowReversal.makefile (rm -f BuildingSystems_BuildingSystems.Fluid.Examples.ResistanceVolumeFlowReversal.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Examples.ResistanceVolumeFlowReversal.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Examples.ResistanceVolumeFlowReversal.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Examples.ResistanceVolumeFlowReversal.sim & ./BuildingSystems_BuildingSystems.Fluid.Examples.ResistanceVolumeFlowReversal -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Examples.ResistanceVolumeFlowReversal.pipe 2>&1)