Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas,fileNamePrefix="Modelica_3_2_3_Modelica_Media_Examples_Tests_MediaTestModels_IdealGases_SimpleNaturalGas",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas,fileNamePrefix="Modelica_3_2_3_Modelica_Media_Examples_Tests_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 3.2.3+maint.om/package.mo): time 0.001306/0.001306, allocations: 174.8 kB / 8.476 MB, free: 1.875 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.341/1.341, allocations: 205.2 MB / 214.1 MB, free: 5.168 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009386/0.0009386, allocations: 95.27 kB / 262.1 MB, free: 5.203 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2039/0.2049, allocations: 52.98 MB / 315.1 MB, free: 41.41 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08591/0.2908, allocations: 47.57 MB / 362.6 MB, free: 9.867 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.668/1.959, allocations: 0.7109 GB / 1.065 GB, free: 163.3 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002963/1.959, allocations: 97.34 kB / 1.065 GB, free: 163.3 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 177 * Number of variables: 177 Notification: Performance of Generate backend data structure: time 1.838/3.797, allocations: 0.5515 GB / 1.617 GB, free: 74.53 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.712e-05/3.797, allocations: 10.66 kB / 1.617 GB, free: 74.52 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001008/3.798, allocations: 152.6 kB / 1.617 GB, free: 74.48 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001286/3.799, allocations: 484.9 kB / 1.617 GB, free: 74.26 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.921e-05/3.799, allocations: 22.53 kB / 1.617 GB, free: 74.26 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002479/3.8, allocations: 45.19 kB / 1.617 GB, free: 74.26 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001775/3.801, allocations: 0.8256 MB / 1.618 GB, free: 74.25 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001761/3.803, allocations: 0.829 MB / 1.619 GB, free: 74.2 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.758e-05/3.803, allocations: 2.719 kB / 1.619 GB, free: 74.2 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001657/3.803, allocations: 4 kB / 1.619 GB, free: 74.19 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.841e-05/3.803, allocations: 21.38 kB / 1.619 GB, free: 74.19 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005641/3.809, allocations: 3.247 MB / 1.622 GB, free: 72.68 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005748/3.81, allocations: 434.9 kB / 1.622 GB, free: 72.66 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004265/3.81, allocations: 351.3 kB / 1.623 GB, free: 72.64 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.325e-05/3.81, allocations: 15.78 kB / 1.623 GB, free: 72.64 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.306e-05/3.81, allocations: 46.06 kB / 1.623 GB, free: 72.61 MB / 426.7 MB Notification: Performance of pre-optimization done (n=59): time 3.357e-06/3.81, allocations: 0 / 1.623 GB, free: 72.61 MB / 426.7 MB Notification: Performance of matching and sorting (n=71): time 0.008845/3.819, allocations: 3.152 MB / 1.626 GB, free: 71.92 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.304e-05/3.819, allocations: 59.94 kB / 1.626 GB, free: 71.86 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003996/3.82, allocations: 318.7 kB / 1.626 GB, free: 71.76 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001599/3.82, allocations: 29.17 kB / 1.626 GB, free: 71.73 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001555/3.82, allocations: 262.6 kB / 1.627 GB, free: 71.57 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001956/3.82, allocations: 246.8 kB / 1.627 GB, free: 71.45 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.75e-05/3.82, allocations: 0 / 1.627 GB, free: 71.45 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001132/3.82, allocations: 359.3 kB / 1.627 GB, free: 71.13 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005573/3.821, allocations: 432.7 kB / 1.628 GB, free: 71.13 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005978/3.822, allocations: 0.4925 MB / 1.628 GB, free: 71.07 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006387/3.822, allocations: 0.4984 MB / 1.629 GB, free: 71.06 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.56e-06/3.822, allocations: 3.781 kB / 1.629 GB, free: 71.06 MB / 426.7 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.002015/3.824, allocations: 1.321 MB / 1.63 GB, free: 70.92 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.867e-05/3.824, allocations: 6.531 kB / 1.63 GB, free: 70.92 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.422e-05/3.824, allocations: 3.609 kB / 1.63 GB, free: 70.92 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006345/3.825, allocations: 333.8 kB / 1.63 GB, free: 70.85 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009752/3.826, allocations: 177 kB / 1.63 GB, free: 70.84 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005701/3.832, allocations: 9.804 MB / 1.64 GB, free: 61.95 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000879/3.833, allocations: 64.61 kB / 1.64 GB, free: 61.94 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001648/3.833, allocations: 48.56 kB / 1.64 GB, free: 61.94 MB / 426.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: ambient.port.Xi[1]:VARIABLE(flow=false min = 0.0 max = 1.0 unit = "kg/kg" nominal = 0.1 ) "Independent mixture mass fractions m_i/m in the connection point" type: Real [6] Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: ambient.port.Xi[2]:VARIABLE(flow=false min = 0.0 max = 1.0 unit = "kg/kg" nominal = 0.1 ) "Independent mixture mass fractions m_i/m in the connection point" type: Real [6] Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: ambient.port.Xi[3]:VARIABLE(flow=false min = 0.0 max = 1.0 unit = "kg/kg" nominal = 0.1 ) "Independent mixture mass fractions m_i/m in the connection point" type: Real [6] Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: ambient.port.Xi[4]:VARIABLE(flow=false min = 0.0 max = 1.0 unit = "kg/kg" nominal = 0.1 ) "Independent mixture mass fractions m_i/m in the connection point" type: Real [6] Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: ambient.port.Xi[5]:VARIABLE(flow=false min = 0.0 max = 1.0 unit = "kg/kg" nominal = 0.1 ) "Independent mixture mass fractions m_i/m in the connection point" type: Real [6] Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: ambient.port.Xi[6]:VARIABLE(flow=false min = 0.0 max = 1.0 unit = "kg/kg" nominal = 0.1 ) "Independent mixture mass fractions m_i/m in the connection point" type: Real [6] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (80): * Single equations (assignments): 72 * 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: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 8 {1 1,1 1,1 1,1 1,1 1,1 1,1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0004926/3.833, allocations: 149.9 kB / 1.64 GB, free: 61.82 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002102/3.833, allocations: 49.16 kB / 1.64 GB, free: 61.8 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002353/3.836, allocations: 1.271 MB / 1.641 GB, free: 61.66 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.149e-05/3.836, allocations: 12.44 kB / 1.641 GB, free: 61.66 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.947e-06/3.836, allocations: 0 / 1.641 GB, free: 61.66 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001501/3.837, allocations: 1.569 MB / 1.643 GB, free: 60.82 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003823/3.841, allocations: 2.134 MB / 1.645 GB, free: 60.41 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.146e-06/3.841, allocations: 1.25 kB / 1.645 GB, free: 60.41 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001368/3.843, allocations: 236.5 kB / 1.645 GB, free: 60.39 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002157/3.843, allocations: 64.7 kB / 1.645 GB, free: 60.36 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001092/3.843, allocations: 32.22 kB / 1.645 GB, free: 60.36 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001163/3.844, allocations: 1.435 MB / 1.647 GB, free: 59.04 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.759e-06/3.844, allocations: 4.75 kB / 1.647 GB, free: 59.04 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00241/3.847, allocations: 1.578 MB / 1.648 GB, free: 58.3 MB / 426.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.003559/3.85, allocations: 2.552 MB / 1.651 GB, free: 56.93 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002737/3.851, allocations: 128.5 kB / 1.651 GB, free: 56.8 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001778/3.851, allocations: 24.3 kB / 1.651 GB, free: 56.79 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009547/3.852, allocations: 60.11 kB / 1.651 GB, free: 56.79 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001071/3.852, allocations: 50.23 kB / 1.651 GB, free: 56.79 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001756/3.852, allocations: 59.23 kB / 1.651 GB, free: 56.78 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.0002931/3.852, allocations: 245.5 kB / 1.651 GB, free: 56.65 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002749/3.855, allocations: 460.1 kB / 1.652 GB, free: 56.53 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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 (77): * 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): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 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.003817/3.859, allocations: 1.374 MB / 1.653 GB, free: 56.31 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.002734/3.862, allocations: 1.741 MB / 1.655 GB, free: 55.25 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 8.957e-06/3.862, allocations: 1.344 kB / 1.655 GB, free: 55.25 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001036/3.863, allocations: 0.6613 MB / 1.656 GB, free: 54.95 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001856/3.865, allocations: 296.6 kB / 1.656 GB, free: 54.9 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004259/3.869, allocations: 1.861 MB / 1.658 GB, free: 54.02 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001056/3.87, allocations: 1.111 MB / 1.659 GB, free: 53 MB / 426.7 MB Notification: Performance of SimCode: time 1.984e-06/3.87, allocations: 0 / 1.659 GB, free: 53 MB / 426.7 MB (rm -f Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas.pipe ; mkfifo Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas.pipe >> ../files/Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Media_Examples_Tests_MediaTestModels_IdealGases_SimpleNaturalGas_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Media_Examples_Tests_MediaTestModels_IdealGases_SimpleNaturalGas.fmu > Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas.pipe 2>&1)