Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.Air.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.Air,fileNamePrefix="Modelica_3_2_3_Modelica_Media_Examples_Tests_MediaTestModels_IdealGases_Air",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.Air,fileNamePrefix="Modelica_3_2_3_Modelica_Media_Examples_Tests_MediaTestModels_IdealGases_Air",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.001723/0.001723, allocations: 100.2 kB / 17.58 MB, free: 5.547 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.001961/0.001961, allocations: 192 kB / 18.51 MB, free: 4.625 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.968/2.968, allocations: 205.1 MB / 224.4 MB, free: 12.34 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.002565/0.002565, allocations: 51.94 kB / 280.8 MB, free: 3.066 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1948/0.1974, allocations: 46.62 MB / 327.4 MB, free: 4.375 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.Air): time 0.8707/1.068, allocations: 172.8 MB / 0.4884 GB, free: 10.12 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.009417/1.078, allocations: 3.213 MB / 0.4916 GB, free: 6.895 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002783/1.078, allocations: 4 kB / 0.4916 GB, free: 6.891 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001506/1.08, allocations: 178.9 kB / 0.4917 GB, free: 6.715 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002079/1.082, allocations: 407.6 kB / 0.4921 GB, free: 6.316 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002002/1.084, allocations: 340.7 kB / 0.4924 GB, free: 5.984 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.002519/1.086, allocations: 0.8952 MB / 0.4933 GB, free: 5.086 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006046/1.087, allocations: 109.1 kB / 0.4934 GB, free: 4.98 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005103/1.092, allocations: 0.7901 MB / 0.4942 GB, free: 4.188 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008642/1.093, allocations: 270.9 kB / 0.4945 GB, free: 3.922 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 8.793e-05/1.093, allocations: 28 kB / 0.4945 GB, free: 3.895 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008622/1.094, allocations: 127.9 kB / 0.4946 GB, free: 3.77 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002237/1.094, allocations: 95.77 kB / 0.4947 GB, free: 3.676 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005813/1.095, allocations: 187.2 kB / 0.4949 GB, free: 3.492 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001307/1.096, allocations: 0.5064 MB / 0.4954 GB, free: 2.984 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.823e-05/1.096, allocations: 4 kB / 0.4954 GB, free: 2.98 MB / 398.1 MB Notification: Performance of FrontEnd: time 5.721e-06/1.096, allocations: 0 / 0.4954 GB, free: 2.98 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.701e-05/1.096, allocations: 4 kB / 0.4954 GB, free: 2.977 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.001864/1.098, allocations: 0.5893 MB / 0.496 GB, free: 2.34 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.344e-05/1.098, allocations: 12.03 kB / 0.496 GB, free: 2.328 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001231/1.098, allocations: 58.55 kB / 0.496 GB, free: 2.262 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007007/1.099, allocations: 43.61 kB / 0.4961 GB, free: 2.219 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000849/1.1, allocations: 294.4 kB / 0.4963 GB, free: 1.891 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.458e-05/1.1, allocations: 16.56 kB / 0.4964 GB, free: 1.875 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.872e-05/1.1, allocations: 24 kB / 0.4964 GB, free: 1.852 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001023/1.101, allocations: 319.6 kB / 0.4967 GB, free: 1.512 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.315e-05/1.101, allocations: 0 / 0.4967 GB, free: 1.512 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.606e-05/1.101, allocations: 16 kB / 0.4967 GB, free: 1.496 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.53e-05/1.101, allocations: 11.94 kB / 0.4967 GB, free: 1.484 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007192/1.102, allocations: 201.6 kB / 0.4969 GB, free: 1.289 MB / 398.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.003916/1.106, allocations: 1.6 MB / 0.4985 GB, free: 15.54 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006534/1.107, allocations: 164.1 kB / 0.4986 GB, free: 15.37 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004374/1.107, allocations: 100.8 kB / 0.4987 GB, free: 15.27 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.626e-05/1.107, allocations: 15.91 kB / 0.4987 GB, free: 15.25 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.677e-05/1.107, allocations: 38.56 kB / 0.4988 GB, free: 15.21 MB / 414.1 MB Notification: Performance of pre-optimization done (n=22): time 2.455e-06/1.107, allocations: 0 / 0.4988 GB, free: 15.21 MB / 414.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=27): time 0.01089/1.118, allocations: 1.616 MB / 0.5003 GB, free: 13.46 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001429/1.119, allocations: 55.41 kB / 0.5004 GB, free: 13.39 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006617/1.119, allocations: 248.9 kB / 0.5006 GB, free: 13.14 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001447/1.119, allocations: 33.7 kB / 0.5007 GB, free: 13.11 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002102/1.12, allocations: 180.1 kB / 0.5008 GB, free: 12.92 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000131/1.12, allocations: 94.66 kB / 0.5009 GB, free: 12.83 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002079/1.12, allocations: 85.38 kB / 0.501 GB, free: 12.74 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0004447/1.121, allocations: 342.8 kB / 0.5013 GB, free: 12.39 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002764/1.121, allocations: 91.95 kB / 0.5014 GB, free: 12.3 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005919/1.121, allocations: 183.7 kB / 0.5016 GB, free: 12.08 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009408/1.122, allocations: 303.8 kB / 0.5019 GB, free: 11.74 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.743e-06/1.122, allocations: 7.938 kB / 0.5019 GB, free: 11.73 MB / 414.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.001389/1.124, allocations: 394.7 kB / 0.5023 GB, free: 11.34 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.843e-05/1.124, allocations: 8 kB / 0.5023 GB, free: 11.33 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.922e-05/1.124, allocations: 4 kB / 0.5023 GB, free: 11.32 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000576/1.125, allocations: 78.06 kB / 0.5024 GB, free: 11.24 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007675/1.125, allocations: 83.91 kB / 0.5024 GB, free: 11.16 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00317/1.129, allocations: 1.958 MB / 0.5044 GB, free: 9.035 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003321/1.129, allocations: 8 kB / 0.5044 GB, free: 9.027 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.378e-05/1.129, allocations: 36 kB / 0.5044 GB, free: 8.992 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * 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 (40): * Single equations (assignments): 38 * 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.0005561/1.13, allocations: 158.8 kB / 0.5045 GB, free: 8.828 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001146/1.13, allocations: 31.62 kB / 0.5046 GB, free: 8.797 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001888/1.132, allocations: 441.3 kB / 0.505 GB, free: 8.352 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.659e-06/1.132, allocations: 0 / 0.505 GB, free: 8.352 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.062e-06/1.132, allocations: 4 kB / 0.505 GB, free: 8.348 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001546/1.133, allocations: 0.5591 MB / 0.5055 GB, free: 7.699 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002109/1.135, allocations: 0.7348 MB / 0.5063 GB, free: 6.898 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.455e-05/1.135, allocations: 0 / 0.5063 GB, free: 6.898 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005422/1.136, allocations: 75.95 kB / 0.5063 GB, free: 6.824 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001257/1.136, allocations: 20.84 kB / 0.5064 GB, free: 6.801 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.983e-05/1.136, allocations: 12 kB / 0.5064 GB, free: 6.789 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002097/1.138, allocations: 1.378 MB / 0.5077 GB, free: 5.27 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.815e-06/1.138, allocations: 0 / 0.5077 GB, free: 5.27 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001209/1.14, allocations: 494.5 kB / 0.5082 GB, free: 4.762 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002884/1.14, allocations: 96.86 kB / 0.5083 GB, free: 4.648 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.902e-05/1.14, allocations: 8 kB / 0.5083 GB, free: 4.641 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004167/1.141, allocations: 15.98 kB / 0.5083 GB, free: 4.625 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001998/1.141, allocations: 27.95 kB / 0.5083 GB, free: 4.598 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.963e-05/1.141, allocations: 32.05 kB / 0.5084 GB, free: 4.566 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003181/1.141, allocations: 186 kB / 0.5085 GB, free: 4.387 MB / 414.1 MB Notification: Performance of sort global known variables: time 3.7e-07/1.141, allocations: 0 / 0.5085 GB, free: 4.387 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001357/1.143, allocations: 128 kB / 0.5087 GB, free: 4.262 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 (26): * Single equations (assignments): 25 * 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.002183/1.145, allocations: 1.058 MB / 0.5097 GB, free: 3.168 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001686/1.147, allocations: 394.5 kB / 0.5101 GB, free: 2.77 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.47e-06/1.147, allocations: 0 / 0.5101 GB, free: 2.77 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006808/1.147, allocations: 230.5 kB / 0.5103 GB, free: 2.531 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001896/1.149, allocations: 165 kB / 0.5104 GB, free: 2.367 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008291/1.158, allocations: 3.199 MB / 0.5136 GB, free: 14.99 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000693/1.158, allocations: 0.7606 MB / 0.5143 GB, free: 14.2 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001159/1.159, allocations: 118.9 kB / 0.5144 GB, free: 14.09 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005055/1.16, allocations: 123.4 kB / 0.5145 GB, free: 13.97 MB / 430.1 MB Notification: Performance of SimCode: time 8.81e-07/1.16, allocations: 4 kB / 0.5145 GB, free: 13.96 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07933/1.239, allocations: 11.76 MB / 0.526 GB, free: 2.129 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 19.27/20.51, allocations: 4.531 kB / 0.526 GB, free: 2.125 MB / 430.1 MB (rm -f Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.Air.pipe ; mkfifo Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.Air.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.Air.pipe >> ../files/Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.Air.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.Air_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_Air.fmu > Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.Air.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.Air_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/Air/Air.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.Air.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches