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.001966/0.001966, allocations: 121.1 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00232/0.00232, allocations: 204.6 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.429/1.429, allocations: 227.4 MB / 247 MB, free: 10.41 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2222/0.2222, allocations: 46.12 MB / 344.3 MB, free: 11.43 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002899/0.002899, allocations: 75.88 kB / 480.9 MB, free: 4.48 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3488/0.3517, allocations: 62.45 MB / 0.5306 GB, free: 13.36 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas): time 0.2405/0.5923, allocations: 180.1 MB / 0.7064 GB, free: 12.99 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.0104/0.6027, allocations: 6.501 MB / 0.7128 GB, free: 6.461 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000985/0.6037, allocations: 19.88 kB / 0.7128 GB, free: 6.441 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.001537/0.6053, allocations: 429.6 kB / 0.7132 GB, free: 6.02 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.00594/0.6113, allocations: 1.757 MB / 0.7149 GB, free: 4.258 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.004732/0.6161, allocations: 1.518 MB / 0.7164 GB, free: 2.746 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.003574/0.6197, allocations: 2.243 MB / 0.7186 GB, free: 0.4961 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.3734/0.9931, allocations: 0.7524 MB / 0.7193 GB, free: 3.82 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.006497/0.9996, allocations: 1.797 MB / 0.7211 GB, free: 3.82 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003302/1.003, allocations: 1.613 MB / 0.7227 GB, free: 3.812 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.0003582/1.003, allocations: 100.5 kB / 0.7228 GB, free: 3.812 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003196/1.007, allocations: 1.334 MB / 0.7241 GB, free: 3.812 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0008201/1.007, allocations: 0.6866 MB / 0.7247 GB, free: 3.812 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.001217/1.009, allocations: 0.7559 MB / 0.7255 GB, free: 3.812 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.00414/1.013, allocations: 2.629 MB / 0.728 GB, free: 3.688 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 5.43e-06/1.013, allocations: 3.125 kB / 0.7281 GB, free: 3.688 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.803e-06/1.013, allocations: 0 / 0.7281 GB, free: 3.688 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 2.692e-05/1.013, allocations: 6.875 kB / 0.7281 GB, free: 3.688 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.003822/1.017, allocations: 1.747 MB / 0.7298 GB, free: 18.88 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 4.121e-05/1.017, allocations: 9.969 kB / 0.7298 GB, free: 18.88 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001975/1.017, allocations: 176.4 kB / 0.7299 GB, free: 18.83 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001463/1.018, allocations: 313.4 kB / 0.7302 GB, free: 18.77 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001218/1.02, allocations: 0.7826 MB / 0.731 GB, free: 18.47 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001222/1.02, allocations: 143.7 kB / 0.7311 GB, free: 18.41 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001675/1.02, allocations: 105.1 kB / 0.7312 GB, free: 18.4 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002407/1.022, allocations: 1.837 MB / 0.733 GB, free: 18.2 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.147e-05/1.022, allocations: 6.469 kB / 0.733 GB, free: 18.2 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00014/1.023, allocations: 47.41 kB / 0.7331 GB, free: 18.2 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.01e-05/1.023, allocations: 97.25 kB / 0.7332 GB, free: 18.2 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002242/1.025, allocations: 1.697 MB / 0.7348 GB, free: 18.19 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.009384/1.034, allocations: 6.87 MB / 0.7415 GB, free: 14.71 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001307/1.036, allocations: 0.8699 MB / 0.7424 GB, free: 14.68 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005835/1.036, allocations: 457 kB / 0.7428 GB, free: 14.67 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001696/1.036, allocations: 106.7 kB / 0.7429 GB, free: 14.57 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.312e-05/1.036, allocations: 50.09 kB / 0.743 GB, free: 14.54 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=60): time 2.855e-06/1.037, allocations: 0.8125 kB / 0.743 GB, free: 14.54 MB / 0.5762 GB Notification: Performance of matching and sorting (n=72): time 0.01095/1.047, allocations: 4.128 MB / 0.747 GB, free: 13.79 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.59e-05/1.048, allocations: 111.9 kB / 0.7471 GB, free: 13.66 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001417/1.049, allocations: 1.107 MB / 0.7482 GB, free: 13.5 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 0.0001566/1.049, allocations: 40.48 kB / 0.7482 GB, free: 13.47 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003536/1.05, allocations: 0.5359 MB / 0.7488 GB, free: 13.23 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001912/1.05, allocations: 282.8 kB / 0.749 GB, free: 13.05 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003455/1.05, allocations: 210.7 kB / 0.7492 GB, free: 13.03 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001558/1.05, allocations: 345.8 kB / 0.7496 GB, free: 12.73 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008329/1.051, allocations: 0.5831 MB / 0.7501 GB, free: 12.73 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001009/1.052, allocations: 0.8713 MB / 0.751 GB, free: 12.41 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001911/1.054, allocations: 1.45 MB / 0.7524 GB, free: 12.11 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.095e-05/1.054, allocations: 2.562 kB / 0.7524 GB, free: 12.11 MB / 0.5762 GB Notification: Performance of matching and sorting (n=125) (initialization): time 0.00319/1.057, allocations: 2.016 MB / 0.7544 GB, free: 12 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 2.547e-05/1.057, allocations: 8.938 kB / 0.7544 GB, free: 12 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.077e-05/1.057, allocations: 9 kB / 0.7544 GB, free: 12 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004653/1.062, allocations: 1.342 MB / 0.7557 GB, free: 11.97 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000634/1.063, allocations: 149.1 kB / 0.7558 GB, free: 11.97 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002779/1.065, allocations: 1.923 MB / 0.7577 GB, free: 11.43 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00117/1.067, allocations: 48.14 kB / 0.7578 GB, free: 11.43 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001843/1.067, allocations: 66.81 kB / 0.7578 GB, free: 11.43 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.0008837/1.068, allocations: 398.6 kB / 0.7582 GB, free: 11.31 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003613/1.068, allocations: 116 kB / 0.7583 GB, free: 11.25 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00269/1.071, allocations: 1.5 MB / 0.7598 GB, free: 11.16 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.131e-05/1.071, allocations: 8.531 kB / 0.7598 GB, free: 11.16 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.028e-05/1.071, allocations: 5.844 kB / 0.7598 GB, free: 11.16 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.258e-06/1.071, allocations: 2.719 kB / 0.7598 GB, free: 11.16 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004886/1.076, allocations: 2.692 MB / 0.7624 GB, free: 10.81 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.532e-06/1.076, allocations: 0 / 0.7624 GB, free: 10.81 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001743/1.078, allocations: 323.5 kB / 0.7627 GB, free: 10.81 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002225/1.078, allocations: 69.66 kB / 0.7628 GB, free: 10.8 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001135/1.078, allocations: 35.55 kB / 0.7628 GB, free: 10.8 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002947/1.081, allocations: 3.035 MB / 0.7658 GB, free: 8.043 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.61e-06/1.081, allocations: 6.141 kB / 0.7658 GB, free: 8.039 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003327/1.084, allocations: 1.905 MB / 0.7677 GB, free: 7.809 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009594/1.085, allocations: 347.4 kB / 0.768 GB, free: 7.648 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004056/1.086, allocations: 25.02 kB / 0.768 GB, free: 7.648 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001171/1.087, allocations: 50.53 kB / 0.7681 GB, free: 7.648 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00019/1.087, allocations: 57.75 kB / 0.7681 GB, free: 7.648 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001633/1.087, allocations: 67.7 kB / 0.7682 GB, free: 7.648 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.001189/1.088, allocations: 0.7949 MB / 0.769 GB, free: 7.539 MB / 0.5762 GB Notification: Performance of sort global known variables: time 4.1e-07/1.088, allocations: 1 kB / 0.769 GB, free: 7.539 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.002361/1.091, allocations: 482.1 kB / 0.7694 GB, free: 7.508 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.005983/1.097, allocations: 3.135 MB / 0.7725 GB, free: 6.699 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.00299/1.1, allocations: 1.48 MB / 0.7739 GB, free: 6.664 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 1.01e-05/1.1, allocations: 3.969 kB / 0.7739 GB, free: 6.664 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.001783/1.102, allocations: 0.8642 MB / 0.7748 GB, free: 6.551 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004188/1.106, allocations: 0.7603 MB / 0.7755 GB, free: 6.441 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02234/1.128, allocations: 13.01 MB / 0.7882 GB, free: 15.95 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001062/1.129, allocations: 1.176 MB / 0.7894 GB, free: 14.96 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.001784/1.131, allocations: 490.1 kB / 0.7898 GB, free: 14.59 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008105/1.132, allocations: 447.4 kB / 0.7903 GB, free: 14.45 MB / 0.5919 GB Notification: Performance of SimCode: time 8.82e-07/1.132, allocations: 0 / 0.7903 GB, free: 14.45 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.108/1.24, allocations: 50.75 MB / 0.8398 GB, free: 12.25 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.92/16.16, allocations: 13.33 kB / 0.8398 GB, free: 12.24 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