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.001655/0.001655, allocations: 99.02 kB / 17.58 MB, free: 5.418 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.002037/0.002037, allocations: 192 kB / 18.51 MB, free: 4.508 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.586/2.586, allocations: 205.1 MB / 224.4 MB, free: 12.31 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.001636/0.001636, allocations: 43.94 kB / 280.8 MB, free: 3.062 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1642/0.1658, allocations: 46.64 MB / 327.4 MB, free: 4.355 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas): time 0.7152/0.8811, allocations: 175.5 MB / 0.4911 GB, free: 7.488 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.006308/0.8875, allocations: 3.838 MB / 0.4948 GB, free: 3.641 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005278/0.8881, allocations: 8 kB / 0.4949 GB, free: 3.633 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001374/0.8895, allocations: 242.6 kB / 0.4951 GB, free: 3.395 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001381/0.8909, allocations: 354.1 kB / 0.4954 GB, free: 3.047 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002566/0.8935, allocations: 0.5426 MB / 0.496 GB, free: 2.504 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.00188/0.8954, allocations: 1.099 MB / 0.497 GB, free: 1.398 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005811/0.896, allocations: 291.4 kB / 0.4973 GB, free: 1.125 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004787/0.9008, allocations: 1.29 MB / 0.4986 GB, free: 15.83 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009394/0.9018, allocations: 406.7 kB / 0.4989 GB, free: 15.43 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002272/0.902, allocations: 68 kB / 0.499 GB, free: 15.37 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001952/0.904, allocations: 0.5654 MB / 0.4996 GB, free: 14.8 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005572/0.9046, allocations: 447 kB / 0.5 GB, free: 14.36 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008442/0.9054, allocations: 0.4904 MB / 0.5005 GB, free: 13.87 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002936/0.9084, allocations: 1.554 MB / 0.502 GB, free: 12.31 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.137e-05/0.9084, allocations: 4 kB / 0.502 GB, free: 12.31 MB / 414.1 MB Notification: Performance of FrontEnd: time 3.607e-06/0.9084, allocations: 3.938 kB / 0.502 GB, free: 12.3 MB / 414.1 MB Notification: Performance of Transformations before backend: time 2.734e-05/0.9085, allocations: 0 / 0.502 GB, free: 12.3 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.00301/0.9115, allocations: 1.064 MB / 0.503 GB, free: 11.19 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.303e-05/0.9116, allocations: 12.03 kB / 0.503 GB, free: 11.18 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002413/0.9118, allocations: 118.5 kB / 0.5032 GB, free: 11.05 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001412/0.9133, allocations: 147.1 kB / 0.5033 GB, free: 10.91 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001253/0.9145, allocations: 472.8 kB / 0.5038 GB, free: 10.4 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.233e-05/0.9147, allocations: 57.25 kB / 0.5038 GB, free: 10.35 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001821/0.9149, allocations: 71.91 kB / 0.5039 GB, free: 10.28 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002656/0.9175, allocations: 0.9513 MB / 0.5048 GB, free: 9.32 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.076e-05/0.9176, allocations: 4 kB / 0.5048 GB, free: 9.316 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001686/0.9178, allocations: 28 kB / 0.5048 GB, free: 9.289 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001061/0.9179, allocations: 45.92 kB / 0.5049 GB, free: 9.242 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002437/0.9204, allocations: 0.8745 MB / 0.5057 GB, free: 8.367 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.01058/0.931, allocations: 3.488 MB / 0.5091 GB, free: 4.605 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001604/0.9326, allocations: 0.644 MB / 0.5098 GB, free: 3.953 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008439/0.9335, allocations: 362.2 kB / 0.5101 GB, free: 3.598 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.388e-05/0.9336, allocations: 16.53 kB / 0.5101 GB, free: 3.582 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.071e-05/0.9336, allocations: 51.06 kB / 0.5102 GB, free: 3.523 MB / 414.1 MB Notification: Performance of pre-optimization done (n=59): time 4.278e-06/0.9337, allocations: 0 / 0.5102 GB, free: 3.523 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.0241/0.9578, allocations: 6.219 MB / 0.5163 GB, free: 12.91 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.693e-05/0.9579, allocations: 56.06 kB / 0.5163 GB, free: 12.84 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001118/0.959, allocations: 0.5525 MB / 0.5168 GB, free: 12.28 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001257/0.9592, allocations: 45.7 kB / 0.5169 GB, free: 12.23 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002528/0.9594, allocations: 280.5 kB / 0.5172 GB, free: 11.95 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000235/0.9597, allocations: 252.3 kB / 0.5174 GB, free: 11.7 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000305/0.96, allocations: 146.7 kB / 0.5175 GB, free: 11.55 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0002006/0.9602, allocations: 362.8 kB / 0.5179 GB, free: 11.19 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007084/0.9609, allocations: 445.7 kB / 0.5183 GB, free: 10.75 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008069/0.9617, allocations: 0.5194 MB / 0.5188 GB, free: 10.22 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001558/0.9633, allocations: 0.9681 MB / 0.5198 GB, free: 9.234 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.496e-06/0.9633, allocations: 0 / 0.5198 GB, free: 9.234 MB / 430.1 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.002463/0.9658, allocations: 1.347 MB / 0.5211 GB, free: 7.852 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.295e-05/0.9658, allocations: 8.625 kB / 0.5211 GB, free: 7.844 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.118e-05/0.9659, allocations: 3.938 kB / 0.5211 GB, free: 7.84 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006638/0.9665, allocations: 334.8 kB / 0.5214 GB, free: 7.488 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001016/0.9676, allocations: 183.8 kB / 0.5216 GB, free: 7.309 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009188/0.9767, allocations: 10.95 MB / 0.5323 GB, free: 11.35 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007914/0.9776, allocations: 24.02 kB / 0.5323 GB, free: 11.33 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001068/0.9777, allocations: 51.98 kB / 0.5323 GB, free: 11.28 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.0006366/0.9784, allocations: 277.5 kB / 0.5326 GB, free: 11 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001992/0.9786, allocations: 71.28 kB / 0.5327 GB, free: 10.93 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002392/0.981, allocations: 1.283 MB / 0.5339 GB, free: 9.609 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.264e-05/0.981, allocations: 8 kB / 0.5339 GB, free: 9.602 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.375e-06/0.981, allocations: 7.938 kB / 0.5339 GB, free: 9.594 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002002/0.983, allocations: 1.606 MB / 0.5355 GB, free: 7.828 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00386/0.9869, allocations: 2.26 MB / 0.5377 GB, free: 5.496 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.254e-06/0.9869, allocations: 4 kB / 0.5377 GB, free: 5.492 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001217/0.9881, allocations: 219.7 kB / 0.5379 GB, free: 5.277 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002597/0.9884, allocations: 72.81 kB / 0.538 GB, free: 5.203 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.448e-05/0.9885, allocations: 43.91 kB / 0.538 GB, free: 5.16 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001672/0.9902, allocations: 1.523 MB / 0.5395 GB, free: 3.496 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.32e-06/0.9902, allocations: 7.922 kB / 0.5395 GB, free: 3.488 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002677/0.9929, allocations: 1.59 MB / 0.5411 GB, free: 1.875 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002466/0.9932, allocations: 148.3 kB / 0.5412 GB, free: 1.711 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001406/0.9933, allocations: 23.98 kB / 0.5413 GB, free: 1.688 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007283/0.9941, allocations: 47.91 kB / 0.5413 GB, free: 1.641 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001261/0.9942, allocations: 60.52 kB / 0.5414 GB, free: 1.578 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001144/0.9943, allocations: 59.94 kB / 0.5414 GB, free: 1.52 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0006002/0.9949, allocations: 403.1 kB / 0.5418 GB, free: 1.125 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.9949, allocations: 0 / 0.5418 GB, free: 1.125 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001373/0.9963, allocations: 343.9 kB / 0.5421 GB, free: 0.7891 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.3091/1.305, allocations: 2.609 MB / 0.5447 GB, free: 179.7 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.005631/1.311, allocations: 2.11 MB / 0.5467 GB, free: 178.9 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.466e-05/1.311, allocations: 2.281 kB / 0.5467 GB, free: 178.9 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001752/1.313, allocations: 0.679 MB / 0.5474 GB, free: 178.8 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004347/1.317, allocations: 0.5076 MB / 0.5479 GB, free: 178.8 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02345/1.341, allocations: 8.976 MB / 0.5567 GB, free: 174.5 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009284/1.342, allocations: 0.974 MB / 0.5576 GB, free: 173.8 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002127/1.344, allocations: 273.4 kB / 0.5579 GB, free: 173.7 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000801/1.345, allocations: 279.3 kB / 0.5581 GB, free: 173.6 MB / 446.1 MB Notification: Performance of SimCode: time 1.703e-06/1.345, allocations: 1.375 kB / 0.5581 GB, free: 173.6 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.108/1.453, allocations: 33.25 MB / 0.5906 GB, free: 143.8 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 20.96/22.41, allocations: 12.56 kB / 0.5906 GB, free: 143.8 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 & 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