Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/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) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_SimpleNaturalGas",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.257/2.257, allocations: 234.9 MB / 250.5 MB, free: 9.555 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000642/0.000642, allocations: 12 kB / 314.4 MB, free: 9.496 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3699/0.3706, allocations: 54.86 MB / 369.3 MB, free: 12.75 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas): time 0.5746/0.9452, allocations: 143.7 MB / 0.5009 GB, free: 2.781 MB / 426.7 MB Notification: Performance of NFInst.instExpressions: time 0.01386/0.9591, allocations: 8.4 MB / 0.5091 GB, free: 2.691 MB / 426.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001135/0.9603, allocations: 26 kB / 0.5092 GB, free: 2.691 MB / 426.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001355/0.9617, allocations: 345.7 kB / 0.5095 GB, free: 2.688 MB / 426.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005792/0.9675, allocations: 1.495 MB / 0.5109 GB, free: 2.664 MB / 426.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004951/0.9725, allocations: 1.264 MB / 0.5122 GB, free: 2.633 MB / 426.7 MB Notification: Performance of NFFlatten.flatten: time 0.002768/0.9753, allocations: 1.399 MB / 0.5135 GB, free: 2.625 MB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001413/0.9767, allocations: 0.6592 MB / 0.5142 GB, free: 2.562 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003966/0.9807, allocations: 1.309 MB / 0.5155 GB, free: 2.547 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004209/0.9849, allocations: 1.426 MB / 0.5169 GB, free: 2.516 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003431/0.9853, allocations: 58.03 kB / 0.5169 GB, free: 2.512 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004274/0.9896, allocations: 1.235 MB / 0.5181 GB, free: 2.512 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0009112/0.9905, allocations: 0.5887 MB / 0.5187 GB, free: 2.512 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006689/0.9912, allocations: 291.8 kB / 0.519 GB, free: 18.48 MB / 442.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003892/0.9951, allocations: 1.976 MB / 0.5209 GB, free: 18.36 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.787e-06/0.9952, allocations: 0 / 0.5209 GB, free: 18.36 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.445e-06/0.9952, allocations: 0 / 0.5209 GB, free: 18.36 MB / 442.7 MB Notification: Performance of Transformations before backend: time 3.249e-05/0.9952, allocations: 3 kB / 0.5209 GB, free: 18.36 MB / 442.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.004614/0.9998, allocations: 1.417 MB / 0.5223 GB, free: 17.59 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.108e-05/0.9999, allocations: 8.312 kB / 0.5223 GB, free: 17.59 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004474/1, allocations: 180.7 kB / 0.5225 GB, free: 17.54 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00229/1.003, allocations: 330 kB / 0.5228 GB, free: 17.48 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002105/1.005, allocations: 0.7356 MB / 0.5235 GB, free: 17.19 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001693/1.005, allocations: 134.4 kB / 0.5236 GB, free: 17.12 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002758/1.005, allocations: 112.8 kB / 0.5237 GB, free: 17.12 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004308/1.01, allocations: 1.825 MB / 0.5255 GB, free: 16.91 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.73e-05/1.01, allocations: 5.281 kB / 0.5255 GB, free: 16.91 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002423/1.01, allocations: 47.11 kB / 0.5256 GB, free: 16.91 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001446/1.01, allocations: 91.5 kB / 0.5257 GB, free: 16.91 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004153/1.014, allocations: 1.707 MB / 0.5273 GB, free: 16.89 MB / 442.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.01412/1.028, allocations: 6.749 MB / 0.5339 GB, free: 13.33 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001747/1.03, allocations: 0.66 MB / 0.5346 GB, free: 13.21 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002497/1.03, allocations: 124.4 kB / 0.5347 GB, free: 13.11 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.246e-05/1.031, allocations: 43.56 kB / 0.5347 GB, free: 13.07 MB / 442.7 MB Notification: Performance of pre-optimization done (n=53): time 2.485e-06/1.031, allocations: 1.859 kB / 0.5347 GB, free: 13.07 MB / 442.7 MB Notification: Performance of matching and sorting (n=65): time 0.01726/1.048, allocations: 3.919 MB / 0.5386 GB, free: 11.77 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.235e-05/1.048, allocations: 108.3 kB / 0.5387 GB, free: 11.64 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001678/1.05, allocations: 0.9628 MB / 0.5396 GB, free: 11.35 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001405/1.05, allocations: 44.58 kB / 0.5396 GB, free: 11.32 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004602/1.05, allocations: 0.5756 MB / 0.5402 GB, free: 10.92 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002847/1.051, allocations: 245.1 kB / 0.5404 GB, free: 10.75 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001042/1.051, allocations: 22.44 kB / 0.5405 GB, free: 10.75 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001568/1.051, allocations: 354.5 kB / 0.5408 GB, free: 10.43 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001358/1.052, allocations: 0.5465 MB / 0.5413 GB, free: 10.34 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001659/1.054, allocations: 0.9302 MB / 0.5422 GB, free: 9.77 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001565/1.055, allocations: 0.687 MB / 0.5429 GB, free: 9.668 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.145e-06/1.055, allocations: 4.953 kB / 0.5429 GB, free: 9.668 MB / 442.7 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.0044/1.06, allocations: 1.882 MB / 0.5448 GB, free: 9.352 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.634e-05/1.06, allocations: 12.25 kB / 0.5448 GB, free: 9.352 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.871e-05/1.06, allocations: 10.62 kB / 0.5448 GB, free: 9.352 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00795/1.068, allocations: 1.301 MB / 0.546 GB, free: 8.988 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001095/1.069, allocations: 172.5 kB / 0.5462 GB, free: 8.969 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003815/1.073, allocations: 1.726 MB / 0.5479 GB, free: 8.234 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001712/1.075, allocations: 112.4 kB / 0.548 GB, free: 8.199 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001645/1.075, allocations: 78.23 kB / 0.5481 GB, free: 8.191 MB / 442.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.0009044/1.076, allocations: 404 kB / 0.5485 GB, free: 8.023 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002617/1.076, allocations: 98.78 kB / 0.5486 GB, free: 7.977 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00341/1.079, allocations: 1.327 MB / 0.5499 GB, free: 7.672 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.005e-05/1.079, allocations: 8.25 kB / 0.5499 GB, free: 7.672 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.243e-06/1.079, allocations: 0 / 0.5499 GB, free: 7.672 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.345e-05/1.079, allocations: 3.984 kB / 0.5499 GB, free: 7.668 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00604/1.085, allocations: 2.714 MB / 0.5525 GB, free: 6.711 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.142e-06/1.086, allocations: 0 / 0.5525 GB, free: 6.711 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003287/1.089, allocations: 314.6 kB / 0.5528 GB, free: 6.645 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002694/1.089, allocations: 66.52 kB / 0.5529 GB, free: 6.617 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001175/1.089, allocations: 38.97 kB / 0.5529 GB, free: 6.609 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003121/1.092, allocations: 2.844 MB / 0.5557 GB, free: 3.934 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.512e-06/1.092, allocations: 7.234 kB / 0.5557 GB, free: 3.93 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004346/1.097, allocations: 1.81 MB / 0.5575 GB, free: 2.773 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008991/1.098, allocations: 308.2 kB / 0.5578 GB, free: 2.508 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003171/1.098, allocations: 26.7 kB / 0.5578 GB, free: 2.496 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00153/1.1, allocations: 85.27 kB / 0.5579 GB, free: 2.422 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002046/1.1, allocations: 52.95 kB / 0.5579 GB, free: 2.375 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001726/1.1, allocations: 62.58 kB / 0.558 GB, free: 2.32 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.001357/1.101, allocations: 0.6674 MB / 0.5586 GB, free: 1.832 MB / 442.7 MB Notification: Performance of sort global known variables: time 4.31e-07/1.101, allocations: 4 kB / 0.5586 GB, free: 1.828 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002218/1.104, allocations: 0.4942 MB / 0.5591 GB, free: 1.367 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.008086/1.112, allocations: 3 MB / 0.562 GB, free: 14.96 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.004307/1.116, allocations: 1.434 MB / 0.5634 GB, free: 13.95 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 9.318e-06/1.116, allocations: 7.656 kB / 0.5635 GB, free: 13.94 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002663/1.119, allocations: 0.8159 MB / 0.5643 GB, free: 13.33 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004836/1.124, allocations: 0.5773 MB / 0.5648 GB, free: 12.85 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02224/1.146, allocations: 8.934 MB / 0.5735 GB, free: 5.207 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001199/1.147, allocations: 1.191 MB / 0.5747 GB, free: 4.043 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001129/1.148, allocations: 438.2 kB / 0.5751 GB, free: 3.91 MB / 458.7 MB Notification: Performance of SimCode: time 9.72e-07/1.148, allocations: 0 / 0.5751 GB, free: 3.91 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.843/4.991, allocations: 35.76 MB / 0.61 GB, free: 392 kB / 490.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas_res.mat does not exist to compare? outputFormat=mat