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/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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.512/2.512, allocations: 235.1 MB / 243 MB, free: 9.59 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.08e-05/2.08e-05, allocations: 4 kB / 303.3 MB, free: 13.19 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3566/0.3567, allocations: 54.84 MB / 358.1 MB, free: 14.94 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 2.381/2.737, allocations: 0.8207 GB / 1.17 GB, free: 41.96 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003229/2.738, allocations: 97.55 kB / 1.17 GB, free: 41.91 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.888/6.626, allocations: 0.7011 GB / 1.872 GB, free: 75.17 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.976e-06/6.626, allocations: 0 / 1.872 GB, free: 75.17 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0001297/6.626, allocations: 28.69 kB / 1.872 GB, free: 75.16 MB / 490.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.009152/6.635, allocations: 1.569 MB / 1.873 GB, free: 74.41 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.896e-05/6.635, allocations: 11.06 kB / 1.873 GB, free: 74.41 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003197/6.639, allocations: 307.4 kB / 1.873 GB, free: 74.34 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002869/6.641, allocations: 0.8268 MB / 1.874 GB, free: 74.02 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001551/6.642, allocations: 107.3 kB / 1.874 GB, free: 73.96 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004135/6.642, allocations: 60.83 kB / 1.874 GB, free: 73.96 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003627/6.646, allocations: 1.437 MB / 1.876 GB, free: 73.95 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003932/6.65, allocations: 1.609 MB / 1.877 GB, free: 73.73 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.813e-05/6.65, allocations: 3.938 kB / 1.877 GB, free: 73.72 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002312/6.65, allocations: 3.625 kB / 1.877 GB, free: 73.72 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001311/6.65, allocations: 87.91 kB / 1.878 GB, free: 73.72 MB / 490.7 MB Warning: The model contains alias variables with conflicting start and/or 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.01446/6.665, allocations: 6.557 MB / 1.884 GB, free: 70.25 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001533/6.666, allocations: 0.6175 MB / 1.885 GB, free: 70.22 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006599/6.667, allocations: 355.5 kB / 1.885 GB, free: 70.21 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003672/6.667, allocations: 257 kB / 1.885 GB, free: 70.02 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.622e-05/6.667, allocations: 45.3 kB / 1.885 GB, free: 69.97 MB / 490.7 MB Notification: Performance of pre-optimization done (n=53): time 2.875e-06/6.667, allocations: 3.938 kB / 1.885 GB, free: 69.97 MB / 490.7 MB Notification: Performance of matching and sorting (n=65): time 0.01499/6.682, allocations: 3.279 MB / 1.888 GB, free: 69.14 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.001e-05/6.682, allocations: 114.4 kB / 1.888 GB, free: 69.01 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001064/6.684, allocations: 0.5883 MB / 1.889 GB, free: 68.75 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002191/6.684, allocations: 28.36 kB / 1.889 GB, free: 68.71 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003521/6.684, allocations: 0.6089 MB / 1.89 GB, free: 68.2 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002584/6.684, allocations: 240.2 kB / 1.89 GB, free: 68.02 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001127/6.685, allocations: 0 / 1.89 GB, free: 68.02 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001017/6.685, allocations: 352.8 kB / 1.89 GB, free: 67.69 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001147/6.686, allocations: 0.52 MB / 1.891 GB, free: 67.5 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001318/6.687, allocations: 0.88 MB / 1.892 GB, free: 66.84 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00146/6.689, allocations: 0.6475 MB / 1.892 GB, free: 66.61 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.268e-05/6.689, allocations: 5.531 kB / 1.892 GB, free: 66.61 MB / 490.7 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.003995/6.693, allocations: 1.743 MB / 1.894 GB, free: 65.96 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.281e-05/6.693, allocations: 14.28 kB / 1.894 GB, free: 65.96 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.084e-05/6.693, allocations: 11.12 kB / 1.894 GB, free: 65.96 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007075/6.7, allocations: 1.172 MB / 1.895 GB, free: 65.79 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001388/6.701, allocations: 191 kB / 1.895 GB, free: 65.77 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003374/6.705, allocations: 1.773 MB / 1.897 GB, free: 64.79 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001982/6.707, allocations: 96.11 kB / 1.897 GB, free: 64.78 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002225/6.707, allocations: 104 kB / 1.897 GB, free: 64.77 MB / 490.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: volume.m:DUMMY_STATE(min = 0.0 unit = "kg" ) "Mass of fluid" type: Real volume.mb_flow:VARIABLE(unit = "kg/s" ) "Mass flows across boundaries" type: Real 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 () * 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 {10 27} Notification: Performance of prepare postOptimizeDAE: time 0.0004398/6.707, allocations: 148.6 kB / 1.897 GB, free: 64.63 MB / 490.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002498/6.71, allocations: 1.047 MB / 1.898 GB, free: 64.01 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003134/6.71, allocations: 79.06 kB / 1.898 GB, free: 63.93 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00319/6.713, allocations: 1.214 MB / 1.9 GB, free: 62.91 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.521e-05/6.714, allocations: 11.95 kB / 1.9 GB, free: 62.89 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.947e-06/6.714, allocations: 2.406 kB / 1.9 GB, free: 62.89 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.103e-05/6.714, allocations: 2.953 kB / 1.9 GB, free: 62.89 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008055/6.722, allocations: 2.343 MB / 1.902 GB, free: 60.96 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.928e-06/6.722, allocations: 0 / 1.902 GB, free: 60.96 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004793/6.727, allocations: 313.6 kB / 1.902 GB, free: 60.72 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003575/6.727, allocations: 70.77 kB / 1.902 GB, free: 60.67 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001829/6.727, allocations: 35.41 kB / 1.902 GB, free: 60.64 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003298/6.73, allocations: 2.765 MB / 1.905 GB, free: 57.76 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.842e-06/6.73, allocations: 4.031 kB / 1.905 GB, free: 57.75 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004659/6.735, allocations: 1.652 MB / 1.907 GB, free: 56.25 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001187/6.736, allocations: 288.9 kB / 1.907 GB, free: 55.98 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003879/6.737, allocations: 15.42 kB / 1.907 GB, free: 55.96 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002275/6.739, allocations: 64.81 kB / 1.907 GB, free: 55.93 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002725/6.739, allocations: 51.44 kB / 1.907 GB, free: 55.89 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002324/6.74, allocations: 55.02 kB / 1.907 GB, free: 55.85 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.001105/6.741, allocations: 463.4 kB / 1.908 GB, free: 55.45 MB / 490.7 MB Notification: Performance of sort global known variables: time 6.72e-07/6.741, allocations: 2.281 kB / 1.908 GB, free: 55.45 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.004031/6.745, allocations: 0.5343 MB / 1.908 GB, free: 54.92 MB / 490.7 MB 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (71): * Single equations (assignments): 69 * 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.01113/6.756, allocations: 3.825 MB / 1.912 GB, free: 51.75 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.004878/6.761, allocations: 1.345 MB / 1.913 GB, free: 50.55 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.077e-05/6.761, allocations: 1.875 kB / 1.913 GB, free: 50.55 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003124/6.764, allocations: 0.7632 MB / 1.914 GB, free: 49.85 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004706/6.769, allocations: 387.6 kB / 1.914 GB, free: 49.59 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01121/6.78, allocations: 2.629 MB / 1.917 GB, free: 47.56 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001315/6.781, allocations: 1.192 MB / 1.918 GB, free: 46.52 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001831/6.783, allocations: 464 kB / 1.918 GB, free: 46.12 MB / 490.7 MB Notification: Performance of SimCode: time 1.192e-06/6.783, allocations: 0 / 1.918 GB, free: 46.12 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.569/10.35, allocations: 37.08 MB / 1.955 GB, free: 9.844 MB / 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