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: translateModel(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.T|volume.medium.X.1.|volume.medium.X.2.|volume.medium.X.3.|volume.medium.X.4.|volume.medium.X.5.|volume.medium.X.6.|volume.medium.p",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas") translateModel(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.T|volume.medium.X.1.|volume.medium.X.2.|volume.medium.X.3.|volume.medium.X.4.|volume.medium.X.5.|volume.medium.X.6.|volume.medium.p",fileNamePrefix="ModelicaTest_trunk_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 trunk/package.mo): time 0.00117/0.00117, allocations: 204 kB / 8.54 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.434/1.434, allocations: 225.5 MB / 234.4 MB, free: 3.391 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001028/0.001028, allocations: 93.23 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.2812/0.2812, allocations: 45.14 MB / 383.4 MB, free: 0.5977 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 9.357e-06/9.387e-06, allocations: 0 / 452.6 MB, free: 76.2 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1803/0.1803, allocations: 63.24 MB / 0.5038 GB, free: 13.02 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 2.075/2.255, allocations: 0.7924 GB / 1.296 GB, free: 70.63 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002313/2.255, allocations: 87.95 kB / 1.296 GB, free: 70.54 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.603/4.858, allocations: 0.7068 GB / 2.003 GB, free: 90.31 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 7.263e-05/4.858, allocations: 30.44 kB / 2.003 GB, free: 90.31 MB / 0.5417 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 0.005186/4.864, allocations: 1.586 MB / 2.005 GB, free: 89.91 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.814e-05/4.864, allocations: 9.531 kB / 2.005 GB, free: 89.91 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00172/4.865, allocations: 312.8 kB / 2.005 GB, free: 89.85 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001926/4.867, allocations: 0.8183 MB / 2.006 GB, free: 89.62 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001357/4.867, allocations: 104.8 kB / 2.006 GB, free: 89.55 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001873/4.868, allocations: 57.53 kB / 2.006 GB, free: 89.55 MB / 0.5417 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002285/4.87, allocations: 1.504 MB / 2.007 GB, free: 89.55 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002484/4.872, allocations: 1.663 MB / 2.009 GB, free: 89.33 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.701e-05/4.873, allocations: 9.969 kB / 2.009 GB, free: 89.33 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001446/4.873, allocations: 5.844 kB / 2.009 GB, free: 89.33 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.589e-05/4.873, allocations: 80.19 kB / 2.009 GB, free: 89.33 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009431/4.882, allocations: 6.849 MB / 2.016 GB, free: 85.9 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008063/4.883, allocations: 0.6103 MB / 2.016 GB, free: 85.88 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005246/4.884, allocations: 454.2 kB / 2.017 GB, free: 85.87 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002304/4.884, allocations: 272.9 kB / 2.017 GB, free: 85.59 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.727e-05/4.884, allocations: 48.27 kB / 2.017 GB, free: 85.54 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=60): time 3.346e-06/4.884, allocations: 3.5 kB / 2.017 GB, free: 85.54 MB / 0.5417 GB Notification: Performance of matching and sorting (n=72): time 0.009878/4.894, allocations: 3.696 MB / 2.021 GB, free: 84.88 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.557e-05/4.894, allocations: 110.7 kB / 2.021 GB, free: 84.76 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007109/4.895, allocations: 0.5771 MB / 2.021 GB, free: 84.63 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.0001115/4.895, allocations: 29.05 kB / 2.021 GB, free: 84.6 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002784/4.895, allocations: 479.3 kB / 2.022 GB, free: 84.36 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002022/4.895, allocations: 255 kB / 2.022 GB, free: 84.23 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.523e-05/4.895, allocations: 0 / 2.022 GB, free: 84.23 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001319/4.895, allocations: 388.6 kB / 2.023 GB, free: 83.91 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007552/4.896, allocations: 0.5894 MB / 2.023 GB, free: 83.91 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009546/4.897, allocations: 0.8696 MB / 2.024 GB, free: 83.59 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001144/4.898, allocations: 0.7452 MB / 2.025 GB, free: 83.58 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.71e-06/4.898, allocations: 3.938 kB / 2.025 GB, free: 83.58 MB / 0.5417 GB Notification: Performance of matching and sorting (n=125) (initialization): time 0.003014/4.901, allocations: 1.947 MB / 2.027 GB, free: 83.49 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 2.512e-05/4.901, allocations: 7.781 kB / 2.027 GB, free: 83.49 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.667e-05/4.901, allocations: 7.75 kB / 2.027 GB, free: 83.49 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004439/4.906, allocations: 1.245 MB / 2.028 GB, free: 83.47 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007274/4.907, allocations: 148.4 kB / 2.028 GB, free: 83.47 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003133/4.91, allocations: 2.103 MB / 2.03 GB, free: 82.92 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001391/4.911, allocations: 85.56 kB / 2.03 GB, free: 82.92 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000141/4.911, allocations: 69.16 kB / 2.03 GB, free: 82.92 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.0004217/4.912, allocations: 137.5 kB / 2.03 GB, free: 82.81 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001846/4.912, allocations: 79.88 kB / 2.03 GB, free: 82.77 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002574/4.914, allocations: 1.603 MB / 2.032 GB, free: 82.69 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.448e-06/4.914, allocations: 7.844 kB / 2.032 GB, free: 82.69 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.498e-06/4.915, allocations: 0 / 2.032 GB, free: 82.69 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.307e-06/4.915, allocations: 7.422 kB / 2.032 GB, free: 82.69 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004263/4.919, allocations: 2.613 MB / 2.035 GB, free: 82.36 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.493e-06/4.919, allocations: 0 / 2.035 GB, free: 82.36 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001993/4.921, allocations: 325.5 kB / 2.035 GB, free: 82.36 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002179/4.921, allocations: 67.48 kB / 2.035 GB, free: 82.35 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000101/4.921, allocations: 33.11 kB / 2.035 GB, free: 82.35 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002237/4.923, allocations: 2.783 MB / 2.038 GB, free: 79.89 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.081e-06/4.923, allocations: 4.469 kB / 2.038 GB, free: 79.89 MB / 0.5417 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002844/4.926, allocations: 1.886 MB / 2.039 GB, free: 79.67 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008327/4.927, allocations: 310.2 kB / 2.04 GB, free: 79.54 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001839/4.927, allocations: 15.33 kB / 2.04 GB, free: 79.54 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001034/4.928, allocations: 69.92 kB / 2.04 GB, free: 79.53 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001264/4.929, allocations: 50.09 kB / 2.04 GB, free: 79.53 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001318/4.929, allocations: 66.3 kB / 2.04 GB, free: 79.53 MB / 0.5417 GB Notification: Performance of sort global known variables: time 0.0005586/4.929, allocations: 460.5 kB / 2.04 GB, free: 79.44 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.002203/4.931, allocations: 0.5228 MB / 2.041 GB, free: 79.43 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.003388/4.935, allocations: 1.577 MB / 2.042 GB, free: 79.23 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.002499/4.937, allocations: 1.469 MB / 2.044 GB, free: 79.2 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 7.114e-06/4.937, allocations: 7.312 kB / 2.044 GB, free: 79.2 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.001758/4.939, allocations: 0.8911 MB / 2.045 GB, free: 79.1 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002115/4.941, allocations: 381.7 kB / 2.045 GB, free: 79.09 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004996/4.946, allocations: 2.323 MB / 2.047 GB, free: 78.69 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001151/4.947, allocations: 1.322 MB / 2.049 GB, free: 77.98 MB / 0.5417 GB Notification: Performance of SimCode: time 8.01e-07/4.947, allocations: 0 / 2.049 GB, free: 77.98 MB / 0.5417 GB Notification: Performance of Templates: time 0.05038/4.998, allocations: 32.76 MB / 2.081 GB, free: 77.26 MB / 0.5417 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.makefile (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 & ./ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Media/TestsWithFluid/MediaTestModels/IdealGases/SimpleNaturalGas/SimpleNaturalGas.csv","../files/ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,volume.medium.T,volume.medium.X[1],volume.medium.X[2],volume.medium.X[3],volume.medium.X[4],volume.medium.X[5],volume.medium.X[6],volume.medium.p Variables in the result:T_start,X_start[1],X_start[2],X_start[3],X_start[4],X_start[5],X_start[6],ambient.T,ambient.X[1],ambient.X[2],ambient.X[3],ambient.X[4],ambient.X[5],ambient.X[6],ambient.d,ambient.flowDirection,ambient.h,ambient.medium.preferredMediumStates,ambient.medium.standardOrderComponents,ambient.nPorts,ambient.p,ambient.use_T,ambient.use_p,fixedMassFlowRate.T,fixedMassFlowRate.X[1],fixedMassFlowRate.X[2],fixedMassFlowRate.X[3],fixedMassFlowRate.X[4],fixedMassFlowRate.X[5],fixedMassFlowRate.X[6],fixedMassFlowRate.flowDirection,fixedMassFlowRate.m_flow,fixedMassFlowRate.medium.preferredMediumStates,fixedMassFlowRate.medium.standardOrderComponents,fixedMassFlowRate.nPorts,h_start,p_start,shortPipe.V,shortPipe.allowFlowReversal,shortPipe.crossArea,shortPipe.diameter,shortPipe.flowModel.Re_turbulent,shortPipe.flowModel.allowFlowReversal,shortPipe.flowModel.dp_nominal,shortPipe.flowModel.g,shortPipe.flowModel.m,shortPipe.flowModel.m_flow_nominal,shortPipe.flowModel.m_flow_start,shortPipe.flowModel.momentumDynamics,shortPipe.flowModel.mu_nominal,shortPipe.flowModel.n,shortPipe.flowModel.nParallel,shortPipe.flowModel.p_a_start,shortPipe.flowModel.p_b_start,shortPipe.flowModel.rho_nominal,shortPipe.flowModel.show_Res,shortPipe.flowModel.useUpstreamScheme,shortPipe.flowModel.use_Ib_flows,shortPipe.flowModel.use_mu_nominal,shortPipe.flowModel.use_rho_nominal,shortPipe.height_ab,shortPipe.isCircular,shortPipe.length,shortPipe.m_flow_start,shortPipe.nParallel,shortPipe.p_a_start,shortPipe.p_b_start,shortPipe.perimeter,shortPipe.port_a_exposesState,shortPipe.port_b_exposesState,shortPipe.roughness,shortPipe.showDesignFlowDirection,system.T_ambient,system.T_start,system.allowFlowReversal,system.dp_small,system.energyDynamics,system.eps_m_flow,system.g,system.m_flow_nominal,system.m_flow_small,system.m_flow_start,system.massDynamics,system.momentumDynamics,system.p_ambient,system.p_start,system.substanceDynamics,system.traceDynamics,system.use_eps_Re,time,volume.T_start,volume.V,volume.X_start[1],volume.X_start[2],volume.X_start[3],volume.X_start[4],volume.X_start[5],volume.X_start[6],volume.energyDynamics,volume.fluidLevel_max,volume.h_start,volume.heatTransfer.T_ambient,volume.heatTransfer.k,volume.heatTransfer.n,volume.heatTransfer.use_k,volume.initialize_p,volume.m_flow_nominal,volume.m_flow_small,volume.massDynamics,volume.medium.T,volume.medium.X[1],volume.medium.X[2],volume.medium.X[3],volume.medium.X[4],volume.medium.X[5],volume.medium.X[6],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.p,volume.medium.preferredMediumStates,volume.medium.standardOrderComponents,volume.nPorts,volume.p_start,volume.substanceDynamics,volume.traceDynamics,volume.use_HeatTransfer,volume.use_Re,volume.use_T_start,volume.use_portsData,volume.vesselArea