Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.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.SimpleNaturalGasFixedComposition,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_SimpleNaturalGasFixedComposition",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_SimpleNaturalGasFixedComposition",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.001756/0.001756, allocations: 193.3 kB / 8.537 MB, free: 1.824 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.222/1.222, allocations: 225.5 MB / 234.4 MB, free: 3.367 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008821/0.0008821, allocations: 91.56 kB / 286.3 MB, free: 5.262 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1687/0.1687, allocations: 45.15 MB / 383.3 MB, free: 0.5586 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2029/0.3716, allocations: 69.38 MB / 452.7 MB, free: 76.05 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08168/0.4533, allocations: 63.24 MB / 0.5039 GB, free: 12.89 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.25/1.703, allocations: 0.7933 GB / 1.297 GB, free: 64.93 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000275/1.704, allocations: 95.77 kB / 1.297 GB, free: 64.84 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: 192 * Number of variables: 192 Notification: Performance of Generate backend data structure: time 2.042/3.746, allocations: 0.7315 GB / 2.029 GB, free: 87.46 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 3.054e-05/3.746, allocations: 11.03 kB / 2.029 GB, free: 87.46 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00142/3.748, allocations: 285.3 kB / 2.029 GB, free: 87.41 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001286/3.749, allocations: 0.674 MB / 2.03 GB, free: 87.18 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.565e-05/3.749, allocations: 94.81 kB / 2.03 GB, free: 87.11 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001188/3.749, allocations: 40.38 kB / 2.03 GB, free: 87.11 MB / 0.5417 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001294/3.75, allocations: 0.8924 MB / 2.031 GB, free: 87.11 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001515/3.752, allocations: 1.155 MB / 2.032 GB, free: 86.88 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.472e-05/3.752, allocations: 3.469 kB / 2.032 GB, free: 86.88 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001191/3.752, allocations: 7.562 kB / 2.032 GB, free: 86.88 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.701e-05/3.752, allocations: 68.86 kB / 2.032 GB, free: 86.88 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00527/3.757, allocations: 4.892 MB / 2.037 GB, free: 84.09 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002758/3.758, allocations: 213.2 kB / 2.037 GB, free: 84.07 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001755/3.758, allocations: 140.5 kB / 2.037 GB, free: 84.06 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001466/3.758, allocations: 268.9 kB / 2.037 GB, free: 83.78 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.666e-05/3.758, allocations: 38.45 kB / 2.037 GB, free: 83.74 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=28): time 1.693e-06/3.758, allocations: 0 / 2.037 GB, free: 83.74 MB / 0.5417 GB Notification: Performance of matching and sorting (n=33): time 0.005558/3.764, allocations: 1.637 MB / 2.039 GB, free: 83.12 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.936e-05/3.764, allocations: 135.6 kB / 2.039 GB, free: 82.96 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006419/3.764, allocations: 0.6705 MB / 2.04 GB, free: 82.82 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 3.826e-05/3.764, allocations: 28.86 kB / 2.04 GB, free: 82.79 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001867/3.765, allocations: 0.492 MB / 2.04 GB, free: 82.52 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 8.197e-05/3.765, allocations: 132.2 kB / 2.04 GB, free: 82.46 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.794e-05/3.765, allocations: 2.344 kB / 2.04 GB, free: 82.46 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 8.258e-05/3.765, allocations: 384.5 kB / 2.041 GB, free: 82.14 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000325/3.765, allocations: 253.7 kB / 2.041 GB, free: 82.14 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005417/3.766, allocations: 0.8362 MB / 2.042 GB, free: 81.4 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007274/3.766, allocations: 476.4 kB / 2.042 GB, free: 81.4 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.175e-05/3.766, allocations: 6.531 kB / 2.042 GB, free: 81.4 MB / 0.5417 GB Notification: Performance of matching and sorting (n=130) (initialization): time 0.001714/3.768, allocations: 1.108 MB / 2.043 GB, free: 81.31 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.281e-05/3.768, allocations: 6.844 kB / 2.043 GB, free: 81.31 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.495e-05/3.768, allocations: 19.66 kB / 2.043 GB, free: 81.31 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001157/3.769, allocations: 264.7 kB / 2.044 GB, free: 81.3 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005576/3.77, allocations: 209.7 kB / 2.044 GB, free: 81.3 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008933/3.771, allocations: 0.9393 MB / 2.045 GB, free: 80.78 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000832/3.772, allocations: 41.61 kB / 2.045 GB, free: 80.78 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.545e-05/3.772, allocations: 67.91 kB / 2.045 GB, free: 80.78 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 90 * 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 (112): * Single equations (assignments): 111 * 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 {2 17} Notification: Performance of prepare postOptimizeDAE: time 0.000187/3.772, allocations: 161.1 kB / 2.045 GB, free: 80.67 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000123/3.772, allocations: 87.11 kB / 2.045 GB, free: 80.62 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000951/3.773, allocations: 0.526 MB / 2.046 GB, free: 80.56 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.939e-06/3.773, allocations: 3.125 kB / 2.046 GB, free: 80.56 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.46e-06/3.773, allocations: 3.406 kB / 2.046 GB, free: 80.56 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.15e-06/3.773, allocations: 3.906 kB / 2.046 GB, free: 80.56 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001391/3.774, allocations: 1.034 MB / 2.047 GB, free: 80.27 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.875e-06/3.774, allocations: 3.812 kB / 2.047 GB, free: 80.27 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001003/3.775, allocations: 171.9 kB / 2.047 GB, free: 80.27 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.088e-05/3.776, allocations: 25.59 kB / 2.047 GB, free: 80.26 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.219e-05/3.776, allocations: 10.38 kB / 2.047 GB, free: 80.26 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001265/3.777, allocations: 2.576 MB / 2.049 GB, free: 77.81 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.575e-06/3.777, allocations: 3.938 kB / 2.049 GB, free: 77.81 MB / 0.5417 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0008176/3.778, allocations: 0.6823 MB / 2.05 GB, free: 77.6 MB / 0.5417 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001189/3.779, allocations: 1.304 MB / 2.051 GB, free: 77.01 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002566/3.779, allocations: 194.3 kB / 2.051 GB, free: 76.88 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00014/3.779, allocations: 448 / 2.051 GB, free: 76.88 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004872/3.78, allocations: 19.83 kB / 2.051 GB, free: 76.88 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.612e-05/3.78, allocations: 19.38 kB / 2.051 GB, free: 76.88 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.476e-05/3.78, allocations: 21.47 kB / 2.051 GB, free: 76.88 MB / 0.5417 GB Notification: Performance of sort global known variables: time 0.0004554/3.78, allocations: 495.8 kB / 2.052 GB, free: 76.78 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.002196/3.783, allocations: 0.5203 MB / 2.052 GB, free: 76.75 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (volume.medium.p,volume.medium.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (33): * Single equations (assignments): 31 * 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.003066/3.786, allocations: 1.544 MB / 2.054 GB, free: 76.53 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.0009695/3.787, allocations: 0.6115 MB / 2.055 GB, free: 76.53 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 3.477e-06/3.787, allocations: 0 / 2.055 GB, free: 76.53 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.001046/3.788, allocations: 397.4 kB / 2.055 GB, free: 76.42 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001315/3.789, allocations: 291.6 kB / 2.055 GB, free: 76.42 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001873/3.791, allocations: 1.137 MB / 2.056 GB, free: 76.13 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007141/3.792, allocations: 1.15 MB / 2.057 GB, free: 75.43 MB / 0.5417 GB Notification: Performance of SimCode: time 4.01e-07/3.792, allocations: 0 / 2.057 GB, free: 75.43 MB / 0.5417 GB (rm -f ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_SimpleNaturalGasFixedComposition_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_SimpleNaturalGasFixedComposition.fmu > ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.pipe 2>&1)