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: translateModel(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.T|volume.medium.p",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition") translateModel(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.T|volume.medium.p",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002047/0.002047, allocations: 201.8 kB / 8.767 MB, free: 288 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.482/1.482, allocations: 225.6 MB / 234.8 MB, free: 3.266 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009861/0.0009862, allocations: 97.34 kB / 286.7 MB, free: 5.27 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2277/0.2277, allocations: 45.15 MB / 383.8 MB, free: 268 kB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 2.023e-05/2.025e-05, allocations: 0 / 453.2 MB, free: 75.81 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1328/0.1328, allocations: 63.25 MB / 0.5044 GB, free: 12.62 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 2.074/2.207, allocations: 0.7933 GB / 1.298 GB, free: 51.12 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002528/2.207, allocations: 94 kB / 1.298 GB, free: 51.07 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 2.74/4.947, allocations: 0.7216 GB / 2.019 GB, free: 88 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.794e-06/4.947, allocations: 0 / 2.019 GB, free: 88 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 9.145e-05/4.947, allocations: 18.41 kB / 2.019 GB, free: 88 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: 192 * Number of variables: 192 Notification: Performance of Generate backend data structure: time 0.004876/4.952, allocations: 1.401 MB / 2.021 GB, free: 87.48 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.389e-05/4.952, allocations: 11.27 kB / 2.021 GB, free: 87.47 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001673/4.954, allocations: 288.3 kB / 2.021 GB, free: 87.42 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00191/4.956, allocations: 0.6609 MB / 2.022 GB, free: 87.18 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001303/4.956, allocations: 94.19 kB / 2.022 GB, free: 87.12 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002367/4.956, allocations: 48.27 kB / 2.022 GB, free: 87.12 MB / 0.5417 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001418/4.957, allocations: 0.8645 MB / 2.023 GB, free: 87.12 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001504/4.959, allocations: 1.132 MB / 2.024 GB, free: 86.89 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.652e-05/4.959, allocations: 8.703 kB / 2.024 GB, free: 86.89 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001055/4.959, allocations: 3.5 kB / 2.024 GB, free: 86.89 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.536e-05/4.959, allocations: 69.55 kB / 2.024 GB, free: 86.89 MB / 0.5417 GB Warning: The model contains alias variables with conflicting start and/or nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005123/4.964, allocations: 4.736 MB / 2.028 GB, free: 84.15 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003313/4.965, allocations: 257.2 kB / 2.029 GB, free: 84.12 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000161/4.965, allocations: 126.5 kB / 2.029 GB, free: 84.12 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001826/4.965, allocations: 272.5 kB / 2.029 GB, free: 83.84 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.704e-05/4.965, allocations: 37.8 kB / 2.029 GB, free: 83.8 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=28): time 2.485e-06/4.965, allocations: 0 / 2.029 GB, free: 83.8 MB / 0.5417 GB Notification: Performance of matching and sorting (n=33): time 0.005294/4.97, allocations: 1.637 MB / 2.031 GB, free: 83.18 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.924e-05/4.97, allocations: 138 kB / 2.031 GB, free: 83.02 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006285/4.971, allocations: 0.659 MB / 2.031 GB, free: 82.88 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 3.502e-05/4.971, allocations: 25.7 kB / 2.032 GB, free: 82.85 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002665/4.971, allocations: 0.5802 MB / 2.032 GB, free: 82.57 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 7.618e-05/4.971, allocations: 125.2 kB / 2.032 GB, free: 82.52 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.325e-05/4.972, allocations: 0 / 2.032 GB, free: 82.52 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001166/4.972, allocations: 390.5 kB / 2.033 GB, free: 82.2 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002805/4.972, allocations: 238.8 kB / 2.033 GB, free: 82.2 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005186/4.972, allocations: 0.824 MB / 2.034 GB, free: 81.45 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000612/4.973, allocations: 455 kB / 2.034 GB, free: 81.45 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.945e-06/4.973, allocations: 7.125 kB / 2.034 GB, free: 81.45 MB / 0.5417 GB Notification: Performance of matching and sorting (n=130) (initialization): time 0.001478/4.975, allocations: 1.094 MB / 2.035 GB, free: 81.36 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 2.446e-05/4.975, allocations: 13.12 kB / 2.035 GB, free: 81.36 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.723e-05/4.975, allocations: 23.23 kB / 2.035 GB, free: 81.36 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00103/4.976, allocations: 273.2 kB / 2.035 GB, free: 81.35 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005178/4.976, allocations: 205.3 kB / 2.036 GB, free: 81.35 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007913/4.977, allocations: 0.9187 MB / 2.037 GB, free: 80.82 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007466/4.978, allocations: 44.59 kB / 2.037 GB, free: 80.82 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.745e-05/4.978, allocations: 71.69 kB / 2.037 GB, free: 80.82 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.000163/4.978, allocations: 154.1 kB / 2.037 GB, free: 80.71 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.675e-05/4.978, allocations: 83.78 kB / 2.037 GB, free: 80.67 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007986/4.979, allocations: 474.5 kB / 2.037 GB, free: 80.61 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.168e-06/4.979, allocations: 3.938 kB / 2.037 GB, free: 80.61 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.5e-06/4.979, allocations: 0 / 2.037 GB, free: 80.61 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.599e-06/4.979, allocations: 3.719 kB / 2.037 GB, free: 80.61 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001262/4.98, allocations: 1.027 MB / 2.038 GB, free: 80.32 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.356e-06/4.98, allocations: 3.688 kB / 2.038 GB, free: 80.32 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008933/4.981, allocations: 182.4 kB / 2.038 GB, free: 80.32 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.612e-05/4.981, allocations: 20.02 kB / 2.039 GB, free: 80.31 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.691e-05/4.981, allocations: 12.94 kB / 2.039 GB, free: 80.31 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001242/4.983, allocations: 2.585 MB / 2.041 GB, free: 77.86 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.096e-06/4.983, allocations: 3.953 kB / 2.041 GB, free: 77.86 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007314/4.983, allocations: 0.6658 MB / 2.042 GB, free: 77.64 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002106/4.984, allocations: 193.8 kB / 2.042 GB, free: 77.5 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001126/4.984, allocations: 7.766 kB / 2.042 GB, free: 77.5 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004392/4.984, allocations: 17.03 kB / 2.042 GB, free: 77.5 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.311e-05/4.984, allocations: 23.64 kB / 2.042 GB, free: 77.5 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.451e-05/4.984, allocations: 23.34 kB / 2.042 GB, free: 77.5 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.0004398/4.985, allocations: 485.6 kB / 2.042 GB, free: 77.41 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.453e-06/4.985, allocations: 1.781 kB / 2.042 GB, free: 77.41 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.001593/4.986, allocations: 437.9 kB / 2.043 GB, free: 77.38 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.00246/4.989, allocations: 1.443 MB / 2.044 GB, free: 77.16 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.0009577/4.99, allocations: 0.6032 MB / 2.045 GB, free: 77.16 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 3.266e-06/4.99, allocations: 3.562 kB / 2.045 GB, free: 77.16 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.0007086/4.99, allocations: 341.1 kB / 2.045 GB, free: 77.06 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001326/4.992, allocations: 315 kB / 2.045 GB, free: 77.05 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00159/4.993, allocations: 1.124 MB / 2.047 GB, free: 76.73 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004418/4.994, allocations: 1.048 MB / 2.048 GB, free: 76.03 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.0009348/4.995, allocations: 366.4 kB / 2.048 GB, free: 76.01 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000174/4.995, allocations: 69.8 kB / 2.048 GB, free: 76 MB / 0.5417 GB Notification: Performance of SimCode: time 2.9e-07/4.995, allocations: 0 / 2.048 GB, free: 76 MB / 0.5417 GB Notification: Performance of Templates: time 0.0312/5.026, allocations: 21.27 MB / 2.069 GB, free: 75.26 MB / 0.5417 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.makefile (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 & ./ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Media/TestsWithFluid/MediaTestModels/IdealGases/SimpleNaturalGasFixedComposition/SimpleNaturalGasFixedComposition.csv","../files/ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,volume.medium.T,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.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