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: translateModel(Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.T|volume.medium.X.1.|volume.medium.X.2.|volume.medium.X.3.|volume.medium.X.4.|volume.medium.X.5.|volume.medium.X.6.|volume.medium.p",fileNamePrefix="Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas") translateModel(Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.T|volume.medium.X.1.|volume.medium.X.2.|volume.medium.X.3.|volume.medium.X.4.|volume.medium.X.5.|volume.medium.X.6.|volume.medium.p",fileNamePrefix="Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001122/0.001122, allocations: 106.1 kB / 17.72 MB, free: 5.242 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.001221/0.001221, allocations: 187.1 kB / 18.66 MB, free: 4.312 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.599/1.599, allocations: 205.1 MB / 224.5 MB, free: 12.23 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.002065/0.002065, allocations: 55.91 kB / 328.6 MB, free: 3.258 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1334/0.1355, allocations: 46.61 MB / 375.2 MB, free: 4.535 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas): time 0.473/0.6086, allocations: 175.5 MB / 0.5378 GB, free: 15.55 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.0055/0.6141, allocations: 3.838 MB / 0.5415 GB, free: 11.69 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004465/0.6146, allocations: 4 kB / 0.5415 GB, free: 11.69 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001046/0.6157, allocations: 242.6 kB / 0.5418 GB, free: 11.45 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00103/0.6168, allocations: 362 kB / 0.5421 GB, free: 11.09 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001877/0.6187, allocations: 0.5474 MB / 0.5426 GB, free: 10.55 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.001678/0.6204, allocations: 1.087 MB / 0.5437 GB, free: 9.457 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000496/0.6209, allocations: 298.8 kB / 0.544 GB, free: 9.168 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003173/0.624, allocations: 1.299 MB / 0.5453 GB, free: 7.871 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008016/0.6249, allocations: 406.7 kB / 0.5456 GB, free: 7.473 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002426/0.6251, allocations: 68 kB / 0.5457 GB, free: 7.406 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001416/0.6265, allocations: 479.1 kB / 0.5462 GB, free: 6.938 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005362/0.6271, allocations: 439 kB / 0.5466 GB, free: 6.508 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009251/0.628, allocations: 498.2 kB / 0.5471 GB, free: 6.02 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002142/0.6302, allocations: 1.539 MB / 0.5486 GB, free: 4.477 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.647e-06/0.6302, allocations: 0 / 0.5486 GB, free: 4.477 MB / 478.1 MB Notification: Performance of FrontEnd: time 2.144e-06/0.6302, allocations: 0 / 0.5486 GB, free: 4.477 MB / 478.1 MB Notification: Performance of Transformations before backend: time 5.916e-05/0.6303, allocations: 0 / 0.5486 GB, free: 4.477 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.002258/0.6325, allocations: 1.069 MB / 0.5496 GB, free: 3.359 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.535e-05/0.6326, allocations: 12.03 kB / 0.5496 GB, free: 3.348 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007274/0.6333, allocations: 147.7 kB / 0.5498 GB, free: 3.203 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008029/0.6341, allocations: 484.8 kB / 0.5502 GB, free: 2.688 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.326e-05/0.6342, allocations: 45.31 kB / 0.5503 GB, free: 2.641 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001206/0.6343, allocations: 68 kB / 0.5503 GB, free: 2.574 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001592/0.6359, allocations: 0.9551 MB / 0.5513 GB, free: 1.613 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.859e-05/0.636, allocations: 7.906 kB / 0.5513 GB, free: 1.605 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000106/0.6361, allocations: 28 kB / 0.5513 GB, free: 1.578 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.851e-05/0.6361, allocations: 41.98 kB / 0.5513 GB, free: 1.539 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001303/0.6375, allocations: 0.8784 MB / 0.5522 GB, free: 0.6562 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.245/0.8825, allocations: 3.379 MB / 0.5555 GB, free: 169 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001287/0.8838, allocations: 0.6362 MB / 0.5561 GB, free: 168.9 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005183/0.8844, allocations: 360.7 kB / 0.5565 GB, free: 168.7 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.413e-05/0.8844, allocations: 16.06 kB / 0.5565 GB, free: 168.7 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.418e-05/0.8845, allocations: 46.64 kB / 0.5565 GB, free: 168.7 MB / 478.1 MB Notification: Performance of pre-optimization done (n=59): time 3.186e-06/0.8845, allocations: 0 / 0.5565 GB, free: 168.7 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.01543/0.8999, allocations: 6.079 MB / 0.5625 GB, free: 165.4 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.991e-05/0.9, allocations: 64.31 kB / 0.5625 GB, free: 165.3 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007107/0.9007, allocations: 0.5402 MB / 0.563 GB, free: 165.1 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 7.817e-05/0.9008, allocations: 43.61 kB / 0.5631 GB, free: 165 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001825/0.901, allocations: 282.6 kB / 0.5634 GB, free: 164.8 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001819/0.9012, allocations: 249.2 kB / 0.5636 GB, free: 164.6 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002542/0.9014, allocations: 150.3 kB / 0.5637 GB, free: 164.6 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001131/0.9015, allocations: 371.3 kB / 0.5641 GB, free: 164.2 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006808/0.9022, allocations: 445.6 kB / 0.5645 GB, free: 164.1 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007008/0.9029, allocations: 0.5178 MB / 0.565 GB, free: 163.8 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001277/0.9042, allocations: 0.9717 MB / 0.566 GB, free: 163.4 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.914e-06/0.9042, allocations: 0 / 0.566 GB, free: 163.4 MB / 478.1 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.001955/0.9062, allocations: 1.344 MB / 0.5673 GB, free: 162.8 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.673e-05/0.9062, allocations: 6.359 kB / 0.5673 GB, free: 162.8 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.504e-06/0.9062, allocations: 2.625 kB / 0.5673 GB, free: 162.8 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005367/0.9068, allocations: 333.2 kB / 0.5676 GB, free: 162.6 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009831/0.9078, allocations: 176.7 kB / 0.5678 GB, free: 162.6 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005799/0.9136, allocations: 10.96 MB / 0.5785 GB, free: 152 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006058/0.9142, allocations: 19.38 kB / 0.5785 GB, free: 152 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.336e-05/0.9143, allocations: 46.42 kB / 0.5785 GB, free: 152 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.0004073/0.9147, allocations: 281.4 kB / 0.5788 GB, free: 151.8 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001503/0.9149, allocations: 62 kB / 0.5789 GB, free: 151.7 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00222/0.9171, allocations: 1.278 MB / 0.5801 GB, free: 151.2 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.989e-06/0.9171, allocations: 12.28 kB / 0.5801 GB, free: 151.2 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.657e-06/0.9171, allocations: 3.938 kB / 0.5801 GB, free: 151.1 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001705/0.9188, allocations: 1.614 MB / 0.5817 GB, free: 150 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003326/0.9222, allocations: 2.258 MB / 0.5839 GB, free: 148.9 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.091e-06/0.9222, allocations: 2.547 kB / 0.5839 GB, free: 148.9 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001163/0.9234, allocations: 221.3 kB / 0.5841 GB, free: 148.9 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001693/0.9236, allocations: 76.14 kB / 0.5842 GB, free: 148.9 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.747e-05/0.9236, allocations: 39.59 kB / 0.5842 GB, free: 148.9 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009222/0.9246, allocations: 1.535 MB / 0.5857 GB, free: 147.4 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.778e-06/0.9246, allocations: 5.281 kB / 0.5857 GB, free: 147.4 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002187/0.9268, allocations: 1.587 MB / 0.5873 GB, free: 146.5 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001502/0.9269, allocations: 145.6 kB / 0.5874 GB, free: 146.4 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001234/0.9271, allocations: 26.52 kB / 0.5875 GB, free: 146.4 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006744/0.9277, allocations: 37.94 kB / 0.5875 GB, free: 146.4 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001288/0.9279, allocations: 59.77 kB / 0.5876 GB, free: 146.3 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001008/0.928, allocations: 66.2 kB / 0.5876 GB, free: 146.3 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0004094/0.9284, allocations: 401.8 kB / 0.588 GB, free: 146.1 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.9284, allocations: 4 kB / 0.588 GB, free: 146.1 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.00115/0.9296, allocations: 333.2 kB / 0.5883 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.00126/0.9308, allocations: 0.491 MB / 0.5888 GB, free: 145.8 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.002182/0.933, allocations: 1.886 MB / 0.5906 GB, free: 144.5 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 5.831e-06/0.933, allocations: 5.203 kB / 0.5906 GB, free: 144.5 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008015/0.9339, allocations: 0.6859 MB / 0.5913 GB, free: 144.1 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002159/0.936, allocations: 0.5007 MB / 0.5918 GB, free: 143.8 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003163/0.9392, allocations: 2.196 MB / 0.594 GB, free: 142.3 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003851/0.9396, allocations: 0.9749 MB / 0.5949 GB, free: 141.3 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0007716/0.9404, allocations: 277.7 kB / 0.5952 GB, free: 141 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002489/0.9406, allocations: 95.41 kB / 0.5953 GB, free: 140.9 MB / 478.1 MB Notification: Performance of SimCode: time 8.02e-07/0.9407, allocations: 4 kB / 0.5953 GB, free: 140.9 MB / 478.1 MB Notification: Performance of Templates: time 0.03296/0.9736, allocations: 26.87 MB / 0.6215 GB, free: 114 MB / 478.1 MB make -j1 -f Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas.makefile (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 & ./Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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/jenkins/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/jenkins/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