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.0015/0.0015, allocations: 114.4 kB / 17.78 MB, free: 5.258 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.001658/0.001658, allocations: 183.8 kB / 18.72 MB, free: 4.332 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.373/1.373, allocations: 222.9 MB / 242.4 MB, free: 15.04 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.2168/0.2168, allocations: 44.19 MB / 336.8 MB, free: 2.652 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001262/0.001262, allocations: 63.89 kB / 470.1 MB, free: 13.65 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3879/0.3892, allocations: 60.81 MB / 0.5184 GB, free: 3.293 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas): time 0.2103/0.5995, allocations: 177.1 MB / 0.6914 GB, free: 10.33 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.009068/0.6086, allocations: 6.509 MB / 0.6978 GB, free: 3.797 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009028/0.6096, allocations: 19.88 kB / 0.6978 GB, free: 3.777 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.001447/0.611, allocations: 445.5 kB / 0.6982 GB, free: 3.34 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.004802/0.6159, allocations: 1.768 MB / 0.6999 GB, free: 1.57 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0041/0.62, allocations: 1.527 MB / 0.7014 GB, free: 48 kB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.002993/0.623, allocations: 2.235 MB / 0.7036 GB, free: 13.8 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00142/0.6245, allocations: 0.7656 MB / 0.7044 GB, free: 13.04 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003972/0.6285, allocations: 1.76 MB / 0.7061 GB, free: 11.27 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003161/0.6316, allocations: 1.578 MB / 0.7076 GB, free: 9.688 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.0004461/0.6321, allocations: 100 kB / 0.7077 GB, free: 9.59 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003753/0.6359, allocations: 1.337 MB / 0.709 GB, free: 8.25 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0009226/0.6368, allocations: 0.6898 MB / 0.7097 GB, free: 7.559 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.001634/0.6385, allocations: 0.7548 MB / 0.7104 GB, free: 6.801 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.004736/0.6432, allocations: 2.632 MB / 0.713 GB, free: 4.16 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 5.411e-06/0.6433, allocations: 0 / 0.713 GB, free: 4.16 MB / 0.5606 GB Notification: Performance of FrontEnd: time 3.065e-06/0.6433, allocations: 3.984 kB / 0.713 GB, free: 4.156 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 7.934e-05/0.6433, allocations: 0 / 0.713 GB, free: 4.156 MB / 0.5606 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.005066/0.6484, allocations: 1.746 MB / 0.7147 GB, free: 2.355 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.55e-05/0.6485, allocations: 8.031 kB / 0.7147 GB, free: 2.348 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004159/0.6489, allocations: 176.9 kB / 0.7149 GB, free: 2.164 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001767/0.6507, allocations: 315 kB / 0.7152 GB, free: 1.855 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001846/0.6525, allocations: 0.7809 MB / 0.716 GB, free: 1.031 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001477/0.6527, allocations: 141.4 kB / 0.7161 GB, free: 0.8828 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003042/0.653, allocations: 108 kB / 0.7162 GB, free: 0.7773 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3111/0.9642, allocations: 1.829 MB / 0.718 GB, free: 189.6 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.892e-05/0.9643, allocations: 7.469 kB / 0.718 GB, free: 189.6 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004556/0.9648, allocations: 51.11 kB / 0.718 GB, free: 189.5 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000213/0.965, allocations: 92.53 kB / 0.7181 GB, free: 189.5 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004139/0.9692, allocations: 1.699 MB / 0.7198 GB, free: 189 MB / 0.5606 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.011/0.9802, allocations: 6.888 MB / 0.7265 GB, free: 184.3 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001274/0.9815, allocations: 0.8749 MB / 0.7274 GB, free: 183.9 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006449/0.9821, allocations: 454.4 kB / 0.7278 GB, free: 183.6 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000118/0.9823, allocations: 104.9 kB / 0.7279 GB, free: 183.5 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.025e-05/0.9823, allocations: 45.91 kB / 0.7279 GB, free: 183.5 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=60): time 2.685e-06/0.9823, allocations: 3.094 kB / 0.7279 GB, free: 183.5 MB / 0.5606 GB Notification: Performance of matching and sorting (n=72): time 0.01136/0.9937, allocations: 4.14 MB / 0.732 GB, free: 181.2 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.669e-05/0.9938, allocations: 111.1 kB / 0.7321 GB, free: 181.1 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001725/0.9955, allocations: 1.105 MB / 0.7332 GB, free: 180.5 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0001574/0.9957, allocations: 43.7 kB / 0.7332 GB, free: 180.4 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003275/0.996, allocations: 0.5316 MB / 0.7337 GB, free: 179.9 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002165/0.9963, allocations: 274.7 kB / 0.734 GB, free: 179.7 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003866/0.9967, allocations: 207.3 kB / 0.7342 GB, free: 179.6 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 6.948e-05/0.9967, allocations: 349.4 kB / 0.7345 GB, free: 179.3 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009039/0.9976, allocations: 0.5907 MB / 0.7351 GB, free: 179 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00107/0.9987, allocations: 0.8703 MB / 0.736 GB, free: 178.3 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001858/1.001, allocations: 1.446 MB / 0.7374 GB, free: 177.4 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.149e-05/1.001, allocations: 2 kB / 0.7374 GB, free: 177.4 MB / 0.5606 GB Notification: Performance of matching and sorting (n=125) (initialization): time 0.003383/1.004, allocations: 2.015 MB / 0.7393 GB, free: 176.3 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 3.001e-05/1.004, allocations: 7.875 kB / 0.7393 GB, free: 176.3 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.663e-05/1.004, allocations: 9.469 kB / 0.7393 GB, free: 176.3 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004509/1.009, allocations: 1.348 MB / 0.7407 GB, free: 175.8 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000692/1.009, allocations: 138.8 kB / 0.7408 GB, free: 175.8 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002556/1.012, allocations: 1.932 MB / 0.7427 GB, free: 174.6 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001213/1.013, allocations: 43.41 kB / 0.7427 GB, free: 174.5 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001558/1.013, allocations: 71.92 kB / 0.7428 GB, free: 174.5 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.0008385/1.014, allocations: 395.5 kB / 0.7432 GB, free: 174.1 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004585/1.015, allocations: 119.2 kB / 0.7433 GB, free: 174 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002315/1.017, allocations: 1.499 MB / 0.7447 GB, free: 172.5 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.963e-06/1.017, allocations: 11.94 kB / 0.7448 GB, free: 172.4 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.808e-06/1.017, allocations: 0 / 0.7448 GB, free: 172.4 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.606e-06/1.017, allocations: 3.984 kB / 0.7448 GB, free: 172.4 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003741/1.021, allocations: 2.691 MB / 0.7474 GB, free: 169.7 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.298e-06/1.021, allocations: 0 / 0.7474 GB, free: 169.7 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001757/1.023, allocations: 335.2 kB / 0.7477 GB, free: 169.4 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001956/1.023, allocations: 64.78 kB / 0.7478 GB, free: 169.3 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.184e-05/1.023, allocations: 39.97 kB / 0.7478 GB, free: 169.3 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001755/1.025, allocations: 3.032 MB / 0.7508 GB, free: 166 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/1.025, allocations: 0 / 0.7508 GB, free: 166 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002503/1.027, allocations: 1.912 MB / 0.7526 GB, free: 164.1 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007807/1.028, allocations: 340.3 kB / 0.753 GB, free: 163.7 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002158/1.028, allocations: 27.98 kB / 0.753 GB, free: 163.7 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009289/1.029, allocations: 47.95 kB / 0.753 GB, free: 163.6 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001621/1.029, allocations: 60.56 kB / 0.7531 GB, free: 163.6 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000106/1.029, allocations: 71.89 kB / 0.7532 GB, free: 163.5 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0008667/1.03, allocations: 0.7931 MB / 0.7539 GB, free: 162.7 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.2e-07/1.03, allocations: 0 / 0.7539 GB, free: 162.7 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.001646/1.032, allocations: 491.5 kB / 0.7544 GB, free: 162.2 MB / 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.00412/1.036, allocations: 3.109 MB / 0.7574 GB, free: 159.1 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.002322/1.038, allocations: 1.486 MB / 0.7589 GB, free: 157.6 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 5.28e-06/1.038, allocations: 4.719 kB / 0.7589 GB, free: 157.6 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0014/1.04, allocations: 0.8573 MB / 0.7597 GB, free: 156.7 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003328/1.043, allocations: 0.7636 MB / 0.7605 GB, free: 156 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0158/1.059, allocations: 12.98 MB / 0.7732 GB, free: 142.7 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000568/1.06, allocations: 1.187 MB / 0.7743 GB, free: 141.5 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.001386/1.061, allocations: 485.5 kB / 0.7748 GB, free: 141 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006126/1.062, allocations: 447.3 kB / 0.7752 GB, free: 140.5 MB / 0.5606 GB Notification: Performance of SimCode: time 1.302e-06/1.062, allocations: 0 / 0.7752 GB, free: 140.5 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07715/1.139, allocations: 50.72 MB / 0.8247 GB, free: 90.18 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.83/14.97, allocations: 4.5 kB / 0.8247 GB, free: 90.18 MB / 0.5606 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