Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Media.Examples.Tests.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 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.SimpleNaturalGas,fileNamePrefix="Modelica_3_2_3_Modelica_Media_Examples_Tests_MediaTestModels_IdealGases_SimpleNaturalGas",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas,fileNamePrefix="Modelica_3_2_3_Modelica_Media_Examples_Tests_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.001147/0.001147, allocations: 113.2 kB / 17.73 MB, free: 5.32 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.001171/0.001171, allocations: 184.2 kB / 18.66 MB, free: 4.398 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.418/1.418, allocations: 205.1 MB / 224.5 MB, free: 12.23 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.001347/0.001347, allocations: 52.14 kB / 328.1 MB, free: 3.762 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09212/0.09348, allocations: 46.62 MB / 374.7 MB, free: 5.031 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas): time 0.3908/0.4843, allocations: 175.5 MB / 0.5373 GB, free: 15.86 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.005027/0.4894, allocations: 3.838 MB / 0.541 GB, free: 12 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000359/0.4898, allocations: 7.938 kB / 0.541 GB, free: 11.99 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008674/0.4907, allocations: 238.7 kB / 0.5413 GB, free: 11.76 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001003/0.4917, allocations: 358.1 kB / 0.5416 GB, free: 11.41 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001543/0.4933, allocations: 0.5503 MB / 0.5422 GB, free: 10.86 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.001351/0.4946, allocations: 1.091 MB / 0.5432 GB, free: 9.762 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004141/0.4951, allocations: 294.4 kB / 0.5435 GB, free: 9.48 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002958/0.498, allocations: 1.294 MB / 0.5448 GB, free: 8.184 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000673/0.4987, allocations: 402.7 kB / 0.5451 GB, free: 7.789 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001933/0.4989, allocations: 68 kB / 0.5452 GB, free: 7.723 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001116/0.5, allocations: 479.1 kB / 0.5457 GB, free: 7.254 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004556/0.5005, allocations: 446.9 kB / 0.5461 GB, free: 6.816 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006613/0.5012, allocations: 494.3 kB / 0.5466 GB, free: 6.332 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001584/0.5028, allocations: 1.535 MB / 0.5481 GB, free: 4.793 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.319e-06/0.5028, allocations: 0 / 0.5481 GB, free: 4.793 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.5028, allocations: 0 / 0.5481 GB, free: 4.793 MB / 478.1 MB Notification: Performance of Transformations before backend: time 1.232e-05/0.5028, allocations: 0 / 0.5481 GB, free: 4.793 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: 177 * Number of variables: 177 Notification: Performance of Generate backend data structure: time 0.001755/0.5046, allocations: 1.069 MB / 0.5491 GB, free: 3.676 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.419e-05/0.5046, allocations: 16.02 kB / 0.5491 GB, free: 3.66 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001463/0.5048, allocations: 122.4 kB / 0.5492 GB, free: 3.531 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000635/0.5054, allocations: 151 kB / 0.5494 GB, free: 3.383 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007502/0.5062, allocations: 480.8 kB / 0.5498 GB, free: 2.871 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.008e-05/0.5062, allocations: 45.31 kB / 0.5499 GB, free: 2.824 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001107/0.5064, allocations: 71.98 kB / 0.55 GB, free: 2.754 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001459/0.5078, allocations: 0.9474 MB / 0.5509 GB, free: 1.801 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.099e-05/0.5079, allocations: 15.88 kB / 0.5509 GB, free: 1.785 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.72e-05/0.508, allocations: 28 kB / 0.5509 GB, free: 1.758 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.107e-05/0.508, allocations: 45.98 kB / 0.551 GB, free: 1.715 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001228/0.5092, allocations: 0.8745 MB / 0.5518 GB, free: 0.8359 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.191/0.7002, allocations: 3.369 MB / 0.5551 GB, free: 168.8 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009745/0.7012, allocations: 0.6446 MB / 0.5557 GB, free: 168.8 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004761/0.7017, allocations: 362.7 kB / 0.5561 GB, free: 168.6 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.518e-05/0.7018, allocations: 21 kB / 0.5561 GB, free: 168.6 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.881e-05/0.7018, allocations: 44.75 kB / 0.5561 GB, free: 168.6 MB / 478.1 MB Notification: Performance of pre-optimization done (n=59): time 2.484e-06/0.7018, allocations: 0 / 0.5561 GB, free: 168.6 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.Xi[6] 2: volume.medium.Xi[5] 3: volume.medium.Xi[4] 4: volume.medium.Xi[3] 5: volume.medium.Xi[2] 6: volume.medium.Xi[1] 7: volume.medium.T Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=71): time 0.01483/0.7166, allocations: 6.074 MB / 0.5621 GB, free: 165.3 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.712e-05/0.7167, allocations: 60.39 kB / 0.5621 GB, free: 165.2 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007681/0.7175, allocations: 0.5455 MB / 0.5627 GB, free: 165 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 9.347e-05/0.7176, allocations: 43.33 kB / 0.5627 GB, free: 164.9 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001838/0.7178, allocations: 275.3 kB / 0.563 GB, free: 164.7 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001904/0.718, allocations: 258.7 kB / 0.5632 GB, free: 164.5 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002634/0.7182, allocations: 140.5 kB / 0.5634 GB, free: 164.5 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.000123/0.7184, allocations: 376.3 kB / 0.5637 GB, free: 164.1 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000663/0.719, allocations: 445.8 kB / 0.5641 GB, free: 164 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006961/0.7197, allocations: 0.5142 MB / 0.5646 GB, free: 163.7 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00129/0.721, allocations: 0.9714 MB / 0.5656 GB, free: 163.3 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.877e-06/0.721, allocations: 1.188 kB / 0.5656 GB, free: 163.3 MB / 478.1 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.002109/0.7232, allocations: 1.343 MB / 0.5669 GB, free: 162.7 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.003e-05/0.7232, allocations: 9.266 kB / 0.5669 GB, free: 162.7 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.514e-06/0.7232, allocations: 0 / 0.5669 GB, free: 162.7 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005908/0.7238, allocations: 338.8 kB / 0.5672 GB, free: 162.6 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009666/0.7248, allocations: 177.2 kB / 0.5674 GB, free: 162.5 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005984/0.7308, allocations: 10.96 MB / 0.5781 GB, free: 151.9 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006485/0.7315, allocations: 22.53 kB / 0.5781 GB, free: 151.9 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.775e-05/0.7316, allocations: 43.03 kB / 0.5782 GB, free: 151.9 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * 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 (80): * Single equations (assignments): 72 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 8 * 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): 8 systems {(1,1), (1,1), (1,1), (1,1), (1,1), (1,1), (1,1), (1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0004891/0.7321, allocations: 273.4 kB / 0.5784 GB, free: 151.7 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001592/0.7322, allocations: 62.42 kB / 0.5785 GB, free: 151.7 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002082/0.7343, allocations: 1.294 MB / 0.5798 GB, free: 151.1 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.477e-06/0.7343, allocations: 7.125 kB / 0.5798 GB, free: 151.1 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.586e-06/0.7343, allocations: 4.688 kB / 0.5798 GB, free: 151.1 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001674/0.736, allocations: 1.602 MB / 0.5813 GB, free: 149.9 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003562/0.7396, allocations: 2.267 MB / 0.5835 GB, free: 148.8 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.122e-06/0.7396, allocations: 2.109 kB / 0.5835 GB, free: 148.8 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001153/0.7408, allocations: 220.5 kB / 0.5838 GB, free: 148.8 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000181/0.741, allocations: 68.23 kB / 0.5838 GB, free: 148.8 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.1e-05/0.741, allocations: 39.67 kB / 0.5839 GB, free: 148.8 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009328/0.742, allocations: 1.533 MB / 0.5854 GB, free: 147.3 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.575e-06/0.742, allocations: 1.031 kB / 0.5854 GB, free: 147.3 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002179/0.7442, allocations: 1.606 MB / 0.5869 GB, free: 146.5 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002227/0.7444, allocations: 138.4 kB / 0.5871 GB, free: 146.4 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001151/0.7445, allocations: 30.36 kB / 0.5871 GB, free: 146.3 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006592/0.7452, allocations: 44.11 kB / 0.5871 GB, free: 146.3 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001134/0.7453, allocations: 52.73 kB / 0.5872 GB, free: 146.3 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001082/0.7454, allocations: 61.73 kB / 0.5872 GB, free: 146.3 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0004447/0.7459, allocations: 416.4 kB / 0.5876 GB, free: 146 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.7459, allocations: 0 / 0.5876 GB, free: 146 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.001631/0.7475, allocations: 328.1 kB / 0.5879 GB, free: 146 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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 (77): * Single equations (assignments): 76 * 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.003754/0.7513, allocations: 2.609 MB / 0.5905 GB, free: 144.4 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.002172/0.7535, allocations: 1.885 MB / 0.5923 GB, free: 143.1 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 5.901e-06/0.7535, allocations: 0 / 0.5923 GB, free: 143.1 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007459/0.7543, allocations: 0.6891 MB / 0.593 GB, free: 142.7 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002164/0.7564, allocations: 0.5052 MB / 0.5935 GB, free: 142.4 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009367/0.7658, allocations: 8.734 MB / 0.602 GB, free: 133.6 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003725/0.7662, allocations: 0.9826 MB / 0.603 GB, free: 132.6 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0008207/0.7671, allocations: 273.7 kB / 0.6032 GB, free: 132.3 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003769/0.7674, allocations: 279.3 kB / 0.6035 GB, free: 132 MB / 478.1 MB Notification: Performance of SimCode: time 6.42e-07/0.7675, allocations: 0 / 0.6035 GB, free: 132 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06511/0.8326, allocations: 33.9 MB / 0.6366 GB, free: 98 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.79/13.62, allocations: 3.938 kB / 0.6366 GB, free: 98 MB / 478.1 MB (rm -f Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas.pipe ; mkfifo Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas.pipe >> ../files/Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Media.Examples.Tests.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 Modelica_3_2_3_Modelica_Media_Examples_Tests_MediaTestModels_IdealGases_SimpleNaturalGas.fmu > Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas_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/SimpleNaturalGas/SimpleNaturalGas.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches