Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: translateModel(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.T|volume.medium.p",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition") Notification: Performance of loadModel(ModelicaTest): time 2.405/2.405, allocations: 234.9 MB / 250.5 MB, free: 9.477 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007253/0.0007259, allocations: 15.98 kB / 314.3 MB, free: 9.508 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3078/0.3086, allocations: 54.87 MB / 369.2 MB, free: 10.71 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition): time 0.5284/0.837, allocations: 143.8 MB / 0.501 GB, free: 12.24 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.01248/0.8495, allocations: 8.403 MB / 0.5092 GB, free: 10.82 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001125/0.8507, allocations: 34 kB / 0.5092 GB, free: 10.8 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001148/0.8519, allocations: 326 kB / 0.5095 GB, free: 10.65 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005346/0.8572, allocations: 1.484 MB / 0.511 GB, free: 10.26 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004538/0.8618, allocations: 1.237 MB / 0.5122 GB, free: 9.93 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.002192/0.864, allocations: 1.289 MB / 0.5135 GB, free: 9.66 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007774/0.8648, allocations: 457.2 kB / 0.5139 GB, free: 9.469 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00311/0.8679, allocations: 1.27 MB / 0.5151 GB, free: 9.125 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003182/0.8711, allocations: 1.317 MB / 0.5164 GB, free: 8.754 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002208/0.8714, allocations: 35.88 kB / 0.5165 GB, free: 8.754 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003622/0.875, allocations: 1.215 MB / 0.5176 GB, free: 8.535 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005682/0.8756, allocations: 364.3 kB / 0.518 GB, free: 8.402 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000376/0.876, allocations: 235.7 kB / 0.5182 GB, free: 8.336 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002871/0.8789, allocations: 1.551 MB / 0.5197 GB, free: 7.617 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.954e-06/0.879, allocations: 3.312 kB / 0.5197 GB, free: 7.617 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.628e-06/0.879, allocations: 2.406 kB / 0.5197 GB, free: 7.617 MB / 410.7 MB Notification: Performance of Transformations before backend: time 1.549e-05/0.879, allocations: 0 / 0.5197 GB, free: 7.617 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: 192 * Number of variables: 192 Notification: Performance of Generate backend data structure: time 0.003056/0.8821, allocations: 1.22 MB / 0.5209 GB, free: 6.781 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.671e-05/0.8821, allocations: 10.34 kB / 0.5209 GB, free: 6.781 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00185/0.884, allocations: 296.9 kB / 0.5212 GB, free: 6.668 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001558/0.8856, allocations: 0.6008 MB / 0.5218 GB, free: 6.297 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001646/0.8858, allocations: 124.5 kB / 0.5219 GB, free: 6.223 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001704/0.8859, allocations: 69.97 kB / 0.522 GB, free: 6.219 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002433/0.8884, allocations: 1.243 MB / 0.5232 GB, free: 5.773 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.032e-05/0.8884, allocations: 3.094 kB / 0.5232 GB, free: 5.773 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001465/0.8886, allocations: 35.25 kB / 0.5232 GB, free: 5.773 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001265/0.8887, allocations: 87.27 kB / 0.5233 GB, free: 5.754 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002131/0.8909, allocations: 1.054 MB / 0.5244 GB, free: 5.574 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.008529/0.8994, allocations: 4.832 MB / 0.5291 GB, free: 2.16 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006489/0.9001, allocations: 266.5 kB / 0.5293 GB, free: 2.094 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000203/0.9003, allocations: 123 kB / 0.5294 GB, free: 1.992 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.109e-05/0.9004, allocations: 38.02 kB / 0.5295 GB, free: 1.953 MB / 410.7 MB Notification: Performance of pre-optimization done (n=27): time 3.433e-06/0.9004, allocations: 0 / 0.5295 GB, free: 1.953 MB / 410.7 MB Notification: Performance of matching and sorting (n=32): time 0.007228/0.9076, allocations: 1.709 MB / 0.5311 GB, free: 1.086 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001033/0.9078, allocations: 145.3 kB / 0.5313 GB, free: 0.9219 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001406/0.9092, allocations: 0.9155 MB / 0.5322 GB, free: 0.6133 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 6.405e-05/0.9093, allocations: 34.98 kB / 0.5322 GB, free: 0.5781 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005002/0.9098, allocations: 0.6087 MB / 0.5328 GB, free: 144 kB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001436/0.91, allocations: 128.7 kB / 0.5329 GB, free: 56 kB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.787e-05/0.91, allocations: 22.22 kB / 0.533 GB, free: 56 kB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0002302/0.9103, allocations: 356.9 kB / 0.5333 GB, free: 15.73 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005834/0.9109, allocations: 281.2 kB / 0.5336 GB, free: 15.68 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001125/0.912, allocations: 0.9196 MB / 0.5345 GB, free: 14.77 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008957/0.9129, allocations: 469.2 kB / 0.5349 GB, free: 14.68 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.206e-05/0.9129, allocations: 4.938 kB / 0.5349 GB, free: 14.68 MB / 426.7 MB Notification: Performance of matching and sorting (n=139) (initialization): time 0.002545/0.9155, allocations: 1.242 MB / 0.5361 GB, free: 14.32 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.256e-05/0.9156, allocations: 16.03 kB / 0.5361 GB, free: 14.32 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.759e-05/0.9156, allocations: 21.84 kB / 0.5362 GB, free: 14.32 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001463/0.9171, allocations: 286.8 kB / 0.5364 GB, free: 14.25 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007469/0.9178, allocations: 220.4 kB / 0.5366 GB, free: 14.2 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001322/0.9192, allocations: 0.8871 MB / 0.5375 GB, free: 13.53 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001114/0.9203, allocations: 63.58 kB / 0.5376 GB, free: 13.48 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001309/0.9205, allocations: 74.81 kB / 0.5376 GB, free: 13.42 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 99 * 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 (122): * Single equations (assignments): 121 * 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: 0 * Non-linear torn systems: 1 {2 16} Notification: Performance of prepare postOptimizeDAE: time 0.0006053/0.9211, allocations: 351.3 kB / 0.538 GB, free: 13.15 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001933/0.9213, allocations: 86.97 kB / 0.5381 GB, free: 13.06 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001217/0.9225, allocations: 475 kB / 0.5385 GB, free: 12.73 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.606e-06/0.9225, allocations: 4 kB / 0.5385 GB, free: 12.72 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.874e-06/0.9226, allocations: 0 / 0.5385 GB, free: 12.72 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.12e-05/0.9226, allocations: 7.984 kB / 0.5385 GB, free: 12.71 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002308/0.9249, allocations: 1.083 MB / 0.5396 GB, free: 11.84 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.749e-06/0.9249, allocations: 0 / 0.5396 GB, free: 11.84 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001223/0.9262, allocations: 183.6 kB / 0.5398 GB, free: 11.67 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001255/0.9263, allocations: 27.88 kB / 0.5398 GB, free: 11.64 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.394e-05/0.9264, allocations: 8.125 kB / 0.5398 GB, free: 11.64 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002876/0.9293, allocations: 2.679 MB / 0.5424 GB, free: 8.816 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.56e-06/0.9293, allocations: 8.094 kB / 0.5424 GB, free: 8.809 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001469/0.9308, allocations: 0.6724 MB / 0.5431 GB, free: 8.277 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004656/0.9313, allocations: 199.1 kB / 0.5433 GB, free: 8.086 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001528/0.9314, allocations: 7.562 kB / 0.5433 GB, free: 8.082 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006012/0.932, allocations: 33.3 kB / 0.5433 GB, free: 8.055 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.186e-05/0.9321, allocations: 26.02 kB / 0.5433 GB, free: 8.031 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.439e-05/0.9322, allocations: 19.2 kB / 0.5433 GB, free: 8.016 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001081/0.9333, allocations: 0.598 MB / 0.5439 GB, free: 7.551 MB / 426.7 MB Notification: Performance of sort global known variables: time 8.37e-07/0.9333, allocations: 0 / 0.5439 GB, free: 7.551 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001972/0.9353, allocations: 425.4 kB / 0.5443 GB, free: 7.164 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (volume.medium.p,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 (32): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 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.002748/0.9381, allocations: 0.6389 MB / 0.545 GB, free: 6.57 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001829/0.9399, allocations: 0.6717 MB / 0.5456 GB, free: 6.055 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 6.226e-06/0.94, allocations: 0 / 0.5456 GB, free: 6.055 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001117/0.9411, allocations: 361.1 kB / 0.546 GB, free: 5.738 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002193/0.9433, allocations: 378.2 kB / 0.5463 GB, free: 5.438 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00363/0.947, allocations: 1.958 MB / 0.5482 GB, free: 3.598 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009648/0.9479, allocations: 1.044 MB / 0.5493 GB, free: 2.562 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003498/0.9483, allocations: 83.42 kB / 0.5493 GB, free: 2.48 MB / 426.7 MB Notification: Performance of SimCode: time 1.684e-06/0.9483, allocations: 0 / 0.5493 GB, free: 2.48 MB / 426.7 MB Notification: Performance of Templates: time 0.0423/0.9906, allocations: 22.99 MB / 0.5718 GB, free: 11.67 MB / 458.7 MB