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: "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_SimpleNaturalGasFixedComposition",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_SimpleNaturalGasFixedComposition",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001513/0.001513, allocations: 106.3 kB / 17.63 MB, free: 5.344 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.001769/0.001769, allocations: 192 kB / 18.56 MB, free: 4.434 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.379/1.379, allocations: 222.9 MB / 242.3 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2028/0.2028, allocations: 44.18 MB / 336.6 MB, free: 2.742 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001239/0.001239, allocations: 69.09 kB / 408.5 MB, free: 27.11 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1125/0.1137, allocations: 60.82 MB / 469.4 MB, free: 14.25 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition): time 0.418/0.5318, allocations: 177.3 MB / 0.6315 GB, free: 15.39 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.009785/0.5416, allocations: 6.518 MB / 0.6378 GB, free: 8.852 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009573/0.5426, allocations: 23.88 kB / 0.6379 GB, free: 8.828 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001411/0.544, allocations: 417.6 kB / 0.6383 GB, free: 8.418 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004833/0.5489, allocations: 1.729 MB / 0.64 GB, free: 6.684 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003861/0.5528, allocations: 1.486 MB / 0.6414 GB, free: 5.203 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.002922/0.5558, allocations: 2.117 MB / 0.6435 GB, free: 3.082 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001022/0.5568, allocations: 0.5334 MB / 0.644 GB, free: 2.547 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00393/0.5607, allocations: 1.698 MB / 0.6456 GB, free: 0.8438 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002744/0.5635, allocations: 1.472 MB / 0.6471 GB, free: 15.37 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002892/0.5638, allocations: 76 kB / 0.6472 GB, free: 15.29 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002901/0.5667, allocations: 1.376 MB / 0.6485 GB, free: 13.91 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005343/0.5673, allocations: 442.8 kB / 0.6489 GB, free: 13.48 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001038/0.5683, allocations: 0.5563 MB / 0.6495 GB, free: 12.92 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003659/0.572, allocations: 2.08 MB / 0.6515 GB, free: 10.84 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.572, allocations: 7.938 kB / 0.6515 GB, free: 10.83 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.572, allocations: 4 kB / 0.6515 GB, free: 10.82 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.783e-05/0.5721, allocations: 0 / 0.6515 GB, free: 10.82 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.004232/0.5763, allocations: 1.45 MB / 0.6529 GB, free: 9.324 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.911e-05/0.5764, allocations: 12.03 kB / 0.6529 GB, free: 9.312 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002953/0.5767, allocations: 130.7 kB / 0.6531 GB, free: 9.176 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001685/0.5784, allocations: 278.6 kB / 0.6533 GB, free: 8.902 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001329/0.5797, allocations: 0.6129 MB / 0.6539 GB, free: 8.25 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001547/0.5799, allocations: 112.7 kB / 0.654 GB, free: 8.129 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001933/0.5801, allocations: 63.98 kB / 0.6541 GB, free: 8.066 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002275/0.5824, allocations: 1.267 MB / 0.6553 GB, free: 6.727 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.145e-05/0.5824, allocations: 7.938 kB / 0.6553 GB, free: 6.719 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001465/0.5826, allocations: 32 kB / 0.6554 GB, free: 6.688 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001029/0.5827, allocations: 85.25 kB / 0.6555 GB, free: 6.605 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00176/0.5845, allocations: 1.051 MB / 0.6565 GB, free: 5.555 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.007524/0.592, allocations: 4.952 MB / 0.6613 GB, free: 312 kB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005473/0.5926, allocations: 303.1 kB / 0.6616 GB, free: 0 / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002673/0.5929, allocations: 150.8 kB / 0.6617 GB, free: 15.85 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001079/0.593, allocations: 93.09 kB / 0.6618 GB, free: 15.74 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.944e-05/0.593, allocations: 42.5 kB / 0.6619 GB, free: 15.69 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=28): time 1.653e-06/0.593, allocations: 4 kB / 0.6619 GB, free: 15.68 MB / 0.4981 GB Notification: Performance of matching and sorting (n=33): time 0.006544/0.5996, allocations: 1.814 MB / 0.6637 GB, free: 13.79 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.412e-05/0.5997, allocations: 136.5 kB / 0.6638 GB, free: 13.62 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001227/0.6009, allocations: 0.9349 MB / 0.6647 GB, free: 12.66 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 5.28e-05/0.601, allocations: 41.64 kB / 0.6647 GB, free: 12.61 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004118/0.6014, allocations: 0.5672 MB / 0.6653 GB, free: 12.04 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.000119/0.6015, allocations: 134.3 kB / 0.6654 GB, free: 11.9 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002889/0.6018, allocations: 218.6 kB / 0.6656 GB, free: 11.68 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001699/0.602, allocations: 398.7 kB / 0.666 GB, free: 11.29 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004665/0.6025, allocations: 274.5 kB / 0.6663 GB, free: 11.02 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008947/0.6034, allocations: 0.8717 MB / 0.6671 GB, free: 9.859 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001377/0.6048, allocations: 1.173 MB / 0.6683 GB, free: 8.41 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.939e-06/0.6048, allocations: 4 kB / 0.6683 GB, free: 8.406 MB / 0.4981 GB Notification: Performance of matching and sorting (n=130) (initialization): time 0.002053/0.6068, allocations: 1.243 MB / 0.6695 GB, free: 7.152 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 2.747e-05/0.6069, allocations: 14.19 kB / 0.6695 GB, free: 7.141 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.103e-05/0.6069, allocations: 20 kB / 0.6695 GB, free: 7.121 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001308/0.6082, allocations: 291.9 kB / 0.6698 GB, free: 6.836 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005711/0.6088, allocations: 211.6 kB / 0.67 GB, free: 6.629 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001149/0.61, allocations: 0.9098 MB / 0.6709 GB, free: 5.695 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007777/0.6108, allocations: 47.98 kB / 0.6709 GB, free: 5.648 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.762e-05/0.6109, allocations: 64 kB / 0.671 GB, free: 5.586 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.0004609/0.6113, allocations: 349.2 kB / 0.6713 GB, free: 5.234 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001729/0.6115, allocations: 90.97 kB / 0.6714 GB, free: 5.145 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00109/0.6126, allocations: 0.5132 MB / 0.6719 GB, free: 4.621 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.911e-06/0.6126, allocations: 4.047 kB / 0.6719 GB, free: 4.617 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.346e-06/0.6126, allocations: 3.984 kB / 0.6719 GB, free: 4.613 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.179e-06/0.6126, allocations: 3.938 kB / 0.6719 GB, free: 4.609 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001773/0.6144, allocations: 1.137 MB / 0.673 GB, free: 3.41 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.316e-06/0.6144, allocations: 0 / 0.673 GB, free: 3.41 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001024/0.6155, allocations: 179.8 kB / 0.6732 GB, free: 3.234 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.863e-05/0.6156, allocations: 28.78 kB / 0.6732 GB, free: 3.203 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.14e-05/0.6156, allocations: 8 kB / 0.6732 GB, free: 3.195 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002153/0.6178, allocations: 2.869 MB / 0.676 GB, free: 48 kB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.324e-06/0.6178, allocations: 4.031 kB / 0.676 GB, free: 44 kB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001166/0.619, allocations: 0.699 MB / 0.6767 GB, free: 15.32 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003775/0.6194, allocations: 200 kB / 0.6769 GB, free: 15.11 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001885/0.6196, allocations: 8 kB / 0.6769 GB, free: 15.1 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004893/0.6201, allocations: 19.98 kB / 0.6769 GB, free: 15.08 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.112e-05/0.6202, allocations: 23.97 kB / 0.677 GB, free: 15.05 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.484e-05/0.6202, allocations: 15.98 kB / 0.677 GB, free: 15.04 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0009696/0.6212, allocations: 0.6243 MB / 0.6776 GB, free: 14.4 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.2e-07/0.6212, allocations: 0 / 0.6776 GB, free: 14.4 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.001499/0.6227, allocations: 383.8 kB / 0.678 GB, free: 14.03 MB / 0.5137 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.003359/0.6261, allocations: 1.807 MB / 0.6797 GB, free: 12.2 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.001556/0.6276, allocations: 0.7168 MB / 0.6804 GB, free: 11.48 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 6.813e-06/0.6277, allocations: 7.938 kB / 0.6804 GB, free: 11.47 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0009617/0.6286, allocations: 371 kB / 0.6808 GB, free: 11.1 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002144/0.6308, allocations: 433.7 kB / 0.6812 GB, free: 10.69 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0124/0.6432, allocations: 8.569 MB / 0.6896 GB, free: 1.363 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006968/0.6439, allocations: 1.032 MB / 0.6906 GB, free: 308 kB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.001265/0.6452, allocations: 371.2 kB / 0.6909 GB, free: 15.94 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004999/0.6457, allocations: 323.3 kB / 0.6912 GB, free: 15.62 MB / 0.5294 GB Notification: Performance of SimCode: time 1.253e-06/0.6457, allocations: 3.938 kB / 0.6912 GB, free: 15.62 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2498/0.8956, allocations: 30.05 MB / 0.7206 GB, free: 202.4 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.36/13.26, allocations: 2.875 kB / 0.7206 GB, free: 202.4 MB / 0.5294 GB (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 & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition_res.csv --start-time 0 --stop-time 1.01 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000404 ModelicaTest_4_0_0_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_SimpleNaturalGasFixedComposition.fmu > 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.csv","/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_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches