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.001131/0.001131, allocations: 113.8 kB / 17.73 MB, free: 5.23 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.001281/0.001281, allocations: 187.1 kB / 18.66 MB, free: 4.305 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.328/1.328, allocations: 205.1 MB / 224.5 MB, free: 12.22 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.001323/0.001323, allocations: 56.12 kB / 328.1 MB, free: 3.754 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0831/0.08443, allocations: 46.61 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.3767/0.4612, allocations: 175.5 MB / 0.5373 GB, free: 15.87 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.004741/0.466, allocations: 3.842 MB / 0.541 GB, free: 12.01 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003525/0.4664, allocations: 7.938 kB / 0.5411 GB, free: 12 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008456/0.4673, allocations: 242.7 kB / 0.5413 GB, free: 11.76 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008438/0.4681, allocations: 370 kB / 0.5416 GB, free: 11.4 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001493/0.4696, allocations: 0.5513 MB / 0.5422 GB, free: 10.85 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.001264/0.4709, allocations: 1.095 MB / 0.5432 GB, free: 9.75 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000385/0.4713, allocations: 295.4 kB / 0.5435 GB, free: 9.465 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00289/0.4742, allocations: 1.296 MB / 0.5448 GB, free: 8.168 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000683/0.4749, allocations: 398.7 kB / 0.5452 GB, free: 7.777 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001787/0.4751, allocations: 72 kB / 0.5452 GB, free: 7.707 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001183/0.4763, allocations: 483.1 kB / 0.5457 GB, free: 7.234 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004449/0.4767, allocations: 435 kB / 0.5461 GB, free: 6.809 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000816/0.4776, allocations: 0.4904 MB / 0.5466 GB, free: 6.316 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001874/0.4794, allocations: 1.545 MB / 0.5481 GB, free: 4.77 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.387e-06/0.4795, allocations: 0 / 0.5481 GB, free: 4.77 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.4795, allocations: 0 / 0.5481 GB, free: 4.77 MB / 478.1 MB Notification: Performance of Transformations before backend: time 3.639e-05/0.4795, allocations: 0 / 0.5481 GB, free: 4.77 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.002144/0.4817, allocations: 1.086 MB / 0.5492 GB, free: 3.633 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.312e-05/0.4817, allocations: 8.031 kB / 0.5492 GB, free: 3.625 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002122/0.4819, allocations: 118.5 kB / 0.5493 GB, free: 3.5 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007214/0.4827, allocations: 151.5 kB / 0.5494 GB, free: 3.352 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007799/0.4835, allocations: 488.9 kB / 0.5499 GB, free: 2.832 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.114e-05/0.4835, allocations: 53.31 kB / 0.5499 GB, free: 2.777 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001147/0.4836, allocations: 64 kB / 0.55 GB, free: 2.715 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001566/0.4852, allocations: 0.9513 MB / 0.5509 GB, free: 1.758 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.087e-05/0.4852, allocations: 8 kB / 0.5509 GB, free: 1.75 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.182e-05/0.4853, allocations: 32 kB / 0.551 GB, free: 1.719 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.193e-05/0.4854, allocations: 45.97 kB / 0.551 GB, free: 1.676 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001363/0.4868, allocations: 0.8706 MB / 0.5519 GB, free: 0.8008 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.1805/0.6673, allocations: 3.39 MB / 0.5552 GB, free: 168.8 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001001/0.6683, allocations: 0.6358 MB / 0.5558 GB, free: 168.8 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004453/0.6688, allocations: 364.5 kB / 0.5562 GB, free: 168.6 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.892e-05/0.6688, allocations: 21.45 kB / 0.5562 GB, free: 168.6 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.48e-05/0.6689, allocations: 44.38 kB / 0.5562 GB, free: 168.6 MB / 478.1 MB Notification: Performance of pre-optimization done (n=59): time 2.284e-06/0.6689, allocations: 1.219 kB / 0.5562 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.01416/0.683, allocations: 6.087 MB / 0.5622 GB, free: 165.3 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.704e-05/0.6831, allocations: 59.19 kB / 0.5622 GB, free: 165.2 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006453/0.6838, allocations: 0.5475 MB / 0.5627 GB, free: 165 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 9.002e-05/0.6838, allocations: 39.45 kB / 0.5628 GB, free: 164.9 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001457/0.684, allocations: 282.9 kB / 0.5631 GB, free: 164.7 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000166/0.6842, allocations: 269.7 kB / 0.5633 GB, free: 164.5 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002379/0.6844, allocations: 150.1 kB / 0.5635 GB, free: 164.5 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 8.541e-05/0.6845, allocations: 375.5 kB / 0.5638 GB, free: 164.1 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006179/0.6851, allocations: 442.4 kB / 0.5642 GB, free: 164 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006644/0.6858, allocations: 0.5143 MB / 0.5647 GB, free: 163.8 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001193/0.687, allocations: 0.9682 MB / 0.5657 GB, free: 163.3 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.236e-06/0.687, allocations: 1.375 kB / 0.5657 GB, free: 163.3 MB / 478.1 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.001897/0.6889, allocations: 1.351 MB / 0.567 GB, free: 162.7 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.88e-05/0.689, allocations: 13.22 kB / 0.567 GB, free: 162.7 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.634e-06/0.689, allocations: 1.5 kB / 0.567 GB, free: 162.7 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005287/0.6895, allocations: 334.8 kB / 0.5673 GB, free: 162.6 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009058/0.6904, allocations: 177.4 kB / 0.5675 GB, free: 162.5 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005539/0.696, allocations: 10.96 MB / 0.5782 GB, free: 151.9 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000577/0.6966, allocations: 23.12 kB / 0.5782 GB, free: 151.9 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001207/0.6967, allocations: 46.06 kB / 0.5783 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.0004568/0.6972, allocations: 277 kB / 0.5785 GB, free: 151.7 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002143/0.6974, allocations: 67.44 kB / 0.5786 GB, free: 151.6 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002036/0.6994, allocations: 1.277 MB / 0.5799 GB, free: 151.1 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.305e-06/0.6995, allocations: 8 kB / 0.5799 GB, free: 151.1 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.292e-06/0.6995, allocations: 4.875 kB / 0.5799 GB, free: 151.1 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001577/0.7011, allocations: 1.61 MB / 0.5814 GB, free: 149.9 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003416/0.7045, allocations: 2.261 MB / 0.5836 GB, free: 148.8 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.34e-06/0.7045, allocations: 1.312 kB / 0.5836 GB, free: 148.8 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001133/0.7056, allocations: 222 kB / 0.5839 GB, free: 148.8 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001893/0.7058, allocations: 69.67 kB / 0.5839 GB, free: 148.8 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.631e-05/0.706, allocations: 36.69 kB / 0.584 GB, free: 148.8 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000945/0.7069, allocations: 1.542 MB / 0.5855 GB, free: 147.3 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.7069, allocations: 1.469 kB / 0.5855 GB, free: 147.3 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002198/0.7091, allocations: 1.597 MB / 0.587 GB, free: 146.5 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001891/0.7093, allocations: 143.4 kB / 0.5872 GB, free: 146.4 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001452/0.7095, allocations: 29.7 kB / 0.5872 GB, free: 146.3 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000702/0.7102, allocations: 37.53 kB / 0.5872 GB, free: 146.3 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001193/0.7103, allocations: 52.77 kB / 0.5873 GB, free: 146.3 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001272/0.7104, allocations: 70.75 kB / 0.5873 GB, free: 146.3 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0004249/0.7109, allocations: 403.9 kB / 0.5877 GB, free: 146 MB / 478.1 MB Notification: Performance of sort global known variables: time 8.52e-07/0.7109, allocations: 4 kB / 0.5877 GB, free: 146 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.00121/0.7121, allocations: 331.9 kB / 0.5881 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.003982/0.7161, allocations: 2.616 MB / 0.5906 GB, free: 144.4 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.002328/0.7185, allocations: 1.883 MB / 0.5924 GB, free: 143 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 9.228e-06/0.7185, allocations: 8.094 kB / 0.5925 GB, free: 143 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009643/0.7195, allocations: 0.6842 MB / 0.5931 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.002665/0.7221, allocations: 0.5127 MB / 0.5936 GB, free: 142.4 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01094/0.7331, allocations: 8.757 MB / 0.6022 GB, free: 133.5 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004227/0.7336, allocations: 0.971 MB / 0.6031 GB, free: 132.5 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0009295/0.7345, allocations: 281.7 kB / 0.6034 GB, free: 132.2 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004131/0.7349, allocations: 271.3 kB / 0.6037 GB, free: 131.9 MB / 478.1 MB Notification: Performance of SimCode: time 8.62e-07/0.735, allocations: 0 / 0.6037 GB, free: 131.9 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06337/0.7983, allocations: 33.91 MB / 0.6368 GB, free: 97.92 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.75/13.55, allocations: 0 / 0.6368 GB, free: 97.92 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