Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition,fileNamePrefix="Modelica_3_2_3_Modelica_Media_Examples_Tests_MediaTestModels_IdealGases_SimpleNaturalGasFixedComposition",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition,fileNamePrefix="Modelica_3_2_3_Modelica_Media_Examples_Tests_MediaTestModels_IdealGases_SimpleNaturalGasFixedComposition",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.001186/0.001187, allocations: 114.4 kB / 17.74 MB, free: 5.355 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.001199/0.001199, allocations: 183.1 kB / 18.66 MB, free: 4.434 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.364/1.364, allocations: 205.1 MB / 224.5 MB, free: 12.29 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00128/0.00128, allocations: 59.92 kB / 328.1 MB, free: 3.773 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08822/0.08951, allocations: 46.62 MB / 374.7 MB, free: 5.047 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition): time 0.3899/0.4795, allocations: 175.6 MB / 0.5374 GB, free: 15.75 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.005299/0.4848, allocations: 3.844 MB / 0.5412 GB, free: 11.89 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003673/0.4852, allocations: 4 kB / 0.5412 GB, free: 11.89 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008089/0.4861, allocations: 234.7 kB / 0.5414 GB, free: 11.66 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008813/0.487, allocations: 370 kB / 0.5418 GB, free: 11.3 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001544/0.4886, allocations: 0.5385 MB / 0.5423 GB, free: 10.76 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.001262/0.4899, allocations: 1.115 MB / 0.5434 GB, free: 9.641 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002153/0.4901, allocations: 104.7 kB / 0.5435 GB, free: 9.539 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002862/0.493, allocations: 1.269 MB / 0.5447 GB, free: 8.27 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005515/0.4935, allocations: 326.8 kB / 0.545 GB, free: 7.949 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001421/0.4937, allocations: 51.94 kB / 0.5451 GB, free: 7.898 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001108/0.4948, allocations: 451.1 kB / 0.5455 GB, free: 7.457 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002538/0.4951, allocations: 235.4 kB / 0.5457 GB, free: 7.227 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004157/0.4955, allocations: 310.9 kB / 0.546 GB, free: 6.922 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001313/0.4968, allocations: 1.086 MB / 0.5471 GB, free: 5.836 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.4968, allocations: 0 / 0.5471 GB, free: 5.836 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.392e-06/0.4968, allocations: 0 / 0.5471 GB, free: 5.836 MB / 478.1 MB Notification: Performance of Transformations before backend: time 2.047e-05/0.4969, allocations: 0 / 0.5471 GB, free: 5.836 MB / 478.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 93 * Number of variables: 93 Notification: Performance of Generate backend data structure: time 0.00142/0.4983, allocations: 0.8179 MB / 0.5479 GB, free: 4.969 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.035e-05/0.4983, allocations: 19.89 kB / 0.5479 GB, free: 4.949 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001207/0.4985, allocations: 82.52 kB / 0.548 GB, free: 4.859 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006339/0.4991, allocations: 115.6 kB / 0.5481 GB, free: 4.746 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005991/0.4997, allocations: 389.2 kB / 0.5485 GB, free: 4.324 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.698e-05/0.4998, allocations: 29 kB / 0.5485 GB, free: 4.293 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.344e-05/0.4998, allocations: 36 kB / 0.5485 GB, free: 4.258 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008739/0.5007, allocations: 0.5537 MB / 0.5491 GB, free: 3.688 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.809e-05/0.5007, allocations: 7.984 kB / 0.5491 GB, free: 3.68 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.637e-05/0.5008, allocations: 27.98 kB / 0.5491 GB, free: 3.652 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.069e-05/0.5008, allocations: 11.94 kB / 0.5491 GB, free: 3.641 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006046/0.5014, allocations: 446.4 kB / 0.5495 GB, free: 3.199 MB / 478.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.003524/0.505, allocations: 2.122 MB / 0.5516 GB, free: 0.9102 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002326/0.5052, allocations: 142.6 kB / 0.5518 GB, free: 0.7617 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001193/0.5053, allocations: 87.58 kB / 0.5518 GB, free: 0.6758 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.824e-05/0.5054, allocations: 8.844 kB / 0.5518 GB, free: 0.668 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.975e-05/0.5054, allocations: 38.56 kB / 0.5519 GB, free: 0.6211 MB / 478.1 MB Notification: Performance of pre-optimization done (n=18): time 1.583e-06/0.5054, allocations: 0 / 0.5519 GB, free: 0.6211 MB / 478.1 MB Warning: Some equations could not be differentiated for following variables having attribute stateSelect=StateSelect.prefer. They will be treated as if they had stateSelect=StateSelect.default ======================================== 1: volume.medium.T Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=23): time 0.2655/0.7709, allocations: 1.75 MB / 0.5536 GB, free: 38.82 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.013e-05/0.7709, allocations: 54.31 kB / 0.5536 GB, free: 38.76 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008656/0.7718, allocations: 483.4 kB / 0.5541 GB, free: 38.64 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 4.525e-05/0.7719, allocations: 31.81 kB / 0.5541 GB, free: 38.61 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002332/0.7721, allocations: 329.7 kB / 0.5544 GB, free: 38.42 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.253e-05/0.7722, allocations: 93.67 kB / 0.5545 GB, free: 38.38 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001911/0.7724, allocations: 126.4 kB / 0.5547 GB, free: 38.35 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001099/0.7725, allocations: 356.3 kB / 0.555 GB, free: 38.04 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002615/0.7728, allocations: 136.9 kB / 0.5551 GB, free: 38.04 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004233/0.7732, allocations: 440.4 kB / 0.5555 GB, free: 37.67 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007364/0.774, allocations: 0.6036 MB / 0.5561 GB, free: 37.3 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.939e-05/0.774, allocations: 3.844 kB / 0.5561 GB, free: 37.3 MB / 478.1 MB Notification: Performance of matching and sorting (n=75) (initialization): time 0.00124/0.7753, allocations: 0.6398 MB / 0.5568 GB, free: 37.22 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.972e-05/0.7753, allocations: 11.42 kB / 0.5568 GB, free: 37.22 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.635e-05/0.7753, allocations: 11.84 kB / 0.5568 GB, free: 37.22 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002102/0.7755, allocations: 57.34 kB / 0.5568 GB, free: 37.2 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005272/0.7761, allocations: 139.7 kB / 0.557 GB, free: 37.2 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001181/0.7773, allocations: 1.942 MB / 0.5589 GB, free: 35.35 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004583/0.7778, allocations: 24.75 kB / 0.5589 GB, free: 35.35 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.31e-05/0.7778, allocations: 35.83 kB / 0.5589 GB, free: 35.35 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 47 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (73): * Single equations (assignments): 71 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(1,1), (1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0002408/0.7781, allocations: 219.2 kB / 0.5591 GB, free: 35.23 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001031/0.7782, allocations: 51.38 kB / 0.5592 GB, free: 35.2 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005474/0.7787, allocations: 281.6 kB / 0.5595 GB, free: 35.15 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.11e-06/0.7788, allocations: 4.281 kB / 0.5595 GB, free: 35.15 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.258e-06/0.7788, allocations: 4.547 kB / 0.5595 GB, free: 35.14 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00039/0.7792, allocations: 0.5312 MB / 0.56 GB, free: 34.69 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001001/0.7802, allocations: 0.6937 MB / 0.5607 GB, free: 34.38 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.745e-06/0.7802, allocations: 0 / 0.5607 GB, free: 34.38 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00028/0.7805, allocations: 54.5 kB / 0.5607 GB, free: 34.38 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.534e-05/0.7806, allocations: 22.7 kB / 0.5607 GB, free: 34.38 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.317e-05/0.7806, allocations: 6.781 kB / 0.5607 GB, free: 34.38 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006348/0.7812, allocations: 1.382 MB / 0.5621 GB, free: 33.03 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.914e-06/0.7813, allocations: 5.781 kB / 0.5621 GB, free: 33.03 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006794/0.7819, allocations: 433.2 kB / 0.5625 GB, free: 32.86 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001323/0.7821, allocations: 120.5 kB / 0.5626 GB, free: 32.74 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.226e-05/0.7822, allocations: 5.516 kB / 0.5626 GB, free: 32.74 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002872/0.7825, allocations: 9.109 kB / 0.5626 GB, free: 32.74 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.127e-05/0.7825, allocations: 18.33 kB / 0.5627 GB, free: 32.74 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.098e-05/0.7825, allocations: 13.67 kB / 0.5627 GB, free: 32.74 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0003881/0.7829, allocations: 327.4 kB / 0.563 GB, free: 32.65 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.7829, allocations: 0.8438 kB / 0.563 GB, free: 32.65 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.000906/0.7839, allocations: 211 kB / 0.5632 GB, free: 32.64 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (volume.medium.p,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 (23): * Single equations (assignments): 22 * 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): 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.00208/0.7859, allocations: 1.316 MB / 0.5645 GB, free: 31.93 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.0008641/0.7868, allocations: 470.8 kB / 0.5649 GB, free: 31.81 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 3.156e-06/0.7868, allocations: 0 / 0.5649 GB, free: 31.81 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002577/0.7871, allocations: 206.3 kB / 0.5651 GB, free: 31.7 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00114/0.7883, allocations: 216.4 kB / 0.5653 GB, free: 31.68 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006137/0.7944, allocations: 4.595 MB / 0.5698 GB, free: 29.37 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000288/0.7947, allocations: 0.8176 MB / 0.5706 GB, free: 28.67 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0005256/0.7953, allocations: 139.9 kB / 0.5707 GB, free: 28.65 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002289/0.7955, allocations: 152.2 kB / 0.5709 GB, free: 28.64 MB / 478.1 MB Notification: Performance of SimCode: time 6.71e-07/0.7955, allocations: 0 / 0.5709 GB, free: 28.64 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05218/0.8477, allocations: 17.34 MB / 0.5878 GB, free: 25.74 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.85/13.7, allocations: 9.531 kB / 0.5878 GB, free: 25.73 MB / 478.1 MB (rm -f Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.pipe ; mkfifo Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.pipe >> ../files/Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition_res.csv --start-time 0 --stop-time 1.01 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000404 Modelica_3_2_3_Modelica_Media_Examples_Tests_MediaTestModels_IdealGases_SimpleNaturalGasFixedComposition.fmu > Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Media/Examples/Tests/MediaTestModels/IdealGases/SimpleNaturalGasFixedComposition/SimpleNaturalGasFixedComposition.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches