Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Media.Examples.TestOnly.MixIdealGasAir.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo", uses=false) Using package ModelicaServices with version 1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo) Using package Modelica with version 3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Media.Examples.TestOnly.MixIdealGasAir,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Media.Examples.TestOnly.MixIdealGasAir") translateModel(Modelica.Media.Examples.TestOnly.MixIdealGasAir,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Media.Examples.TestOnly.MixIdealGasAir") [: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/Modelica 3.1.0+maint.om/package.mo): time 0.8152/0.8152, allocations: 110.8 MB / 118 MB, free: 14.54 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo): time 0.002166/0.002166, allocations: 164 kB / 143.7 MB, free: 4.871 MB / 122.7 MB Notification: Performance of FrontEnd - loaded program: time 7.895e-06/7.935e-06, allocations: 0 / 173.5 MB, free: 23.04 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05345/0.05347, allocations: 25.16 MB / 198.6 MB, free: 13.95 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.244/1.298, allocations: 0.6605 GB / 0.8545 GB, free: 21.61 MB / 234.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000296/1.298, allocations: 65.52 kB / 0.8545 GB, free: 21.57 MB / 234.7 MB Notification: Performance of FrontEnd: time 0.2097/1.508, allocations: 42.1 MB / 0.8957 GB, free: 66.33 MB / 234.7 MB Notification: Performance of Transformations before backend: time 1.009e-05/1.508, allocations: 6.219 kB / 0.8957 GB, free: 66.33 MB / 234.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 45 * Number of variables: 45 Notification: Performance of Generate backend data structure: time 0.0009129/1.509, allocations: 0.5019 MB / 0.8962 GB, free: 65.92 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.205e-05/1.509, allocations: 9.75 kB / 0.8962 GB, free: 65.92 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.797e-05/1.509, allocations: 22.09 kB / 0.8962 GB, free: 65.91 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002775/1.509, allocations: 219.1 kB / 0.8964 GB, free: 65.71 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.383e-05/1.509, allocations: 8.188 kB / 0.8964 GB, free: 65.71 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.249e-05/1.509, allocations: 16.16 kB / 0.8964 GB, free: 65.71 MB / 234.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000477/1.51, allocations: 438.2 kB / 0.8968 GB, free: 65.71 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004218/1.51, allocations: 310.5 kB / 0.8971 GB, free: 65.66 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.306e-05/1.51, allocations: 4.656 kB / 0.8971 GB, free: 65.66 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.111e-05/1.51, allocations: 0 / 0.8971 GB, free: 65.66 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.484e-06/1.51, allocations: 3.906 kB / 0.8971 GB, free: 65.66 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001602/1.512, allocations: 1.215 MB / 0.8983 GB, free: 64.91 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001819/1.512, allocations: 137.8 kB / 0.8985 GB, free: 64.88 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001252/1.512, allocations: 104.8 kB / 0.8986 GB, free: 64.86 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002387/1.515, allocations: 2.136 MB / 0.9006 GB, free: 62.92 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.151e-05/1.515, allocations: 44.69 kB / 0.9007 GB, free: 62.88 MB / 234.7 MB Notification: Performance of pre-optimization done (n=29): time 3.226e-06/1.515, allocations: 3.984 kB / 0.9007 GB, free: 62.87 MB / 234.7 MB Notification: Performance of matching and sorting (n=29): time 0.002055/1.517, allocations: 0.6274 MB / 0.9013 GB, free: 62.81 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.681e-05/1.517, allocations: 80.72 kB / 0.9014 GB, free: 62.72 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.29e-05/1.517, allocations: 104.1 kB / 0.9015 GB, free: 62.63 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 2.795e-05/1.517, allocations: 25.7 kB / 0.9015 GB, free: 62.6 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.757e-05/1.517, allocations: 111.1 kB / 0.9016 GB, free: 62.5 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.639e-05/1.517, allocations: 103.7 kB / 0.9017 GB, free: 62.43 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.154e-05/1.517, allocations: 4 kB / 0.9017 GB, free: 62.43 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 7.769e-05/1.517, allocations: 324.3 kB / 0.902 GB, free: 62.11 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001085/1.517, allocations: 72.69 kB / 0.9021 GB, free: 62.09 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001285/1.518, allocations: 157.3 kB / 0.9022 GB, free: 61.96 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001639/1.519, allocations: 495.7 kB / 0.9027 GB, free: 61.87 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.33e-06/1.519, allocations: 0 / 0.9027 GB, free: 61.87 MB / 234.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.001839/1.521, allocations: 0.6833 MB / 0.9034 GB, free: 61.7 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.758e-05/1.521, allocations: 7.844 kB / 0.9034 GB, free: 61.7 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.824e-06/1.521, allocations: 0 / 0.9034 GB, free: 61.7 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.245e-05/1.521, allocations: 7.375 kB / 0.9034 GB, free: 61.7 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002687/1.521, allocations: 76.61 kB / 0.9035 GB, free: 61.69 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.817e-05/1.521, allocations: 6.219 kB / 0.9035 GB, free: 61.69 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001801/1.522, allocations: 28.94 kB / 0.9035 GB, free: 61.67 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.273e-05/1.522, allocations: 21.22 kB / 0.9035 GB, free: 61.67 MB / 234.7 MB Warning: Assuming fixed start value for the following 6 variables: medium2.X[2]:VARIABLE(min = max(0.0, max(0.0, 0.0)) max = min(1.0, min(1.0, 1.0)) start = 0.8 unit = "kg/kg" nominal = 0.1 ) "Mass fractions (= (component mass)/total mass m_i/m)" type: Real [2] medium2.X[1]:VARIABLE(min = max(0.0, max(0.0, 0.0)) max = min(1.0, min(1.0, 1.0)) start = 0.2 unit = "kg/kg" nominal = 0.1 ) "Mass fractions (= (component mass)/total mass m_i/m)" type: Real [2] medium2.T:VARIABLE(min = max(1.0, 1.0) max = min(10000.0, 10000.0) start = 300.0 unit = "K" nominal = 500.0 ) "Temperature of medium" type: Real medium2.p:VARIABLE(min = max(0.0, 2000.0) max = min(100000000.0, 1000000000.0) start = 200000.0 unit = "Pa" nominal = 100000.0 ) "Absolute pressure of medium" type: Real medium.T:VARIABLE(min = max(1.0, 1.0) max = min(10000.0, 10000.0) start = 200.0 unit = "K" nominal = 500.0 ) "Temperature of medium" type: Real medium.p:VARIABLE(min = max(0.0, 2000.0) max = min(100000000.0, 1000000000.0) start = 100000.0 unit = "Pa" nominal = 100000.0 ) "Absolute pressure of medium" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (39): * Single equations (assignments): 39 * 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 0.0002638/1.522, allocations: 163.3 kB / 0.9037 GB, free: 61.53 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.166e-05/1.522, allocations: 14.16 kB / 0.9037 GB, free: 61.53 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002331/1.524, allocations: 0.7465 MB / 0.9044 GB, free: 61.3 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.741e-05/1.524, allocations: 6.078 kB / 0.9044 GB, free: 61.3 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.082e-05/1.524, allocations: 0.5 kB / 0.9044 GB, free: 61.3 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.456e-06/1.524, allocations: 1 kB / 0.9044 GB, free: 61.3 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007536/1.525, allocations: 273.3 kB / 0.9047 GB, free: 61.09 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.203e-06/1.525, allocations: 6.234 kB / 0.9047 GB, free: 61.09 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002699/1.526, allocations: 60.81 kB / 0.9047 GB, free: 61.08 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.765e-06/1.526, allocations: 2.75 kB / 0.9048 GB, free: 61.08 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.89e-05/1.526, allocations: 8.172 kB / 0.9048 GB, free: 61.08 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.039e-06/1.526, allocations: 1.688 kB / 0.9048 GB, free: 61.08 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.067e-06/1.526, allocations: 0 / 0.9048 GB, free: 61.08 MB / 234.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002289/1.528, allocations: 0.8791 MB / 0.9056 GB, free: 60.7 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00019/1.528, allocations: 132.6 kB / 0.9057 GB, free: 60.58 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.573e-05/1.528, allocations: 5.203 kB / 0.9058 GB, free: 60.58 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002689/1.528, allocations: 8.781 kB / 0.9058 GB, free: 60.58 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.416e-05/1.529, allocations: 22.53 kB / 0.9058 GB, free: 60.57 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.671e-05/1.529, allocations: 21.12 kB / 0.9058 GB, free: 60.57 MB / 234.7 MB Notification: Performance of sort global known variables: time 6.135e-05/1.529, allocations: 96.41 kB / 0.9059 GB, free: 60.48 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.001479/1.53, allocations: 263.7 kB / 0.9061 GB, free: 60.4 MB / 234.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 6 (medium2.p,medium2.T,medium2.X[1],medium2.X[2],medium.p,medium.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (29): * Single equations (assignments): 29 * 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.002591/1.533, allocations: 0.9301 MB / 0.9071 GB, free: 60.11 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.0004875/1.533, allocations: 239.1 kB / 0.9073 GB, free: 60.04 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 3.286e-06/1.533, allocations: 0 / 0.9073 GB, free: 60.04 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001715/1.533, allocations: 117.4 kB / 0.9074 GB, free: 60 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006151/1.534, allocations: 75.02 kB / 0.9075 GB, free: 59.98 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001076/1.535, allocations: 0.5621 MB / 0.908 GB, free: 59.59 MB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003871/1.536, allocations: 0.7902 MB / 0.9088 GB, free: 58.87 MB / 234.7 MB Notification: Performance of SimCode: time 2.8e-07/1.536, allocations: 0 / 0.9088 GB, free: 58.87 MB / 234.7 MB Notification: Performance of Templates: time 0.02237/1.558, allocations: 11.6 MB / 0.9201 GB, free: 50.73 MB / 234.7 MB make -j1 -f Modelica_3.1_Modelica.Media.Examples.TestOnly.MixIdealGasAir.makefile (rm -f Modelica_3.1_Modelica.Media.Examples.TestOnly.MixIdealGasAir.pipe ; mkfifo Modelica_3.1_Modelica.Media.Examples.TestOnly.MixIdealGasAir.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Media.Examples.TestOnly.MixIdealGasAir.pipe >> ../files/Modelica_3.1_Modelica.Media.Examples.TestOnly.MixIdealGasAir.sim & ./Modelica_3.1_Modelica.Media.Examples.TestOnly.MixIdealGasAir -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Media.Examples.TestOnly.MixIdealGasAir.pipe 2>&1)