Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_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_cpp_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_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009971/0.0009972, allocations: 197.2 kB / 16.1 MB, free: 5.707 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.391/1.391, allocations: 226.5 MB / 243.4 MB, free: 8.102 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008227/0.000823, allocations: 95.47 kB / 295.5 MB, free: 6.867 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3576/0.3576, allocations: 44.82 MB / 392.3 MB, free: 35.7 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002938/0.000294, allocations: 8 kB / 465.3 MB, free: 12.64 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3769/0.3772, allocations: 62.96 MB / 0.5159 GB, free: 36.95 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition): time 0.1894/0.5667, allocations: 161.9 MB / 0.674 GB, free: 7.176 MB / 490.7 MB Notification: Performance of NFInst.instExpressions: time 0.009675/0.5764, allocations: 6.208 MB / 0.68 GB, free: 0.9531 MB / 490.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001102/0.5776, allocations: 23.81 kB / 0.68 GB, free: 0.9297 MB / 490.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001428/0.579, allocations: 358.1 kB / 0.6804 GB, free: 0.5781 MB / 490.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:784:36-785:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:782:36-783:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:730:36-731:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:728:36-729:54:writable] Warning: 'each' used when modifying non-array element m_flow. Notification: Performance of NFTyping.typeBindings: time 0.3631/0.9421, allocations: 1.59 MB / 0.6819 GB, free: 5.324 MB / 490.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003739/0.9459, allocations: 1.226 MB / 0.6831 GB, free: 5.305 MB / 490.7 MB Notification: Performance of NFFlatten.flatten: time 0.003312/0.9492, allocations: 2.575 MB / 0.6856 GB, free: 5.305 MB / 490.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007804/0.95, allocations: 470.8 kB / 0.6861 GB, free: 5.27 MB / 490.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003582/0.9536, allocations: 1.66 MB / 0.6877 GB, free: 5.238 MB / 490.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002714/0.9563, allocations: 1.591 MB / 0.6893 GB, free: 5.203 MB / 490.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002207/0.9566, allocations: 36.19 kB / 0.6893 GB, free: 5.203 MB / 490.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004304/0.9609, allocations: 1.921 MB / 0.6912 GB, free: 5.191 MB / 490.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005241/0.9614, allocations: 423.7 kB / 0.6916 GB, free: 5.191 MB / 490.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001066/0.9625, allocations: 0.5171 MB / 0.6921 GB, free: 21.16 MB / 0.4948 GB Notification: Performance of NFConvertDAE.convert: time 0.002457/0.965, allocations: 1.589 MB / 0.6936 GB, free: 21.06 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 5.18e-06/0.965, allocations: 0 / 0.6936 GB, free: 21.06 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.514e-06/0.965, allocations: 0 / 0.6936 GB, free: 21.06 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 1.56e-05/0.965, allocations: 4 kB / 0.6936 GB, free: 21.06 MB / 0.4948 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.002817/0.9678, allocations: 1.243 MB / 0.6949 GB, free: 20.37 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 3.969e-05/0.9679, allocations: 10.09 kB / 0.6949 GB, free: 20.37 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001285/0.9692, allocations: 288.5 kB / 0.6951 GB, free: 20.32 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009969/0.9702, allocations: 0.6127 MB / 0.6957 GB, free: 20.03 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001227/0.9703, allocations: 114.7 kB / 0.6958 GB, free: 19.96 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001137/0.9704, allocations: 69.16 kB / 0.6959 GB, free: 19.96 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002072/0.9725, allocations: 1.262 MB / 0.6971 GB, free: 19.75 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.451e-05/0.9726, allocations: 5.25 kB / 0.6972 GB, free: 19.75 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001114/0.9727, allocations: 31.62 kB / 0.6972 GB, free: 19.75 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001281/0.9728, allocations: 84.83 kB / 0.6973 GB, free: 19.74 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001822/0.9746, allocations: 1.068 MB / 0.6983 GB, free: 19.73 MB / 0.4948 GB 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.006205/0.9809, allocations: 4.814 MB / 0.703 GB, free: 16.96 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004797/0.9813, allocations: 294.2 kB / 0.7033 GB, free: 16.94 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002323/0.9816, allocations: 148.2 kB / 0.7034 GB, free: 16.93 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001077/0.9817, allocations: 97.69 kB / 0.7035 GB, free: 16.83 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.99e-05/0.9817, allocations: 36.03 kB / 0.7036 GB, free: 16.79 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=28): time 2.575e-06/0.9818, allocations: 4.859 kB / 0.7036 GB, free: 16.79 MB / 0.4948 GB Notification: Performance of matching and sorting (n=33): time 0.005579/0.9873, allocations: 1.75 MB / 0.7053 GB, free: 16.11 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.125e-05/0.9874, allocations: 135.3 kB / 0.7054 GB, free: 15.96 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001204/0.9886, allocations: 0.9276 MB / 0.7063 GB, free: 15.79 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 4.361e-05/0.9887, allocations: 37.02 kB / 0.7063 GB, free: 15.75 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003249/0.989, allocations: 0.5593 MB / 0.7069 GB, free: 15.44 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 9.335e-05/0.9891, allocations: 138.7 kB / 0.707 GB, free: 15.36 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.277e-05/0.9892, allocations: 25.97 kB / 0.707 GB, free: 15.36 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0001721/0.9894, allocations: 396.9 kB / 0.7074 GB, free: 15.05 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000444/0.9898, allocations: 269.6 kB / 0.7077 GB, free: 15.05 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007329/0.9905, allocations: 0.8591 MB / 0.7085 GB, free: 14.29 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001184/0.9917, allocations: 1.176 MB / 0.7097 GB, free: 13.54 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.039e-05/0.9918, allocations: 8.562 kB / 0.7097 GB, free: 13.54 MB / 0.4948 GB Notification: Performance of matching and sorting (n=130) (initialization): time 0.00189/0.9937, allocations: 1.223 MB / 0.7109 GB, free: 13.43 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 3.213e-05/0.9937, allocations: 13.38 kB / 0.7109 GB, free: 13.43 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.96e-05/0.9937, allocations: 20.25 kB / 0.7109 GB, free: 13.43 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00129/0.995, allocations: 303.2 kB / 0.7112 GB, free: 13.41 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006167/0.9957, allocations: 202.3 kB / 0.7114 GB, free: 13.41 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001102/0.9968, allocations: 0.9124 MB / 0.7123 GB, free: 12.88 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008637/0.9976, allocations: 69.48 kB / 0.7123 GB, free: 12.88 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.236e-05/0.9977, allocations: 65.97 kB / 0.7124 GB, free: 12.88 MB / 0.4948 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 () * Number of clocked 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.0004809/0.9982, allocations: 344.8 kB / 0.7127 GB, free: 12.75 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001419/0.9984, allocations: 96.56 kB / 0.7128 GB, free: 12.7 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009508/0.9993, allocations: 0.5158 MB / 0.7133 GB, free: 12.62 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.011e-06/0.9994, allocations: 6.812 kB / 0.7133 GB, free: 12.62 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.701e-06/0.9994, allocations: 0 / 0.7133 GB, free: 12.62 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.132e-06/0.9994, allocations: 3 kB / 0.7133 GB, free: 12.62 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001614/1.001, allocations: 1.13 MB / 0.7144 GB, free: 12.29 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.676e-06/1.001, allocations: 4 kB / 0.7144 GB, free: 12.28 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009279/1.002, allocations: 182.5 kB / 0.7146 GB, free: 12.28 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.386e-05/1.002, allocations: 25.06 kB / 0.7146 GB, free: 12.27 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.044e-05/1.002, allocations: 11.33 kB / 0.7147 GB, free: 12.27 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002069/1.004, allocations: 2.675 MB / 0.7173 GB, free: 9.691 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.235e-06/1.004, allocations: 0 / 0.7173 GB, free: 9.691 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009879/1.005, allocations: 0.6911 MB / 0.7179 GB, free: 9.492 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003617/1.006, allocations: 208.9 kB / 0.7181 GB, free: 9.348 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001101/1.006, allocations: 12.7 kB / 0.7182 GB, free: 9.348 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000443/1.006, allocations: 26.58 kB / 0.7182 GB, free: 9.344 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.816e-05/1.006, allocations: 26.78 kB / 0.7182 GB, free: 9.344 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.263e-05/1.006, allocations: 24.66 kB / 0.7182 GB, free: 9.34 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.000889/1.007, allocations: 0.615 MB / 0.7188 GB, free: 9.23 MB / 0.4948 GB Notification: Performance of sort global known variables: time 4.01e-07/1.007, allocations: 0 / 0.7188 GB, free: 9.23 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.001555/1.009, allocations: 386.8 kB / 0.7192 GB, free: 9.203 MB / 0.4948 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 () * Number of clocked 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.0018/1.011, allocations: 0.6509 MB / 0.7198 GB, free: 9.012 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.001237/1.012, allocations: 0.6692 MB / 0.7205 GB, free: 8.992 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 5.13e-06/1.012, allocations: 2.906 kB / 0.7205 GB, free: 8.992 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.0008919/1.013, allocations: 375 kB / 0.7208 GB, free: 8.867 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002118/1.015, allocations: 399.1 kB / 0.7212 GB, free: 8.84 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002961/1.018, allocations: 1.957 MB / 0.7231 GB, free: 7.93 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007118/1.019, allocations: 1.028 MB / 0.7241 GB, free: 7.219 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003675/1.019, allocations: 89.2 kB / 0.7242 GB, free: 7.207 MB / 0.4948 GB Notification: Performance of SimCode: time 1.353e-06/1.019, allocations: 0 / 0.7242 GB, free: 7.207 MB / 0.4948 GB Notification: Performance of Templates: time 0.02827/1.047, allocations: 22.55 MB / 0.7463 GB, free: 9.43 MB / 0.5105 GB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_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_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches