Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) 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: "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_SimpleNaturalGas",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_SimpleNaturalGas",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.001467/0.001467, allocations: 109.1 kB / 16.41 MB, free: 6.504 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.001381/0.001382, allocations: 189.5 kB / 17.34 MB, free: 5.738 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.458/1.458, allocations: 205.1 MB / 223.2 MB, free: 12.24 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2223/0.2224, allocations: 43.51 MB / 314.1 MB, free: 460 kB / 254.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.001429/0.001429, allocations: 67.91 kB / 441.3 MB, free: 6.137 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1182/0.1197, allocations: 57.79 MB / 499.1 MB, free: 12.27 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas): time 0.4757/0.5955, allocations: 183.1 MB / 0.6662 GB, free: 3.82 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.009337/0.6048, allocations: 6.966 MB / 0.673 GB, free: 12.83 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007053/0.6056, allocations: 19.88 kB / 0.673 GB, free: 12.81 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.001355/0.607, allocations: 445.5 kB / 0.6735 GB, free: 12.38 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 0.005445/0.6125, allocations: 2.039 MB / 0.6755 GB, free: 10.34 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.004808/0.6173, allocations: 1.715 MB / 0.6771 GB, free: 8.617 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.002694/0.62, allocations: 2.235 MB / 0.6793 GB, free: 6.375 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001303/0.6213, allocations: 0.7782 MB / 0.6801 GB, free: 5.598 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004379/0.6257, allocations: 1.939 MB / 0.682 GB, free: 3.652 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003076/0.6288, allocations: 1.581 MB / 0.6835 GB, free: 2.066 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 0.0004129/0.6292, allocations: 100 kB / 0.6836 GB, free: 1.969 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003777/0.633, allocations: 1.598 MB / 0.6852 GB, free: 376 kB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.0009277/0.634, allocations: 0.6859 MB / 0.6858 GB, free: 15.68 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.001537/0.6355, allocations: 0.751 MB / 0.6866 GB, free: 14.93 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.005082/0.6406, allocations: 2.745 MB / 0.6892 GB, free: 12.17 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 6.613e-06/0.6406, allocations: 4 kB / 0.6893 GB, free: 12.17 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.202e-06/0.6406, allocations: 0 / 0.6893 GB, free: 12.17 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 8.097e-05/0.6407, allocations: 0 / 0.6893 GB, free: 12.17 MB / 0.5294 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 276 * Number of variables: 276 Notification: Performance of Generate backend data structure: time 0.004698/0.6454, allocations: 1.724 MB / 0.6909 GB, free: 10.39 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 4.747e-05/0.6455, allocations: 19.83 kB / 0.691 GB, free: 10.37 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000427/0.6459, allocations: 180.8 kB / 0.6911 GB, free: 10.18 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001709/0.6477, allocations: 311 kB / 0.6914 GB, free: 9.879 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001597/0.6493, allocations: 0.7733 MB / 0.6922 GB, free: 9.062 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001519/0.6494, allocations: 141.3 kB / 0.6923 GB, free: 8.914 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002383/0.6497, allocations: 111.9 kB / 0.6924 GB, free: 8.805 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003156/0.6528, allocations: 1.841 MB / 0.6942 GB, free: 6.895 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.024e-05/0.6529, allocations: 4 kB / 0.6942 GB, free: 6.891 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001674/0.6531, allocations: 47.94 kB / 0.6943 GB, free: 6.844 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001113/0.6532, allocations: 89.95 kB / 0.6944 GB, free: 6.754 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002893/0.6561, allocations: 1.694 MB / 0.696 GB, free: 5.062 MB / 0.5294 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.01046/0.6666, allocations: 6.922 MB / 0.7028 GB, free: 13.66 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001408/0.668, allocations: 0.877 MB / 0.7036 GB, free: 12.78 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006763/0.6687, allocations: 454.2 kB / 0.7041 GB, free: 12.34 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002091/0.6689, allocations: 139.6 kB / 0.7042 GB, free: 12.18 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.013e-05/0.669, allocations: 43.12 kB / 0.7042 GB, free: 12.12 MB / 0.545 GB Notification: Performance of pre-optimization done (n=60): time 2.765e-06/0.669, allocations: 4 kB / 0.7042 GB, free: 12.12 MB / 0.545 GB Notification: Performance of matching and sorting (n=72): time 0.01168/0.6807, allocations: 4.131 MB / 0.7083 GB, free: 7.902 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.731e-05/0.6808, allocations: 119.4 kB / 0.7084 GB, free: 7.762 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001697/0.6825, allocations: 1.105 MB / 0.7095 GB, free: 6.633 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0001257/0.6826, allocations: 41.7 kB / 0.7095 GB, free: 6.586 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004629/0.6831, allocations: 0.5313 MB / 0.71 GB, free: 6.047 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002629/0.6834, allocations: 281.7 kB / 0.7103 GB, free: 5.77 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004051/0.6838, allocations: 210.5 kB / 0.7105 GB, free: 5.559 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001572/0.6839, allocations: 349.9 kB / 0.7108 GB, free: 5.211 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009719/0.6849, allocations: 0.5797 MB / 0.7114 GB, free: 4.629 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001163/0.6861, allocations: 0.8721 MB / 0.7122 GB, free: 3.641 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00208/0.6882, allocations: 1.454 MB / 0.7137 GB, free: 2.074 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.414e-06/0.6882, allocations: 0 / 0.7137 GB, free: 2.074 MB / 0.545 GB Notification: Performance of matching and sorting (n=125) (initialization): time 0.003356/0.6916, allocations: 2 MB / 0.7156 GB, free: 64 kB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 2.657e-05/0.6916, allocations: 8.875 kB / 0.7156 GB, free: 56 kB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.533e-05/0.6916, allocations: 8 kB / 0.7156 GB, free: 48 kB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004692/0.6963, allocations: 1.335 MB / 0.7169 GB, free: 14.71 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006127/0.697, allocations: 135.8 kB / 0.7171 GB, free: 14.57 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002896/0.6999, allocations: 1.928 MB / 0.7189 GB, free: 12.62 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009491/0.7008, allocations: 43.97 kB / 0.719 GB, free: 12.58 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001269/0.701, allocations: 67.98 kB / 0.7191 GB, free: 12.51 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 37 * 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 (82): * Single equations (assignments): 81 * 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 {(9,35)} Notification: Performance of prepare postOptimizeDAE: time 0.0007065/0.7017, allocations: 397.5 kB / 0.7194 GB, free: 12.11 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003259/0.702, allocations: 119.2 kB / 0.7195 GB, free: 12 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002734/0.7048, allocations: 1.395 MB / 0.7209 GB, free: 10.59 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.376e-05/0.7048, allocations: 11.94 kB / 0.7209 GB, free: 10.57 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.839e-06/0.7048, allocations: 3.984 kB / 0.7209 GB, free: 10.57 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.081e-05/0.7048, allocations: 3.984 kB / 0.7209 GB, free: 10.57 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004776/0.7096, allocations: 2.685 MB / 0.7236 GB, free: 7.812 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.232e-06/0.7096, allocations: 0 / 0.7236 GB, free: 7.812 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001785/0.7114, allocations: 319.7 kB / 0.7239 GB, free: 7.5 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002047/0.7116, allocations: 80.72 kB / 0.7239 GB, free: 7.418 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001151/0.7118, allocations: 35.97 kB / 0.724 GB, free: 7.383 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002901/0.7147, allocations: 3.025 MB / 0.7269 GB, free: 4.082 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.374e-06/0.7147, allocations: 8.031 kB / 0.7269 GB, free: 4.074 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003279/0.718, allocations: 1.912 MB / 0.7288 GB, free: 2.141 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007443/0.7187, allocations: 340.2 kB / 0.7291 GB, free: 1.789 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000289/0.719, allocations: 24 kB / 0.7291 GB, free: 1.766 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001087/0.7201, allocations: 51.94 kB / 0.7292 GB, free: 1.715 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002069/0.7203, allocations: 64.52 kB / 0.7293 GB, free: 1.648 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001813/0.7205, allocations: 59.95 kB / 0.7293 GB, free: 1.59 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.00133/0.7219, allocations: 0.8047 MB / 0.7301 GB, free: 0.7734 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.11e-07/0.7219, allocations: 0 / 0.7301 GB, free: 0.7734 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.002132/0.724, allocations: 0.5149 MB / 0.7306 GB, free: 264 kB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 8 (volume.medium.p,volume.medium.Xi[1],volume.medium.Xi[2],volume.medium.Xi[3],volume.medium.Xi[4],volume.medium.Xi[5],volume.medium.Xi[6],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 (78): * Single equations (assignments): 76 * 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.006427/0.7305, allocations: 3.224 MB / 0.7338 GB, free: 13.01 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.003055/0.7335, allocations: 1.477 MB / 0.7352 GB, free: 11.54 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 8.526e-06/0.7335, allocations: 4.656 kB / 0.7352 GB, free: 11.53 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.001824/0.7354, allocations: 0.8624 MB / 0.736 GB, free: 10.66 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003689/0.7391, allocations: 0.7607 MB / 0.7368 GB, free: 9.895 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02109/0.7602, allocations: 12.99 MB / 0.7495 GB, free: 12.55 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001134/0.7614, allocations: 1.18 MB / 0.7506 GB, free: 11.34 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.001649/0.763, allocations: 413.8 kB / 0.751 GB, free: 10.94 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000861/0.7639, allocations: 443.2 kB / 0.7514 GB, free: 10.5 MB / 0.5919 GB Notification: Performance of SimCode: time 1.644e-06/0.7639, allocations: 0 / 0.7514 GB, free: 10.5 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3665/1.13, allocations: 51.84 MB / 0.8021 GB, free: 204.6 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.06/15.19, allocations: 4.188 kB / 0.8021 GB, free: 204.5 MB / 0.5919 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.sim & python3 -m fmpy simulate --output-file ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas_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_3_2_3_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_SimpleNaturalGas.fmu > ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Media/TestsWithFluid/MediaTestModels/IdealGases/SimpleNaturalGas/SimpleNaturalGas.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches