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.001168/0.001168, allocations: 107.9 kB / 18.4 MB, free: 4.695 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.001154/0.001154, allocations: 182.4 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.351/1.351, 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.001219/0.001219, allocations: 55.88 kB / 329.2 MB, free: 3.266 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07529/0.07652, allocations: 46.62 MB / 375.9 MB, free: 4.535 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas): time 0.3507/0.4272, allocations: 175.5 MB / 0.5384 GB, free: 15.57 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.004468/0.4317, allocations: 3.838 MB / 0.5422 GB, free: 11.71 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002126/0.432, allocations: 7.938 kB / 0.5422 GB, free: 11.71 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007147/0.4328, allocations: 238.7 kB / 0.5424 GB, free: 11.47 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006546/0.4334, allocations: 358.1 kB / 0.5428 GB, free: 11.12 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001337/0.4348, allocations: 0.5491 MB / 0.5433 GB, free: 10.57 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.001109/0.4359, allocations: 1.095 MB / 0.5444 GB, free: 9.477 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003485/0.4363, allocations: 299.4 kB / 0.5447 GB, free: 9.188 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002705/0.439, allocations: 1.294 MB / 0.5459 GB, free: 7.895 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000553/0.4395, allocations: 406.7 kB / 0.5463 GB, free: 7.496 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001359/0.4397, allocations: 68 kB / 0.5464 GB, free: 7.43 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001106/0.4408, allocations: 475.1 kB / 0.5468 GB, free: 6.965 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003846/0.4412, allocations: 443 kB / 0.5472 GB, free: 6.531 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005098/0.4417, allocations: 494.2 kB / 0.5477 GB, free: 6.047 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001653/0.4434, allocations: 1.543 MB / 0.5492 GB, free: 4.5 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.458e-06/0.4434, allocations: 0 / 0.5492 GB, free: 4.5 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.293e-06/0.4434, allocations: 0 / 0.5492 GB, free: 4.5 MB / 478.1 MB Notification: Performance of Transformations before backend: time 1.476e-05/0.4434, allocations: 0 / 0.5492 GB, free: 4.5 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.001726/0.4452, allocations: 1.061 MB / 0.5503 GB, free: 3.391 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.884e-05/0.4452, allocations: 8.031 kB / 0.5503 GB, free: 3.383 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006745/0.4459, allocations: 151 kB / 0.5504 GB, free: 3.234 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006607/0.4466, allocations: 492.7 kB / 0.5509 GB, free: 2.711 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.745e-05/0.4466, allocations: 53.31 kB / 0.5509 GB, free: 2.656 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001059/0.4467, allocations: 64 kB / 0.551 GB, free: 2.594 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001456/0.4482, allocations: 0.9513 MB / 0.5519 GB, free: 1.637 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.463e-05/0.4482, allocations: 3.906 kB / 0.5519 GB, free: 1.633 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.815e-05/0.4483, allocations: 28 kB / 0.552 GB, free: 1.605 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.093e-05/0.4484, allocations: 49.17 kB / 0.552 GB, free: 1.562 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001244/0.4496, allocations: 0.8667 MB / 0.5528 GB, free: 0.6914 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.1774/0.627, allocations: 3.383 MB / 0.5561 GB, free: 169 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009993/0.628, allocations: 0.6429 MB / 0.5568 GB, free: 168.9 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004332/0.6285, allocations: 358.7 kB / 0.5571 GB, free: 168.7 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.608e-05/0.6285, allocations: 21.84 kB / 0.5571 GB, free: 168.7 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.693e-05/0.6286, allocations: 43.53 kB / 0.5572 GB, free: 168.7 MB / 478.1 MB Notification: Performance of pre-optimization done (n=59): time 2.995e-06/0.6286, allocations: 1.031 kB / 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.01454/0.6431, allocations: 6.079 MB / 0.5631 GB, free: 165.4 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.83e-05/0.6432, allocations: 59.48 kB / 0.5632 GB, free: 165.3 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006209/0.6438, allocations: 0.5419 MB / 0.5637 GB, free: 165.1 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 9.733e-05/0.6439, allocations: 43.48 kB / 0.5637 GB, free: 165 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001348/0.6441, allocations: 283.7 kB / 0.564 GB, free: 164.8 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001473/0.6442, allocations: 246.5 kB / 0.5642 GB, free: 164.6 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002319/0.6445, allocations: 150.3 kB / 0.5644 GB, free: 164.6 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001035/0.6446, allocations: 371.9 kB / 0.5647 GB, free: 164.2 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005935/0.6452, allocations: 448.5 kB / 0.5652 GB, free: 164.1 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006404/0.6458, allocations: 0.5179 MB / 0.5657 GB, free: 163.8 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001174/0.647, allocations: 0.9691 MB / 0.5666 GB, free: 163.4 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.895e-06/0.647, allocations: 0 / 0.5666 GB, free: 163.4 MB / 478.1 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.001836/0.6489, allocations: 1.342 MB / 0.5679 GB, free: 162.8 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.703e-05/0.6489, allocations: 5.719 kB / 0.5679 GB, free: 162.8 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.836e-06/0.6489, allocations: 1.844 kB / 0.5679 GB, free: 162.8 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005471/0.6495, allocations: 333.7 kB / 0.5683 GB, free: 162.6 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009492/0.6504, allocations: 180.8 kB / 0.5684 GB, free: 162.6 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00567/0.6561, allocations: 10.96 MB / 0.5791 GB, free: 152 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006831/0.6568, allocations: 23.34 kB / 0.5792 GB, free: 152 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.561e-05/0.6569, allocations: 46.27 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.0004473/0.6574, allocations: 272.9 kB / 0.5795 GB, free: 151.8 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001594/0.6575, allocations: 61.81 kB / 0.5795 GB, free: 151.7 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002013/0.6596, allocations: 1.285 MB / 0.5808 GB, free: 151.2 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.678e-06/0.6596, allocations: 7.875 kB / 0.5808 GB, free: 151.2 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.812e-06/0.6596, allocations: 1.875 kB / 0.5808 GB, free: 151.2 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001546/0.6612, allocations: 1.613 MB / 0.5824 GB, free: 150 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003334/0.6645, allocations: 2.266 MB / 0.5846 GB, free: 148.9 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.831e-06/0.6645, allocations: 5.094 kB / 0.5846 GB, free: 148.9 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001144/0.6657, allocations: 214.7 kB / 0.5848 GB, free: 148.9 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001753/0.6659, allocations: 76.8 kB / 0.5849 GB, free: 148.9 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.133e-05/0.666, allocations: 39.39 kB / 0.5849 GB, free: 148.9 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008975/0.6669, allocations: 1.535 MB / 0.5864 GB, free: 147.4 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.6669, allocations: 6.438 kB / 0.5864 GB, free: 147.4 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00207/0.6689, allocations: 1.589 MB / 0.588 GB, free: 146.6 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001717/0.6691, allocations: 138.6 kB / 0.5881 GB, free: 146.4 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001254/0.6693, allocations: 30.39 kB / 0.5881 GB, free: 146.4 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006839/0.67, allocations: 40.59 kB / 0.5882 GB, free: 146.4 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000102/0.6701, allocations: 57.39 kB / 0.5882 GB, free: 146.4 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.879e-05/0.6702, allocations: 62.36 kB / 0.5883 GB, free: 146.3 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0003983/0.6706, allocations: 404.4 kB / 0.5887 GB, free: 146.1 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.6706, allocations: 1.312 kB / 0.5887 GB, free: 146.1 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.001069/0.6716, allocations: 334.6 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.001214/0.6729, allocations: 0.4953 MB / 0.5895 GB, free: 145.8 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.00203/0.6749, allocations: 1.879 MB / 0.5913 GB, free: 144.5 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 7.084e-06/0.6749, allocations: 10.58 kB / 0.5913 GB, free: 144.5 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007509/0.6757, allocations: 0.6891 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.002107/0.6778, allocations: 0.4998 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.002975/0.6808, allocations: 2.266 MB / 0.5947 GB, free: 142.3 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000331/0.6811, allocations: 0.971 MB / 0.5956 GB, free: 141.3 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002967/0.6814, allocations: 91.41 kB / 0.5957 GB, free: 141.2 MB / 478.1 MB Notification: Performance of SimCode: time 3.61e-07/0.6815, allocations: 0 / 0.5957 GB, free: 141.2 MB / 478.1 MB Notification: Performance of Templates: time 0.02184/0.7033, allocations: 26.86 MB / 0.6219 GB, free: 114.2 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