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/ModelicaServices trunk/package.mo", uses=false) 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/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 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices trunk/package.mo): time 0.001599/0.001599, allocations: 109.1 kB / 17.86 MB, free: 5.504 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002098/0.002098, allocations: 209.7 kB / 18.79 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 2.269/2.269, allocations: 227.4 MB / 246.9 MB, free: 9.004 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.4664/0.4664, allocations: 46.11 MB / 344.3 MB, free: 11.55 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002454/0.002454, allocations: 77.06 kB / 417.5 MB, free: 20.13 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1877/0.1902, allocations: 62.44 MB / 479.9 MB, free: 5.68 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition): time 0.8892/1.079, allocations: 178.5 MB / 0.643 GB, free: 1.285 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.01823/1.098, allocations: 6.712 MB / 0.6496 GB, free: 10.56 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001855/1.1, allocations: 23.81 kB / 0.6496 GB, free: 10.54 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002515/1.102, allocations: 374.2 kB / 0.65 GB, free: 10.17 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009548/1.112, allocations: 1.609 MB / 0.6515 GB, free: 8.562 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007817/1.12, allocations: 1.364 MB / 0.6529 GB, free: 7.207 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.008074/1.128, allocations: 3.136 MB / 0.6559 GB, free: 4.066 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002181/1.13, allocations: 482.1 kB / 0.6564 GB, free: 3.586 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007927/1.138, allocations: 1.647 MB / 0.658 GB, free: 1.934 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005137/1.143, allocations: 1.577 MB / 0.6595 GB, free: 360 kB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005486/1.144, allocations: 36 kB / 0.6596 GB, free: 324 kB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007528/1.152, allocations: 1.797 MB / 0.6613 GB, free: 14.52 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.001173/1.153, allocations: 418.8 kB / 0.6617 GB, free: 14.11 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.001417/1.154, allocations: 0.5094 MB / 0.6622 GB, free: 13.59 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.004927/1.159, allocations: 1.621 MB / 0.6638 GB, free: 11.97 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 8.286e-06/1.159, allocations: 8 kB / 0.6638 GB, free: 11.96 MB / 0.4981 GB Notification: Performance of FrontEnd: time 2.655e-06/1.159, allocations: 0 / 0.6638 GB, free: 11.96 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 3.939e-05/1.159, allocations: 0 / 0.6638 GB, free: 11.96 MB / 0.4981 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.006818/1.166, allocations: 1.445 MB / 0.6652 GB, free: 10.46 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 7.26e-05/1.166, allocations: 16.03 kB / 0.6653 GB, free: 10.45 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002445/1.169, allocations: 282.5 kB / 0.6655 GB, free: 10.17 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002171/1.171, allocations: 0.6013 MB / 0.6661 GB, free: 9.531 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001983/1.171, allocations: 120.6 kB / 0.6662 GB, free: 9.398 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003106/1.171, allocations: 64 kB / 0.6663 GB, free: 9.336 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003376/1.175, allocations: 1.268 MB / 0.6675 GB, free: 8.004 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.404e-05/1.175, allocations: 0 / 0.6675 GB, free: 8.004 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001959/1.175, allocations: 39.98 kB / 0.6676 GB, free: 7.965 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001729/1.175, allocations: 89.19 kB / 0.6676 GB, free: 7.879 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00357/1.179, allocations: 1.051 MB / 0.6687 GB, free: 6.824 MB / 0.4981 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.01361/1.193, allocations: 4.909 MB / 0.6735 GB, free: 1.617 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009254/1.194, allocations: 316.3 kB / 0.6738 GB, free: 1.301 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004984/1.194, allocations: 144.7 kB / 0.6739 GB, free: 1.156 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002053/1.194, allocations: 101.2 kB / 0.674 GB, free: 1.039 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.25e-05/1.194, allocations: 38.56 kB / 0.674 GB, free: 0.9922 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=28): time 4.929e-06/1.194, allocations: 0 / 0.674 GB, free: 0.9922 MB / 0.4981 GB Notification: Performance of matching and sorting (n=33): time 0.01083/1.205, allocations: 1.822 MB / 0.6758 GB, free: 15.09 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000131/1.205, allocations: 136.5 kB / 0.6759 GB, free: 14.92 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002072/1.207, allocations: 0.9427 MB / 0.6769 GB, free: 13.95 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 8.752e-05/1.208, allocations: 33.7 kB / 0.6769 GB, free: 13.91 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007703/1.208, allocations: 0.5595 MB / 0.6774 GB, free: 13.34 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001947/1.209, allocations: 134.3 kB / 0.6776 GB, free: 13.21 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005055/1.209, allocations: 218.6 kB / 0.6778 GB, free: 12.99 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0003232/1.209, allocations: 402.7 kB / 0.6782 GB, free: 12.59 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007915/1.21, allocations: 274.5 kB / 0.6784 GB, free: 12.32 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001507/1.212, allocations: 0.8678 MB / 0.6793 GB, free: 11.16 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002128/1.214, allocations: 1.179 MB / 0.6804 GB, free: 9.707 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.336e-05/1.214, allocations: 7.938 kB / 0.6804 GB, free: 9.699 MB / 0.5137 GB Notification: Performance of matching and sorting (n=130) (initialization): time 0.003687/1.218, allocations: 1.243 MB / 0.6816 GB, free: 8.445 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 4.712e-05/1.218, allocations: 12 kB / 0.6817 GB, free: 8.434 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.122e-05/1.218, allocations: 20 kB / 0.6817 GB, free: 8.414 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002465/1.22, allocations: 293.4 kB / 0.682 GB, free: 8.125 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001167/1.221, allocations: 203.6 kB / 0.6822 GB, free: 7.926 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002055/1.224, allocations: 0.9137 MB / 0.683 GB, free: 6.988 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002027/1.226, allocations: 60.03 kB / 0.6831 GB, free: 6.93 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002159/1.226, allocations: 68 kB / 0.6832 GB, free: 6.863 MB / 0.5137 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 (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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,17)} Notification: Performance of prepare postOptimizeDAE: time 0.0009678/1.227, allocations: 337.2 kB / 0.6835 GB, free: 6.523 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003606/1.227, allocations: 98.81 kB / 0.6836 GB, free: 6.426 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002072/1.229, allocations: 0.5239 MB / 0.6841 GB, free: 5.895 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.79e-05/1.229, allocations: 7.984 kB / 0.6841 GB, free: 5.887 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.292e-05/1.229, allocations: 8 kB / 0.6841 GB, free: 5.879 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.686e-06/1.229, allocations: 0 / 0.6841 GB, free: 5.879 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003146/1.233, allocations: 1.117 MB / 0.6852 GB, free: 4.699 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.214e-06/1.233, allocations: 0 / 0.6852 GB, free: 4.699 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001634/1.234, allocations: 191.8 kB / 0.6854 GB, free: 4.512 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001834/1.234, allocations: 20.84 kB / 0.6854 GB, free: 4.488 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.022e-05/1.234, allocations: 15.94 kB / 0.6854 GB, free: 4.473 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003761/1.238, allocations: 2.68 MB / 0.688 GB, free: 1.531 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.975e-06/1.238, allocations: 0 / 0.688 GB, free: 1.531 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002449/1.241, allocations: 0.7038 MB / 0.6887 GB, free: 0.8047 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009372/1.242, allocations: 188.1 kB / 0.6889 GB, free: 0.6016 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004262/1.242, allocations: 11.94 kB / 0.6889 GB, free: 0.5898 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001152/1.243, allocations: 32.03 kB / 0.6889 GB, free: 0.5586 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001469/1.244, allocations: 31.89 kB / 0.689 GB, free: 0.5273 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.168e-05/1.244, allocations: 23.98 kB / 0.689 GB, free: 0.5039 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.001873/1.246, allocations: 0.6204 MB / 0.6896 GB, free: 15.87 MB / 0.5294 GB Notification: Performance of sort global known variables: time 2.71e-07/1.246, allocations: 0 / 0.6896 GB, free: 15.87 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.003383/1.249, allocations: 395.8 kB / 0.69 GB, free: 15.48 MB / 0.5294 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 (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems 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.00415/1.253, allocations: 0.6418 MB / 0.6906 GB, free: 14.84 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.002722/1.256, allocations: 0.6784 MB / 0.6913 GB, free: 14.16 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.03e-05/1.256, allocations: 0 / 0.6913 GB, free: 14.16 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.001492/1.257, allocations: 371.2 kB / 0.6916 GB, free: 13.79 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004225/1.262, allocations: 402 kB / 0.692 GB, free: 13.4 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006535/1.268, allocations: 1.959 MB / 0.6939 GB, free: 11.4 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001377/1.27, allocations: 1.024 MB / 0.6949 GB, free: 10.34 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006821/1.27, allocations: 91.42 kB / 0.695 GB, free: 10.25 MB / 0.5294 GB Notification: Performance of SimCode: time 1.814e-06/1.27, allocations: 4 kB / 0.695 GB, free: 10.25 MB / 0.5294 GB Notification: Performance of Templates: time 0.4295/1.7, allocations: 22.69 MB / 0.7172 GB, free: 193.7 MB / 0.5294 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Media/TestsWithFluid/MediaTestModels/IdealGases/SimpleNaturalGasFixedComposition/SimpleNaturalGasFixedComposition.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/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:time,volume.medium.T,volume.medium.p