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.001285/0.001285, allocations: 104.2 kB / 16.41 MB, free: 6.465 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.001222/0.001222, allocations: 189.5 kB / 17.34 MB, free: 5.715 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.479/1.479, allocations: 205.1 MB / 223.2 MB, free: 12.22 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.2197/0.2197, allocations: 43.53 MB / 314.1 MB, free: 452 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.002009/0.002009, allocations: 63.91 kB / 441.3 MB, free: 6.156 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1122/0.1142, allocations: 57.79 MB / 499.1 MB, free: 12.29 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas): time 0.4613/0.5756, allocations: 183.1 MB / 0.6662 GB, free: 3.812 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.009929/0.5856, allocations: 6.962 MB / 0.673 GB, free: 12.83 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008587/0.5865, allocations: 23.81 kB / 0.673 GB, free: 12.8 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.001233/0.5877, allocations: 437.6 kB / 0.6735 GB, free: 12.38 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 0.005073/0.5929, allocations: 2.009 MB / 0.6754 GB, free: 10.37 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.004481/0.5974, allocations: 1.707 MB / 0.6771 GB, free: 8.656 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.002885/0.6003, allocations: 2.228 MB / 0.6793 GB, free: 6.422 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001197/0.6015, allocations: 0.7773 MB / 0.68 GB, free: 5.645 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004073/0.6055, allocations: 1.924 MB / 0.6819 GB, free: 3.715 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002742/0.6083, allocations: 1.578 MB / 0.6834 GB, free: 2.133 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 0.0002363/0.6086, allocations: 100 kB / 0.6835 GB, free: 2.035 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003387/0.6119, allocations: 1.598 MB / 0.6851 GB, free: 444 kB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.000731/0.6127, allocations: 0.6859 MB / 0.6858 GB, free: 15.75 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.0009582/0.6137, allocations: 0.751 MB / 0.6865 GB, free: 14.99 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.003829/0.6175, allocations: 2.749 MB / 0.6892 GB, free: 12.23 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 3.647e-06/0.6175, allocations: 0 / 0.6892 GB, free: 12.23 MB / 0.5294 GB Notification: Performance of FrontEnd: time 9.62e-07/0.6175, allocations: 0 / 0.6892 GB, free: 12.23 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 1.822e-05/0.6175, allocations: 0 / 0.6892 GB, free: 12.23 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.003524/0.6211, allocations: 1.721 MB / 0.6909 GB, free: 10.46 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 4.966e-05/0.6211, allocations: 19.83 kB / 0.6909 GB, free: 10.44 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002365/0.6214, allocations: 168.9 kB / 0.691 GB, free: 10.26 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001494/0.6229, allocations: 326.3 kB / 0.6914 GB, free: 9.945 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001319/0.6242, allocations: 0.7733 MB / 0.6921 GB, free: 9.129 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001519/0.6244, allocations: 141.3 kB / 0.6922 GB, free: 8.98 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000179/0.6246, allocations: 111.9 kB / 0.6923 GB, free: 8.871 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002859/0.6274, allocations: 1.841 MB / 0.6941 GB, free: 6.961 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.008e-05/0.6275, allocations: 0 / 0.6941 GB, free: 6.961 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001424/0.6276, allocations: 48 kB / 0.6942 GB, free: 6.914 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001132/0.6277, allocations: 97.89 kB / 0.6943 GB, free: 6.816 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00271/0.6305, allocations: 1.694 MB / 0.6959 GB, free: 5.125 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.01013/0.6406, allocations: 6.919 MB / 0.7027 GB, free: 13.73 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001444/0.6421, allocations: 0.877 MB / 0.7036 GB, free: 12.85 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006951/0.6428, allocations: 454.2 kB / 0.704 GB, free: 12.4 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001913/0.643, allocations: 143.6 kB / 0.7041 GB, free: 12.24 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.552e-05/0.643, allocations: 47.11 kB / 0.7042 GB, free: 12.18 MB / 0.545 GB Notification: Performance of pre-optimization done (n=60): time 2.415e-06/0.643, allocations: 0 / 0.7042 GB, free: 12.18 MB / 0.545 GB Notification: Performance of matching and sorting (n=72): time 0.01095/0.654, allocations: 4.132 MB / 0.7082 GB, free: 7.965 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.751e-05/0.6541, allocations: 111.5 kB / 0.7083 GB, free: 7.832 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001465/0.6556, allocations: 1.109 MB / 0.7094 GB, free: 6.699 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0001108/0.6557, allocations: 41.7 kB / 0.7094 GB, free: 6.652 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004451/0.6561, allocations: 0.5313 MB / 0.71 GB, free: 6.113 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002372/0.6564, allocations: 277.6 kB / 0.7102 GB, free: 5.84 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003776/0.6568, allocations: 214.5 kB / 0.7104 GB, free: 5.625 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.000165/0.6569, allocations: 349.9 kB / 0.7108 GB, free: 5.277 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009607/0.6579, allocations: 0.5804 MB / 0.7113 GB, free: 4.695 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001198/0.6591, allocations: 0.8682 MB / 0.7122 GB, free: 3.711 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002132/0.6613, allocations: 1.447 MB / 0.7136 GB, free: 2.152 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.376e-06/0.6613, allocations: 8 kB / 0.7136 GB, free: 2.145 MB / 0.545 GB Notification: Performance of matching and sorting (n=125) (initialization): time 0.003271/0.6645, allocations: 2 MB / 0.7155 GB, free: 136 kB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 2.337e-05/0.6646, allocations: 8 kB / 0.7156 GB, free: 128 kB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.323e-05/0.6646, allocations: 8 kB / 0.7156 GB, free: 120 kB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004712/0.6693, allocations: 1.325 MB / 0.7169 GB, free: 14.79 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006173/0.67, allocations: 143.8 kB / 0.717 GB, free: 14.65 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003133/0.6731, allocations: 1.928 MB / 0.7189 GB, free: 12.7 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001084/0.6742, allocations: 44.91 kB / 0.7189 GB, free: 12.65 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001447/0.6744, allocations: 67.98 kB / 0.719 GB, free: 12.59 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.0008248/0.6752, allocations: 401.5 kB / 0.7194 GB, free: 12.18 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002708/0.6755, allocations: 119.2 kB / 0.7195 GB, free: 12.07 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002573/0.6781, allocations: 1.395 MB / 0.7208 GB, free: 10.66 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.216e-05/0.6781, allocations: 8 kB / 0.7208 GB, free: 10.65 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.123e-06/0.6781, allocations: 0 / 0.7208 GB, free: 10.65 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.012e-05/0.6781, allocations: 3.984 kB / 0.7208 GB, free: 10.64 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00423/0.6823, allocations: 2.689 MB / 0.7235 GB, free: 7.887 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.242e-06/0.6824, allocations: 4 kB / 0.7235 GB, free: 7.883 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001815/0.6842, allocations: 327.6 kB / 0.7238 GB, free: 7.562 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000207/0.6844, allocations: 76.77 kB / 0.7239 GB, free: 7.484 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.222e-05/0.6845, allocations: 35.98 kB / 0.7239 GB, free: 7.449 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00277/0.6873, allocations: 3.025 MB / 0.7269 GB, free: 4.148 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.693e-06/0.6873, allocations: 0 / 0.7269 GB, free: 4.148 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00326/0.6906, allocations: 1.916 MB / 0.7287 GB, free: 2.211 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000663/0.6912, allocations: 336.2 kB / 0.729 GB, free: 1.863 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001903/0.6914, allocations: 27.98 kB / 0.7291 GB, free: 1.836 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008848/0.6923, allocations: 47.95 kB / 0.7291 GB, free: 1.789 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000189/0.6925, allocations: 60.58 kB / 0.7292 GB, free: 1.727 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000146/0.6927, allocations: 67.94 kB / 0.7292 GB, free: 1.66 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.001158/0.6938, allocations: 0.7969 MB / 0.73 GB, free: 0.8516 MB / 0.5606 GB Notification: Performance of sort global known variables: time 2.324e-06/0.6939, allocations: 0 / 0.73 GB, free: 0.8516 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.001438/0.6953, allocations: 0.5188 MB / 0.7305 GB, free: 340 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.005449/0.7008, allocations: 3.228 MB / 0.7337 GB, free: 13.08 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.002825/0.7036, allocations: 1.481 MB / 0.7351 GB, free: 11.6 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 8.907e-06/0.7036, allocations: 4.656 kB / 0.7351 GB, free: 11.6 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.001725/0.7054, allocations: 0.8624 MB / 0.736 GB, free: 10.72 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003501/0.7089, allocations: 0.7648 MB / 0.7367 GB, free: 9.953 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01952/0.7284, allocations: 12.98 MB / 0.7494 GB, free: 12.62 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008967/0.7293, allocations: 1.176 MB / 0.7505 GB, free: 11.42 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.001292/0.7307, allocations: 413.8 kB / 0.7509 GB, free: 11.01 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006941/0.7314, allocations: 439.3 kB / 0.7514 GB, free: 10.58 MB / 0.5919 GB Notification: Performance of SimCode: time 6.71e-07/0.7314, allocations: 0 / 0.7514 GB, free: 10.58 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3222/1.054, allocations: 51.84 MB / 0.802 GB, free: 204.7 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.32/15.38, allocations: 12.19 kB / 0.802 GB, free: 204.7 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