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.001502/0.001502, allocations: 105.5 kB / 17.73 MB, free: 5.238 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.001675/0.001675, 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.407/1.407, allocations: 205.1 MB / 224.5 MB, free: 12.24 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.001101/0.001101, allocations: 43.94 kB / 328.6 MB, free: 3.258 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09185/0.09296, allocations: 46.63 MB / 375.2 MB, free: 4.523 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas): time 0.4581/0.5511, allocations: 175.5 MB / 0.5378 GB, free: 15.52 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.005259/0.5564, allocations: 3.839 MB / 0.5415 GB, free: 11.67 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001979/0.5567, allocations: 7.938 kB / 0.5415 GB, free: 11.66 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000919/0.5577, allocations: 238.7 kB / 0.5418 GB, free: 11.43 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007182/0.5584, allocations: 370 kB / 0.5421 GB, free: 11.06 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001655/0.5601, allocations: 0.5509 MB / 0.5427 GB, free: 10.51 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.001207/0.5613, allocations: 1.091 MB / 0.5437 GB, free: 9.418 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003729/0.5617, allocations: 298 kB / 0.544 GB, free: 9.129 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002995/0.5647, allocations: 1.302 MB / 0.5453 GB, free: 7.828 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005274/0.5652, allocations: 406.8 kB / 0.5457 GB, free: 7.43 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001095/0.5653, allocations: 64 kB / 0.5457 GB, free: 7.367 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001167/0.5665, allocations: 479.1 kB / 0.5462 GB, free: 6.898 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004177/0.5669, allocations: 438.9 kB / 0.5466 GB, free: 6.469 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005097/0.5675, allocations: 498.2 kB / 0.5471 GB, free: 5.98 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001664/0.5691, allocations: 1.535 MB / 0.5486 GB, free: 4.441 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.649e-06/0.5691, allocations: 0 / 0.5486 GB, free: 4.441 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.803e-06/0.5691, allocations: 0 / 0.5486 GB, free: 4.441 MB / 478.1 MB Notification: Performance of Transformations before backend: time 2.147e-05/0.5692, allocations: 4 kB / 0.5486 GB, free: 4.438 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.001836/0.571, allocations: 1.069 MB / 0.5496 GB, free: 3.32 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.072e-05/0.5711, allocations: 12.03 kB / 0.5496 GB, free: 3.309 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006944/0.5718, allocations: 153.2 kB / 0.5498 GB, free: 3.16 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008335/0.5726, allocations: 484.8 kB / 0.5502 GB, free: 2.645 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.47e-05/0.5727, allocations: 45.31 kB / 0.5503 GB, free: 2.598 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001205/0.5728, allocations: 68 kB / 0.5504 GB, free: 2.531 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001545/0.5743, allocations: 0.9552 MB / 0.5513 GB, free: 1.57 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.785e-05/0.5744, allocations: 3.906 kB / 0.5513 GB, free: 1.566 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.155e-05/0.5745, allocations: 31.98 kB / 0.5513 GB, free: 1.535 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.171e-05/0.5746, allocations: 41.98 kB / 0.5514 GB, free: 1.496 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00128/0.5758, allocations: 0.8745 MB / 0.5522 GB, free: 0.6172 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.252/0.8278, allocations: 3.379 MB / 0.5555 GB, free: 168.9 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001253/0.8291, allocations: 0.6388 MB / 0.5561 GB, free: 168.8 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005244/0.8296, allocations: 360.3 kB / 0.5565 GB, free: 168.7 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.545e-05/0.8297, allocations: 18.12 kB / 0.5565 GB, free: 168.7 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.255e-05/0.8298, allocations: 45.16 kB / 0.5565 GB, free: 168.6 MB / 478.1 MB Notification: Performance of pre-optimization done (n=59): time 3.417e-06/0.8298, allocations: 0 / 0.5565 GB, free: 168.6 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.01671/0.8465, allocations: 6.075 MB / 0.5625 GB, free: 165.3 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.821e-05/0.8466, allocations: 59.47 kB / 0.5625 GB, free: 165.3 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000858/0.8474, allocations: 0.5449 MB / 0.5631 GB, free: 165 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001516/0.8476, allocations: 43.7 kB / 0.5631 GB, free: 165 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000215/0.8478, allocations: 283.5 kB / 0.5634 GB, free: 164.8 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002153/0.8481, allocations: 252.7 kB / 0.5636 GB, free: 164.6 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002922/0.8484, allocations: 145.2 kB / 0.5638 GB, free: 164.5 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001282/0.8485, allocations: 372.6 kB / 0.5641 GB, free: 164.2 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007351/0.8492, allocations: 445.2 kB / 0.5645 GB, free: 164 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008716/0.8501, allocations: 0.5224 MB / 0.565 GB, free: 163.8 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001491/0.8516, allocations: 0.9648 MB / 0.566 GB, free: 163.3 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.512e-06/0.8516, allocations: 1.062 kB / 0.566 GB, free: 163.3 MB / 478.1 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.002341/0.854, allocations: 1.34 MB / 0.5673 GB, free: 162.8 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.792e-05/0.854, allocations: 6.828 kB / 0.5673 GB, free: 162.8 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.183e-05/0.8541, allocations: 1.625 kB / 0.5673 GB, free: 162.8 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006335/0.8547, allocations: 338.3 kB / 0.5676 GB, free: 162.6 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001017/0.8557, allocations: 182 kB / 0.5678 GB, free: 162.6 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006645/0.8624, allocations: 10.96 MB / 0.5785 GB, free: 151.9 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007063/0.8631, allocations: 24.86 kB / 0.5785 GB, free: 151.9 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001043/0.8632, allocations: 41.19 kB / 0.5786 GB, free: 151.9 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.0005781/0.8638, allocations: 274.4 kB / 0.5788 GB, free: 151.7 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001715/0.864, allocations: 64.75 kB / 0.5789 GB, free: 151.7 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002327/0.8663, allocations: 1.284 MB / 0.5801 GB, free: 151.1 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.372e-05/0.8664, allocations: 11.12 kB / 0.5802 GB, free: 151.1 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.358e-06/0.8664, allocations: 8.469 kB / 0.5802 GB, free: 151.1 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001958/0.8683, allocations: 1.606 MB / 0.5817 GB, free: 150 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004048/0.8724, allocations: 2.27 MB / 0.5839 GB, free: 148.9 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.089e-06/0.8724, allocations: 0 / 0.5839 GB, free: 148.9 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001158/0.8736, allocations: 222.8 kB / 0.5842 GB, free: 148.9 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002088/0.8738, allocations: 65.84 kB / 0.5842 GB, free: 148.9 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.44e-05/0.8739, allocations: 39.75 kB / 0.5843 GB, free: 148.8 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009906/0.8749, allocations: 1.541 MB / 0.5858 GB, free: 147.4 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.565e-06/0.8749, allocations: 1.562 kB / 0.5858 GB, free: 147.4 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002376/0.8773, allocations: 1.596 MB / 0.5873 GB, free: 146.5 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000221/0.8775, allocations: 142.6 kB / 0.5875 GB, free: 146.4 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001258/0.8777, allocations: 29.48 kB / 0.5875 GB, free: 146.4 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007031/0.8784, allocations: 41.62 kB / 0.5875 GB, free: 146.3 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001284/0.8785, allocations: 52.61 kB / 0.5876 GB, free: 146.3 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001112/0.8786, allocations: 62.42 kB / 0.5876 GB, free: 146.3 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0004589/0.8791, allocations: 412.6 kB / 0.588 GB, free: 146.1 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.8791, allocations: 2.844 kB / 0.588 GB, free: 146.1 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.001301/0.8804, allocations: 327.7 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.001334/0.8818, allocations: 0.4916 MB / 0.5888 GB, free: 145.8 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.002599/0.8844, allocations: 1.883 MB / 0.5907 GB, free: 144.5 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 9.067e-06/0.8844, allocations: 6.266 kB / 0.5907 GB, free: 144.4 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008231/0.8852, allocations: 0.6891 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.00213/0.8874, allocations: 0.4991 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.003643/0.891, allocations: 2.195 MB / 0.594 GB, free: 142.3 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004038/0.8915, allocations: 0.9749 MB / 0.5949 GB, free: 141.2 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0008347/0.8923, 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.0002505/0.8926, allocations: 91.41 kB / 0.5953 GB, free: 140.9 MB / 478.1 MB Notification: Performance of SimCode: time 8.31e-07/0.8926, allocations: 0 / 0.5953 GB, free: 140.9 MB / 478.1 MB Notification: Performance of Templates: time 0.03301/0.9256, allocations: 26.88 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