Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_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 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.SimpleNaturalGas,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_SimpleNaturalGas",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas,fileNamePrefix="ModelicaTest_4_0_0_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.001098/0.001098, allocations: 104 kB / 17.63 MB, free: 5.523 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.001009/0.001009, allocations: 192.1 kB / 18.56 MB, free: 4.605 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.341/1.341, allocations: 222.9 MB / 242.3 MB, free: 15.2 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.2091/0.2091, allocations: 44.18 MB / 336.6 MB, free: 2.762 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001266/0.001266, allocations: 59.31 kB / 408.5 MB, free: 27.14 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1184/0.1197, allocations: 60.82 MB / 469.4 MB, free: 14.27 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas): time 0.4176/0.5373, allocations: 177.1 MB / 0.6313 GB, free: 15.54 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.009573/0.5469, allocations: 6.52 MB / 0.6377 GB, free: 8.996 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009252/0.5479, allocations: 19.88 kB / 0.6377 GB, free: 8.977 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001342/0.5493, allocations: 429.6 kB / 0.6381 GB, free: 8.555 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00515/0.5545, allocations: 1.742 MB / 0.6398 GB, free: 6.809 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004471/0.559, allocations: 1.511 MB / 0.6413 GB, free: 5.305 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.00319/0.5622, allocations: 2.235 MB / 0.6435 GB, free: 3.062 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001506/0.5637, allocations: 0.7673 MB / 0.6442 GB, free: 2.293 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004016/0.5677, allocations: 1.733 MB / 0.6459 GB, free: 0.5547 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00327/0.571, allocations: 1.585 MB / 0.6475 GB, free: 14.96 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005397/0.5716, allocations: 100 kB / 0.6476 GB, free: 14.87 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003634/0.5753, allocations: 1.415 MB / 0.649 GB, free: 13.45 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001036/0.5763, allocations: 0.6898 MB / 0.6496 GB, free: 12.76 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001747/0.5781, allocations: 0.7626 MB / 0.6504 GB, free: 11.99 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005431/0.5835, allocations: 2.634 MB / 0.6529 GB, free: 9.352 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.921e-06/0.5836, allocations: 0 / 0.6529 GB, free: 9.352 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.803e-06/0.5836, allocations: 0 / 0.6529 GB, free: 9.352 MB / 494.1 MB Notification: Performance of Transformations before backend: time 8.995e-05/0.5837, allocations: 0 / 0.6529 GB, free: 9.352 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: 276 * Number of variables: 276 Notification: Performance of Generate backend data structure: time 0.005615/0.5893, allocations: 1.722 MB / 0.6546 GB, free: 7.582 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.06e-05/0.5894, allocations: 12.03 kB / 0.6546 GB, free: 7.57 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004932/0.5899, allocations: 176.8 kB / 0.6548 GB, free: 7.387 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001916/0.5918, allocations: 306.2 kB / 0.6551 GB, free: 7.086 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001696/0.5935, allocations: 0.7454 MB / 0.6558 GB, free: 6.297 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001866/0.5937, allocations: 141.4 kB / 0.656 GB, free: 6.145 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002709/0.594, allocations: 107.9 kB / 0.6561 GB, free: 6.039 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002976/0.597, allocations: 1.841 MB / 0.6579 GB, free: 4.129 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.742e-05/0.597, allocations: 11.83 kB / 0.6579 GB, free: 4.117 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000158/0.5972, allocations: 43.98 kB / 0.6579 GB, free: 4.074 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001175/0.5973, allocations: 97.95 kB / 0.658 GB, free: 3.98 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002944/0.6003, allocations: 1.694 MB / 0.6597 GB, free: 2.285 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.01058/0.6109, allocations: 7.006 MB / 0.6665 GB, free: 10.81 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001403/0.6123, allocations: 0.8826 MB / 0.6674 GB, free: 9.918 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007296/0.6131, allocations: 454.2 kB / 0.6678 GB, free: 9.473 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000131/0.6132, allocations: 105.7 kB / 0.6679 GB, free: 9.352 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.806e-05/0.6132, allocations: 47.06 kB / 0.6679 GB, free: 9.297 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=60): time 2.926e-06/0.6133, allocations: 4 kB / 0.668 GB, free: 9.293 MB / 0.4981 GB Notification: Performance of matching and sorting (n=72): time 0.0117/0.625, allocations: 4.228 MB / 0.6721 GB, free: 4.996 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.96e-05/0.6251, allocations: 115.5 kB / 0.6722 GB, free: 4.859 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001456/0.6266, allocations: 1.112 MB / 0.6733 GB, free: 3.723 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0001197/0.6267, allocations: 45.7 kB / 0.6733 GB, free: 3.672 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.000418/0.6271, allocations: 0.5145 MB / 0.6738 GB, free: 3.148 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002412/0.6274, allocations: 272.3 kB / 0.6741 GB, free: 2.879 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004057/0.6278, allocations: 214.5 kB / 0.6743 GB, free: 2.664 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001499/0.6279, allocations: 345.9 kB / 0.6746 GB, free: 2.32 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009503/0.6289, allocations: 0.5758 MB / 0.6752 GB, free: 1.746 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001178/0.6301, allocations: 0.876 MB / 0.676 GB, free: 0.75 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002104/0.6322, allocations: 1.443 MB / 0.6774 GB, free: 15.2 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.581e-06/0.6322, allocations: 8 kB / 0.6775 GB, free: 15.19 MB / 0.5137 GB Notification: Performance of matching and sorting (n=125) (initialization): time 0.003367/0.6356, allocations: 1.996 MB / 0.6794 GB, free: 13.18 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 2.321e-05/0.6356, allocations: 8 kB / 0.6794 GB, free: 13.17 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.467e-05/0.6357, allocations: 8.781 kB / 0.6794 GB, free: 13.16 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005008/0.6407, allocations: 1.374 MB / 0.6808 GB, free: 11.8 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00065/0.6413, allocations: 147.7 kB / 0.6809 GB, free: 11.65 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002941/0.6443, allocations: 1.92 MB / 0.6828 GB, free: 9.703 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001029/0.6453, allocations: 43.97 kB / 0.6828 GB, free: 9.66 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001662/0.6455, allocations: 63.98 kB / 0.6829 GB, free: 9.598 MB / 0.5137 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.0009905/0.6465, allocations: 401.5 kB / 0.6833 GB, free: 9.195 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003204/0.6469, allocations: 118.6 kB / 0.6834 GB, free: 9.078 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002916/0.6498, allocations: 1.496 MB / 0.6848 GB, free: 7.57 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.009e-05/0.6498, allocations: 8 kB / 0.6848 GB, free: 7.562 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.564e-06/0.6498, allocations: 0 / 0.6848 GB, free: 7.562 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.918e-06/0.6498, allocations: 3.984 kB / 0.6848 GB, free: 7.559 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004475/0.6543, allocations: 2.692 MB / 0.6875 GB, free: 4.801 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.969e-06/0.6543, allocations: 0 / 0.6875 GB, free: 4.801 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001911/0.6563, allocations: 327.6 kB / 0.6878 GB, free: 4.48 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002145/0.6565, allocations: 72.69 kB / 0.6879 GB, free: 4.406 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.204e-05/0.6566, allocations: 31.98 kB / 0.6879 GB, free: 4.375 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002757/0.6594, allocations: 3.033 MB / 0.6908 GB, free: 1.062 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.214e-06/0.6594, allocations: 192 / 0.6908 GB, free: 1.062 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003181/0.6626, allocations: 1.899 MB / 0.6927 GB, free: 15.14 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000709/0.6633, allocations: 339.6 kB / 0.693 GB, free: 14.79 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003036/0.6636, allocations: 27.98 kB / 0.6931 GB, free: 14.77 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001078/0.6647, allocations: 47.95 kB / 0.6931 GB, free: 14.72 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001822/0.6649, allocations: 64.45 kB / 0.6932 GB, free: 14.66 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001752/0.6651, allocations: 67.94 kB / 0.6932 GB, free: 14.59 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.001212/0.6663, allocations: 0.8008 MB / 0.694 GB, free: 13.78 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.3e-07/0.6663, allocations: 0 / 0.694 GB, free: 13.78 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.001683/0.668, allocations: 487.9 kB / 0.6945 GB, free: 13.3 MB / 0.5294 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.005635/0.6736, allocations: 3.117 MB / 0.6975 GB, free: 10.15 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.003565/0.6772, allocations: 1.798 MB / 0.6993 GB, free: 8.355 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 9.438e-06/0.6772, allocations: 5.719 kB / 0.6993 GB, free: 8.348 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.00174/0.679, allocations: 0.873 MB / 0.7001 GB, free: 7.465 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004032/0.683, allocations: 0.7649 MB / 0.7009 GB, free: 6.719 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2138/0.8969, allocations: 13.67 MB / 0.7142 GB, free: 201.9 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008006/0.8977, allocations: 1.178 MB / 0.7154 GB, free: 201.2 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.001637/0.8994, allocations: 481.6 kB / 0.7158 GB, free: 201.2 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006576/0.9, allocations: 444.3 kB / 0.7163 GB, free: 200.9 MB / 0.5294 GB Notification: Performance of SimCode: time 1.553e-06/0.9001, allocations: 0 / 0.7163 GB, free: 200.9 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07233/0.9724, allocations: 49.83 MB / 0.7649 GB, free: 162.5 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.69/13.67, allocations: 11.22 kB / 0.7649 GB, free: 162.5 MB / 0.5294 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_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_4_0_0_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_SimpleNaturalGas.fmu > ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Media/TestsWithFluid/MediaTestModels/IdealGases/SimpleNaturalGas/SimpleNaturalGas.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches