Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas") translateModel(Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas") [: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.2+maint.om/package.mo): time 0.001085/0.001084, allocations: 190.6 kB / 8.137 MB, free: 2.215 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.097/1.097, allocations: 194.2 MB / 202.8 MB, free: 8.734 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.00185/0.00185, allocations: 123.6 kB / 247.7 MB, free: 6.375 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 6.683e-06/6.763e-06, allocations: 0 / 297.6 MB, free: 7.977 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07162/0.07164, allocations: 44.49 MB / 342.1 MB, free: 11.38 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.075/1.147, allocations: 0.7069 GB / 1.041 GB, free: 63.55 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002304/1.147, allocations: 83.95 kB / 1.041 GB, free: 63.46 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.576/2.723, allocations: 0.5553 GB / 1.596 GB, free: 64.88 MB / 410.7 MB Notification: Performance of Transformations before backend: time 2.794e-05/2.723, allocations: 11.44 kB / 1.596 GB, free: 64.88 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 177 * Number of variables: 177 Notification: Performance of Generate backend data structure: time 0.001974/2.725, allocations: 0.9556 MB / 1.597 GB, free: 64.46 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.085e-05/2.725, allocations: 11.56 kB / 1.597 GB, free: 64.46 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006992/2.726, allocations: 148.3 kB / 1.597 GB, free: 64.43 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007542/2.727, allocations: 492.6 kB / 1.598 GB, free: 64.22 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.521e-05/2.727, allocations: 21.88 kB / 1.598 GB, free: 64.22 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000106/2.727, allocations: 44.41 kB / 1.598 GB, free: 64.21 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001276/2.728, allocations: 0.8225 MB / 1.599 GB, free: 64.21 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001275/2.729, allocations: 0.826 MB / 1.6 GB, free: 64.16 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.89e-05/2.729, allocations: 3.969 kB / 1.6 GB, free: 64.16 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.214e-05/2.729, allocations: 0 / 1.6 GB, free: 64.16 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.397e-05/2.73, allocations: 18.12 kB / 1.6 GB, free: 64.16 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004541/2.734, allocations: 3.257 MB / 1.603 GB, free: 62.68 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000517/2.735, allocations: 429.6 kB / 1.603 GB, free: 62.66 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003836/2.735, allocations: 342.8 kB / 1.604 GB, free: 62.65 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.375e-05/2.735, allocations: 20 kB / 1.604 GB, free: 62.65 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.105e-05/2.735, allocations: 50.56 kB / 1.604 GB, free: 62.61 MB / 410.7 MB Notification: Performance of pre-optimization done (n=59): time 2.034e-06/2.735, allocations: 0 / 1.604 GB, free: 62.61 MB / 410.7 MB Notification: Performance of matching and sorting (n=71): time 0.008864/2.744, allocations: 3.143 MB / 1.607 GB, free: 61.95 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.92e-05/2.744, allocations: 59.25 kB / 1.607 GB, free: 61.89 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000322/2.744, allocations: 315.7 kB / 1.607 GB, free: 61.79 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001271/2.744, allocations: 28.95 kB / 1.607 GB, free: 61.76 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001009/2.745, allocations: 265 kB / 1.607 GB, free: 61.61 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001686/2.745, allocations: 247.4 kB / 1.608 GB, free: 61.48 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.664e-05/2.745, allocations: 0 / 1.608 GB, free: 61.48 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 6.972e-05/2.745, allocations: 356.2 kB / 1.608 GB, free: 61.16 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005821/2.745, allocations: 440 kB / 1.608 GB, free: 61.16 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005557/2.746, allocations: 0.4937 MB / 1.609 GB, free: 61.11 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006177/2.747, allocations: 0.4965 MB / 1.609 GB, free: 61.11 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.404e-06/2.747, allocations: 2.672 kB / 1.609 GB, free: 61.11 MB / 410.7 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.001842/2.749, allocations: 1.323 MB / 1.611 GB, free: 60.96 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.177e-05/2.749, allocations: 7.656 kB / 1.611 GB, free: 60.96 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.934e-06/2.749, allocations: 0 / 1.611 GB, free: 60.96 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006105/2.749, allocations: 327.6 kB / 1.611 GB, free: 60.9 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001032/2.75, allocations: 180.9 kB / 1.611 GB, free: 60.9 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005346/2.756, allocations: 9.809 MB / 1.621 GB, free: 52.05 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006757/2.756, allocations: 61.58 kB / 1.621 GB, free: 52.05 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001347/2.756, allocations: 39.59 kB / 1.621 GB, free: 52.05 MB / 410.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: ambient.port.Xi[1]:VARIABLE(flow=false min = 0.0 max = 1.0 unit = "kg/kg" nominal = 0.1 ) "Independent mixture mass fractions m_i/m in the connection point" type: Real [6] Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: ambient.port.Xi[2]:VARIABLE(flow=false min = 0.0 max = 1.0 unit = "kg/kg" nominal = 0.1 ) "Independent mixture mass fractions m_i/m in the connection point" type: Real [6] Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: ambient.port.Xi[3]:VARIABLE(flow=false min = 0.0 max = 1.0 unit = "kg/kg" nominal = 0.1 ) "Independent mixture mass fractions m_i/m in the connection point" type: Real [6] Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: ambient.port.Xi[4]:VARIABLE(flow=false min = 0.0 max = 1.0 unit = "kg/kg" nominal = 0.1 ) "Independent mixture mass fractions m_i/m in the connection point" type: Real [6] Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: ambient.port.Xi[5]:VARIABLE(flow=false min = 0.0 max = 1.0 unit = "kg/kg" nominal = 0.1 ) "Independent mixture mass fractions m_i/m in the connection point" type: Real [6] Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: ambient.port.Xi[6]:VARIABLE(flow=false min = 0.0 max = 1.0 unit = "kg/kg" nominal = 0.1 ) "Independent mixture mass fractions m_i/m in the connection point" type: Real [6] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (80): * Single equations (assignments): 72 * 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: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 8 {1 1,1 1,1 1,1 1,1 1,1 1,1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0002971/2.757, allocations: 164 kB / 1.621 GB, free: 51.93 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001498/2.757, allocations: 48 kB / 1.621 GB, free: 51.91 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002138/2.759, allocations: 1.274 MB / 1.622 GB, free: 51.77 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.859e-06/2.759, allocations: 7.906 kB / 1.622 GB, free: 51.77 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.126e-06/2.759, allocations: 7.875 kB / 1.622 GB, free: 51.77 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001568/2.761, allocations: 1.563 MB / 1.624 GB, free: 50.94 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003278/2.764, allocations: 2.131 MB / 1.626 GB, free: 50.6 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.169e-06/2.764, allocations: 1 kB / 1.626 GB, free: 50.6 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001338/2.765, allocations: 229.7 kB / 1.626 GB, free: 50.6 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002673/2.766, allocations: 67.59 kB / 1.626 GB, free: 50.59 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.353e-05/2.766, allocations: 32.86 kB / 1.626 GB, free: 50.59 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001116/2.767, allocations: 1.436 MB / 1.627 GB, free: 49.39 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.126e-06/2.767, allocations: 1.094 kB / 1.627 GB, free: 49.39 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002338/2.769, allocations: 1.582 MB / 1.629 GB, free: 49.14 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002219/2.769, allocations: 128.3 kB / 1.629 GB, free: 49.02 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001418/2.77, allocations: 16.23 kB / 1.629 GB, free: 49.02 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008349/2.77, allocations: 59.03 kB / 1.629 GB, free: 49.02 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000102/2.771, allocations: 53.02 kB / 1.629 GB, free: 49.02 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00014/2.771, allocations: 62.23 kB / 1.629 GB, free: 49.02 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.0002516/2.771, allocations: 247.4 kB / 1.63 GB, free: 48.93 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001576/2.773, allocations: 382.3 kB / 1.63 GB, free: 48.92 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 8 (volume.medium.p,volume.medium.Xi[1],volume.medium.Xi[2],volume.medium.Xi[3],volume.medium.Xi[4],volume.medium.Xi[5],volume.medium.Xi[6],volume.medium.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (77): * Single equations (assignments): 76 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003093/2.776, allocations: 1.381 MB / 1.631 GB, free: 48.73 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002013/2.778, allocations: 1.742 MB / 1.633 GB, free: 48.02 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.629e-06/2.778, allocations: 3.094 kB / 1.633 GB, free: 48.02 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007905/2.778, allocations: 0.6651 MB / 1.634 GB, free: 47.92 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001562/2.78, allocations: 293.5 kB / 1.634 GB, free: 47.91 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003787/2.784, allocations: 1.83 MB / 1.636 GB, free: 47.59 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000853/2.785, allocations: 1.09 MB / 1.637 GB, free: 46.87 MB / 410.7 MB Notification: Performance of SimCode: time 5.31e-07/2.785, allocations: 2.438 kB / 1.637 GB, free: 46.87 MB / 410.7 MB Notification: Performance of Templates: time 0.03772/2.822, allocations: 26.11 MB / 1.662 GB, free: 45.64 MB / 410.7 MB make -j1 -f Modelica_3.2.2_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas.makefile (rm -f Modelica_3.2.2_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas.pipe ; mkfifo Modelica_3.2.2_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas.pipe >> ../files/Modelica_3.2.2_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas.sim & ./Modelica_3.2.2_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas.pipe 2>&1)