Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 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 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(ModelicaTest.Media.TestsWithFluid.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="ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas") translateModel(ModelicaTest.Media.TestsWithFluid.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="ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007873/0.0007871, allocations: 102.6 kB / 16.02 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008989/0.0008992, allocations: 184.8 kB / 16.92 MB, free: 6.914 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.482/1.482, allocations: 205.4 MB / 223.1 MB, free: 5.523 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3668/0.3668, allocations: 43.57 MB / 315 MB, free: 9.016 MB / 254.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.0005879/0.0005878, allocations: 15.98 kB / 384.6 MB, free: 7.871 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1606/0.1612, allocations: 58.87 MB / 443.5 MB, free: 12.91 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas): time 0.4959/0.6572, allocations: 179.2 MB / 0.6081 GB, free: 8.105 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.01103/0.6682, allocations: 7.095 MB / 0.615 GB, free: 0.9961 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001329/0.6696, allocations: 19.81 kB / 0.6151 GB, free: 0.9766 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001329/0.671, allocations: 390.1 kB / 0.6154 GB, free: 0.5938 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00599/0.677, allocations: 1.851 MB / 0.6172 GB, free: 14.75 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004797/0.6818, allocations: 1.532 MB / 0.6187 GB, free: 13.23 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.004001/0.6858, allocations: 3.23 MB / 0.6219 GB, free: 9.992 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001234/0.687, allocations: 0.6694 MB / 0.6225 GB, free: 9.324 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004528/0.6916, allocations: 1.81 MB / 0.6243 GB, free: 7.516 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003515/0.6951, allocations: 1.663 MB / 0.6259 GB, free: 5.848 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002323/0.6954, allocations: 56 kB / 0.626 GB, free: 5.793 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004117/0.6995, allocations: 2.05 MB / 0.628 GB, free: 3.738 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007193/0.7002, allocations: 0.6468 MB / 0.6286 GB, free: 3.09 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001015/0.7013, allocations: 0.7213 MB / 0.6293 GB, free: 2.359 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.4001/1.101, allocations: 2.834 MB / 0.6321 GB, free: 10.38 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.993e-06/1.101, allocations: 2.438 kB / 0.6321 GB, free: 10.38 MB / 494.1 MB Notification: Performance of FrontEnd: time 2.445e-06/1.101, allocations: 0 / 0.6321 GB, free: 10.38 MB / 494.1 MB Notification: Performance of Transformations before backend: time 7.422e-05/1.102, allocations: 0 / 0.6321 GB, free: 10.38 MB / 494.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 276 * Number of variables: 276 Notification: Performance of Generate backend data structure: time 0.003482/1.105, allocations: 1.41 MB / 0.6335 GB, free: 9.805 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.532e-05/1.105, allocations: 9.594 kB / 0.6335 GB, free: 9.805 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001411/1.107, allocations: 318 kB / 0.6338 GB, free: 9.742 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001129/1.108, allocations: 0.7377 MB / 0.6345 GB, free: 9.453 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001324/1.108, allocations: 138.4 kB / 0.6346 GB, free: 9.387 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001911/1.108, allocations: 113 kB / 0.6347 GB, free: 9.383 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002505/1.11, allocations: 1.844 MB / 0.6365 GB, free: 9.18 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.287e-05/1.111, allocations: 6.562 kB / 0.6366 GB, free: 9.18 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001429/1.111, allocations: 48.27 kB / 0.6366 GB, free: 9.18 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001213/1.111, allocations: 96.23 kB / 0.6367 GB, free: 9.18 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002304/1.113, allocations: 1.698 MB / 0.6384 GB, free: 9.168 MB / 494.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.008797/1.122, allocations: 6.978 MB / 0.6452 GB, free: 5.672 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001268/1.123, allocations: 0.879 MB / 0.646 GB, free: 5.637 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006192/1.124, allocations: 450.3 kB / 0.6465 GB, free: 5.629 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001741/1.124, allocations: 146.4 kB / 0.6466 GB, free: 5.531 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.401e-05/1.124, allocations: 45.09 kB / 0.6466 GB, free: 5.492 MB / 494.1 MB Notification: Performance of pre-optimization done (n=60): time 2.314e-06/1.124, allocations: 0 / 0.6466 GB, free: 5.492 MB / 494.1 MB Notification: Performance of matching and sorting (n=72): time 0.01087/1.135, allocations: 4.17 MB / 0.6507 GB, free: 4.719 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.477e-05/1.135, allocations: 120.2 kB / 0.6508 GB, free: 4.59 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00145/1.137, allocations: 1.099 MB / 0.6519 GB, free: 4.434 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001268/1.137, allocations: 45.27 kB / 0.6519 GB, free: 4.402 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003605/1.137, allocations: 0.5224 MB / 0.6524 GB, free: 4.168 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001795/1.137, allocations: 267.6 kB / 0.6527 GB, free: 4.004 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001362/1.137, allocations: 88.44 kB / 0.6528 GB, free: 3.988 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.631e-05/1.137, allocations: 348 kB / 0.6531 GB, free: 3.684 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009978/1.138, allocations: 0.5829 MB / 0.6537 GB, free: 3.684 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001229/1.14, allocations: 0.8737 MB / 0.6545 GB, free: 3.359 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002183/1.142, allocations: 1.453 MB / 0.656 GB, free: 3.039 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.083e-06/1.142, allocations: 3.969 kB / 0.656 GB, free: 3.039 MB / 494.1 MB Notification: Performance of matching and sorting (n=125) (initialization): time 0.003734/1.146, allocations: 2.002 MB / 0.6579 GB, free: 2.926 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.834e-05/1.146, allocations: 9.078 kB / 0.6579 GB, free: 2.926 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.317e-05/1.146, allocations: 12.91 kB / 0.6579 GB, free: 2.922 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005699/1.151, allocations: 1.385 MB / 0.6593 GB, free: 2.863 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007114/1.152, allocations: 141.9 kB / 0.6594 GB, free: 2.863 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003466/1.156, allocations: 1.928 MB / 0.6613 GB, free: 18.31 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00146/1.157, allocations: 111.2 kB / 0.6614 GB, free: 18.3 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001921/1.157, allocations: 64.25 kB / 0.6615 GB, free: 18.3 MB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 37 * Number of states: 0 () * Number of discrete variables: 4 (volume.regularFlow[1],volume.regularFlow[2],volume.inFlow[2],volume.inFlow[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (82): * Single equations (assignments): 81 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(9,35)} Notification: Performance of prepare postOptimizeDAE: time 0.0009519/1.158, allocations: 402.8 kB / 0.6619 GB, free: 18.18 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003381/1.159, allocations: 113.5 kB / 0.662 GB, free: 18.12 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003152/1.162, allocations: 1.402 MB / 0.6633 GB, free: 18.04 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.641e-05/1.162, allocations: 11.05 kB / 0.6634 GB, free: 18.04 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.169e-05/1.162, allocations: 0 / 0.6634 GB, free: 18.04 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.574e-05/1.162, allocations: 8.781 kB / 0.6634 GB, free: 18.03 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005329/1.167, allocations: 2.682 MB / 0.666 GB, free: 17.69 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.262e-06/1.167, allocations: 0.6875 kB / 0.666 GB, free: 17.69 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001957/1.169, allocations: 322.8 kB / 0.6663 GB, free: 17.68 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002451/1.169, allocations: 72.53 kB / 0.6664 GB, free: 17.67 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001368/1.17, allocations: 36.36 kB / 0.6664 GB, free: 17.67 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002864/1.172, allocations: 2.844 MB / 0.6692 GB, free: 15.09 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.745e-06/1.172, allocations: 0 / 0.6692 GB, free: 15.09 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003739/1.176, allocations: 1.906 MB / 0.671 GB, free: 14.86 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009862/1.177, allocations: 349.9 kB / 0.6714 GB, free: 14.7 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000421/1.178, allocations: 27.53 kB / 0.6714 GB, free: 14.7 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001352/1.179, allocations: 82.28 kB / 0.6715 GB, free: 14.7 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002054/1.179, allocations: 61.22 kB / 0.6715 GB, free: 14.7 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001963/1.179, allocations: 66.84 kB / 0.6716 GB, free: 14.7 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.001752/1.181, allocations: 0.791 MB / 0.6724 GB, free: 14.59 MB / 0.4981 GB Notification: Performance of sort global known variables: time 5.11e-07/1.181, allocations: 2.375 kB / 0.6724 GB, free: 14.59 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.002935/1.184, allocations: 0.5305 MB / 0.6729 GB, free: 14.55 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 (78): * Single equations (assignments): 76 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems 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.003316/1.187, allocations: 0.7973 MB / 0.6737 GB, free: 14.33 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.003241/1.191, allocations: 1.465 MB / 0.6751 GB, free: 14.29 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.237e-05/1.191, allocations: 0.6562 kB / 0.6751 GB, free: 14.29 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.001851/1.193, allocations: 0.8698 MB / 0.6759 GB, free: 14.18 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004269/1.197, allocations: 0.7304 MB / 0.6767 GB, free: 14.1 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006456/1.203, allocations: 3.471 MB / 0.68 GB, free: 12.57 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001155/1.205, allocations: 1.176 MB / 0.6812 GB, free: 11.86 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.001992/1.207, allocations: 418.7 kB / 0.6816 GB, free: 11.77 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004869/1.207, allocations: 101.2 kB / 0.6817 GB, free: 11.76 MB / 0.4981 GB Notification: Performance of SimCode: time 1.513e-06/1.207, allocations: 0 / 0.6817 GB, free: 11.76 MB / 0.4981 GB Notification: Performance of Templates: time 0.06978/1.277, allocations: 37.82 MB / 0.7186 GB, free: 12.58 MB / 0.5294 GB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.sim & ./ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Media/TestsWithFluid/MediaTestModels/IdealGases/SimpleNaturalGas/SimpleNaturalGas.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches