Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo) 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(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas") translateModel(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Media.TestsWithFluid.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.1+maint.om/package.mo): time 0.004062/0.004062, allocations: 174.6 kB / 7.45 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.505/1.505, allocations: 170.6 MB / 178.4 MB, free: 15.76 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.001983/0.001983, allocations: 112.6 kB / 217.7 MB, free: 8.531 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo): time 0.2191/0.2191, allocations: 37.97 MB / 294.8 MB, free: 9.688 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 8.246e-06/8.276e-06, allocations: 0 / 349.5 MB, free: 37.17 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1359/0.1359, allocations: 48.71 MB / 398.2 MB, free: 5.695 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 2.31/2.446, allocations: 0.8063 GB / 1.195 GB, free: 69.7 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002578/2.446, allocations: 94.94 kB / 1.195 GB, free: 69.61 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.902/5.348, allocations: 0.7061 GB / 1.901 GB, free: 20 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0001574/5.349, allocations: 27.98 kB / 1.901 GB, free: 19.97 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 276 * Number of variables: 276 Notification: Performance of Generate backend data structure: time 0.008793/5.357, allocations: 1.578 MB / 1.903 GB, free: 18.34 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.009e-05/5.358, allocations: 8.031 kB / 1.903 GB, free: 18.34 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002516/5.36, allocations: 318.2 kB / 1.903 GB, free: 18.02 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003442/5.364, allocations: 0.8296 MB / 1.904 GB, free: 17.16 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000221/5.364, allocations: 105.4 kB / 1.904 GB, free: 17.04 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006687/5.364, allocations: 60 kB / 1.904 GB, free: 16.98 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003743/5.368, allocations: 1.488 MB / 1.906 GB, free: 15.49 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004338/5.373, allocations: 1.656 MB / 1.907 GB, free: 13.76 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.341e-05/5.373, allocations: 0 / 1.907 GB, free: 13.76 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004413/5.373, allocations: 4 kB / 1.907 GB, free: 13.76 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001261/5.373, allocations: 81.95 kB / 1.907 GB, free: 13.68 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01461/5.388, allocations: 5.912 MB / 1.913 GB, free: 7.48 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009895/5.389, allocations: 0.5118 MB / 1.914 GB, free: 6.961 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005621/5.39, allocations: 374.5 kB / 1.914 GB, free: 6.594 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001314/5.39, allocations: 20.42 kB / 1.914 GB, free: 6.574 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.709e-05/5.39, allocations: 50.91 kB / 1.914 GB, free: 6.512 MB / 442.7 MB Notification: Performance of pre-optimization done (n=53): time 5.24e-06/5.39, allocations: 3.938 kB / 1.914 GB, free: 6.508 MB / 442.7 MB Notification: Performance of matching and sorting (n=65): time 0.01023/5.4, allocations: 3.273 MB / 1.917 GB, free: 3.137 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.142e-05/5.4, allocations: 115.5 kB / 1.917 GB, free: 3 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009925/5.401, allocations: 0.593 MB / 1.918 GB, free: 2.398 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001491/5.401, allocations: 29.7 kB / 1.918 GB, free: 2.363 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003969/5.402, allocations: 0.5014 MB / 1.918 GB, free: 1.852 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002446/5.402, allocations: 244.6 kB / 1.919 GB, free: 1.609 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.511e-05/5.402, allocations: 0 / 1.919 GB, free: 1.609 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001673/5.402, allocations: 386.8 kB / 1.919 GB, free: 1.223 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007161/5.403, allocations: 0.5335 MB / 1.92 GB, free: 0.6875 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.3502/5.753, allocations: 0.8986 MB / 1.92 GB, free: 98.07 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001643/5.755, allocations: 0.6619 MB / 1.921 GB, free: 98.07 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.072e-05/5.755, allocations: 6.469 kB / 1.921 GB, free: 98.07 MB / 442.7 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.003253/5.758, allocations: 1.796 MB / 1.923 GB, free: 98.02 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.927e-05/5.758, allocations: 6.594 kB / 1.923 GB, free: 98.02 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.18e-05/5.758, allocations: 11.12 kB / 1.923 GB, free: 98.02 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004277/5.763, allocations: 1.159 MB / 1.924 GB, free: 98.02 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006818/5.763, allocations: 173.4 kB / 1.924 GB, free: 98.02 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002415/5.766, allocations: 1.866 MB / 1.926 GB, free: 97.48 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001248/5.767, allocations: 96.81 kB / 1.926 GB, free: 97.48 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001268/5.767, allocations: 71.58 kB / 1.926 GB, free: 97.48 MB / 442.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: volume.m:DUMMY_STATE(min = 0.0 unit = "kg" ) "Mass of fluid" type: Real volume.mb_flow:VARIABLE(unit = "kg/s" ) "Mass flows across boundaries" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 53 * Number of states: 0 () * Number of discrete variables: 4 (volume.regularFlow[1],volume.regularFlow[2],volume.inFlow[2],volume.inFlow[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (98): * Single equations (assignments): 97 * 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: 0 * Non-linear torn systems: 1 {10 27} Notification: Performance of prepare postOptimizeDAE: time 0.0003746/5.767, allocations: 138.1 kB / 1.926 GB, free: 97.38 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001982/5.768, allocations: 89.66 kB / 1.926 GB, free: 97.38 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00221/5.77, allocations: 1.274 MB / 1.928 GB, free: 97.31 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.119e-05/5.77, allocations: 9.875 kB / 1.928 GB, free: 97.31 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.097e-05/5.77, allocations: 0 / 1.928 GB, free: 97.31 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.037e-05/5.77, allocations: 3.938 kB / 1.928 GB, free: 97.31 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004002/5.774, allocations: 2.382 MB / 1.93 GB, free: 97.01 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.271e-06/5.774, allocations: 2.781 kB / 1.93 GB, free: 97.01 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001862/5.776, allocations: 303.8 kB / 1.93 GB, free: 97.01 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002211/5.776, allocations: 71.84 kB / 1.93 GB, free: 97 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.897e-05/5.776, allocations: 26.72 kB / 1.93 GB, free: 97 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002697/5.779, allocations: 2.787 MB / 1.933 GB, free: 94.59 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.711e-06/5.779, allocations: 3.781 kB / 1.933 GB, free: 94.59 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00271/5.782, allocations: 1.698 MB / 1.935 GB, free: 94.41 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006532/5.782, allocations: 286.3 kB / 1.935 GB, free: 94.29 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001737/5.782, allocations: 22.16 kB / 1.935 GB, free: 94.29 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009203/5.783, allocations: 53.48 kB / 1.935 GB, free: 94.29 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001349/5.784, allocations: 46.83 kB / 1.935 GB, free: 94.28 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000115/5.784, allocations: 60.86 kB / 1.935 GB, free: 94.28 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.0006994/5.784, allocations: 458.8 kB / 1.936 GB, free: 94.19 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002927/5.787, allocations: 0.5469 MB / 1.936 GB, free: 94.19 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 (71): * Single equations (assignments): 69 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 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.004142/5.791, allocations: 1.71 MB / 1.938 GB, free: 94.01 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.002581/5.794, allocations: 1.361 MB / 1.939 GB, free: 94 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 7.554e-06/5.794, allocations: 0.6875 kB / 1.939 GB, free: 94 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001694/5.796, allocations: 0.8278 MB / 1.94 GB, free: 93.89 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002268/5.798, allocations: 367.5 kB / 1.94 GB, free: 93.89 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00547/5.804, allocations: 2.25 MB / 1.942 GB, free: 93.5 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001374/5.805, allocations: 1.31 MB / 1.944 GB, free: 92.79 MB / 442.7 MB Notification: Performance of SimCode: time 1.072e-06/5.805, allocations: 2.906 kB / 1.944 GB, free: 92.79 MB / 442.7 MB Notification: Performance of Templates: time 0.05943/5.864, allocations: 31.28 MB / 1.974 GB, free: 92.23 MB / 442.7 MB make -j1 -f ModelicaTest_3.2.1_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.makefile (rm -f ModelicaTest_3.2.1_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.pipe ; mkfifo ModelicaTest_3.2.1_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.pipe ; head -c 1048576 < ModelicaTest_3.2.1_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.pipe >> ../files/ModelicaTest_3.2.1_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.sim & ./ModelicaTest_3.2.1_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.1_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.pipe 2>&1)