Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_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_cpp_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.000919/0.000919, allocations: 173.5 kB / 16.72 MB, free: 5.082 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.292/1.292, allocations: 205.4 MB / 222.9 MB, free: 9.008 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.0007237/0.0007237, allocations: 86.39 kB / 271.2 MB, free: 8.242 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002835/0.0002836, allocations: 8 kB / 327.5 MB, free: 15.87 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1963/0.1966, allocations: 47.57 MB / 375.1 MB, free: 45.43 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas): time 0.341/0.5376, allocations: 159.5 MB / 0.5221 GB, free: 1.098 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0038/0.5415, allocations: 3.571 MB / 0.5256 GB, free: 1 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003819/0.5419, allocations: 4.469 kB / 0.5256 GB, free: 1 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006696/0.5426, allocations: 199.6 kB / 0.5258 GB, free: 0.9922 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007417/0.5433, allocations: 336.4 kB / 0.5261 GB, free: 0.9727 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00136/0.5447, allocations: 452.6 kB / 0.5265 GB, free: 0.9492 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.00139/0.5461, allocations: 1.303 MB / 0.5278 GB, free: 0.9453 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003411/0.5465, allocations: 235.7 kB / 0.528 GB, free: 0.9023 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002916/0.5494, allocations: 1.2 MB / 0.5292 GB, free: 0.8672 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005382/0.5499, allocations: 449.8 kB / 0.5296 GB, free: 0.8672 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 8.724e-05/0.55, allocations: 29.16 kB / 0.5297 GB, free: 0.8672 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001434/0.5515, allocations: 0.8636 MB / 0.5305 GB, free: 0.8633 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003141/0.5518, allocations: 421.9 kB / 0.5309 GB, free: 0.8633 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004466/0.5523, allocations: 456.4 kB / 0.5313 GB, free: 0.8281 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001111/0.5534, allocations: 1.234 MB / 0.5325 GB, free: 0.75 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.348e-06/0.5534, allocations: 1.859 kB / 0.5326 GB, free: 0.75 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.593e-06/0.5534, allocations: 0 / 0.5326 GB, free: 0.75 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.508e-05/0.5534, allocations: 0 / 0.5326 GB, free: 0.75 MB / 378.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.001423/0.5549, allocations: 0.8893 MB / 0.5334 GB, free: 16.1 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.006e-05/0.5549, allocations: 8.375 kB / 0.5334 GB, free: 16.1 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006074/0.5555, allocations: 153.9 kB / 0.5336 GB, free: 16.04 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006346/0.5562, allocations: 482.8 kB / 0.534 GB, free: 15.73 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.45e-05/0.5562, allocations: 49.12 kB / 0.5341 GB, free: 15.73 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.757e-05/0.5563, allocations: 73.22 kB / 0.5342 GB, free: 15.73 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001252/0.5576, allocations: 0.9421 MB / 0.5351 GB, free: 15.51 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.528e-05/0.5576, allocations: 9.906 kB / 0.5351 GB, free: 15.5 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.811e-05/0.5577, allocations: 31.48 kB / 0.5351 GB, free: 15.5 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.695e-05/0.5577, allocations: 41.95 kB / 0.5352 GB, free: 15.49 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001088/0.5588, allocations: 0.8697 MB / 0.536 GB, free: 15.37 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.004668/0.5635, allocations: 3.435 MB / 0.5394 GB, free: 13.24 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000741/0.5643, allocations: 0.6411 MB / 0.54 GB, free: 13.13 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004128/0.5647, allocations: 370.3 kB / 0.5403 GB, free: 13.07 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.907e-05/0.5648, allocations: 20.25 kB / 0.5404 GB, free: 13.06 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.996e-05/0.5648, allocations: 48.91 kB / 0.5404 GB, free: 13.02 MB / 394.7 MB Notification: Performance of pre-optimization done (n=59): time 2.995e-06/0.5648, allocations: 0 / 0.5404 GB, free: 13.02 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.01319/0.578, allocations: 6.212 MB / 0.5465 GB, free: 10.06 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.333e-05/0.5781, allocations: 68.08 kB / 0.5465 GB, free: 9.988 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006548/0.5787, allocations: 0.5412 MB / 0.5471 GB, free: 9.797 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001061/0.5789, allocations: 46.61 kB / 0.5471 GB, free: 9.766 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000173/0.579, allocations: 277.8 kB / 0.5474 GB, free: 9.59 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002218/0.5793, allocations: 250.6 kB / 0.5476 GB, free: 9.41 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.833e-05/0.5793, allocations: 14.75 kB / 0.5476 GB, free: 9.41 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001425/0.5795, allocations: 372.6 kB / 0.548 GB, free: 9.078 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005632/0.58, allocations: 436.7 kB / 0.5484 GB, free: 9.016 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006048/0.5807, allocations: 0.5211 MB / 0.5489 GB, free: 8.883 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001163/0.5818, allocations: 0.958 MB / 0.5498 GB, free: 8.727 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.374e-06/0.5818, allocations: 0 / 0.5498 GB, free: 8.727 MB / 394.7 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.001893/0.5837, allocations: 1.338 MB / 0.5511 GB, free: 8.43 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.139e-05/0.5838, allocations: 14.39 kB / 0.5512 GB, free: 8.422 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.546e-06/0.5838, allocations: 0 / 0.5512 GB, free: 8.422 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005731/0.5844, allocations: 333.8 kB / 0.5515 GB, free: 8.305 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009258/0.5853, allocations: 176.7 kB / 0.5516 GB, free: 8.273 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006703/0.592, allocations: 10.24 MB / 0.5616 GB, free: 14.59 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000792/0.5929, allocations: 81.48 kB / 0.5617 GB, free: 14.57 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.11e-05/0.593, allocations: 48.11 kB / 0.5618 GB, free: 14.56 MB / 410.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 (linear and non-linear blocks): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 8 {1 1,1 1,1 1,1 1,1 1,1 1,1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.000495/0.5935, allocations: 279.4 kB / 0.562 GB, free: 14.41 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001297/0.5936, allocations: 61.25 kB / 0.5621 GB, free: 14.39 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001883/0.5955, allocations: 1.28 MB / 0.5633 GB, free: 13.99 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.409e-05/0.5955, allocations: 8 kB / 0.5634 GB, free: 13.98 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.298e-06/0.5955, allocations: 0 / 0.5634 GB, free: 13.98 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001619/0.5972, allocations: 1.607 MB / 0.5649 GB, free: 12.54 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003189/0.6004, allocations: 2.277 MB / 0.5671 GB, free: 10.91 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.105e-06/0.6004, allocations: 7.984 kB / 0.5672 GB, free: 10.9 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001081/0.6015, allocations: 212.8 kB / 0.5674 GB, free: 10.71 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001837/0.6017, allocations: 68.97 kB / 0.5674 GB, free: 10.65 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.591e-05/0.6018, allocations: 38.78 kB / 0.5675 GB, free: 10.63 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001087/0.6029, allocations: 1.438 MB / 0.5689 GB, free: 9.18 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.783e-06/0.6029, allocations: 7.969 kB / 0.5689 GB, free: 9.172 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002146/0.605, allocations: 1.593 MB / 0.5704 GB, free: 8.07 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002558/0.6053, allocations: 157.3 kB / 0.5706 GB, free: 7.906 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000115/0.6054, allocations: 34.8 kB / 0.5706 GB, free: 7.887 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006834/0.6061, allocations: 69.44 kB / 0.5707 GB, free: 7.828 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.668e-05/0.6062, allocations: 58.2 kB / 0.5707 GB, free: 7.777 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001017/0.6063, allocations: 57.2 kB / 0.5708 GB, free: 7.73 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0004349/0.6068, allocations: 405.3 kB / 0.5712 GB, free: 7.426 MB / 410.7 MB Notification: Performance of sort global known variables: time 2.01e-07/0.6068, allocations: 1.75 kB / 0.5712 GB, free: 7.426 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001087/0.6079, allocations: 344.2 kB / 0.5715 GB, free: 7.113 MB / 410.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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001509/0.6094, allocations: 0.4985 MB / 0.572 GB, free: 6.648 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002267/0.6117, allocations: 1.864 MB / 0.5738 GB, free: 5.07 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.999e-06/0.6117, allocations: 0 / 0.5738 GB, free: 5.07 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008638/0.6126, allocations: 0.6863 MB / 0.5745 GB, free: 4.57 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002253/0.6148, allocations: 0.4887 MB / 0.575 GB, free: 4.152 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004003/0.6188, allocations: 2.612 MB / 0.5775 GB, free: 1.777 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008119/0.6197, allocations: 0.9761 MB / 0.5785 GB, free: 0.8086 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005293/0.6202, allocations: 90.34 kB / 0.5785 GB, free: 0.7227 MB / 410.7 MB Notification: Performance of SimCode: time 6.11e-07/0.6203, allocations: 0 / 0.5785 GB, free: 0.7227 MB / 410.7 MB Notification: Performance of Templates: time 0.03193/0.6522, allocations: 26.74 MB / 0.6047 GB, free: 6.043 MB / 442.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas.sim & ./Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_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","../files/Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches