Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_SimpleNaturalGas",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_SimpleNaturalGas",fmuType="me",version="2.0",platforms={"static"}) [: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 trunk/package.mo): time 0.001164/0.001164, allocations: 203.8 kB / 8.541 MB, free: 1.832 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.186/1.186, allocations: 225.5 MB / 234.4 MB, free: 3.309 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009003/0.0009003, allocations: 90.97 kB / 286.3 MB, free: 5.277 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1699/0.1699, allocations: 45.14 MB / 383.3 MB, free: 0.5352 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1916/0.3615, allocations: 69.38 MB / 452.7 MB, free: 76.09 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08103/0.4426, allocations: 63.24 MB / 0.5039 GB, free: 12.92 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.181/1.624, allocations: 0.7924 GB / 1.296 GB, free: 71.22 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002934/1.624, allocations: 103.4 kB / 1.296 GB, free: 71.12 MB / 0.5261 GB 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 2.017/3.641, allocations: 0.7084 GB / 2.005 GB, free: 89.57 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 3.709e-05/3.641, allocations: 11.84 kB / 2.005 GB, free: 89.57 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001578/3.643, allocations: 318.1 kB / 2.005 GB, free: 89.51 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001647/3.644, allocations: 0.8092 MB / 2.006 GB, free: 89.28 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001005/3.645, allocations: 105.9 kB / 2.006 GB, free: 89.21 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001595/3.645, allocations: 57.28 kB / 2.006 GB, free: 89.21 MB / 0.5417 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002057/3.647, allocations: 1.502 MB / 2.007 GB, free: 89.21 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002149/3.649, allocations: 1.671 MB / 2.009 GB, free: 88.99 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.165e-05/3.649, allocations: 6.531 kB / 2.009 GB, free: 88.99 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000139/3.649, allocations: 3.469 kB / 2.009 GB, free: 88.99 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.074e-05/3.649, allocations: 78.61 kB / 2.009 GB, free: 88.99 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008375/3.658, allocations: 6.851 MB / 2.016 GB, free: 85.56 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007075/3.658, allocations: 0.6063 MB / 2.016 GB, free: 85.54 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000486/3.659, allocations: 450.6 kB / 2.017 GB, free: 85.53 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001942/3.659, allocations: 278.9 kB / 2.017 GB, free: 85.25 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.381e-05/3.659, allocations: 46.08 kB / 2.017 GB, free: 85.2 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=60): time 3.917e-06/3.659, allocations: 0 / 2.017 GB, free: 85.2 MB / 0.5417 GB Notification: Performance of matching and sorting (n=72): time 0.009532/3.669, allocations: 3.7 MB / 2.021 GB, free: 84.55 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.196e-05/3.669, allocations: 115.3 kB / 2.021 GB, free: 84.42 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006249/3.669, allocations: 0.5844 MB / 2.022 GB, free: 84.29 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 9.352e-05/3.669, allocations: 29.14 kB / 2.022 GB, free: 84.26 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001695/3.67, allocations: 471.7 kB / 2.022 GB, free: 84.02 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.000163/3.67, allocations: 252.4 kB / 2.022 GB, free: 83.89 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.582e-05/3.67, allocations: 0 / 2.022 GB, free: 83.89 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001048/3.67, allocations: 393.1 kB / 2.023 GB, free: 83.58 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007077/3.671, allocations: 0.5862 MB / 2.023 GB, free: 83.58 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007982/3.671, allocations: 0.8648 MB / 2.024 GB, free: 83.27 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001022/3.672, allocations: 0.7411 MB / 2.025 GB, free: 83.26 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.807e-06/3.673, allocations: 3.875 kB / 2.025 GB, free: 83.26 MB / 0.5417 GB Notification: Performance of matching and sorting (n=125) (initialization): time 0.002682/3.675, allocations: 1.949 MB / 2.027 GB, free: 83.16 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.384e-05/3.675, allocations: 7.094 kB / 2.027 GB, free: 83.16 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.178e-05/3.675, allocations: 7.312 kB / 2.027 GB, free: 83.16 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004373/3.68, allocations: 1.25 MB / 2.028 GB, free: 83.14 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006343/3.68, allocations: 140.3 kB / 2.028 GB, free: 83.14 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002699/3.683, allocations: 2.107 MB / 2.03 GB, free: 82.59 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00115/3.684, allocations: 89.19 kB / 2.03 GB, free: 82.59 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001304/3.684, allocations: 71.78 kB / 2.03 GB, free: 82.59 MB / 0.5417 GB 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: 37 * 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 (82): * Single equations (assignments): 81 * 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 34} Notification: Performance of prepare postOptimizeDAE: time 0.000294/3.685, allocations: 147.2 kB / 2.03 GB, free: 82.47 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001722/3.685, allocations: 80.03 kB / 2.03 GB, free: 82.43 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002343/3.687, allocations: 1.593 MB / 2.032 GB, free: 82.36 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.095e-06/3.687, allocations: 7.781 kB / 2.032 GB, free: 82.36 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.643e-06/3.687, allocations: 0 / 2.032 GB, free: 82.36 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.514e-06/3.687, allocations: 7.453 kB / 2.032 GB, free: 82.36 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003626/3.691, allocations: 2.608 MB / 2.035 GB, free: 82.03 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.837e-06/3.691, allocations: 6.281 kB / 2.035 GB, free: 82.02 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002024/3.693, allocations: 323.3 kB / 2.035 GB, free: 82.02 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001744/3.693, allocations: 73.03 kB / 2.035 GB, free: 82.02 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.604e-05/3.693, allocations: 29.97 kB / 2.035 GB, free: 82.02 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001728/3.695, allocations: 2.784 MB / 2.038 GB, free: 79.55 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.409e-06/3.695, allocations: 9.344 kB / 2.038 GB, free: 79.55 MB / 0.5417 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002348/3.697, allocations: 1.883 MB / 2.04 GB, free: 79.33 MB / 0.5417 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.003628/3.701, allocations: 3.031 MB / 2.043 GB, free: 78.73 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007052/3.702, allocations: 309.5 kB / 2.043 GB, free: 78.59 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001925/3.702, allocations: 17.61 kB / 2.043 GB, free: 78.59 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001063/3.703, allocations: 67.59 kB / 2.043 GB, free: 78.59 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001213/3.703, allocations: 50.02 kB / 2.043 GB, free: 78.59 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001359/3.703, allocations: 67 kB / 2.043 GB, free: 78.59 MB / 0.5417 GB Notification: Performance of sort global known variables: time 0.0004897/3.704, allocations: 464.3 kB / 2.043 GB, free: 78.5 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.002568/3.706, allocations: 0.616 MB / 2.044 GB, free: 78.5 MB / 0.5417 GB 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 (78): * 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): 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.003094/3.709, allocations: 1.57 MB / 2.046 GB, free: 78.32 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.002237/3.712, allocations: 1.474 MB / 2.047 GB, free: 78.3 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 3.868e-06/3.712, allocations: 0.6562 kB / 2.047 GB, free: 78.3 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.001638/3.713, allocations: 0.8863 MB / 2.048 GB, free: 78.2 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001917/3.715, allocations: 390.3 kB / 2.048 GB, free: 78.2 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004416/3.72, allocations: 2.34 MB / 2.051 GB, free: 77.8 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001064/3.721, allocations: 1.353 MB / 2.052 GB, free: 77.09 MB / 0.5417 GB Notification: Performance of SimCode: time 6.61e-07/3.721, allocations: 0 / 2.052 GB, free: 77.09 MB / 0.5417 GB (rm -f ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_SimpleNaturalGas_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_SimpleNaturalGas.fmu > ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.pipe 2>&1)