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.SimpleNaturalGas.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.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.2_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas") Notification: Performance of loadModel(ModelicaTest): time 2.224/2.224, allocations: 234.9 MB / 250.5 MB, free: 9.555 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0008105/0.0008106, allocations: 8 kB / 314.3 MB, free: 9.578 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2872/0.288, allocations: 54.86 MB / 369.2 MB, free: 10.73 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas): time 0.48/0.7681, allocations: 143.7 MB / 0.5009 GB, free: 12.39 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.01283/0.781, allocations: 8.41 MB / 0.5091 GB, free: 10.97 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001116/0.7821, allocations: 25.62 kB / 0.5091 GB, free: 10.96 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001211/0.7834, allocations: 337.2 kB / 0.5094 GB, free: 10.8 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00521/0.7886, allocations: 1.493 MB / 0.5109 GB, free: 10.42 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004505/0.7931, allocations: 1.271 MB / 0.5121 GB, free: 10.07 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.002324/0.7955, allocations: 1.393 MB / 0.5135 GB, free: 9.789 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001226/0.7967, allocations: 0.6583 MB / 0.5141 GB, free: 9.543 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003334/0.8001, allocations: 1.316 MB / 0.5154 GB, free: 9.191 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00341/0.8035, allocations: 1.425 MB / 0.5168 GB, free: 8.797 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002587/0.8038, allocations: 53.94 kB / 0.5168 GB, free: 8.797 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003755/0.8076, allocations: 1.232 MB / 0.518 GB, free: 8.574 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008841/0.8085, allocations: 0.5924 MB / 0.5186 GB, free: 8.371 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004771/0.8091, allocations: 294.3 kB / 0.5189 GB, free: 8.297 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003464/0.8125, allocations: 1.98 MB / 0.5208 GB, free: 7.352 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.677e-06/0.8126, allocations: 1.969 kB / 0.5208 GB, free: 7.352 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.773e-06/0.8126, allocations: 0 / 0.5208 GB, free: 7.352 MB / 410.7 MB Notification: Performance of Transformations before backend: time 2.682e-05/0.8126, allocations: 0 / 0.5208 GB, free: 7.352 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: 276 * Number of variables: 276 Notification: Performance of Generate backend data structure: time 0.003879/0.8165, allocations: 1.414 MB / 0.5222 GB, free: 6.418 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.778e-05/0.8166, allocations: 10 kB / 0.5222 GB, free: 6.418 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002222/0.8188, allocations: 321.8 kB / 0.5225 GB, free: 6.289 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001787/0.8206, allocations: 0.7412 MB / 0.5233 GB, free: 5.875 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001693/0.8208, allocations: 141.4 kB / 0.5234 GB, free: 5.805 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002465/0.8211, allocations: 110.9 kB / 0.5235 GB, free: 5.797 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003702/0.8248, allocations: 1.828 MB / 0.5253 GB, free: 5.234 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.566e-05/0.8249, allocations: 6.938 kB / 0.5253 GB, free: 5.23 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001974/0.8251, allocations: 44.36 kB / 0.5253 GB, free: 5.23 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001294/0.8252, allocations: 101.2 kB / 0.5254 GB, free: 5.211 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003475/0.8287, allocations: 1.692 MB / 0.5271 GB, free: 4.918 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.01211/0.8408, allocations: 6.751 MB / 0.5337 GB, free: 432 kB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001478/0.8424, allocations: 0.6596 MB / 0.5343 GB, free: 308 kB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002294/0.8426, allocations: 137.7 kB / 0.5345 GB, free: 192 kB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.677e-05/0.8427, allocations: 42.47 kB / 0.5345 GB, free: 152 kB / 410.7 MB Notification: Performance of pre-optimization done (n=53): time 4.275e-06/0.8427, allocations: 0 / 0.5345 GB, free: 152 kB / 410.7 MB Notification: Performance of matching and sorting (n=65): time 0.01372/0.8564, allocations: 3.897 MB / 0.5383 GB, free: 13.71 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.703e-05/0.8566, allocations: 109.3 kB / 0.5384 GB, free: 13.57 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001713/0.8583, allocations: 0.9635 MB / 0.5393 GB, free: 12.83 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000167/0.8585, allocations: 45.7 kB / 0.5394 GB, free: 12.79 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00048/0.859, allocations: 0.5711 MB / 0.5399 GB, free: 12.36 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002938/0.8593, allocations: 246 kB / 0.5402 GB, free: 12.15 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.807e-05/0.8594, allocations: 21.56 kB / 0.5402 GB, free: 12.15 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002086/0.8596, allocations: 359.8 kB / 0.5405 GB, free: 11.8 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001177/0.8608, allocations: 0.5548 MB / 0.5411 GB, free: 11.44 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001561/0.8624, allocations: 0.935 MB / 0.542 GB, free: 10.55 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001469/0.8639, allocations: 0.6741 MB / 0.5427 GB, free: 10.12 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.897e-06/0.8639, allocations: 7.938 kB / 0.5427 GB, free: 10.12 MB / 426.7 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.004183/0.8681, allocations: 1.871 MB / 0.5445 GB, free: 8.828 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.154e-05/0.8682, allocations: 16.25 kB / 0.5445 GB, free: 8.812 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.393e-05/0.8682, allocations: 12 kB / 0.5445 GB, free: 8.801 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005925/0.8741, allocations: 1.311 MB / 0.5458 GB, free: 7.645 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009073/0.8751, allocations: 169.6 kB / 0.546 GB, free: 7.484 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00339/0.8785, allocations: 1.723 MB / 0.5476 GB, free: 6.125 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001485/0.88, allocations: 116.8 kB / 0.5478 GB, free: 6.027 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000186/0.8802, allocations: 78.34 kB / 0.5478 GB, free: 5.965 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 53 * 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 (98): * Single equations (assignments): 97 * 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 {9 28} Notification: Performance of prepare postOptimizeDAE: time 0.0008854/0.8811, allocations: 399.9 kB / 0.5482 GB, free: 5.664 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002885/0.8814, allocations: 102.9 kB / 0.5483 GB, free: 5.562 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003053/0.8845, allocations: 1.316 MB / 0.5496 GB, free: 4.668 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.479e-05/0.8845, allocations: 4 kB / 0.5496 GB, free: 4.664 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.062e-05/0.8846, allocations: 7.891 kB / 0.5496 GB, free: 4.656 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.212e-05/0.8846, allocations: 7.984 kB / 0.5496 GB, free: 4.648 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005821/0.8904, allocations: 2.717 MB / 0.5523 GB, free: 2.645 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.845e-06/0.8905, allocations: 0 / 0.5523 GB, free: 2.645 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00222/0.8927, allocations: 316.8 kB / 0.5526 GB, free: 2.34 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00029/0.893, allocations: 70.34 kB / 0.5526 GB, free: 2.285 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001486/0.8932, allocations: 34.09 kB / 0.5527 GB, free: 2.266 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003577/0.8968, allocations: 2.845 MB / 0.5555 GB, free: 15.34 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.684e-06/0.8969, allocations: 12.28 kB / 0.5555 GB, free: 15.33 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003825/0.9007, allocations: 1.797 MB / 0.5572 GB, free: 14.06 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009025/0.9016, allocations: 307 kB / 0.5575 GB, free: 13.8 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002568/0.9019, allocations: 30.92 kB / 0.5575 GB, free: 13.78 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001114/0.903, allocations: 82.91 kB / 0.5576 GB, free: 13.71 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001943/0.9033, allocations: 62.08 kB / 0.5577 GB, free: 13.66 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001613/0.9034, allocations: 57.53 kB / 0.5577 GB, free: 13.61 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.00122/0.9047, allocations: 0.6668 MB / 0.5584 GB, free: 13.12 MB / 442.7 MB Notification: Performance of sort global known variables: time 2.152e-06/0.9047, allocations: 0 / 0.5584 GB, free: 13.12 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002243/0.9069, allocations: 0.4935 MB / 0.5589 GB, free: 12.66 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 (72): * Single equations (assignments): 70 * 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.00301/0.91, allocations: 0.6646 MB / 0.5595 GB, free: 12.05 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.003599/0.9136, allocations: 1.434 MB / 0.5609 GB, free: 11 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.132e-05/0.9137, allocations: 4.75 kB / 0.5609 GB, free: 11 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002136/0.9158, allocations: 0.809 MB / 0.5617 GB, free: 10.37 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003386/0.9192, allocations: 0.5793 MB / 0.5623 GB, free: 9.887 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007571/0.9268, allocations: 3.436 MB / 0.5656 GB, free: 6.73 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001224/0.9281, allocations: 1.202 MB / 0.5668 GB, free: 5.559 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005978/0.9287, allocations: 102.2 kB / 0.5669 GB, free: 5.461 MB / 442.7 MB Notification: Performance of SimCode: time 5.06e-06/0.9287, allocations: 0 / 0.5669 GB, free: 5.461 MB / 442.7 MB Notification: Performance of Templates: time 0.05525/0.984, allocations: 29.99 MB / 0.5962 GB, free: 7.613 MB / 474.7 MB