Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.T|volume.medium.p",fileNamePrefix="Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition") translateModel(Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.T|volume.medium.p",fileNamePrefix="Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001316/0.001316, allocations: 104.5 kB / 18.35 MB, free: 4.645 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001036/0.001036, allocations: 191 kB / 19.29 MB, free: 3.715 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.303/1.303, allocations: 205.1 MB / 225.2 MB, free: 12.27 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001185/0.001186, allocations: 47.92 kB / 282.1 MB, free: 2.477 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07927/0.08046, allocations: 46.63 MB / 328.7 MB, free: 3.777 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition): time 0.3208/0.4013, allocations: 175.6 MB / 0.4926 GB, free: 6.98 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.004115/0.4054, allocations: 3.84 MB / 0.4963 GB, free: 3.129 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001516/0.4056, allocations: 8 kB / 0.4963 GB, free: 3.121 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000632/0.4063, allocations: 230.7 kB / 0.4965 GB, free: 2.895 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005678/0.4069, allocations: 362.1 kB / 0.4969 GB, free: 2.539 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001233/0.4081, allocations: 0.5341 MB / 0.4974 GB, free: 2.004 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001079/0.4092, allocations: 1.103 MB / 0.4985 GB, free: 0.8945 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000185/0.4094, allocations: 105.2 kB / 0.4986 GB, free: 0.7969 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002326/0.4117, allocations: 1.259 MB / 0.4998 GB, free: 15.54 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003904/0.4121, allocations: 330.8 kB / 0.5001 GB, free: 15.21 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 7.489e-05/0.4122, allocations: 44 kB / 0.5002 GB, free: 15.17 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009245/0.4131, allocations: 459.1 kB / 0.5006 GB, free: 14.72 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002141/0.4134, allocations: 235.4 kB / 0.5008 GB, free: 14.49 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003479/0.4137, allocations: 314.8 kB / 0.5011 GB, free: 14.18 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001109/0.4148, allocations: 1.079 MB / 0.5022 GB, free: 13.1 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.196e-06/0.4148, allocations: 4 kB / 0.5022 GB, free: 13.1 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.362e-06/0.4149, allocations: 0 / 0.5022 GB, free: 13.1 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.124e-05/0.4149, allocations: 0 / 0.5022 GB, free: 13.1 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 93 * Number of variables: 93 Notification: Performance of Generate backend data structure: time 0.001235/0.4161, allocations: 0.7997 MB / 0.503 GB, free: 12.25 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.359e-05/0.4161, allocations: 12.03 kB / 0.503 GB, free: 12.23 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006038/0.4168, allocations: 120.2 kB / 0.5031 GB, free: 12.12 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005973/0.4174, allocations: 377.2 kB / 0.5034 GB, free: 11.71 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.864e-05/0.4174, allocations: 29 kB / 0.5035 GB, free: 11.68 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.621e-05/0.4175, allocations: 39.94 kB / 0.5035 GB, free: 11.64 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008641/0.4184, allocations: 0.5693 MB / 0.5041 GB, free: 11.05 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.85e-05/0.4184, allocations: 11.92 kB / 0.5041 GB, free: 11.04 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.835e-05/0.4184, allocations: 16 kB / 0.5041 GB, free: 11.02 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.092e-05/0.4185, allocations: 12 kB / 0.5041 GB, free: 11.01 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006277/0.4191, allocations: 446.3 kB / 0.5045 GB, free: 10.57 MB / 414.1 MB Warning: The model contains alias variables with redundant start and/or conflicting 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.003432/0.4225, allocations: 2.124 MB / 0.5066 GB, free: 8.273 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002436/0.4228, allocations: 158.5 kB / 0.5068 GB, free: 8.113 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001171/0.4229, allocations: 80.83 kB / 0.5068 GB, free: 8.031 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.432e-05/0.423, allocations: 0 / 0.5068 GB, free: 8.031 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.51e-05/0.423, allocations: 34.56 kB / 0.5069 GB, free: 7.988 MB / 414.1 MB Notification: Performance of pre-optimization done (n=18): time 1.132e-06/0.423, allocations: 0 / 0.5069 GB, free: 7.988 MB / 414.1 MB Warning: Some equations could not be differentiated for following variables having attribute stateSelect=StateSelect.prefer. They will be treated as if they had stateSelect=StateSelect.default ======================================== 1: volume.medium.T Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=23): time 0.005985/0.429, allocations: 1.741 MB / 0.5086 GB, free: 6.098 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.17e-05/0.429, allocations: 55.41 kB / 0.5086 GB, free: 6.031 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004915/0.4295, allocations: 489.6 kB / 0.5091 GB, free: 5.547 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.852e-05/0.4296, allocations: 29.7 kB / 0.5091 GB, free: 5.512 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002115/0.4298, allocations: 322.3 kB / 0.5094 GB, free: 5.188 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.801e-05/0.4299, allocations: 82.84 kB / 0.5095 GB, free: 5.105 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001472/0.43, allocations: 130.1 kB / 0.5096 GB, free: 4.973 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001478/0.4302, allocations: 350.8 kB / 0.51 GB, free: 4.621 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002185/0.4304, allocations: 137.2 kB / 0.5101 GB, free: 4.488 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004548/0.4308, allocations: 444.5 kB / 0.5105 GB, free: 3.91 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006933/0.4316, allocations: 0.6013 MB / 0.5111 GB, free: 3.164 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.401e-06/0.4316, allocations: 8 kB / 0.5111 GB, free: 3.156 MB / 414.1 MB Notification: Performance of matching and sorting (n=75) (initialization): time 0.0009366/0.4325, allocations: 0.6358 MB / 0.5117 GB, free: 2.508 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.98e-05/0.4325, allocations: 12 kB / 0.5117 GB, free: 2.496 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.121e-05/0.4326, allocations: 8 kB / 0.5118 GB, free: 2.488 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001882/0.4328, allocations: 57.69 kB / 0.5118 GB, free: 2.426 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004842/0.4332, allocations: 143.8 kB / 0.5119 GB, free: 2.285 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001327/0.4346, allocations: 1.95 MB / 0.5138 GB, free: 176 kB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003426/0.4349, allocations: 20 kB / 0.5139 GB, free: 156 kB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.938e-05/0.435, allocations: 41.19 kB / 0.5139 GB, free: 116 kB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 47 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (73): * Single equations (assignments): 71 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,1), (1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0002065/0.4352, allocations: 209.6 kB / 0.5141 GB, free: 15.89 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.449e-05/0.4353, allocations: 43.47 kB / 0.5141 GB, free: 15.85 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005668/0.4359, allocations: 294.9 kB / 0.5144 GB, free: 15.55 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.118e-06/0.4359, allocations: 0 / 0.5144 GB, free: 15.55 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.246e-06/0.4359, allocations: 0 / 0.5144 GB, free: 15.55 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0004867/0.4364, allocations: 0.5358 MB / 0.515 GB, free: 14.93 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009308/0.4373, allocations: 0.6902 MB / 0.5156 GB, free: 14.18 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.234e-06/0.4373, allocations: 0 / 0.5156 GB, free: 14.18 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002776/0.4376, allocations: 59.89 kB / 0.5157 GB, free: 14.12 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.698e-05/0.4377, allocations: 24.78 kB / 0.5157 GB, free: 14.09 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.939e-05/0.4377, allocations: 4.875 kB / 0.5157 GB, free: 14.09 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000879/0.4386, allocations: 1.382 MB / 0.5171 GB, free: 12.56 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.475e-06/0.4386, allocations: 8.094 kB / 0.5171 GB, free: 12.55 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005464/0.4392, allocations: 423.7 kB / 0.5175 GB, free: 12.12 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001169/0.4393, allocations: 120.6 kB / 0.5176 GB, free: 11.98 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.063e-05/0.4394, allocations: 7.938 kB / 0.5176 GB, free: 11.98 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002534/0.4396, allocations: 8 kB / 0.5176 GB, free: 11.97 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.774e-05/0.4397, allocations: 23.81 kB / 0.5176 GB, free: 11.95 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.017e-05/0.4397, allocations: 20.05 kB / 0.5176 GB, free: 11.93 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0003389/0.4401, allocations: 327.1 kB / 0.518 GB, free: 11.61 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4401, allocations: 3.938 kB / 0.518 GB, free: 11.61 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0007567/0.4408, allocations: 211.9 kB / 0.5182 GB, free: 11.4 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (volume.medium.p,volume.medium.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (23): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.00113/0.442, allocations: 458.8 kB / 0.5186 GB, free: 10.94 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0006936/0.4427, allocations: 460.6 kB / 0.519 GB, free: 10.48 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.634e-06/0.4427, allocations: 0 / 0.519 GB, free: 10.48 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002336/0.4429, allocations: 207.2 kB / 0.5192 GB, free: 10.27 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009958/0.4439, allocations: 226.4 kB / 0.5195 GB, free: 10.05 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001291/0.4453, allocations: 0.866 MB / 0.5203 GB, free: 9.156 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003977/0.4457, allocations: 0.8234 MB / 0.5211 GB, free: 8.305 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0003804/0.4461, allocations: 132.6 kB / 0.5212 GB, free: 8.172 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001006/0.4462, allocations: 47.42 kB / 0.5213 GB, free: 8.125 MB / 430.1 MB Notification: Performance of SimCode: time 3e-07/0.4462, allocations: 0 / 0.5213 GB, free: 8.125 MB / 430.1 MB Notification: Performance of Templates: time 0.01754/0.4637, allocations: 12.3 MB / 0.5333 GB, free: 11.79 MB / 446.1 MB make -j1 -f Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.makefile (rm -f Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.pipe ; mkfifo Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.pipe >> ../files/Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.sim & ./Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Media/Examples/Tests/MediaTestModels/IdealGases/SimpleNaturalGasFixedComposition/SimpleNaturalGasFixedComposition.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches