Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_Air",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.057/2.057, allocations: 209.2 MB / 224.8 MB, free: 0.6211 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004622/0.0004627, allocations: 12 kB / 282.6 MB, free: 9.586 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3753/0.3758, allocations: 48.7 MB / 331.3 MB, free: 6.508 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air): time 0.2972/0.673, allocations: 141.7 MB / 473 MB, free: 428 kB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.3545/1.028, allocations: 8.705 MB / 481.7 MB, free: 2.93 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001142/1.029, allocations: 25.88 kB / 481.7 MB, free: 2.93 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00116/1.03, allocations: 273.1 kB / 482 MB, free: 2.93 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005197/1.035, allocations: 1.189 MB / 483.2 MB, free: 2.898 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004081/1.039, allocations: 0.9025 MB / 484.1 MB, free: 2.871 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.002838/1.042, allocations: 1.168 MB / 485.3 MB, free: 2.867 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009554/1.043, allocations: 387.6 kB / 485.7 MB, free: 2.832 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002881/1.046, allocations: 0.7356 MB / 486.4 MB, free: 2.828 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001407/1.047, allocations: 460.9 kB / 486.8 MB, free: 2.824 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001987/1.048, allocations: 31.25 kB / 486.9 MB, free: 2.824 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002791/1.05, allocations: 0.636 MB / 487.5 MB, free: 2.824 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005646/1.051, allocations: 211.8 kB / 487.7 MB, free: 2.824 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004444/1.052, allocations: 166.4 kB / 487.9 MB, free: 2.793 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002403/1.054, allocations: 0.9852 MB / 488.9 MB, free: 2.727 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.567e-06/1.054, allocations: 1.859 kB / 488.9 MB, free: 2.727 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.424e-06/1.054, allocations: 0 / 488.9 MB, free: 2.727 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.358e-05/1.054, allocations: 4 kB / 488.9 MB, free: 2.723 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 130 * Number of variables: 130 Notification: Performance of Generate backend data structure: time 0.003346/1.057, allocations: 0.9879 MB / 489.9 MB, free: 18.11 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.379e-05/1.057, allocations: 8.812 kB / 489.9 MB, free: 18.11 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00029/1.058, allocations: 95.44 kB / 490 MB, free: 18.07 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001175/1.059, allocations: 134.5 kB / 490.1 MB, free: 18.04 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001346/1.06, allocations: 0.4908 MB / 490.6 MB, free: 17.79 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001436/1.06, allocations: 103.3 kB / 490.7 MB, free: 17.73 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001357/1.061, allocations: 51.47 kB / 490.7 MB, free: 17.73 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001776/1.062, allocations: 0.8108 MB / 491.5 MB, free: 17.5 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.973e-05/1.062, allocations: 5.688 kB / 491.5 MB, free: 17.5 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001109/1.063, allocations: 27.19 kB / 491.6 MB, free: 17.5 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.878e-05/1.063, allocations: 38.38 kB / 491.6 MB, free: 17.5 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001594/1.064, allocations: 0.6262 MB / 492.2 MB, free: 17.49 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.006664/1.071, allocations: 3.923 MB / 496.2 MB, free: 14.88 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008164/1.072, allocations: 348.3 kB / 496.5 MB, free: 14.85 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001216/1.072, allocations: 27.48 kB / 496.5 MB, free: 14.85 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.274e-05/1.072, allocations: 42.91 kB / 496.6 MB, free: 14.81 MB / 410.7 MB Notification: Performance of pre-optimization done (n=34): time 3.407e-06/1.072, allocations: 0 / 496.6 MB, free: 14.81 MB / 410.7 MB Notification: Performance of matching and sorting (n=39): time 0.009499/1.082, allocations: 1.639 MB / 498.2 MB, free: 14.29 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.675e-05/1.082, allocations: 134.3 kB / 498.3 MB, free: 14.14 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009778/1.083, allocations: 0.5969 MB / 498.9 MB, free: 13.99 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001122/1.083, allocations: 40.42 kB / 499 MB, free: 13.96 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00029/1.083, allocations: 408.9 kB / 499.4 MB, free: 13.69 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001566/1.083, allocations: 150 kB / 499.5 MB, free: 13.6 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.518e-05/1.083, allocations: 9.625 kB / 499.5 MB, free: 13.6 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001557/1.083, allocations: 342.7 kB / 499.9 MB, free: 13.29 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005856/1.084, allocations: 206.7 kB / 0.4883 GB, free: 13.28 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007499/1.085, allocations: 0.5285 MB / 0.4889 GB, free: 12.86 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000726/1.086, allocations: 304.5 kB / 0.4891 GB, free: 12.84 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.344e-06/1.086, allocations: 3.219 kB / 0.4892 GB, free: 12.84 MB / 410.7 MB Notification: Performance of matching and sorting (n=89) (initialization): time 0.002142/1.088, allocations: 0.854 MB / 0.49 GB, free: 12.77 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.984e-05/1.088, allocations: 8 kB / 0.49 GB, free: 12.77 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.866e-05/1.088, allocations: 11 kB / 0.49 GB, free: 12.77 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00231/1.09, allocations: 312.5 kB / 0.4903 GB, free: 12.75 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008129/1.091, allocations: 129.8 kB / 0.4904 GB, free: 12.75 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00165/1.093, allocations: 0.8968 MB / 0.4913 GB, free: 12.23 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001142/1.094, allocations: 46.5 kB / 0.4913 GB, free: 12.22 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001365/1.094, allocations: 70.53 kB / 0.4914 GB, free: 12.22 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 49 * 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 (72): * Single equations (assignments): 71 * 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.0005597/1.095, allocations: 252.2 kB / 0.4917 GB, free: 12.1 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001895/1.095, allocations: 71.56 kB / 0.4917 GB, free: 12.06 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002292/1.097, allocations: 0.6692 MB / 0.4924 GB, free: 11.94 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.538e-06/1.097, allocations: 3.312 kB / 0.4924 GB, free: 11.94 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.015e-06/1.097, allocations: 0 / 0.4924 GB, free: 11.94 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.814e-06/1.097, allocations: 3.094 kB / 0.4924 GB, free: 11.94 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002911/1.1, allocations: 1.268 MB / 0.4936 GB, free: 11.49 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.402e-06/1.1, allocations: 0 / 0.4936 GB, free: 11.49 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001938/1.102, allocations: 212.2 kB / 0.4938 GB, free: 11.48 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001475/1.102, allocations: 26.92 kB / 0.4938 GB, free: 11.47 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.077e-05/1.102, allocations: 17.66 kB / 0.4939 GB, free: 11.47 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002827/1.105, allocations: 2.698 MB / 0.4965 GB, free: 8.891 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.566e-06/1.105, allocations: 4.094 kB / 0.4965 GB, free: 8.887 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001978/1.107, allocations: 0.8032 MB / 0.4973 GB, free: 8.652 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004927/1.108, allocations: 175.1 kB / 0.4975 GB, free: 8.527 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002021/1.108, allocations: 13.28 kB / 0.4975 GB, free: 8.527 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007106/1.109, allocations: 23.88 kB / 0.4975 GB, free: 8.527 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001311/1.109, allocations: 37.91 kB / 0.4975 GB, free: 8.527 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.51e-05/1.109, allocations: 47.19 kB / 0.4976 GB, free: 8.523 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0007369/1.11, allocations: 412.8 kB / 0.498 GB, free: 8.43 MB / 410.7 MB Notification: Performance of sort global known variables: time 4.01e-07/1.11, allocations: 2.625 kB / 0.498 GB, free: 8.43 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001566/1.111, allocations: 295.1 kB / 0.4982 GB, free: 8.406 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * 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 (39): * Single equations (assignments): 37 * 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.003534/1.115, allocations: 1.592 MB / 0.4998 GB, free: 7.617 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001818/1.117, allocations: 0.5582 MB / 0.5003 GB, free: 7.59 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 6.782e-06/1.117, allocations: 0 / 0.5003 GB, free: 7.59 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001587/1.118, allocations: 396.2 kB / 0.5007 GB, free: 7.48 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002807/1.121, allocations: 316.8 kB / 0.501 GB, free: 7.449 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01021/1.131, allocations: 4.291 MB / 0.5052 GB, free: 5.676 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007246/1.132, allocations: 0.9477 MB / 0.5061 GB, free: 4.867 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009091/1.133, allocations: 276.4 kB / 0.5064 GB, free: 4.824 MB / 410.7 MB Notification: Performance of SimCode: time 9.82e-07/1.133, allocations: 4 kB / 0.5064 GB, free: 4.82 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.419/4.552, allocations: 19.63 MB / 0.5256 GB, free: 6.902 MB / 426.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air_res.mat does not exist to compare? outputFormat=mat