Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_dev_IDEAS.Fluid.Examples.ResistanceVolumeFlowReversal.conf.json 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/IDEAS 3.0.0-master/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) 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 IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/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) Running command: translateModel(IDEAS.Fluid.Examples.ResistanceVolumeFlowReversal,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Fluid.Examples.ResistanceVolumeFlowReversal") translateModel(IDEAS.Fluid.Examples.ResistanceVolumeFlowReversal,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.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/Complex 4.0.0+maint.om/package.mo): time 0.002105/0.002105, allocations: 180.8 kB / 7.459 MB, free: 2.512 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.601/0.601, allocations: 133.5 MB / 141.4 MB, free: 15.64 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.138/1.138, allocations: 221.3 MB / 395 MB, free: 10.22 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009366/0.0009366, allocations: 106.7 kB / 477.8 MB, free: 10.87 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 6.322e-06/6.342e-06, allocations: 0 / 0.5528 GB, free: 89.06 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1242/0.1242, allocations: 82.3 MB / 0.6332 GB, free: 14.13 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7679/0.8922, allocations: 379.5 MB / 1.004 GB, free: 253.5 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001743/0.8924, allocations: 81.89 kB / 1.004 GB, free: 253.4 MB / 0.6823 GB Notification: Performance of FrontEnd: time 3.756/4.648, allocations: 1.478 GB / 2.481 GB, free: 71.91 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 0.0007261/4.649, allocations: 160.4 kB / 2.482 GB, free: 71.87 MB / 0.7136 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.01076/4.66, allocations: 4.611 MB / 2.486 GB, free: 69.8 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 3.511e-05/4.66, allocations: 10.28 kB / 2.486 GB, free: 69.8 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003868/4.663, allocations: 0.83 MB / 2.487 GB, free: 69.49 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01389/4.677, allocations: 6.97 MB / 2.494 GB, free: 68.54 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001227/4.678, allocations: 107.1 kB / 2.494 GB, free: 68.54 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006795/4.678, allocations: 214.4 kB / 2.494 GB, free: 68.54 MB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.007018/4.685, allocations: 4.854 MB / 2.499 GB, free: 68.53 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007479/4.693, allocations: 4.86 MB / 2.504 GB, free: 67.84 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.742e-05/4.693, allocations: 12.09 kB / 2.504 GB, free: 67.83 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004374/4.693, allocations: 10.33 kB / 2.504 GB, free: 67.83 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001116/4.693, allocations: 121.2 kB / 2.504 GB, free: 67.82 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02857/4.722, allocations: 22.36 MB / 2.526 GB, free: 53.87 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002784/4.725, allocations: 2.351 MB / 2.528 GB, free: 52.69 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002214/4.727, allocations: 1.783 MB / 2.53 GB, free: 51.79 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01117/4.738, allocations: 6.928 MB / 2.536 GB, free: 46.64 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002394/4.741, allocations: 1.749 MB / 2.538 GB, free: 45.64 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=158): time 3.326e-06/4.741, allocations: 0 / 2.538 GB, free: 45.64 MB / 0.7136 GB Notification: Performance of matching and sorting (n=158): time 0.01711/4.758, allocations: 6.192 MB / 2.544 GB, free: 39.63 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.66e-05/4.758, allocations: 72.72 kB / 2.544 GB, free: 39.55 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007146/4.765, allocations: 4.098 MB / 2.548 GB, free: 35.45 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 0.0006302/4.766, allocations: 33.55 kB / 2.548 GB, free: 35.42 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 0.001762/4.767, allocations: 1.608 MB / 2.55 GB, free: 33.78 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 0.00127/4.769, allocations: 0.543 MB / 2.55 GB, free: 33.23 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003664/4.769, allocations: 0 / 2.55 GB, free: 33.23 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0001613/4.769, allocations: 419.2 kB / 2.551 GB, free: 32.81 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001991/4.771, allocations: 1.543 MB / 2.552 GB, free: 31.27 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002433/4.774, allocations: 2.797 MB / 2.555 GB, free: 27.88 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003491/4.777, allocations: 2.137 MB / 2.557 GB, free: 25.73 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.776e-05/4.777, allocations: 12 kB / 2.557 GB, free: 25.72 MB / 0.7136 GB Notification: Performance of matching and sorting (n=336) (initialization): time 0.06051/4.838, allocations: 11.76 MB / 2.569 GB, free: 13.97 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 0.2515/5.089, allocations: 15.01 MB / 2.583 GB, free: 135.6 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.543e-05/5.089, allocations: 30.97 kB / 2.583 GB, free: 135.6 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.06452/5.154, allocations: 10.74 MB / 2.594 GB, free: 135.5 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002724/5.157, allocations: 0.6388 MB / 2.594 GB, free: 135.5 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009627/5.166, allocations: 5.858 MB / 2.6 GB, free: 134 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004676/5.171, allocations: 446.2 kB / 2.6 GB, free: 134 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002935/5.171, allocations: 193.4 kB / 2.601 GB, free: 134 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 8.897e-06/5.171, allocations: 11.19 kB / 2.601 GB, free: 134 MB / 0.7136 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.05687/5.228, allocations: 11.06 MB / 2.611 GB, free: 133.9 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.615e-05/5.228, allocations: 34.31 kB / 2.611 GB, free: 133.9 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.06379/5.292, allocations: 10.69 MB / 2.622 GB, free: 133.9 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002602/5.295, allocations: 0.6332 MB / 2.623 GB, free: 133.9 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01177/5.306, allocations: 8.333 MB / 2.631 GB, free: 130.9 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004267/5.311, allocations: 371 kB / 2.631 GB, free: 130.9 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002833/5.311, allocations: 191 kB / 2.631 GB, free: 130.9 MB / 0.7136 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.0007167/5.312, allocations: 211.6 kB / 2.631 GB, free: 130.8 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007151/5.312, allocations: 434.6 kB / 2.632 GB, free: 130.8 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01011/5.323, allocations: 4.814 MB / 2.637 GB, free: 130.6 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.443e-05/5.323, allocations: 15.56 kB / 2.637 GB, free: 130.6 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.088e-06/5.323, allocations: 3.906 kB / 2.637 GB, free: 130.6 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.007371/5.33, allocations: 5.114 MB / 2.642 GB, free: 129.2 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02195/5.352, allocations: 9.994 MB / 2.651 GB, free: 128.5 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.751e-06/5.352, allocations: 0 / 2.651 GB, free: 128.5 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001969/5.354, allocations: 383.8 kB / 2.652 GB, free: 128.5 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00485/5.359, allocations: 1.869 MB / 2.654 GB, free: 128.4 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001606/5.359, allocations: 30.55 kB / 2.654 GB, free: 128.4 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005721/5.365, allocations: 3.542 MB / 2.657 GB, free: 126.8 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.475e-06/5.365, allocations: 0.8438 kB / 2.657 GB, free: 126.8 MB / 0.7136 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0193/5.384, allocations: 7.944 MB / 2.665 GB, free: 126.2 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002156/5.386, allocations: 1.023 MB / 2.666 GB, free: 125.9 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006756/5.387, allocations: 3.938 kB / 2.666 GB, free: 125.9 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002775/5.39, allocations: 229.6 kB / 2.666 GB, free: 125.9 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000265/5.39, allocations: 111.8 kB / 2.666 GB, free: 125.9 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002146/5.39, allocations: 85.14 kB / 2.666 GB, free: 125.9 MB / 0.7136 GB Notification: Performance of sort global known variables: time 0.003193/5.393, allocations: 3.091 MB / 2.669 GB, free: 125.7 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.006316/5.4, allocations: 2.66 MB / 2.672 GB, free: 125.6 MB / 0.7136 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.001525/5.401, allocations: 1.148 MB / 2.673 GB, free: 125.4 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.01393/5.415, allocations: 7.017 MB / 2.68 GB, free: 125 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 4.038e-06/5.415, allocations: 3.844 kB / 2.68 GB, free: 125 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 0.004142/5.419, allocations: 2.108 MB / 2.682 GB, free: 125 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008344/5.428, allocations: 2.291 MB / 2.684 GB, free: 125 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01125/5.439, allocations: 7.839 MB / 2.692 GB, free: 123.5 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002901/5.442, allocations: 3.734 MB / 2.695 GB, free: 122.7 MB / 0.7136 GB Notification: Performance of SimCode: time 6.41e-07/5.442, allocations: 0 / 2.695 GB, free: 122.7 MB / 0.7136 GB Notification: Performance of Templates: time 0.138/5.58, allocations: 116.3 MB / 2.809 GB, free: 82.73 MB / 0.7136 GB make -j1 -f IDEAS_dev_IDEAS.Fluid.Examples.ResistanceVolumeFlowReversal.makefile (rm -f IDEAS_dev_IDEAS.Fluid.Examples.ResistanceVolumeFlowReversal.pipe ; mkfifo IDEAS_dev_IDEAS.Fluid.Examples.ResistanceVolumeFlowReversal.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Fluid.Examples.ResistanceVolumeFlowReversal.pipe >> ../files/IDEAS_dev_IDEAS.Fluid.Examples.ResistanceVolumeFlowReversal.sim & ./IDEAS_dev_IDEAS.Fluid.Examples.ResistanceVolumeFlowReversal -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_dev_IDEAS.Fluid.Examples.ResistanceVolumeFlowReversal.pipe 2>&1)