Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_SimpleNaturalGas",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas,fileNamePrefix="ModelicaTest_trunk_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 trunk/package.mo): time 0.001501/0.001501, allocations: 104.1 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001342/0.001342, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.385/1.385, allocations: 227.4 MB / 246.8 MB, free: 10.52 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2207/0.2207, allocations: 46.11 MB / 344.1 MB, free: 11.56 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001377/0.001377, allocations: 74.84 kB / 417.7 MB, free: 19.61 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1215/0.1229, allocations: 62.44 MB / 480.1 MB, free: 5.145 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas): time 0.4773/0.6003, allocations: 180 MB / 0.6447 GB, free: 15.14 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.01001/0.6103, allocations: 6.497 MB / 0.6511 GB, free: 8.617 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009369/0.6113, allocations: 19.88 kB / 0.6511 GB, free: 8.598 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00138/0.6127, allocations: 437.6 kB / 0.6515 GB, free: 8.168 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004891/0.6177, allocations: 1.76 MB / 0.6532 GB, free: 6.406 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004146/0.6218, allocations: 1.511 MB / 0.6547 GB, free: 4.898 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.002799/0.6246, allocations: 2.228 MB / 0.6569 GB, free: 2.668 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001381/0.626, allocations: 0.757 MB / 0.6576 GB, free: 1.906 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004146/0.6302, allocations: 1.795 MB / 0.6594 GB, free: 108 kB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002906/0.6331, allocations: 1.613 MB / 0.6609 GB, free: 14.49 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.0004513/0.6336, allocations: 100 kB / 0.661 GB, free: 14.39 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003522/0.6371, allocations: 1.423 MB / 0.6624 GB, free: 12.97 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0009598/0.6381, allocations: 0.6898 MB / 0.6631 GB, free: 12.28 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.001374/0.6395, allocations: 0.7587 MB / 0.6638 GB, free: 11.52 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.004409/0.6439, allocations: 2.646 MB / 0.6664 GB, free: 8.863 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 6.382e-06/0.644, allocations: 4 kB / 0.6664 GB, free: 8.859 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.623e-06/0.644, allocations: 0 / 0.6664 GB, free: 8.859 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 5.833e-05/0.644, allocations: 0 / 0.6664 GB, free: 8.859 MB / 0.4981 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.004278/0.6483, allocations: 1.719 MB / 0.6681 GB, free: 7.09 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.086e-05/0.6484, allocations: 12.03 kB / 0.6681 GB, free: 7.078 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002538/0.6486, allocations: 168.9 kB / 0.6683 GB, free: 6.902 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001558/0.6502, allocations: 318.2 kB / 0.6686 GB, free: 6.59 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001236/0.6514, allocations: 0.7493 MB / 0.6693 GB, free: 5.797 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001196/0.6516, allocations: 133.4 kB / 0.6694 GB, free: 5.652 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001791/0.6518, allocations: 108 kB / 0.6695 GB, free: 5.547 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002676/0.6544, allocations: 1.841 MB / 0.6713 GB, free: 3.637 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.089e-05/0.6545, allocations: 11.84 kB / 0.6713 GB, free: 3.625 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001443/0.6546, allocations: 44 kB / 0.6714 GB, free: 3.582 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001079/0.6547, allocations: 93.95 kB / 0.6715 GB, free: 3.492 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002687/0.6574, allocations: 1.694 MB / 0.6731 GB, free: 1.793 MB / 0.4981 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.009936/0.6674, allocations: 6.985 MB / 0.68 GB, free: 10.34 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001384/0.6688, allocations: 0.8692 MB / 0.6808 GB, free: 9.457 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006575/0.6695, allocations: 455 kB / 0.6812 GB, free: 9.012 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000131/0.6696, allocations: 105.7 kB / 0.6813 GB, free: 8.891 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.227e-05/0.6697, allocations: 51.06 kB / 0.6814 GB, free: 8.832 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=60): time 2.645e-06/0.6697, allocations: 0 / 0.6814 GB, free: 8.832 MB / 0.5137 GB Notification: Performance of matching and sorting (n=72): time 0.01105/0.6807, allocations: 4.247 MB / 0.6855 GB, free: 4.523 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.329e-05/0.6808, allocations: 111.5 kB / 0.6856 GB, free: 4.391 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001401/0.6822, allocations: 1.12 MB / 0.6867 GB, free: 3.246 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.0001147/0.6824, allocations: 49.64 kB / 0.6868 GB, free: 3.191 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004011/0.6828, allocations: 0.5184 MB / 0.6873 GB, free: 2.664 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002255/0.683, allocations: 260.3 kB / 0.6875 GB, free: 2.406 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003534/0.6834, allocations: 214.5 kB / 0.6877 GB, free: 2.191 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001246/0.6835, allocations: 345.9 kB / 0.6881 GB, free: 1.848 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000906/0.6844, allocations: 0.5836 MB / 0.6886 GB, free: 1.266 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001079/0.6855, allocations: 0.8721 MB / 0.6895 GB, free: 280 kB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002038/0.6875, allocations: 1.454 MB / 0.6909 GB, free: 14.71 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.479e-06/0.6875, allocations: 0 / 0.6909 GB, free: 14.71 MB / 0.5294 GB Notification: Performance of matching and sorting (n=125) (initialization): time 0.003164/0.6907, allocations: 2.004 MB / 0.6929 GB, free: 12.69 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 2.217e-05/0.6908, allocations: 11.98 kB / 0.6929 GB, free: 12.68 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.234e-05/0.6908, allocations: 8 kB / 0.6929 GB, free: 12.67 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005048/0.6958, allocations: 1.35 MB / 0.6942 GB, free: 11.33 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006941/0.6966, allocations: 143.8 kB / 0.6943 GB, free: 11.19 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002944/0.6995, allocations: 1.924 MB / 0.6962 GB, free: 9.234 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009575/0.7005, allocations: 43.97 kB / 0.6963 GB, free: 9.191 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001162/0.7006, allocations: 67.98 kB / 0.6963 GB, free: 9.125 MB / 0.5294 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.0007348/0.7014, allocations: 405.4 kB / 0.6967 GB, free: 8.719 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002507/0.7016, allocations: 118.6 kB / 0.6968 GB, free: 8.602 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002607/0.7042, allocations: 1.492 MB / 0.6983 GB, free: 7.098 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.183e-05/0.7042, allocations: 8 kB / 0.6983 GB, free: 7.09 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.438e-06/0.7043, allocations: 8 kB / 0.6983 GB, free: 7.082 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.607e-06/0.7043, allocations: 3.984 kB / 0.6983 GB, free: 7.078 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004374/0.7087, allocations: 2.684 MB / 0.7009 GB, free: 4.324 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.649e-06/0.7087, allocations: 4 kB / 0.7009 GB, free: 4.32 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001855/0.7105, allocations: 323.6 kB / 0.7012 GB, free: 4.004 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001989/0.7108, allocations: 68.69 kB / 0.7013 GB, free: 3.934 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001565/0.7109, allocations: 43.92 kB / 0.7013 GB, free: 3.891 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002636/0.7136, allocations: 3.033 MB / 0.7043 GB, free: 0.5781 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.456e-06/0.7136, allocations: 4.141 kB / 0.7043 GB, free: 0.5742 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1945/0.9081, allocations: 1.9 MB / 0.7062 GB, free: 197.7 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007672/0.9089, allocations: 330.5 kB / 0.7065 GB, free: 197.6 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002161/0.9092, allocations: 26.97 kB / 0.7065 GB, free: 197.6 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000992/0.9102, allocations: 50.55 kB / 0.7066 GB, free: 197.6 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002004/0.9104, allocations: 62.28 kB / 0.7066 GB, free: 197.6 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001265/0.9105, allocations: 64.94 kB / 0.7067 GB, free: 197.6 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.001209/0.9117, allocations: 0.796 MB / 0.7075 GB, free: 197.5 MB / 0.5294 GB Notification: Performance of sort global known variables: time 6.91e-07/0.9117, allocations: 0 / 0.7075 GB, free: 197.5 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.001524/0.9133, allocations: 492.4 kB / 0.7079 GB, free: 197.5 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.008197/0.9215, allocations: 3.129 MB / 0.711 GB, free: 196.2 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.005639/0.9272, allocations: 1.801 MB / 0.7127 GB, free: 195.7 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.557e-05/0.9272, allocations: 4.25 kB / 0.7127 GB, free: 195.7 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.00268/0.9299, allocations: 0.8594 MB / 0.7136 GB, free: 195.4 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005908/0.9358, allocations: 0.7626 MB / 0.7143 GB, free: 195.2 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03229/0.9682, allocations: 13.69 MB / 0.7277 GB, free: 188.5 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009379/0.9692, allocations: 1.17 MB / 0.7288 GB, free: 187.8 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.003148/0.9723, allocations: 494.2 kB / 0.7293 GB, free: 187.7 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001046/0.9734, allocations: 449 kB / 0.7297 GB, free: 187.4 MB / 0.5294 GB Notification: Performance of SimCode: time 7.31e-07/0.9734, allocations: 0 / 0.7297 GB, free: 187.4 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07486/1.048, allocations: 49.84 MB / 0.7784 GB, free: 139.8 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.78/13.82, allocations: 6.859 kB / 0.7784 GB, free: 139.8 MB / 0.5294 GB (rm -f ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_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_trunk_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_SimpleNaturalGas.fmu > ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches