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.0009946/0.0009947, allocations: 103.4 kB / 17.16 MB, free: 6.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.00109/0.00109, allocations: 190 kB / 18.07 MB, free: 5.414 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.261/1.261, allocations: 205.1 MB / 223.9 MB, free: 12.48 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.001117/0.001117, allocations: 47.92 kB / 280.1 MB, free: 3.48 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09507/0.09619, allocations: 46.63 MB / 326.7 MB, free: 4.785 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas): time 0.3389/0.4352, allocations: 173.5 MB / 0.4885 GB, free: 10.04 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.004968/0.4402, allocations: 3.864 MB / 0.4922 GB, free: 6.172 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002072/0.4405, allocations: 11.94 kB / 0.4922 GB, free: 6.16 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006964/0.4412, allocations: 211 kB / 0.4924 GB, free: 5.953 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005904/0.4418, allocations: 350.3 kB / 0.4928 GB, free: 5.609 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001263/0.4431, allocations: 0.4966 MB / 0.4933 GB, free: 5.113 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001484/0.4446, allocations: 1.587 MB / 0.4948 GB, free: 3.52 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003367/0.4449, allocations: 240.4 kB / 0.495 GB, free: 3.289 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00258/0.4475, allocations: 1.22 MB / 0.4962 GB, free: 2.066 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000477/0.448, allocations: 470.6 kB / 0.4967 GB, free: 1.605 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 9.557e-05/0.4481, allocations: 36 kB / 0.4967 GB, free: 1.57 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001213/0.4493, allocations: 0.7797 MB / 0.4975 GB, free: 0.7891 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003053/0.4496, allocations: 411 kB / 0.4979 GB, free: 396 kB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004462/0.4501, allocations: 466.2 kB / 0.4983 GB, free: 15.93 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00142/0.4515, allocations: 1.597 MB / 0.4999 GB, free: 14.33 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.033e-06/0.4515, allocations: 3.984 kB / 0.4999 GB, free: 14.32 MB / 414.1 MB Notification: Performance of FrontEnd: time 7.81e-07/0.4515, allocations: 0 / 0.4999 GB, free: 14.32 MB / 414.1 MB Notification: Performance of Transformations before backend: time 8.446e-06/0.4515, allocations: 0 / 0.4999 GB, free: 14.32 MB / 414.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.001541/0.4531, allocations: 1.061 MB / 0.5009 GB, free: 13.21 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.747e-05/0.4531, allocations: 8.031 kB / 0.5009 GB, free: 13.21 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001377/0.4533, allocations: 118.5 kB / 0.501 GB, free: 13.08 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006015/0.4539, allocations: 151 kB / 0.5012 GB, free: 12.93 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006092/0.4545, allocations: 476.8 kB / 0.5016 GB, free: 12.43 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.576e-05/0.4545, allocations: 49.31 kB / 0.5017 GB, free: 12.38 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.671e-05/0.4547, allocations: 72 kB / 0.5017 GB, free: 12.31 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001334/0.456, allocations: 0.9551 MB / 0.5027 GB, free: 11.35 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.763e-05/0.456, allocations: 7.906 kB / 0.5027 GB, free: 11.34 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.423e-05/0.4561, allocations: 31.94 kB / 0.5027 GB, free: 11.31 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.454e-05/0.4562, allocations: 45.92 kB / 0.5028 GB, free: 11.26 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001129/0.4573, allocations: 0.8745 MB / 0.5036 GB, free: 10.39 MB / 414.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.004779/0.4621, allocations: 3.45 MB / 0.507 GB, free: 6.656 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007853/0.4629, allocations: 0.6484 MB / 0.5076 GB, free: 6.004 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004288/0.4633, allocations: 374 kB / 0.508 GB, free: 5.637 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.531e-05/0.4634, allocations: 16.53 kB / 0.508 GB, free: 5.621 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.776e-05/0.4634, allocations: 55.06 kB / 0.508 GB, free: 5.559 MB / 414.1 MB Notification: Performance of pre-optimization done (n=59): time 1.974e-06/0.4634, allocations: 0 / 0.508 GB, free: 5.559 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.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.01351/0.4769, allocations: 6.2 MB / 0.5141 GB, free: 14.96 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.906e-05/0.477, allocations: 64.06 kB / 0.5142 GB, free: 14.88 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005716/0.4776, allocations: 0.5486 MB / 0.5147 GB, free: 14.33 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 6.826e-05/0.4777, allocations: 41.7 kB / 0.5147 GB, free: 14.28 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001627/0.4778, allocations: 280.6 kB / 0.515 GB, free: 14 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001693/0.478, allocations: 248.4 kB / 0.5152 GB, free: 13.76 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002395/0.4783, allocations: 146.6 kB / 0.5154 GB, free: 13.61 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.000127/0.4784, allocations: 366.8 kB / 0.5157 GB, free: 13.24 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005746/0.479, allocations: 445.7 kB / 0.5162 GB, free: 12.81 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006358/0.4796, allocations: 0.5155 MB / 0.5167 GB, free: 12.27 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001204/0.4808, allocations: 0.972 MB / 0.5176 GB, free: 11.29 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.4808, allocations: 4 kB / 0.5176 GB, free: 11.28 MB / 430.1 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.001862/0.4827, allocations: 1.347 MB / 0.5189 GB, free: 9.902 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.817e-05/0.4827, allocations: 8.562 kB / 0.5189 GB, free: 9.895 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.147e-06/0.4828, allocations: 8 kB / 0.5189 GB, free: 9.887 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005609/0.4833, allocations: 334.8 kB / 0.5193 GB, free: 9.535 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000903/0.4842, allocations: 175.8 kB / 0.5194 GB, free: 9.363 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007474/0.4917, allocations: 10.24 MB / 0.5294 GB, free: 14.17 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007852/0.4925, allocations: 87.84 kB / 0.5295 GB, free: 14.08 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.812e-05/0.4926, allocations: 39.98 kB / 0.5295 GB, free: 14.04 MB / 446.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.0005666/0.4932, allocations: 277.5 kB / 0.5298 GB, free: 13.76 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001789/0.4934, allocations: 59.34 kB / 0.5299 GB, free: 13.7 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002095/0.4955, allocations: 1.294 MB / 0.5311 GB, free: 12.37 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.426e-06/0.4955, allocations: 4 kB / 0.5311 GB, free: 12.37 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.586e-06/0.4955, allocations: 7.938 kB / 0.5311 GB, free: 12.36 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001633/0.4972, allocations: 1.598 MB / 0.5327 GB, free: 10.6 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003245/0.5004, allocations: 2.272 MB / 0.5349 GB, free: 8.254 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.432e-06/0.5005, allocations: 4 kB / 0.5349 GB, free: 8.25 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001093/0.5016, allocations: 219.8 kB / 0.5351 GB, free: 8.035 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001825/0.5018, allocations: 64.78 kB / 0.5352 GB, free: 7.969 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.115e-05/0.5018, allocations: 43.97 kB / 0.5352 GB, free: 7.926 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001097/0.5029, allocations: 1.428 MB / 0.5366 GB, free: 6.363 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.985e-06/0.503, allocations: 8.094 kB / 0.5366 GB, free: 6.355 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002073/0.505, allocations: 1.597 MB / 0.5382 GB, free: 4.734 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001982/0.5052, allocations: 140.4 kB / 0.5383 GB, free: 4.578 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001242/0.5054, allocations: 35.94 kB / 0.5384 GB, free: 4.543 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007075/0.5061, allocations: 75.78 kB / 0.5384 GB, free: 4.469 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001046/0.5062, allocations: 52.58 kB / 0.5385 GB, free: 4.414 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000102/0.5063, allocations: 63.94 kB / 0.5386 GB, free: 4.352 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0004137/0.5067, allocations: 407.1 kB / 0.5389 GB, free: 3.949 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.5067, allocations: 0 / 0.5389 GB, free: 3.949 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001056/0.5078, allocations: 343.9 kB / 0.5393 GB, free: 3.613 MB / 446.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.003789/0.5116, allocations: 2.611 MB / 0.5418 GB, free: 0.9648 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.1946/0.7062, allocations: 1.861 MB / 0.5436 GB, free: 74.46 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 7.674e-06/0.7062, allocations: 1.875 kB / 0.5436 GB, free: 74.46 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001044/0.7073, allocations: 0.6879 MB / 0.5443 GB, free: 74.36 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002329/0.7096, allocations: 496.8 kB / 0.5448 GB, free: 74.35 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01161/0.7212, allocations: 9.202 MB / 0.5538 GB, free: 71.74 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005795/0.7219, allocations: 0.9768 MB / 0.5547 GB, free: 71.04 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.00126/0.7231, allocations: 283.5 kB / 0.555 GB, free: 70.98 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004081/0.7236, allocations: 275.6 kB / 0.5553 GB, free: 70.97 MB / 446.1 MB Notification: Performance of SimCode: time 1.293e-06/0.7236, allocations: 5.875 kB / 0.5553 GB, free: 70.97 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04392/0.7675, allocations: 32.14 MB / 0.5866 GB, free: 52.12 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000161/0.7677, allocations: 258 kB / 0.5869 GB, free: 51.77 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.022/3.79, allocations: 3.938 kB / 0.5869 GB, free: 51.77 MB / 446.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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Media_Examples_Tests_MediaTestModels_IdealGases_SimpleNaturalGas_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 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.mat","/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","../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