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.001128/0.001128, allocations: 114.1 kB / 17.28 MB, free: 6.219 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.001066/0.001066, allocations: 189.3 kB / 18.2 MB, free: 5.297 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.402/1.402, allocations: 205.1 MB / 224.1 MB, free: 12.45 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.001866/0.001866, allocations: 51.92 kB / 280.3 MB, free: 3.383 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.113/0.1149, allocations: 46.62 MB / 326.9 MB, free: 4.699 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.Air): time 0.3706/0.4855, allocations: 170.4 MB / 497.3 MB, free: 12.85 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003493/0.489, allocations: 3.198 MB / 0.4888 GB, free: 9.645 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001507/0.4893, allocations: 4 kB / 0.4888 GB, free: 9.641 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005305/0.4898, allocations: 143.2 kB / 0.4889 GB, free: 9.5 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007899/0.4906, allocations: 380 kB / 0.4893 GB, free: 9.129 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007443/0.4913, allocations: 324.2 kB / 0.4896 GB, free: 8.812 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008133/0.4922, allocations: 0.8953 MB / 0.4905 GB, free: 7.914 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000199/0.4924, allocations: 93.16 kB / 0.4906 GB, free: 7.824 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001484/0.4939, allocations: 0.7786 MB / 0.4913 GB, free: 7.043 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003168/0.4942, allocations: 302.8 kB / 0.4916 GB, free: 6.746 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 4.53e-05/0.4943, allocations: 32 kB / 0.4917 GB, free: 6.715 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000271/0.4945, allocations: 119.9 kB / 0.4918 GB, free: 6.598 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001072/0.4946, allocations: 99.7 kB / 0.4919 GB, free: 6.5 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001752/0.4948, allocations: 187.2 kB / 0.492 GB, free: 6.316 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005046/0.4953, allocations: 0.5102 MB / 0.4925 GB, free: 5.805 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.918e-06/0.4954, allocations: 0 / 0.4925 GB, free: 5.805 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.4954, allocations: 4 kB / 0.4925 GB, free: 5.801 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.173e-06/0.4954, allocations: 0 / 0.4925 GB, free: 5.801 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.0008396/0.4962, allocations: 0.5932 MB / 0.4931 GB, free: 5.16 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.647e-05/0.4963, allocations: 12.03 kB / 0.4931 GB, free: 5.148 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.917e-05/0.4964, allocations: 58.55 kB / 0.4932 GB, free: 5.082 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002718/0.4966, allocations: 43.61 kB / 0.4932 GB, free: 5.039 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003225/0.497, allocations: 290.4 kB / 0.4935 GB, free: 4.715 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.047e-05/0.497, allocations: 16.56 kB / 0.4935 GB, free: 4.699 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.809e-05/0.497, allocations: 24 kB / 0.4936 GB, free: 4.676 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004841/0.4975, allocations: 323.6 kB / 0.4939 GB, free: 4.328 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.518e-05/0.4976, allocations: 0 / 0.4939 GB, free: 4.328 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.562e-05/0.4976, allocations: 12 kB / 0.4939 GB, free: 4.316 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.001e-05/0.4976, allocations: 8 kB / 0.4939 GB, free: 4.309 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003087/0.4979, allocations: 201.6 kB / 0.4941 GB, free: 4.113 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.00167/0.4996, allocations: 1.592 MB / 0.4956 GB, free: 2.371 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002878/0.4999, allocations: 175.1 kB / 0.4958 GB, free: 2.191 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000141/0.5001, allocations: 96.77 kB / 0.4959 GB, free: 2.094 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.276e-05/0.5001, allocations: 4 kB / 0.4959 GB, free: 2.09 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.879e-05/0.5001, allocations: 34.56 kB / 0.4959 GB, free: 2.047 MB / 398.1 MB Notification: Performance of pre-optimization done (n=22): time 2.845e-06/0.5001, allocations: 0 / 0.4959 GB, free: 2.047 MB / 398.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.005451/0.5056, allocations: 1.629 MB / 0.4975 GB, free: 296 kB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.669e-05/0.5057, allocations: 55.41 kB / 0.4976 GB, free: 228 kB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002595/0.5059, allocations: 252.9 kB / 0.4978 GB, free: 15.97 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.669e-05/0.506, allocations: 33.7 kB / 0.4978 GB, free: 15.93 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001109/0.5061, allocations: 176.2 kB / 0.498 GB, free: 15.75 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.935e-05/0.5062, allocations: 94.64 kB / 0.4981 GB, free: 15.66 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001234/0.5063, allocations: 89.38 kB / 0.4982 GB, free: 15.56 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001511/0.5064, allocations: 342.7 kB / 0.4985 GB, free: 15.22 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001554/0.5066, allocations: 83.97 kB / 0.4986 GB, free: 15.14 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002237/0.5068, allocations: 195.7 kB / 0.4988 GB, free: 14.9 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000406/0.5073, allocations: 311.8 kB / 0.4991 GB, free: 14.55 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.843e-06/0.5073, allocations: 0 / 0.4991 GB, free: 14.55 MB / 414.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0005987/0.5079, allocations: 390.7 kB / 0.4994 GB, free: 14.16 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.772e-05/0.5079, allocations: 8.406 kB / 0.4995 GB, free: 14.15 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.855e-06/0.5079, allocations: 8 kB / 0.4995 GB, free: 14.14 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002085/0.5081, allocations: 65.69 kB / 0.4995 GB, free: 14.07 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000331/0.5085, allocations: 87.89 kB / 0.4996 GB, free: 13.99 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001334/0.5098, allocations: 1.95 MB / 0.5015 GB, free: 11.87 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002211/0.51, allocations: 23.89 kB / 0.5015 GB, free: 11.85 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.343e-05/0.5101, allocations: 36 kB / 0.5016 GB, free: 11.81 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.0001588/0.5103, allocations: 165.6 kB / 0.5017 GB, free: 11.64 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.894e-05/0.5104, allocations: 31.81 kB / 0.5018 GB, free: 11.61 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008878/0.5113, allocations: 426.1 kB / 0.5022 GB, free: 11.18 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.772e-06/0.5113, allocations: 4 kB / 0.5022 GB, free: 11.18 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.344e-06/0.5113, allocations: 0 / 0.5022 GB, free: 11.18 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005042/0.5118, allocations: 0.5711 MB / 0.5027 GB, free: 10.52 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009406/0.5127, allocations: 0.7311 MB / 0.5034 GB, free: 9.719 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.565e-06/0.5128, allocations: 0 / 0.5034 GB, free: 9.719 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003079/0.5131, allocations: 67.89 kB / 0.5035 GB, free: 9.652 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.508e-05/0.5132, allocations: 36.84 kB / 0.5035 GB, free: 9.613 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.44e-05/0.5132, allocations: 8 kB / 0.5035 GB, free: 9.605 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008115/0.514, allocations: 1.382 MB / 0.5049 GB, free: 8.082 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.895e-06/0.514, allocations: 3.984 kB / 0.5049 GB, free: 8.078 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006391/0.5147, allocations: 494 kB / 0.5054 GB, free: 7.57 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.864e-05/0.5147, allocations: 100.8 kB / 0.5055 GB, free: 7.453 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.028e-05/0.5148, allocations: 4 kB / 0.5055 GB, free: 7.449 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002547/0.5151, allocations: 15.98 kB / 0.5055 GB, free: 7.434 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.255e-05/0.5151, allocations: 27.97 kB / 0.5055 GB, free: 7.406 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.106e-05/0.5152, allocations: 27.98 kB / 0.5055 GB, free: 7.379 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001727/0.5154, allocations: 194 kB / 0.5057 GB, free: 7.191 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5154, allocations: 0 / 0.5057 GB, free: 7.191 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0005049/0.5159, allocations: 123.9 kB / 0.5058 GB, free: 7.07 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.001091/0.517, allocations: 1.054 MB / 0.5069 GB, free: 5.98 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0006593/0.5176, allocations: 390.6 kB / 0.5072 GB, free: 5.586 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.5177, allocations: 0 / 0.5072 GB, free: 5.586 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002743/0.5179, allocations: 234.5 kB / 0.5075 GB, free: 5.344 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009061/0.5189, allocations: 166.4 kB / 0.5076 GB, free: 5.18 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003785/0.5226, allocations: 3.286 MB / 0.5108 GB, free: 1.723 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000339/0.523, allocations: 0.7684 MB / 0.5116 GB, free: 0.9297 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0005433/0.5236, allocations: 118.9 kB / 0.5117 GB, free: 0.8125 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002552/0.5238, allocations: 123.4 kB / 0.5118 GB, free: 0.6953 MB / 414.1 MB Notification: Performance of SimCode: time 7.01e-07/0.5238, allocations: 4 kB / 0.5118 GB, free: 0.6914 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02784/0.5517, allocations: 11.65 MB / 0.5232 GB, free: 5.012 MB / 430.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001702/0.5519, allocations: 250 kB / 0.5234 GB, free: 4.754 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.017/2.568, allocations: 0 / 0.5234 GB, free: 4.754 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.Air_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Media_Examples_Tests_MediaTestModels_IdealGases_Air_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 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.mat","/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","../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