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.001266/0.001266, allocations: 117.6 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001929/0.001929, allocations: 199.9 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.451/1.451, allocations: 227.4 MB / 246.9 MB, free: 10.47 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2203/0.2203, allocations: 46.11 MB / 344.3 MB, free: 11.49 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001454/0.001454, allocations: 75.88 kB / 480.8 MB, free: 4.555 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4102/0.4116, allocations: 62.43 MB / 0.5305 GB, free: 13.41 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas): time 0.2141/0.6258, allocations: 180.1 MB / 0.7064 GB, free: 13.07 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.008913/0.6348, allocations: 6.505 MB / 0.7127 GB, free: 6.539 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007567/0.6356, allocations: 19.88 kB / 0.7127 GB, free: 6.52 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.001198/0.6368, allocations: 437.5 kB / 0.7131 GB, free: 6.09 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.004262/0.6411, allocations: 1.783 MB / 0.7149 GB, free: 4.305 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.003653/0.6447, allocations: 1.528 MB / 0.7164 GB, free: 2.781 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.002689/0.6474, allocations: 2.251 MB / 0.7186 GB, free: 0.5234 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.3886/1.036, allocations: 0.7516 MB / 0.7193 GB, free: 3.895 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004655/1.041, allocations: 1.815 MB / 0.7211 GB, free: 3.895 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003183/1.044, allocations: 1.617 MB / 0.7227 GB, free: 3.887 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.0003074/1.044, allocations: 99.22 kB / 0.7228 GB, free: 3.887 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003032/1.047, allocations: 1.335 MB / 0.7241 GB, free: 3.887 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0007902/1.048, allocations: 0.6877 MB / 0.7247 GB, free: 3.887 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.001123/1.049, allocations: 0.7551 MB / 0.7255 GB, free: 3.887 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.003611/1.053, allocations: 2.629 MB / 0.728 GB, free: 3.762 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 6.802e-06/1.053, allocations: 0 / 0.728 GB, free: 3.762 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.883e-06/1.053, allocations: 3.406 kB / 0.728 GB, free: 3.762 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 2.468e-05/1.053, allocations: 4.844 kB / 0.728 GB, free: 3.762 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.003591/1.057, allocations: 1.752 MB / 0.7298 GB, free: 18.95 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.938e-05/1.057, allocations: 9.281 kB / 0.7298 GB, free: 18.95 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001867/1.057, allocations: 180.8 kB / 0.7299 GB, free: 18.91 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001372/1.058, allocations: 312.9 kB / 0.7302 GB, free: 18.84 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00121/1.059, allocations: 0.774 MB / 0.731 GB, free: 18.54 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001111/1.06, allocations: 144.4 kB / 0.7311 GB, free: 18.48 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001605/1.06, allocations: 107.1 kB / 0.7312 GB, free: 18.48 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002287/1.062, allocations: 1.841 MB / 0.733 GB, free: 18.28 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.032e-05/1.062, allocations: 4.219 kB / 0.733 GB, free: 18.28 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000126/1.062, allocations: 47.61 kB / 0.7331 GB, free: 18.28 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.838e-05/1.062, allocations: 98.62 kB / 0.7332 GB, free: 18.27 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002462/1.065, allocations: 1.696 MB / 0.7348 GB, free: 18.26 MB / 0.5762 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.009245/1.074, allocations: 6.866 MB / 0.7415 GB, free: 14.79 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001323/1.075, allocations: 0.873 MB / 0.7424 GB, free: 14.76 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006581/1.076, allocations: 457.3 kB / 0.7428 GB, free: 14.75 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001539/1.076, allocations: 107.2 kB / 0.7429 GB, free: 14.65 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.114e-05/1.076, allocations: 46 kB / 0.743 GB, free: 14.61 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=60): time 2.224e-06/1.076, allocations: 0.875 kB / 0.743 GB, free: 14.61 MB / 0.5762 GB Notification: Performance of matching and sorting (n=72): time 0.009754/1.086, allocations: 4.125 MB / 0.747 GB, free: 13.86 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.953e-05/1.086, allocations: 115.8 kB / 0.7471 GB, free: 13.74 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001177/1.087, allocations: 1.104 MB / 0.7482 GB, free: 13.58 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 9.134e-05/1.087, allocations: 43.45 kB / 0.7482 GB, free: 13.55 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002805/1.088, allocations: 0.5355 MB / 0.7488 GB, free: 13.31 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001542/1.088, allocations: 278 kB / 0.749 GB, free: 13.13 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000301/1.088, allocations: 209.9 kB / 0.7492 GB, free: 13.11 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001158/1.088, allocations: 351.5 kB / 0.7496 GB, free: 12.8 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007534/1.089, allocations: 0.5857 MB / 0.7501 GB, free: 12.8 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0011/1.09, allocations: 0.8676 MB / 0.751 GB, free: 12.5 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002425/1.093, allocations: 1.449 MB / 0.7524 GB, free: 12.2 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.215e-06/1.093, allocations: 3.594 kB / 0.7524 GB, free: 12.2 MB / 0.5762 GB Notification: Performance of matching and sorting (n=125) (initialization): time 0.002892/1.095, allocations: 2.015 MB / 0.7544 GB, free: 12.08 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 2.084e-05/1.095, allocations: 14.62 kB / 0.7544 GB, free: 12.08 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.322e-05/1.096, allocations: 6.688 kB / 0.7544 GB, free: 12.08 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00411/1.1, allocations: 1.348 MB / 0.7557 GB, free: 12.05 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000542/1.1, allocations: 145.5 kB / 0.7558 GB, free: 12.05 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002292/1.102, allocations: 1.924 MB / 0.7577 GB, free: 11.51 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009302/1.103, allocations: 48.16 kB / 0.7578 GB, free: 11.51 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001163/1.104, allocations: 66.2 kB / 0.7578 GB, free: 11.51 MB / 0.5762 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.0006548/1.104, allocations: 400.2 kB / 0.7582 GB, free: 11.39 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002027/1.104, allocations: 115.6 kB / 0.7583 GB, free: 11.33 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002562/1.107, allocations: 1.5 MB / 0.7598 GB, free: 11.25 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.189e-05/1.107, allocations: 11.59 kB / 0.7598 GB, free: 11.25 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.326e-05/1.107, allocations: 4.75 kB / 0.7598 GB, free: 11.24 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.019e-05/1.107, allocations: 2.859 kB / 0.7598 GB, free: 11.24 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004689/1.112, allocations: 2.69 MB / 0.7624 GB, free: 10.89 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.362e-06/1.112, allocations: 0.8125 kB / 0.7624 GB, free: 10.89 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001694/1.113, allocations: 324.7 kB / 0.7627 GB, free: 10.89 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000184/1.114, allocations: 72.97 kB / 0.7628 GB, free: 10.89 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.986e-05/1.114, allocations: 36.84 kB / 0.7628 GB, free: 10.89 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0026/1.116, allocations: 3.029 MB / 0.7658 GB, free: 8.125 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.268e-06/1.116, allocations: 4.844 kB / 0.7658 GB, free: 8.121 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003028/1.119, allocations: 1.908 MB / 0.7677 GB, free: 7.891 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007248/1.12, allocations: 345.3 kB / 0.768 GB, free: 7.73 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003458/1.121, allocations: 27.86 kB / 0.768 GB, free: 7.73 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001057/1.122, allocations: 48.97 kB / 0.7681 GB, free: 7.73 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002079/1.122, allocations: 67.16 kB / 0.7681 GB, free: 7.73 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001634/1.122, allocations: 63.02 kB / 0.7682 GB, free: 7.73 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.001323/1.123, allocations: 0.794 MB / 0.769 GB, free: 7.621 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.3e-07/1.123, allocations: 1.062 kB / 0.769 GB, free: 7.621 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.002261/1.126, allocations: 483.2 kB / 0.7694 GB, free: 7.59 MB / 0.5762 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.006146/1.132, allocations: 3.123 MB / 0.7725 GB, free: 6.781 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.002665/1.134, allocations: 1.483 MB / 0.7739 GB, free: 6.746 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 6.582e-06/1.134, allocations: 4.531 kB / 0.7739 GB, free: 6.746 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.00162/1.136, allocations: 0.8615 MB / 0.7748 GB, free: 6.633 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003386/1.139, allocations: 0.7646 MB / 0.7755 GB, free: 6.523 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02161/1.161, allocations: 12.99 MB / 0.7882 GB, free: 0 / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008733/1.162, allocations: 1.174 MB / 0.7893 GB, free: 15.01 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.001583/1.164, allocations: 489.3 kB / 0.7898 GB, free: 14.66 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007182/1.164, allocations: 440.9 kB / 0.7902 GB, free: 14.55 MB / 0.5919 GB Notification: Performance of SimCode: time 1.082e-06/1.164, allocations: 4 kB / 0.7902 GB, free: 14.55 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09411/1.258, allocations: 50.7 MB / 0.8397 GB, free: 12.39 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.61/14.87, allocations: 20.27 kB / 0.8398 GB, free: 12.38 MB / 0.6387 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