Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.1_cpp_Modelica.Media.Examples.TestOnly.IdealGasN2.conf.json Using package ModelicaServices with version 1.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.1/package.mo) Running command: "" <> buildModelFMU(Modelica.Media.Examples.TestOnly.IdealGasN2,fileNamePrefix="Modelica_3_1_cpp_Modelica_Media_Examples_TestOnly_IdealGasN2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.056/1.056, allocations: 111.2 MB / 119.1 MB, free: 11.19 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 1.987e-05/1.987e-05, allocations: 4 kB / 148.2 MB, free: 6.125 MB / 122.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05291/0.05295, allocations: 25.17 MB / 173.4 MB, free: 12.92 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.8178/0.8708, allocations: 295.7 MB / 469.1 MB, free: 16.71 MB / 234.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002326/0.8711, allocations: 65.03 kB / 469.2 MB, free: 16.68 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2504/1.121, allocations: 30.49 MB / 499.7 MB, free: 76.03 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.583e-06/1.122, allocations: 0 / 499.7 MB, free: 76.03 MB / 234.7 MB Notification: Performance of Transformations before backend: time 1.391e-05/1.122, allocations: 0 / 499.7 MB, free: 76.03 MB / 234.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 19 * Number of variables: 19 Notification: Performance of Generate backend data structure: time 0.0005568/1.122, allocations: 391.6 kB / 0.4883 GB, free: 75.66 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.987e-05/1.122, allocations: 11.88 kB / 0.4883 GB, free: 75.66 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.999e-05/1.122, allocations: 7.875 kB / 0.4883 GB, free: 75.66 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002027/1.122, allocations: 188.6 kB / 0.4885 GB, free: 75.46 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.587e-05/1.123, allocations: 3.969 kB / 0.4885 GB, free: 75.46 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.563e-05/1.123, allocations: 9.312 kB / 0.4885 GB, free: 75.46 MB / 234.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002599/1.123, allocations: 99.05 kB / 0.4886 GB, free: 75.46 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002245/1.123, allocations: 111.4 kB / 0.4887 GB, free: 75.4 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.279e-05/1.123, allocations: 3.844 kB / 0.4887 GB, free: 75.4 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.186e-05/1.123, allocations: 0 / 0.4887 GB, free: 75.4 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.132e-06/1.123, allocations: 0 / 0.4887 GB, free: 75.4 MB / 234.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.0009535/1.124, allocations: 0.6216 MB / 0.4893 GB, free: 74.87 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003062/1.124, allocations: 129.8 kB / 0.4895 GB, free: 74.84 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.019e-05/1.125, allocations: 39.98 kB / 0.4895 GB, free: 74.84 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005804/1.125, allocations: 0.5791 MB / 0.4901 GB, free: 74.18 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.295e-05/1.125, allocations: 39.88 kB / 0.4901 GB, free: 74.14 MB / 234.7 MB Notification: Performance of pre-optimization done (n=14): time 2.655e-06/1.125, allocations: 3.531 kB / 0.4901 GB, free: 74.14 MB / 234.7 MB Notification: Performance of matching and sorting (n=19): time 0.01027/1.135, allocations: 1.4 MB / 0.4915 GB, free: 73.74 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.234e-05/1.136, allocations: 57.62 kB / 0.4915 GB, free: 73.68 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001021/1.136, allocations: 105.7 kB / 0.4916 GB, free: 73.58 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 2.91e-05/1.136, allocations: 29.64 kB / 0.4917 GB, free: 73.55 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.324e-05/1.136, allocations: 168 kB / 0.4918 GB, free: 73.39 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.947e-05/1.136, allocations: 68.16 kB / 0.4919 GB, free: 73.36 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.903e-05/1.136, allocations: 0 / 0.4919 GB, free: 73.36 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 7.262e-05/1.136, allocations: 316.6 kB / 0.4922 GB, free: 73.04 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001161/1.136, allocations: 52.06 kB / 0.4922 GB, free: 73.04 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001356/1.136, allocations: 73.89 kB / 0.4923 GB, free: 73.01 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001487/1.138, allocations: 255.8 kB / 0.4926 GB, free: 73 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.386e-06/1.138, allocations: 0 / 0.4926 GB, free: 73 MB / 234.7 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.001815/1.14, allocations: 406.7 kB / 0.4929 GB, free: 72.95 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.17e-05/1.14, allocations: 3.938 kB / 0.4929 GB, free: 72.95 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.197e-06/1.14, allocations: 0 / 0.4929 GB, free: 72.95 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001956/1.14, allocations: 41.22 kB / 0.493 GB, free: 72.95 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003755/1.14, allocations: 54.23 kB / 0.493 GB, free: 72.94 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004314/1.141, allocations: 0.5694 MB / 0.4936 GB, free: 72.43 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001685/1.141, allocations: 5.656 kB / 0.4936 GB, free: 72.43 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.37e-05/1.141, allocations: 23.55 kB / 0.4936 GB, free: 72.43 MB / 234.7 MB Warning: Assuming fixed start value for the following 2 variables: medium.T:VARIABLE(min = max(200.0, 200.0) max = min(6000.0, 6000.0) start = 300.0 unit = "K" nominal = 500.0 stateSelect=StateSelect.prefer ) "Temperature of medium" type: Real medium.p:VARIABLE(min = max(0.0, 2000.0) max = min(100000000.0, 1000000000.0) start = 100000.0 unit = "Pa" nominal = 100000.0 stateSelect=StateSelect.prefer ) "Absolute pressure of medium" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (23): * Single equations (assignments): 22 * 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 {1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0002159/1.141, allocations: 129.4 kB / 0.4937 GB, free: 72.31 MB / 234.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001902/1.143, allocations: 379.7 kB / 0.4941 GB, free: 72.26 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.478e-05/1.143, allocations: 17.41 kB / 0.4941 GB, free: 72.25 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002341/1.146, allocations: 484.2 kB / 0.4946 GB, free: 72.19 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.694e-06/1.146, allocations: 6.562 kB / 0.4946 GB, free: 72.18 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.037e-06/1.146, allocations: 3.75 kB / 0.4946 GB, free: 72.18 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.091e-06/1.146, allocations: 0 / 0.4946 GB, free: 72.18 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00236/1.148, allocations: 0.7067 MB / 0.4953 GB, free: 71.79 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.414e-06/1.148, allocations: 6.016 kB / 0.4953 GB, free: 71.79 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004331/1.148, allocations: 61.98 kB / 0.4953 GB, free: 71.79 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001097/1.149, allocations: 15.38 kB / 0.4954 GB, free: 71.78 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.447e-05/1.149, allocations: 20.28 kB / 0.4954 GB, free: 71.77 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008305/1.149, allocations: 1.218 MB / 0.4966 GB, free: 70.52 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.28e-06/1.15, allocations: 3.234 kB / 0.4966 GB, free: 70.52 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002072/1.152, allocations: 0.5737 MB / 0.4971 GB, free: 70.2 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.152e-05/1.152, allocations: 92.17 kB / 0.4972 GB, free: 70.1 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.072e-05/1.152, allocations: 5.422 kB / 0.4972 GB, free: 70.1 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000222/1.152, allocations: 7.125 kB / 0.4972 GB, free: 70.09 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.627e-05/1.152, allocations: 23.3 kB / 0.4973 GB, free: 70.09 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.847e-05/1.152, allocations: 29.36 kB / 0.4973 GB, free: 70.09 MB / 234.7 MB Notification: Performance of sorting global known variables: time 5.13e-05/1.152, allocations: 90.38 kB / 0.4974 GB, free: 70 MB / 234.7 MB Notification: Performance of sort global known variables: time 4.41e-07/1.152, allocations: 0 / 0.4974 GB, free: 70 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.0008362/1.153, allocations: 132.8 kB / 0.4975 GB, free: 69.97 MB / 234.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (medium.p,medium.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 19 * 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: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003686/1.157, allocations: 1.911 MB / 0.4994 GB, free: 68.78 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.0005503/1.157, allocations: 158.6 kB / 0.4995 GB, free: 68.73 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 5.079e-06/1.157, allocations: 0 / 0.4995 GB, free: 68.73 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003185/1.158, allocations: 191.6 kB / 0.4997 GB, free: 68.61 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005906/1.158, allocations: 41.69 kB / 0.4997 GB, free: 68.6 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001226/1.16, allocations: 405.5 kB / 0.5001 GB, free: 68.29 MB / 234.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001941/1.16, allocations: 0.7076 MB / 0.5008 GB, free: 67.59 MB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003416/1.16, allocations: 69.84 kB / 0.5009 GB, free: 67.56 MB / 234.7 MB Notification: Performance of SimCode: time 1.042e-06/1.16, allocations: 0 / 0.5009 GB, free: 67.56 MB / 234.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.95/4.11, allocations: 7.664 MB / 0.5084 GB, free: 62.74 MB / 234.7 MB