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.001094/0.001094, allocations: 105.5 kB / 18.39 MB, free: 4.699 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.0009843/0.0009845, allocations: 183.1 kB / 19.33 MB, free: 3.777 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.278/1.278, allocations: 205.1 MB / 225.2 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.001355/0.001355, allocations: 51.92 kB / 329.2 MB, free: 3.266 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0871/0.08846, allocations: 46.62 MB / 375.9 MB, free: 4.539 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas): time 0.3422/0.4307, allocations: 175.5 MB / 0.5384 GB, free: 15.55 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.004362/0.4351, allocations: 3.838 MB / 0.5422 GB, free: 11.7 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002946/0.4355, allocations: 7.938 kB / 0.5422 GB, free: 11.69 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007192/0.4362, allocations: 238.7 kB / 0.5424 GB, free: 11.46 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007393/0.437, allocations: 362 kB / 0.5428 GB, free: 11.1 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001361/0.4383, allocations: 0.5353 MB / 0.5433 GB, free: 10.57 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.001133/0.4395, allocations: 1.091 MB / 0.5444 GB, free: 9.473 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003546/0.4398, allocations: 303.9 kB / 0.5446 GB, free: 9.18 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00252/0.4424, allocations: 1.303 MB / 0.5459 GB, free: 7.879 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005968/0.443, allocations: 398.7 kB / 0.5463 GB, free: 7.488 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001475/0.4431, allocations: 75.92 kB / 0.5464 GB, free: 7.414 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001016/0.4442, allocations: 475.1 kB / 0.5468 GB, free: 6.949 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004025/0.4446, allocations: 435 kB / 0.5472 GB, free: 6.523 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006612/0.4452, allocations: 498.2 kB / 0.5477 GB, free: 6.035 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001597/0.4468, allocations: 1.539 MB / 0.5492 GB, free: 4.492 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.476e-06/0.4469, allocations: 0 / 0.5492 GB, free: 4.492 MB / 478.1 MB Notification: Performance of FrontEnd: time 2.795e-06/0.4469, allocations: 0 / 0.5492 GB, free: 4.492 MB / 478.1 MB Notification: Performance of Transformations before backend: time 3.27e-05/0.4469, allocations: 3.938 kB / 0.5492 GB, free: 4.488 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.001941/0.4488, allocations: 1.061 MB / 0.5503 GB, free: 3.379 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.504e-05/0.4489, allocations: 12.02 kB / 0.5503 GB, free: 3.367 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000682/0.4496, allocations: 151 kB / 0.5504 GB, free: 3.219 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007338/0.4503, allocations: 484.7 kB / 0.5509 GB, free: 2.703 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.862e-05/0.4504, allocations: 53.31 kB / 0.5509 GB, free: 2.648 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001047/0.4505, allocations: 68 kB / 0.551 GB, free: 2.582 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001452/0.452, allocations: 0.9474 MB / 0.5519 GB, free: 1.629 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.851e-05/0.452, allocations: 7.906 kB / 0.5519 GB, free: 1.621 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.503e-05/0.4521, allocations: 28 kB / 0.5519 GB, free: 1.594 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.601e-05/0.4521, allocations: 41.98 kB / 0.552 GB, free: 1.555 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001216/0.4534, allocations: 0.8745 MB / 0.5528 GB, free: 0.6758 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.1727/0.6261, allocations: 3.379 MB / 0.5561 GB, free: 168.9 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009786/0.6271, allocations: 0.641 MB / 0.5568 GB, free: 168.9 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000414/0.6275, allocations: 359.3 kB / 0.5571 GB, free: 168.7 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.677e-05/0.6276, allocations: 19.91 kB / 0.5571 GB, free: 168.7 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.998e-05/0.6276, allocations: 55 kB / 0.5572 GB, free: 168.7 MB / 478.1 MB Notification: Performance of pre-optimization done (n=59): time 2.705e-06/0.6276, allocations: 0 / 0.5572 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.0139/0.6415, allocations: 6.071 MB / 0.5631 GB, free: 165.4 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.123e-05/0.6416, allocations: 60.11 kB / 0.5632 GB, free: 165.3 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006537/0.6423, allocations: 0.5449 MB / 0.5637 GB, free: 165.1 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 9.114e-05/0.6424, allocations: 43.64 kB / 0.5637 GB, free: 165 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001555/0.6425, allocations: 283.4 kB / 0.564 GB, free: 164.8 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000145/0.6427, allocations: 247.5 kB / 0.5642 GB, free: 164.6 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002353/0.6429, allocations: 149.8 kB / 0.5644 GB, free: 164.5 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 8.883e-05/0.643, allocations: 372 kB / 0.5647 GB, free: 164.2 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000594/0.6436, allocations: 445.2 kB / 0.5652 GB, free: 164.1 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006381/0.6443, allocations: 0.5214 MB / 0.5657 GB, free: 163.8 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001194/0.6455, allocations: 0.9644 MB / 0.5666 GB, free: 163.4 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.6455, allocations: 1.344 kB / 0.5666 GB, free: 163.4 MB / 478.1 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.001823/0.6473, allocations: 1.345 MB / 0.5679 GB, free: 162.8 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.983e-05/0.6473, allocations: 7.688 kB / 0.5679 GB, free: 162.8 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.843e-06/0.6474, allocations: 0 / 0.5679 GB, free: 162.8 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005561/0.6479, allocations: 334.6 kB / 0.5683 GB, free: 162.6 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009466/0.6489, allocations: 182.9 kB / 0.5684 GB, free: 162.6 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005719/0.6546, allocations: 10.96 MB / 0.5791 GB, free: 152 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005691/0.6552, allocations: 18.91 kB / 0.5792 GB, free: 152 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.431e-05/0.6553, allocations: 46.03 kB / 0.5792 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.0004757/0.6558, allocations: 276.3 kB / 0.5795 GB, free: 151.8 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001538/0.6559, allocations: 63.41 kB / 0.5795 GB, free: 151.7 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001968/0.6579, allocations: 1.286 MB / 0.5808 GB, free: 151.2 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.326e-06/0.6579, allocations: 7.938 kB / 0.5808 GB, free: 151.2 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.899e-06/0.6579, allocations: 1.281 kB / 0.5808 GB, free: 151.2 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001511/0.6595, allocations: 1.609 MB / 0.5824 GB, free: 150 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003137/0.6626, allocations: 2.262 MB / 0.5846 GB, free: 148.9 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.13e-06/0.6626, allocations: 1.281 kB / 0.5846 GB, free: 148.9 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001119/0.6638, allocations: 224.8 kB / 0.5848 GB, free: 148.9 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001684/0.6639, allocations: 70.73 kB / 0.5849 GB, free: 148.9 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.903e-05/0.664, allocations: 40.42 kB / 0.5849 GB, free: 148.9 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009197/0.6649, allocations: 1.538 MB / 0.5864 GB, free: 147.4 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.665, allocations: 5.312 kB / 0.5864 GB, free: 147.4 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002059/0.667, allocations: 1.59 MB / 0.588 GB, free: 146.6 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000171/0.6672, allocations: 145.1 kB / 0.5881 GB, free: 146.4 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001168/0.6673, allocations: 22.41 kB / 0.5881 GB, free: 146.4 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000625/0.668, allocations: 41.62 kB / 0.5882 GB, free: 146.4 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.059e-05/0.6681, allocations: 56.52 kB / 0.5882 GB, free: 146.4 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.502e-05/0.6681, allocations: 67.28 kB / 0.5883 GB, free: 146.3 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0003891/0.6685, allocations: 404.1 kB / 0.5887 GB, free: 146.1 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.6686, allocations: 0 / 0.5887 GB, free: 146.1 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.001047/0.6696, allocations: 334.5 kB / 0.589 GB, free: 146.1 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.001225/0.6708, allocations: 0.4971 MB / 0.5895 GB, free: 145.8 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.002005/0.6729, allocations: 1.877 MB / 0.5913 GB, free: 144.5 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 6.672e-06/0.6729, allocations: 6.328 kB / 0.5913 GB, free: 144.5 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007215/0.6736, allocations: 0.6848 MB / 0.592 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.001879/0.6755, allocations: 0.502 MB / 0.5925 GB, free: 143.8 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003/0.6785, allocations: 2.267 MB / 0.5947 GB, free: 142.2 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000343/0.6789, allocations: 0.9749 MB / 0.5956 GB, free: 141.2 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002799/0.6791, allocations: 91.41 kB / 0.5957 GB, free: 141.2 MB / 478.1 MB Notification: Performance of SimCode: time 5.31e-07/0.6792, allocations: 0 / 0.5957 GB, free: 141.2 MB / 478.1 MB Notification: Performance of Templates: time 0.02296/0.7021, allocations: 26.94 MB / 0.622 GB, free: 114.1 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/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