Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.T|volume.medium.p",fileNamePrefix="ModelicaTest_4.0.0_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_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001016/0.001016, allocations: 93.42 kB / 17.35 MB, free: 6.375 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.001333/0.001333, allocations: 179.3 kB / 18.26 MB, free: 5.52 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.423/1.423, allocations: 223.2 MB / 242.3 MB, free: 236 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2333/0.2333, allocations: 44.25 MB / 337.7 MB, free: 2.68 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003224/0.0003223, allocations: 9.125 kB / 410.3 MB, free: 27.32 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1178/0.1182, allocations: 61.92 MB / 472.3 MB, free: 13.36 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition): time 0.45/0.5682, allocations: 173.3 MB / 0.6304 GB, free: 5.367 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.0103/0.5785, allocations: 6.619 MB / 0.6369 GB, free: 14.73 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001199/0.5798, allocations: 35.69 kB / 0.6369 GB, free: 14.7 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001174/0.581, allocations: 366.2 kB / 0.6373 GB, free: 14.34 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004296/0.5853, allocations: 1.612 MB / 0.6389 GB, free: 12.72 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00383/0.5891, allocations: 1.352 MB / 0.6402 GB, free: 11.38 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.003985/0.5931, allocations: 3.124 MB / 0.6432 GB, free: 8.246 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009815/0.5941, allocations: 473.4 kB / 0.6437 GB, free: 7.777 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004281/0.5984, allocations: 1.616 MB / 0.6453 GB, free: 6.156 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003372/0.6018, allocations: 1.523 MB / 0.6467 GB, free: 4.629 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001801/0.602, allocations: 36 kB / 0.6468 GB, free: 4.594 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003751/0.6058, allocations: 1.797 MB / 0.6485 GB, free: 2.793 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005791/0.6064, allocations: 414.8 kB / 0.6489 GB, free: 2.387 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000845/0.6072, allocations: 0.5384 MB / 0.6495 GB, free: 1.84 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003683/0.6109, allocations: 2.166 MB / 0.6516 GB, free: 15.67 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.662e-06/0.6109, allocations: 0 / 0.6516 GB, free: 15.67 MB / 494.1 MB Notification: Performance of FrontEnd: time 2.725e-06/0.6109, allocations: 3.938 kB / 0.6516 GB, free: 15.66 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.355e-05/0.611, allocations: 0 / 0.6516 GB, free: 15.66 MB / 494.1 MB 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.003042/0.614, allocations: 1.243 MB / 0.6528 GB, free: 14.37 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.189e-05/0.6141, allocations: 19.95 kB / 0.6528 GB, free: 14.35 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001414/0.6155, allocations: 294.5 kB / 0.6531 GB, free: 14.06 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001026/0.6165, allocations: 0.6014 MB / 0.6537 GB, free: 13.42 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001376/0.6167, allocations: 116.6 kB / 0.6538 GB, free: 13.3 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001381/0.6168, allocations: 71.92 kB / 0.6539 GB, free: 13.23 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001973/0.6188, allocations: 1.269 MB / 0.6551 GB, free: 11.89 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.408e-05/0.6188, allocations: 4 kB / 0.6551 GB, free: 11.88 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001142/0.619, allocations: 31.98 kB / 0.6551 GB, free: 11.85 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001074/0.6191, allocations: 81.27 kB / 0.6552 GB, free: 11.77 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001773/0.6208, allocations: 1.051 MB / 0.6562 GB, free: 10.72 MB / 494.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.008096/0.629, allocations: 4.886 MB / 0.661 GB, free: 5.535 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005638/0.6295, allocations: 306.6 kB / 0.6613 GB, free: 5.227 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002367/0.6298, allocations: 140.8 kB / 0.6614 GB, free: 5.086 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001072/0.6299, allocations: 105 kB / 0.6615 GB, free: 4.965 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.685e-05/0.63, allocations: 38.56 kB / 0.6616 GB, free: 4.918 MB / 494.1 MB Notification: Performance of pre-optimization done (n=28): time 2.785e-06/0.63, allocations: 0 / 0.6616 GB, free: 4.918 MB / 494.1 MB Notification: Performance of matching and sorting (n=33): time 0.006663/0.6366, allocations: 1.754 MB / 0.6633 GB, free: 3.078 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.738e-05/0.6368, allocations: 132.5 kB / 0.6634 GB, free: 2.918 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001397/0.6382, allocations: 0.9427 MB / 0.6643 GB, free: 1.949 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 6.022e-05/0.6382, allocations: 33.7 kB / 0.6644 GB, free: 1.91 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005695/0.6388, allocations: 0.5633 MB / 0.6649 GB, free: 1.336 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001523/0.639, allocations: 138.2 kB / 0.665 GB, free: 1.199 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001229/0.6391, allocations: 93.67 kB / 0.6651 GB, free: 1.102 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0002052/0.6393, allocations: 398.7 kB / 0.6655 GB, free: 0.7031 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004343/0.6398, allocations: 274.5 kB / 0.6658 GB, free: 448 kB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009013/0.6407, allocations: 0.8679 MB / 0.6666 GB, free: 15.28 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001741/0.6424, allocations: 1.176 MB / 0.6678 GB, free: 13.82 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.107e-05/0.6425, allocations: 8 kB / 0.6678 GB, free: 13.82 MB / 0.4981 GB Notification: Performance of matching and sorting (n=130) (initialization): time 0.002108/0.6446, allocations: 1.232 MB / 0.669 GB, free: 12.57 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 2.968e-05/0.6446, allocations: 16 kB / 0.669 GB, free: 12.56 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.193e-05/0.6446, allocations: 20 kB / 0.669 GB, free: 12.54 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001363/0.646, allocations: 288.7 kB / 0.6693 GB, free: 12.25 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006647/0.6467, allocations: 203.6 kB / 0.6695 GB, free: 12.05 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001187/0.6479, allocations: 0.9151 MB / 0.6704 GB, free: 11.11 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008911/0.6488, allocations: 67.94 kB / 0.6704 GB, free: 11.05 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.76e-05/0.6489, allocations: 68 kB / 0.6705 GB, free: 10.98 MB / 0.4981 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.0005145/0.6494, allocations: 341.8 kB / 0.6708 GB, free: 10.64 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001393/0.6495, allocations: 98.89 kB / 0.6709 GB, free: 10.54 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001051/0.6506, allocations: 0.524 MB / 0.6714 GB, free: 10.01 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.614e-06/0.6506, allocations: 4 kB / 0.6714 GB, free: 10 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.294e-06/0.6506, allocations: 0 / 0.6714 GB, free: 10 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.023e-06/0.6506, allocations: 3.984 kB / 0.6715 GB, free: 10 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001851/0.6525, allocations: 1.125 MB / 0.6725 GB, free: 8.816 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.728e-06/0.6525, allocations: 4 kB / 0.6726 GB, free: 8.812 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009861/0.6535, allocations: 183.8 kB / 0.6727 GB, free: 8.633 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.601e-05/0.6536, allocations: 24.84 kB / 0.6728 GB, free: 8.605 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.789e-05/0.6537, allocations: 11.94 kB / 0.6728 GB, free: 8.594 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002089/0.6558, allocations: 2.676 MB / 0.6754 GB, free: 5.648 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.6558, allocations: 0 / 0.6754 GB, free: 5.648 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001107/0.6569, allocations: 0.6991 MB / 0.6761 GB, free: 4.926 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003464/0.6572, allocations: 211.9 kB / 0.6763 GB, free: 4.699 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001039/0.6573, allocations: 11.98 kB / 0.6763 GB, free: 4.688 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000438/0.6578, allocations: 23.98 kB / 0.6763 GB, free: 4.664 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.926e-05/0.6579, allocations: 31.89 kB / 0.6763 GB, free: 4.633 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.921e-05/0.6579, allocations: 16 kB / 0.6763 GB, free: 4.617 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0008321/0.6588, allocations: 0.6282 MB / 0.677 GB, free: 3.977 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.5e-07/0.6588, allocations: 0 / 0.677 GB, free: 3.977 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.001433/0.6602, allocations: 387.9 kB / 0.6773 GB, free: 3.598 MB / 0.4981 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.002091/0.6623, allocations: 0.6438 MB / 0.678 GB, free: 2.953 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.001574/0.6639, allocations: 0.6791 MB / 0.6786 GB, free: 2.277 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 6.022e-06/0.6639, allocations: 3.938 kB / 0.6786 GB, free: 2.273 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0009831/0.6649, allocations: 386.6 kB / 0.679 GB, free: 1.883 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00235/0.6673, allocations: 395.6 kB / 0.6794 GB, free: 1.5 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002945/0.6702, allocations: 1.986 MB / 0.6813 GB, free: 15.48 MB / 0.5138 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007459/0.671, allocations: 1.028 MB / 0.6823 GB, free: 14.42 MB / 0.5138 GB Notification: Performance of simCode: alias equations: time 0.001461/0.6725, allocations: 386.1 kB / 0.6827 GB, free: 14.04 MB / 0.5138 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002684/0.6728, allocations: 79.42 kB / 0.6828 GB, free: 13.96 MB / 0.5138 GB Notification: Performance of SimCode: time 1.693e-06/0.6728, allocations: 0 / 0.6828 GB, free: 13.96 MB / 0.5138 GB Notification: Performance of Templates: time 0.03872/0.7115, allocations: 20.25 MB / 0.7025 GB, free: 9.938 MB / 0.5294 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.sim & ./ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches