Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoPower_ThermoPower.Test.WaterComponents.TestValveChoked.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo", uses=false) Using package ThermoPower with version 3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo) 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) Running command: translateModel(ThermoPower.Test.WaterComponents.TestValveChoked,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Test.WaterComponents.TestValveChoked") translateModel(ThermoPower.Test.WaterComponents.TestValveChoked,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Test.WaterComponents.TestValveChoked") [: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 3.2.3+maint.om/package.mo): time 0.001271/0.001271, allocations: 188.8 kB / 8.133 MB, free: 2.215 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.415/1.415, allocations: 205.2 MB / 213.7 MB, free: 13.86 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001118/0.001118, allocations: 98.22 kB / 261.8 MB, free: 13.61 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.4422/0.4422, allocations: 48.75 MB / 358.4 MB, free: 53.09 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 8.766e-06/8.796e-06, allocations: 3.938 kB / 424.7 MB, free: 8.199 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1492/0.1492, allocations: 60.25 MB / 485 MB, free: 11.81 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.034/5.183, allocations: 2.886 GB / 3.36 GB, free: 143.9 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002259/5.184, allocations: 77.45 kB / 3.36 GB, free: 143.9 MB / 0.5105 GB Notification: Performance of FrontEnd: time 0.7077/5.891, allocations: 278 MB / 3.631 GB, free: 69.78 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 3.953e-05/5.891, allocations: 14.34 kB / 3.631 GB, free: 69.78 MB / 0.5105 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 75 * Number of variables: 75 Notification: Performance of Generate backend data structure: time 0.004301/5.896, allocations: 1.113 MB / 3.632 GB, free: 69.12 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.228e-05/5.896, allocations: 8.062 kB / 3.632 GB, free: 69.12 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002686/5.896, allocations: 70.64 kB / 3.632 GB, free: 69.09 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005654/5.897, allocations: 400 kB / 3.633 GB, free: 68.79 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.29e-05/5.897, allocations: 10.25 kB / 3.633 GB, free: 68.79 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.878e-05/5.897, allocations: 20.97 kB / 3.633 GB, free: 68.79 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004535/5.897, allocations: 243.9 kB / 3.633 GB, free: 68.7 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004609/5.898, allocations: 390.1 kB / 3.633 GB, free: 68.4 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.231e-05/5.898, allocations: 0 / 3.633 GB, free: 68.4 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.969e-05/5.898, allocations: 6.625 kB / 3.633 GB, free: 68.4 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.612e-05/5.898, allocations: 8.375 kB / 3.633 GB, free: 68.4 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.114/6.012, allocations: 65.94 MB / 3.698 GB, free: 25.08 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006184/6.012, allocations: 217.3 kB / 3.698 GB, free: 24.95 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.533e-05/6.012, allocations: 60.86 kB / 3.698 GB, free: 24.89 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002651/6.013, allocations: 131.9 kB / 3.698 GB, free: 24.75 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.625e-05/6.013, allocations: 39.73 kB / 3.698 GB, free: 24.71 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=13): time 1.843e-06/6.013, allocations: 0 / 3.698 GB, free: 24.71 MB / 0.5105 GB Notification: Performance of matching and sorting (n=13): time 0.0006361/6.013, allocations: 212.1 kB / 3.698 GB, free: 24.52 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.306e-05/6.013, allocations: 83.84 kB / 3.698 GB, free: 24.43 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002538/6.014, allocations: 295.9 kB / 3.699 GB, free: 24.16 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 1.568e-05/6.014, allocations: 25.7 kB / 3.699 GB, free: 24.12 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 6.866e-05/6.014, allocations: 200.1 kB / 3.699 GB, free: 23.95 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 3.014e-05/6.014, allocations: 46.67 kB / 3.699 GB, free: 23.9 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.319e-05/6.014, allocations: 0 / 3.699 GB, free: 23.9 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 6.34e-05/6.014, allocations: 345.6 kB / 3.699 GB, free: 23.57 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.13e-05/6.014, allocations: 59.52 kB / 3.699 GB, free: 23.51 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001104/6.014, allocations: 115.3 kB / 3.699 GB, free: 23.38 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002776/6.014, allocations: 74.77 kB / 3.7 GB, free: 23.31 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.474e-06/6.014, allocations: 3.906 kB / 3.7 GB, free: 23.31 MB / 0.5105 GB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0007119/6.015, allocations: 325.2 kB / 3.7 GB, free: 23.04 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001381/6.015, allocations: 0.7847 MB / 3.701 GB, free: 22.19 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.252e-06/6.015, allocations: 4 kB / 3.701 GB, free: 22.19 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.73e-05/6.015, allocations: 0 / 3.701 GB, free: 22.19 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003487/6.016, allocations: 85.19 kB / 3.701 GB, free: 22.12 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.171e-06/6.016, allocations: 4.062 kB / 3.701 GB, free: 22.12 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004029/6.016, allocations: 54.58 kB / 3.701 GB, free: 22.07 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.481e-05/6.016, allocations: 15.52 kB / 3.701 GB, free: 22.06 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 4.359e-06/6.016, allocations: 0 / 3.701 GB, free: 22.06 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0003266/6.016, allocations: 152.4 kB / 3.701 GB, free: 21.92 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.675e-06/6.016, allocations: 4 kB / 3.701 GB, free: 21.92 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.647e-06/6.017, allocations: 4 kB / 3.701 GB, free: 21.91 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003147/6.017, allocations: 74.92 kB / 3.701 GB, free: 21.86 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.775e-06/6.017, allocations: 4 kB / 3.701 GB, free: 21.85 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003051/6.017, allocations: 43.48 kB / 3.701 GB, free: 21.82 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.756e-05/6.017, allocations: 12 kB / 3.701 GB, free: 21.8 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 2 (ValveVap.fluidState.phase,ValveLiqChocked.fluidState.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (25): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.833e-05/6.017, allocations: 112.9 kB / 3.701 GB, free: 21.69 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001879/6.017, allocations: 74.97 kB / 3.701 GB, free: 21.63 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000359/6.018, allocations: 184.2 kB / 3.701 GB, free: 21.47 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.804e-06/6.018, allocations: 11.94 kB / 3.701 GB, free: 21.46 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.931e-06/6.018, allocations: 0 / 3.701 GB, free: 21.46 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.21e-06/6.018, allocations: 0 / 3.701 GB, free: 21.46 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005438/6.018, allocations: 491 kB / 3.702 GB, free: 21.02 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/6.018, allocations: 0 / 3.702 GB, free: 21.02 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002701/6.019, allocations: 58.56 kB / 3.702 GB, free: 20.97 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.524e-06/6.019, allocations: 4.125 kB / 3.702 GB, free: 20.97 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.609e-05/6.019, allocations: 11.94 kB / 3.702 GB, free: 20.96 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.975e-06/6.019, allocations: 4 kB / 3.702 GB, free: 20.96 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.224e-06/6.019, allocations: 0 / 3.702 GB, free: 20.96 MB / 0.5105 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003985/6.019, allocations: 400.9 kB / 3.702 GB, free: 20.56 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 7.01e-05/6.019, allocations: 128.1 kB / 3.702 GB, free: 20.42 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.241e-05/6.019, allocations: 4 kB / 3.702 GB, free: 20.42 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003544/6.02, allocations: 31.5 kB / 3.702 GB, free: 20.39 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.16e-05/6.02, allocations: 14.47 kB / 3.702 GB, free: 20.39 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.298e-05/6.02, allocations: 8 kB / 3.702 GB, free: 20.38 MB / 0.5105 GB Notification: Performance of sort global known variables: time 0.0001633/6.02, allocations: 233 kB / 3.703 GB, free: 20.18 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.003953/6.024, allocations: 0.9631 MB / 3.704 GB, free: 19.23 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003972/6.028, allocations: 1.454 MB / 3.705 GB, free: 18.05 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.0003809/6.028, allocations: 234.5 kB / 3.705 GB, free: 17.83 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/6.028, allocations: 0 / 3.705 GB, free: 17.83 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 8.575e-05/6.028, allocations: 55.69 kB / 3.705 GB, free: 17.78 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007578/6.029, allocations: 123.4 kB / 3.705 GB, free: 17.69 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001062/6.03, allocations: 461 kB / 3.706 GB, free: 17.25 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002713/6.03, allocations: 0.853 MB / 3.707 GB, free: 16.43 MB / 0.5105 GB Notification: Performance of SimCode: time 4.01e-07/6.03, allocations: 0 / 3.707 GB, free: 16.43 MB / 0.5105 GB Notification: Performance of Templates: time 0.2317/6.262, allocations: 27.76 MB / 3.734 GB, free: 126.4 MB / 0.5105 GB make -j1 -f ThermoPower_ThermoPower.Test.WaterComponents.TestValveChoked.makefile (rm -f ThermoPower_ThermoPower.Test.WaterComponents.TestValveChoked.pipe ; mkfifo ThermoPower_ThermoPower.Test.WaterComponents.TestValveChoked.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.WaterComponents.TestValveChoked.pipe >> ../files/ThermoPower_ThermoPower.Test.WaterComponents.TestValveChoked.sim & ./ThermoPower_ThermoPower.Test.WaterComponents.TestValveChoked -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoPower_ThermoPower.Test.WaterComponents.TestValveChoked.pipe 2>&1)