Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/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.2_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas") Notification: Performance of loadModel(Modelica): time 2.112/2.112, allocations: 194.8 MB / 211.7 MB, free: 3.008 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000349/0.0003492, allocations: 8 kB / 264.5 MB, free: 12.94 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1015/0.1018, allocations: 44.51 MB / 309.1 MB, free: 364 kB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 2.502/2.604, allocations: 0.7077 GB / 1.009 GB, free: 109.9 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003338/2.605, allocations: 96.05 kB / 1.01 GB, free: 109.9 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.616/5.221, allocations: 0.5554 GB / 1.565 GB, free: 46.87 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.234e-06/5.221, allocations: 0 / 1.565 GB, free: 46.87 MB / 410.7 MB Notification: Performance of Transformations before backend: time 3.698e-05/5.221, allocations: 12 kB / 1.565 GB, free: 46.86 MB / 410.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.002986/5.224, allocations: 1.016 MB / 1.566 GB, free: 45.8 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.135e-05/5.224, allocations: 8.031 kB / 1.566 GB, free: 45.79 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0011/5.225, allocations: 147.1 kB / 1.566 GB, free: 45.65 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001185/5.227, allocations: 484.8 kB / 1.567 GB, free: 45.13 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.925e-05/5.227, allocations: 58 kB / 1.567 GB, free: 45.07 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001776/5.227, allocations: 75.98 kB / 1.567 GB, free: 45 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002407/5.229, allocations: 0.9153 MB / 1.568 GB, free: 44.08 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.27e-05/5.229, allocations: 4 kB / 1.568 GB, free: 44.07 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001593/5.23, allocations: 35.84 kB / 1.568 GB, free: 44.04 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.723e-05/5.23, allocations: 19.94 kB / 1.568 GB, free: 44.02 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002022/5.232, allocations: 0.851 MB / 1.568 GB, free: 43.18 MB / 410.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.008037/5.24, allocations: 3.421 MB / 1.572 GB, free: 39.48 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00124/5.241, allocations: 0.639 MB / 1.572 GB, free: 38.83 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.52e-05/5.241, allocations: 12.55 kB / 1.572 GB, free: 38.82 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.936e-05/5.241, allocations: 55.06 kB / 1.573 GB, free: 38.75 MB / 410.7 MB Notification: Performance of pre-optimization done (n=59): time 3.557e-06/5.241, allocations: 0 / 1.573 GB, free: 38.75 MB / 410.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.02425/5.265, allocations: 6.18 MB / 1.579 GB, free: 32.18 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.448e-05/5.265, allocations: 60.06 kB / 1.579 GB, free: 32.1 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008931/5.266, allocations: 0.5408 MB / 1.579 GB, free: 31.55 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000217/5.267, allocations: 41.7 kB / 1.579 GB, free: 31.5 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001906/5.267, allocations: 276.6 kB / 1.579 GB, free: 31.23 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002302/5.267, allocations: 252.3 kB / 1.58 GB, free: 30.98 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.95e-05/5.267, allocations: 12 kB / 1.58 GB, free: 30.97 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001105/5.267, allocations: 378.7 kB / 1.58 GB, free: 30.59 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009775/5.268, allocations: 441.7 kB / 1.58 GB, free: 30.16 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001007/5.269, allocations: 0.5077 MB / 1.581 GB, free: 29.63 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001124/5.27, allocations: 0.4988 MB / 1.581 GB, free: 29.14 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.32e-06/5.27, allocations: 8 kB / 1.581 GB, free: 29.13 MB / 410.7 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.003091/5.274, allocations: 1.32 MB / 1.583 GB, free: 27.78 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.652e-05/5.274, allocations: 4 kB / 1.583 GB, free: 27.78 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.075e-05/5.274, allocations: 4.156 kB / 1.583 GB, free: 27.77 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009058/5.275, allocations: 334.6 kB / 1.583 GB, free: 27.42 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001725/5.276, allocations: 179.8 kB / 1.583 GB, free: 27.25 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008622/5.285, allocations: 10.27 MB / 1.593 GB, free: 16.02 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001248/5.286, allocations: 87.75 kB / 1.593 GB, free: 15.94 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001325/5.286, allocations: 43.98 kB / 1.593 GB, free: 15.89 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.0006541/5.287, allocations: 281.5 kB / 1.594 GB, free: 15.61 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002329/5.287, allocations: 59.34 kB / 1.594 GB, free: 15.55 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003093/5.29, allocations: 1.271 MB / 1.595 GB, free: 14.25 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.204e-05/5.29, allocations: 12 kB / 1.595 GB, free: 14.23 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.494e-06/5.29, allocations: 0 / 1.595 GB, free: 14.23 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002433/5.293, allocations: 1.61 MB / 1.597 GB, free: 12.46 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005073/5.298, allocations: 2.254 MB / 1.599 GB, free: 10.14 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.544e-06/5.298, allocations: 0 / 1.599 GB, free: 10.14 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002149/5.3, allocations: 219.7 kB / 1.599 GB, free: 9.93 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002839/5.301, allocations: 80.73 kB / 1.599 GB, free: 9.848 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001305/5.301, allocations: 39.97 kB / 1.599 GB, free: 9.809 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001397/5.302, allocations: 1.44 MB / 1.6 GB, free: 8.23 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.296e-06/5.302, allocations: 3.984 kB / 1.6 GB, free: 8.227 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003506/5.306, allocations: 1.594 MB / 1.602 GB, free: 6.605 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003499/5.306, allocations: 144.4 kB / 1.602 GB, free: 6.445 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002412/5.306, allocations: 31.98 kB / 1.602 GB, free: 6.414 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001463/5.308, allocations: 75.78 kB / 1.602 GB, free: 6.34 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000161/5.308, allocations: 56.52 kB / 1.602 GB, free: 6.285 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001611/5.308, allocations: 67.94 kB / 1.602 GB, free: 6.219 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0006541/5.309, allocations: 403.1 kB / 1.603 GB, free: 5.824 MB / 410.7 MB Notification: Performance of sort global known variables: time 4.61e-07/5.309, allocations: 0 / 1.603 GB, free: 5.824 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002115/5.311, allocations: 419.8 kB / 1.603 GB, free: 5.414 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.00351/5.314, allocations: 1.153 MB / 1.604 GB, free: 4.27 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.003501/5.318, allocations: 1.865 MB / 1.606 GB, free: 2.312 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 9.498e-06/5.318, allocations: 0 / 1.606 GB, free: 2.312 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001467/5.32, allocations: 0.69 MB / 1.607 GB, free: 1.613 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004178/5.324, allocations: 480.3 kB / 1.607 GB, free: 1.145 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2943/5.618, allocations: 2.547 MB / 1.61 GB, free: 63.38 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005986/5.619, allocations: 0.9896 MB / 1.611 GB, free: 62.68 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001726/5.621, allocations: 271.1 kB / 1.611 GB, free: 62.68 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004764/5.621, allocations: 90.34 kB / 1.611 GB, free: 62.67 MB / 410.7 MB Notification: Performance of SimCode: time 1.162e-06/5.621, allocations: 3.656 kB / 1.611 GB, free: 62.67 MB / 410.7 MB Notification: Performance of Templates: time 0.07993/5.701, allocations: 35.69 MB / 1.646 GB, free: 61.97 MB / 410.7 MB