Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Media.Examples.TestOnly.MixIdealGasAir.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Running command: translateModel(Modelica.Media.Examples.TestOnly.MixIdealGasAir,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Media.Examples.TestOnly.MixIdealGasAir") translateModel(Modelica.Media.Examples.TestOnly.MixIdealGasAir,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.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/Complex 3.2.1+maint.om/package.mo): time 0.004291/0.004291, allocations: 175 kB / 7.452 MB, free: 2.508 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.452/1.452, allocations: 170.6 MB / 178.4 MB, free: 15.43 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001855/0.001855, allocations: 115.8 kB / 217.7 MB, free: 8.207 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 7.134e-06/7.164e-06, allocations: 0 / 261.7 MB, free: 26.65 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09364/0.09367, allocations: 38.77 MB / 300.5 MB, free: 3.898 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.746/1.84, allocations: 0.7121 GB / 1.006 GB, free: 102 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003904/1.84, allocations: 69.78 kB / 1.006 GB, free: 101.9 MB / 346.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/Media/IdealGases/Common/Functions.mo:204:5-205:38:writable] Error: PartialMedium is partial, name lookup is not allowed in partial classes. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/Media/IdealGases/Common/Functions.mo:256:5-257:40:writable] Error: PartialMedium is partial, name lookup is not allowed in partial classes. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/Media/IdealGases/Common/Functions.mo:258:5-258:76:writable] Error: PartialMedium is partial, name lookup is not allowed in partial classes. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/Media/IdealGases/Common/Functions.mo:262:5-263:39:writable] Error: PartialMedium is partial, name lookup is not allowed in partial classes. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/Media/IdealGases/Common/Functions.mo:256:5-257:40:writable] Error: PartialMedium is partial, name lookup is not allowed in partial classes. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/Media/IdealGases/Common/Functions.mo:258:5-258:76:writable] Error: PartialMedium is partial, name lookup is not allowed in partial classes. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/Media/IdealGases/Common/Functions.mo:262:5-263:39:writable] Error: PartialMedium is partial, name lookup is not allowed in partial classes. Notification: Performance of FrontEnd: time 0.0873/1.928, allocations: 39.58 MB / 1.044 GB, free: 62.08 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.799e-05/1.928, allocations: 4 kB / 1.044 GB, free: 62.07 MB / 346.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.0009752/1.929, allocations: 0.4998 MB / 1.045 GB, free: 61.53 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.962e-05/1.929, allocations: 8.031 kB / 1.045 GB, free: 61.52 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003155/1.932, allocations: 431.1 kB / 1.045 GB, free: 61.1 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004287/1.932, allocations: 254.8 kB / 1.045 GB, free: 60.81 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.938e-05/1.932, allocations: 8 kB / 1.045 GB, free: 60.8 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.96e-05/1.932, allocations: 15.91 kB / 1.045 GB, free: 60.79 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008261/1.933, allocations: 476.6 kB / 1.046 GB, free: 60.32 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000474/1.934, allocations: 313.4 kB / 1.046 GB, free: 60 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.287e-05/1.934, allocations: 0 / 1.046 GB, free: 60 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.986e-05/1.934, allocations: 4 kB / 1.046 GB, free: 60 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.668e-06/1.934, allocations: 4 kB / 1.046 GB, free: 60 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002129/1.936, allocations: 0.9768 MB / 1.047 GB, free: 58.98 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002993/1.936, allocations: 220.3 kB / 1.047 GB, free: 58.75 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001747/1.936, allocations: 130.3 kB / 1.048 GB, free: 58.62 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001145/1.938, allocations: 0.6592 MB / 1.048 GB, free: 57.84 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.705e-05/1.938, allocations: 42.5 kB / 1.048 GB, free: 57.79 MB / 346.7 MB Notification: Performance of pre-optimization done (n=29): time 2.004e-06/1.938, allocations: 4 kB / 1.048 GB, free: 57.79 MB / 346.7 MB Notification: Performance of matching and sorting (n=29): time 0.0006666/1.938, allocations: 262.1 kB / 1.048 GB, free: 57.53 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.101e-05/1.938, allocations: 85.33 kB / 1.049 GB, free: 57.43 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.73e-05/1.938, allocations: 108.9 kB / 1.049 GB, free: 57.31 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.447e-05/1.938, allocations: 25.7 kB / 1.049 GB, free: 57.28 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.547e-05/1.939, allocations: 108.4 kB / 1.049 GB, free: 57.17 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.757e-05/1.939, allocations: 106.4 kB / 1.049 GB, free: 57.07 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.187e-05/1.939, allocations: 0 / 1.049 GB, free: 57.07 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 7.121e-05/1.939, allocations: 330.8 kB / 1.049 GB, free: 56.73 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001436/1.939, allocations: 104.6 kB / 1.049 GB, free: 56.63 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001691/1.939, allocations: 179.2 kB / 1.049 GB, free: 56.42 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002436/1.939, allocations: 124 kB / 1.05 GB, free: 56.3 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.927e-06/1.939, allocations: 4 kB / 1.05 GB, free: 56.29 MB / 346.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0005844/1.94, allocations: 333.4 kB / 1.05 GB, free: 55.96 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.782e-05/1.94, allocations: 8 kB / 1.05 GB, free: 55.95 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.824e-06/1.94, allocations: 0 / 1.05 GB, free: 55.95 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.077e-05/1.94, allocations: 8 kB / 1.05 GB, free: 55.95 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003811/1.94, allocations: 71.89 kB / 1.05 GB, free: 55.88 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.121e-05/1.94, allocations: 4 kB / 1.05 GB, free: 55.87 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002917/1.941, allocations: 28 kB / 1.05 GB, free: 55.84 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.33e-05/1.941, allocations: 23.98 kB / 1.05 GB, free: 55.82 MB / 346.7 MB 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.0001077/1.941, allocations: 112.9 kB / 1.05 GB, free: 55.7 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001087/1.941, allocations: 15.81 kB / 1.05 GB, free: 55.69 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007604/1.942, allocations: 354.3 kB / 1.05 GB, free: 55.33 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.442e-06/1.942, allocations: 7.906 kB / 1.051 GB, free: 55.32 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.957e-06/1.942, allocations: 3.984 kB / 1.051 GB, free: 55.32 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.003e-06/1.942, allocations: 0 / 1.051 GB, free: 55.32 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004982/1.942, allocations: 327.7 kB / 1.051 GB, free: 54.96 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.086e-06/1.942, allocations: 4 kB / 1.051 GB, free: 54.96 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003766/1.943, allocations: 59.95 kB / 1.051 GB, free: 54.9 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.328e-06/1.943, allocations: 0 / 1.051 GB, free: 54.9 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.535e-05/1.943, allocations: 7.984 kB / 1.051 GB, free: 54.89 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.036e-06/1.943, allocations: 7.906 kB / 1.051 GB, free: 54.88 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.767e-06/1.943, allocations: 4 kB / 1.051 GB, free: 54.88 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0006493/1.943, allocations: 0.5161 MB / 1.051 GB, free: 54.34 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.836e-05/1.943, allocations: 92.86 kB / 1.051 GB, free: 54.23 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.966e-05/1.944, allocations: 0 / 1.051 GB, free: 54.23 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003561/1.944, allocations: 19.92 kB / 1.052 GB, free: 54.21 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.753e-05/1.944, allocations: 15.97 kB / 1.052 GB, free: 54.2 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.874e-05/1.944, allocations: 19.98 kB / 1.052 GB, free: 54.18 MB / 346.7 MB Notification: Performance of sort global known variables: time 3.448e-05/1.944, allocations: 83.28 kB / 1.052 GB, free: 54.09 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001145/1.945, allocations: 247.7 kB / 1.052 GB, free: 53.85 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 6 (medium.p,medium.T,medium2.p,medium2.T,medium2.X[1],medium2.X[2]) * 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.001977/1.947, allocations: 0.8618 MB / 1.053 GB, free: 52.98 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0004177/1.948, allocations: 267.8 kB / 1.053 GB, free: 52.72 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.077e-06/1.948, allocations: 0.625 kB / 1.053 GB, free: 52.72 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001662/1.948, allocations: 135.9 kB / 1.053 GB, free: 52.59 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005451/1.948, allocations: 67.92 kB / 1.053 GB, free: 52.52 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00101/1.949, allocations: 0.5796 MB / 1.054 GB, free: 51.91 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003964/1.95, allocations: 0.783 MB / 1.054 GB, free: 51.1 MB / 346.7 MB Notification: Performance of SimCode: time 2.11e-07/1.95, allocations: 0 / 1.054 GB, free: 51.1 MB / 346.7 MB Notification: Performance of Templates: time 0.01809/1.968, allocations: 11.9 MB / 1.066 GB, free: 39.19 MB / 346.7 MB make -j1 -f Modelica_3.2.1_Modelica.Media.Examples.TestOnly.MixIdealGasAir.makefile (rm -f Modelica_3.2.1_Modelica.Media.Examples.TestOnly.MixIdealGasAir.pipe ; mkfifo Modelica_3.2.1_Modelica.Media.Examples.TestOnly.MixIdealGasAir.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Media.Examples.TestOnly.MixIdealGasAir.pipe >> ../files/Modelica_3.2.1_Modelica.Media.Examples.TestOnly.MixIdealGasAir.sim & ./Modelica_3.2.1_Modelica.Media.Examples.TestOnly.MixIdealGasAir -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Media.Examples.TestOnly.MixIdealGasAir.pipe 2>&1)