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.001131/0.001131, allocations: 106.9 kB / 16.41 MB, free: 6.402 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.001077/0.001077, allocations: 192.4 kB / 17.34 MB, free: 5.691 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.421/1.421, allocations: 205.1 MB / 223.2 MB, free: 12.21 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.2096/0.2096, allocations: 43.51 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.001339/0.001339, allocations: 71.91 kB / 441.3 MB, free: 6.141 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1135/0.1148, allocations: 57.79 MB / 499.1 MB, free: 12.28 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas): time 0.4529/0.5677, allocations: 183.1 MB / 0.6662 GB, free: 3.82 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.00966/0.5775, allocations: 6.961 MB / 0.673 GB, free: 12.84 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008979/0.5784, allocations: 23.81 kB / 0.673 GB, free: 12.81 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.001448/0.5799, allocations: 453.5 kB / 0.6735 GB, free: 12.37 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 0.005908/0.5858, allocations: 2.038 MB / 0.6755 GB, free: 10.33 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.005058/0.5909, allocations: 1.709 MB / 0.6771 GB, free: 8.617 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.003144/0.5941, allocations: 2.235 MB / 0.6793 GB, free: 6.375 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001506/0.5956, allocations: 0.7744 MB / 0.6801 GB, free: 5.602 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004383/0.6, allocations: 1.939 MB / 0.682 GB, free: 3.656 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003175/0.6032, allocations: 1.589 MB / 0.6835 GB, free: 2.062 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 0.0004124/0.6036, allocations: 100 kB / 0.6836 GB, free: 1.965 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003694/0.6073, allocations: 1.591 MB / 0.6852 GB, free: 380 kB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.0008821/0.6082, allocations: 0.6859 MB / 0.6858 GB, free: 15.68 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.001533/0.6097, allocations: 0.7587 MB / 0.6866 GB, free: 14.92 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.004225/0.614, allocations: 2.745 MB / 0.6893 GB, free: 12.17 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 3.987e-06/0.614, allocations: 0 / 0.6893 GB, free: 12.17 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.453e-06/0.614, allocations: 0 / 0.6893 GB, free: 12.17 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 6.523e-05/0.6141, 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.004663/0.6187, allocations: 1.721 MB / 0.6909 GB, free: 10.39 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 5.181e-05/0.6188, allocations: 15.83 kB / 0.6909 GB, free: 10.38 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003898/0.6192, allocations: 184.8 kB / 0.6911 GB, free: 10.18 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001657/0.6209, allocations: 315 kB / 0.6914 GB, free: 9.875 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001688/0.6226, allocations: 0.7733 MB / 0.6922 GB, free: 9.059 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001953/0.6228, allocations: 145.3 kB / 0.6923 GB, free: 8.906 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003014/0.6231, allocations: 99.95 kB / 0.6924 GB, free: 8.809 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003288/0.6264, allocations: 1.837 MB / 0.6942 GB, free: 6.902 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.128e-05/0.6264, allocations: 11.94 kB / 0.6942 GB, free: 6.891 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000161/0.6266, allocations: 44 kB / 0.6943 GB, free: 6.848 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001114/0.6267, allocations: 93.95 kB / 0.6944 GB, free: 6.754 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002632/0.6294, allocations: 1.698 MB / 0.696 GB, free: 5.059 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.009997/0.6394, allocations: 6.922 MB / 0.7028 GB, free: 13.66 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001299/0.6407, allocations: 0.8749 MB / 0.7036 GB, free: 12.78 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006481/0.6414, allocations: 454.3 kB / 0.7041 GB, free: 12.34 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001785/0.6416, allocations: 131.6 kB / 0.7042 GB, free: 12.19 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.907e-05/0.6416, allocations: 51.12 kB / 0.7042 GB, free: 12.12 MB / 0.545 GB Notification: Performance of pre-optimization done (n=60): time 2.885e-06/0.6416, allocations: 0 / 0.7042 GB, free: 12.12 MB / 0.545 GB Notification: Performance of matching and sorting (n=72): time 0.01168/0.6533, allocations: 4.148 MB / 0.7083 GB, free: 7.891 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.152e-05/0.6534, allocations: 107.5 kB / 0.7084 GB, free: 7.762 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001609/0.655, allocations: 1.109 MB / 0.7095 GB, free: 6.629 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0001453/0.6552, allocations: 41.7 kB / 0.7095 GB, free: 6.582 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004229/0.6556, allocations: 0.5313 MB / 0.71 GB, free: 6.043 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002524/0.6559, allocations: 281.7 kB / 0.7103 GB, free: 5.766 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003774/0.6563, allocations: 206.6 kB / 0.7105 GB, free: 5.559 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001347/0.6564, allocations: 349.9 kB / 0.7108 GB, free: 5.211 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009316/0.6573, allocations: 0.5875 MB / 0.7114 GB, free: 4.621 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001143/0.6585, allocations: 0.8682 MB / 0.7122 GB, free: 3.637 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002086/0.6606, allocations: 1.447 MB / 0.7137 GB, free: 2.078 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.626e-06/0.6606, allocations: 4 kB / 0.7137 GB, free: 2.074 MB / 0.545 GB Notification: Performance of matching and sorting (n=125) (initialization): time 0.003459/0.6641, allocations: 2.005 MB / 0.7156 GB, free: 60 kB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 2.534e-05/0.6641, allocations: 8 kB / 0.7156 GB, free: 52 kB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.948e-05/0.6642, allocations: 8 kB / 0.7156 GB, free: 44 kB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004704/0.6689, allocations: 1.32 MB / 0.7169 GB, free: 14.72 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006583/0.6695, allocations: 147.8 kB / 0.7171 GB, free: 14.57 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002848/0.6724, allocations: 1.928 MB / 0.7189 GB, free: 12.62 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001076/0.6735, allocations: 43.97 kB / 0.719 GB, free: 12.58 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001558/0.6737, allocations: 63.98 kB / 0.7191 GB, free: 12.52 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.000785/0.6745, allocations: 405.6 kB / 0.7194 GB, free: 12.11 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003473/0.6748, allocations: 123.2 kB / 0.7196 GB, free: 11.99 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002489/0.6773, allocations: 1.395 MB / 0.7209 GB, free: 10.58 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.107e-06/0.6773, allocations: 8 kB / 0.7209 GB, free: 10.57 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.859e-06/0.6773, allocations: 4 kB / 0.7209 GB, free: 10.57 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.027e-06/0.6774, allocations: 3.984 kB / 0.7209 GB, free: 10.56 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004479/0.6818, allocations: 2.68 MB / 0.7236 GB, free: 7.812 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.528e-06/0.6819, allocations: 4.031 kB / 0.7236 GB, free: 7.809 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00182/0.6837, allocations: 327.6 kB / 0.7239 GB, free: 7.488 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001886/0.6839, allocations: 68.75 kB / 0.7239 GB, free: 7.418 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.399e-05/0.684, allocations: 39.97 kB / 0.724 GB, free: 7.379 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002373/0.6864, allocations: 3.025 MB / 0.7269 GB, free: 4.078 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.854e-06/0.6864, allocations: 3.938 kB / 0.7269 GB, free: 4.074 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002921/0.6893, allocations: 1.912 MB / 0.7288 GB, free: 2.141 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008099/0.6901, allocations: 340.2 kB / 0.7291 GB, free: 1.789 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000273/0.6904, allocations: 24 kB / 0.7291 GB, free: 1.766 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001035/0.6915, allocations: 55.88 kB / 0.7292 GB, free: 1.711 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001509/0.6916, allocations: 60.52 kB / 0.7293 GB, free: 1.648 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001348/0.6918, allocations: 71.94 kB / 0.7293 GB, free: 1.578 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.001124/0.6929, allocations: 0.793 MB / 0.7301 GB, free: 0.7734 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.11e-07/0.6929, allocations: 0 / 0.7301 GB, free: 0.7734 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.00162/0.6945, allocations: 0.5188 MB / 0.7306 GB, free: 260 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.005252/0.6998, allocations: 3.217 MB / 0.7337 GB, free: 13.02 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.00266/0.7025, allocations: 1.473 MB / 0.7352 GB, free: 11.54 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 7.725e-06/0.7025, allocations: 8.656 kB / 0.7352 GB, free: 11.54 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.001631/0.7041, allocations: 0.8663 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.003502/0.7076, allocations: 0.7604 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.01963/0.7273, allocations: 12.98 MB / 0.7495 GB, free: 12.56 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009847/0.7283, allocations: 1.172 MB / 0.7506 GB, free: 11.36 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.001487/0.7298, allocations: 421.8 kB / 0.751 GB, free: 10.94 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000749/0.7306, allocations: 439.3 kB / 0.7514 GB, free: 10.51 MB / 0.5919 GB Notification: Performance of SimCode: time 8.31e-07/0.7306, allocations: 0 / 0.7514 GB, free: 10.51 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3821/1.113, allocations: 51.84 MB / 0.8021 GB, free: 205.5 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.39/14.5, allocations: 4.188 kB / 0.8021 GB, free: 205.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