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/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/Complex 3.2.3+maint.om/package.mo): time 0.001041/0.001041, allocations: 187 kB / 17.91 MB, free: 3.855 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.214/1.214, allocations: 205.1 MB / 223.7 MB, free: 8.492 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000909/0.0009093, allocations: 94.3 kB / 271.1 MB, free: 8.445 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000761/0.000761, allocations: 43.94 kB / 327.2 MB, free: 316 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1931/0.1939, allocations: 46.61 MB / 373.8 MB, free: 45.67 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas): time 0.3469/0.5408, allocations: 173.5 MB / 0.5345 GB, free: 11.22 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.003583/0.5444, allocations: 3.871 MB / 0.5383 GB, free: 10.54 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002229/0.5447, allocations: 9.156 kB / 0.5383 GB, free: 10.54 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006371/0.5454, allocations: 215.8 kB / 0.5385 GB, free: 10.43 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005175/0.5459, allocations: 348.4 kB / 0.5388 GB, free: 10.26 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001127/0.547, allocations: 0.4981 MB / 0.5393 GB, free: 10.11 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.001092/0.5481, allocations: 1.606 MB / 0.5409 GB, free: 9.617 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002572/0.5484, allocations: 234.7 kB / 0.5411 GB, free: 9.555 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002265/0.5507, allocations: 1.223 MB / 0.5423 GB, free: 9.168 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004441/0.5511, allocations: 458.5 kB / 0.5427 GB, free: 9.07 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 8.177e-05/0.5512, allocations: 40.89 kB / 0.5427 GB, free: 9.07 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001139/0.5524, allocations: 0.773 MB / 0.5435 GB, free: 8.867 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002848/0.5527, allocations: 412.7 kB / 0.5439 GB, free: 8.723 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004073/0.5531, allocations: 461.2 kB / 0.5443 GB, free: 8.68 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001459/0.5546, allocations: 1.604 MB / 0.5459 GB, free: 8.031 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.877e-06/0.5546, allocations: 0 / 0.5459 GB, free: 8.031 MB / 394.7 MB Notification: Performance of FrontEnd: time 7.22e-07/0.5546, allocations: 0 / 0.5459 GB, free: 8.031 MB / 394.7 MB Notification: Performance of Transformations before backend: time 9.558e-06/0.5546, allocations: 0 / 0.5459 GB, free: 8.031 MB / 394.7 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.001569/0.5562, allocations: 1.06 MB / 0.5469 GB, free: 7.352 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.619e-05/0.5562, allocations: 10.38 kB / 0.5469 GB, free: 7.352 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006154/0.5568, allocations: 145.8 kB / 0.5471 GB, free: 7.293 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007732/0.5576, allocations: 482.5 kB / 0.5475 GB, free: 6.973 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.232e-05/0.5577, allocations: 53.09 kB / 0.5476 GB, free: 6.973 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.149e-05/0.5578, allocations: 65.47 kB / 0.5477 GB, free: 6.973 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001225/0.559, allocations: 0.959 MB / 0.5486 GB, free: 6.738 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.209e-05/0.559, allocations: 3.906 kB / 0.5486 GB, free: 6.734 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.779e-05/0.5591, allocations: 33.77 kB / 0.5486 GB, free: 6.734 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.466e-05/0.5592, allocations: 41.89 kB / 0.5487 GB, free: 6.727 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001019/0.5602, allocations: 0.8677 MB / 0.5495 GB, free: 6.602 MB / 394.7 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.004937/0.5651, allocations: 3.465 MB / 0.5529 GB, free: 4.43 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007117/0.5659, allocations: 0.6336 MB / 0.5535 GB, free: 4.32 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003946/0.5663, allocations: 376.6 kB / 0.5539 GB, free: 4.258 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.437e-05/0.5663, allocations: 19.48 kB / 0.5539 GB, free: 4.254 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.108e-05/0.5664, allocations: 47.12 kB / 0.5539 GB, free: 4.211 MB / 394.7 MB Notification: Performance of pre-optimization done (n=59): time 2.474e-06/0.5664, allocations: 0 / 0.5539 GB, free: 4.211 MB / 394.7 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.01384/0.5802, allocations: 6.21 MB / 0.56 GB, free: 108 kB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.322e-05/0.5803, allocations: 65.2 kB / 0.5601 GB, free: 32 kB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006652/0.581, allocations: 0.5525 MB / 0.5606 GB, free: 15.47 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 6.884e-05/0.581, allocations: 41.7 kB / 0.5607 GB, free: 15.43 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001767/0.5812, allocations: 276.6 kB / 0.5609 GB, free: 15.15 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001683/0.5814, allocations: 250 kB / 0.5612 GB, free: 14.91 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002323/0.5816, allocations: 150.6 kB / 0.5613 GB, free: 14.76 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001384/0.5818, allocations: 366.8 kB / 0.5616 GB, free: 14.39 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005771/0.5824, allocations: 445.7 kB / 0.5621 GB, free: 13.96 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006585/0.583, allocations: 0.5116 MB / 0.5626 GB, free: 13.43 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001221/0.5843, allocations: 0.972 MB / 0.5635 GB, free: 12.44 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.535e-06/0.5843, allocations: 0 / 0.5635 GB, free: 12.44 MB / 410.7 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.001877/0.5862, allocations: 1.348 MB / 0.5648 GB, free: 11.06 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.613e-05/0.5862, allocations: 4 kB / 0.5648 GB, free: 11.05 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.666e-06/0.5862, allocations: 4 kB / 0.5648 GB, free: 11.05 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005685/0.5868, allocations: 338.7 kB / 0.5652 GB, free: 10.7 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009259/0.5877, allocations: 179.8 kB / 0.5653 GB, free: 10.52 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006634/0.5944, allocations: 10.23 MB / 0.5753 GB, free: 15.34 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007453/0.5951, allocations: 75.88 kB / 0.5754 GB, free: 15.26 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.062e-05/0.5952, allocations: 47.98 kB / 0.5754 GB, free: 15.21 MB / 426.7 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.0004166/0.5956, allocations: 281.4 kB / 0.5757 GB, free: 14.93 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000139/0.5958, allocations: 63.34 kB / 0.5758 GB, free: 14.87 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0019/0.5977, allocations: 1.288 MB / 0.577 GB, free: 13.54 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.524e-06/0.5977, allocations: 8 kB / 0.577 GB, free: 13.54 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.466e-06/0.5977, allocations: 0 / 0.577 GB, free: 13.54 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001527/0.5993, allocations: 1.606 MB / 0.5786 GB, free: 11.77 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003186/0.6025, allocations: 2.272 MB / 0.5808 GB, free: 9.441 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.37e-06/0.6025, allocations: 5.094 kB / 0.5808 GB, free: 9.438 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001053/0.6035, allocations: 215.8 kB / 0.581 GB, free: 9.227 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001713/0.6037, allocations: 72.77 kB / 0.5811 GB, free: 9.152 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.082e-05/0.6038, allocations: 39.97 kB / 0.5811 GB, free: 9.113 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001109/0.6049, allocations: 1.438 MB / 0.5826 GB, free: 7.543 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/0.6049, allocations: 0 / 0.5826 GB, free: 7.543 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05588/0.6608, allocations: 19.79 MB / 0.6019 GB, free: 3.434 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002601/0.6611, allocations: 152.3 kB / 0.602 GB, free: 3.266 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001516/0.6613, allocations: 29.19 kB / 0.602 GB, free: 3.238 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007957/0.6621, allocations: 67.89 kB / 0.6021 GB, free: 3.172 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001169/0.6622, allocations: 56.58 kB / 0.6022 GB, free: 3.117 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001242/0.6624, allocations: 63.94 kB / 0.6022 GB, free: 3.055 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0004234/0.6628, allocations: 407.1 kB / 0.6026 GB, free: 2.656 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.6628, allocations: 0 / 0.6026 GB, free: 2.656 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.00236/0.6652, allocations: 0.7616 MB / 0.6034 GB, free: 1.895 MB / 442.7 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.005317/0.6705, allocations: 1.33 MB / 0.6047 GB, free: 0.5703 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.002477/0.673, allocations: 1.864 MB / 0.6065 GB, free: 14.62 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 6.973e-06/0.673, allocations: 4.125 kB / 0.6065 GB, free: 14.62 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009188/0.6739, allocations: 0.6818 MB / 0.6072 GB, free: 13.92 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002388/0.6763, allocations: 498.4 kB / 0.6076 GB, free: 13.43 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004724/0.6811, allocations: 3.32 MB / 0.6109 GB, free: 10.07 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005674/0.6816, allocations: 1.011 MB / 0.6119 GB, free: 9.031 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.001858/0.6835, allocations: 0.5367 MB / 0.6124 GB, free: 8.492 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008324/0.6843, allocations: 211.3 kB / 0.6126 GB, free: 8.285 MB / 458.7 MB Notification: Performance of SimCode: time 6.61e-07/0.6844, allocations: 0 / 0.6126 GB, free: 8.285 MB / 458.7 MB Notification: Performance of Templates: time 0.06619/0.7506, allocations: 54.28 MB / 0.6656 GB, free: 1.895 MB / 0.4948 GB 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@2/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