Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.1_cpp_Modelica.Media.Examples.MixtureGases.conf.json Using package ModelicaServices with version 1.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/package.mo) Running command: translateModel(Modelica.Media.Examples.MixtureGases,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_cpp_Modelica.Media.Examples.MixtureGases") Notification: Performance of loadModel(Modelica): time 1.036/1.036, allocations: 111.1 MB / 126.7 MB, free: 6.129 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002634/0.0002636, allocations: 4 kB / 158.3 MB, free: 15.18 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.04613/0.04641, allocations: 25.17 MB / 183.5 MB, free: 5.965 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.716/1.762, allocations: 0.6671 GB / 0.8463 GB, free: 64.66 MB / 234.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002002/1.763, allocations: 62.12 kB / 0.8463 GB, free: 64.66 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4232/2.186, allocations: 94.5 MB / 0.9386 GB, free: 46.01 MB / 234.7 MB Notification: Performance of FrontEnd: time 3.025e-06/2.186, allocations: 0 / 0.9386 GB, free: 46.01 MB / 234.7 MB Notification: Performance of Transformations before backend: time 1.184e-05/2.186, allocations: 9.094 kB / 0.9386 GB, free: 46.01 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: 75 * Number of variables: 75 Notification: Performance of Generate backend data structure: time 0.002631/2.188, allocations: 0.7721 MB / 0.9394 GB, free: 45.57 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.831e-05/2.189, allocations: 10.34 kB / 0.9394 GB, free: 45.57 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001514/2.189, allocations: 28.5 kB / 0.9394 GB, free: 45.55 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003568/2.189, allocations: 268.2 kB / 0.9397 GB, free: 45.36 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.551e-05/2.189, allocations: 22.28 kB / 0.9397 GB, free: 45.36 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.692e-05/2.189, allocations: 38.44 kB / 0.9397 GB, free: 45.35 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001354/2.191, allocations: 0.5608 MB / 0.9403 GB, free: 45.29 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.504e-05/2.191, allocations: 5.875 kB / 0.9403 GB, free: 45.29 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.839e-05/2.191, allocations: 14.56 kB / 0.9403 GB, free: 45.29 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.072e-05/2.191, allocations: 18.2 kB / 0.9403 GB, free: 45.29 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001549/2.192, allocations: 0.6433 MB / 0.9409 GB, free: 45.28 MB / 234.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.003424/2.196, allocations: 1.418 MB / 0.9423 GB, free: 44.63 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001491/2.197, allocations: 433.1 kB / 0.9427 GB, free: 44.58 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003045/2.2, allocations: 2.064 MB / 0.9447 GB, free: 42.82 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.369e-05/2.2, allocations: 37.19 kB / 0.9448 GB, free: 42.79 MB / 234.7 MB Notification: Performance of pre-optimization done (n=35): time 3.436e-06/2.2, allocations: 0 / 0.9448 GB, free: 42.79 MB / 234.7 MB Warning: Some equations could not be differentiated for following variables having attribute stateSelect=StateSelect.prefer. They will be treated as if they had stateSelect=StateSelect.default ======================================== 1: medium2.T Please use -d=bltdump for more information. Warning: Some equations could not be differentiated for following variables having attribute stateSelect=StateSelect.prefer. They will be treated as if they had stateSelect=StateSelect.default ======================================== 1: medium1.T Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=48): time 0.01372/2.214, allocations: 3.025 MB / 0.9477 GB, free: 41.7 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.168e-05/2.214, allocations: 84.14 kB / 0.9478 GB, free: 41.6 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001666/2.214, allocations: 170.8 kB / 0.948 GB, free: 41.5 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 6.223e-05/2.214, allocations: 37.02 kB / 0.948 GB, free: 41.47 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.022e-05/2.215, allocations: 237 kB / 0.9482 GB, free: 41.27 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001365/2.215, allocations: 179.1 kB / 0.9484 GB, free: 41.17 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.234e-05/2.215, allocations: 8.75 kB / 0.9484 GB, free: 41.17 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 6.99e-05/2.215, allocations: 339.5 kB / 0.9487 GB, free: 40.85 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007312/2.216, allocations: 184.2 kB / 0.9489 GB, free: 40.85 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008026/2.216, allocations: 345.6 kB / 0.9492 GB, free: 40.68 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008211/2.217, allocations: 233 kB / 0.9495 GB, free: 40.68 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.47e-06/2.217, allocations: 0 / 0.9495 GB, free: 40.68 MB / 234.7 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.002143/2.219, allocations: 0.6457 MB / 0.9501 GB, free: 40.61 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.56e-05/2.22, allocations: 7.562 kB / 0.9501 GB, free: 40.61 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.288e-05/2.22, allocations: 7.75 kB / 0.9501 GB, free: 40.61 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002524/2.22, allocations: 53.55 kB / 0.9502 GB, free: 40.59 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009434/2.221, allocations: 170.7 kB / 0.9503 GB, free: 40.59 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000585/2.221, allocations: 1.087 MB / 0.9514 GB, free: 39.55 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006277/2.222, allocations: 38.88 kB / 0.9514 GB, free: 39.55 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.762e-05/2.222, allocations: 40.48 kB / 0.9515 GB, free: 39.55 MB / 234.7 MB Warning: Assuming fixed start value for the following 4 variables: medium2.T:VARIABLE(min = max(1.0, 1.0) max = min(10000.0, 10000.0) start = 300.0 unit = "K" fixed = true nominal = 500.0 stateSelect=StateSelect.prefer ) "Temperature of medium" type: Real medium2.p:VARIABLE(min = max(0.0, 2000.0) max = min(100000000.0, 1000000000.0) start = 100000.0 unit = "Pa" fixed = true nominal = 100000.0 stateSelect=StateSelect.prefer ) "Absolute pressure of medium" type: Real medium1.T:VARIABLE(min = max(1.0, 1.0) max = min(10000.0, 10000.0) start = 300.0 unit = "K" fixed = true nominal = 500.0 stateSelect=StateSelect.prefer ) "Temperature of medium" type: Real medium1.p:VARIABLE(min = max(0.0, 2000.0) max = min(100000000.0, 1000000000.0) start = 100000.0 unit = "Pa" fixed = true 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: 22 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (70): * Single equations (assignments): 68 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0003824/2.223, allocations: 209.9 kB / 0.9517 GB, free: 39.42 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000133/2.223, allocations: 34.42 kB / 0.9517 GB, free: 39.41 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002178/2.225, allocations: 0.6253 MB / 0.9523 GB, free: 39.34 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.026e-05/2.225, allocations: 7.219 kB / 0.9523 GB, free: 39.34 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.92e-06/2.225, allocations: 0 / 0.9523 GB, free: 39.34 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.534e-06/2.225, allocations: 3.891 kB / 0.9523 GB, free: 39.34 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003408/2.228, allocations: 1.21 MB / 0.9535 GB, free: 38.86 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.074e-05/2.228, allocations: 7.031 kB / 0.9535 GB, free: 38.86 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00105/2.229, allocations: 136.9 kB / 0.9536 GB, free: 38.86 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001926/2.23, allocations: 42.38 kB / 0.9537 GB, free: 38.84 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.71e-05/2.23, allocations: 21.12 kB / 0.9537 GB, free: 38.84 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001595/2.231, allocations: 2.545 MB / 0.9562 GB, free: 36.34 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.295e-06/2.231, allocations: 3.844 kB / 0.9562 GB, free: 36.34 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002683/2.234, allocations: 0.9955 MB / 0.9572 GB, free: 35.88 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002501/2.234, allocations: 142.6 kB / 0.9573 GB, free: 35.78 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.604e-05/2.234, allocations: 13.5 kB / 0.9573 GB, free: 35.78 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007094/2.235, allocations: 32.39 kB / 0.9573 GB, free: 35.78 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.062e-05/2.235, allocations: 44.52 kB / 0.9574 GB, free: 35.77 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.664e-05/2.235, allocations: 39.33 kB / 0.9574 GB, free: 35.77 MB / 234.7 MB Notification: Performance of sorting global known variables: time 0.0001122/2.236, allocations: 133.7 kB / 0.9575 GB, free: 35.68 MB / 234.7 MB Notification: Performance of sort global known variables: time 7.43e-07/2.236, allocations: 0 / 0.9575 GB, free: 35.68 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.001884/2.237, allocations: 429.3 kB / 0.958 GB, free: 35.63 MB / 234.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 4 (medium1.p,medium1.T,medium2.p,medium2.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 (48): * Single equations (assignments): 46 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.004228/2.242, allocations: 1.207 MB / 0.9591 GB, free: 35.29 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.001798/2.244, allocations: 0.5109 MB / 0.9596 GB, free: 35.27 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 7.546e-06/2.244, allocations: 0 / 0.9596 GB, free: 35.27 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001098/2.245, allocations: 477.5 kB / 0.9601 GB, free: 35.03 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008337/2.246, allocations: 93.53 kB / 0.9602 GB, free: 35.02 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002709/2.248, allocations: 1.214 MB / 0.9614 GB, free: 34.37 MB / 234.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002861/2.249, allocations: 0.7921 MB / 0.9621 GB, free: 33.66 MB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004194/2.249, allocations: 74.17 kB / 0.9622 GB, free: 33.64 MB / 234.7 MB Notification: Performance of SimCode: time 1.72e-06/2.249, allocations: 0 / 0.9622 GB, free: 33.64 MB / 234.7 MB Notification: Performance of Templates: time 0.02613/2.275, allocations: 16.98 MB / 0.9788 GB, free: 26.69 MB / 234.7 MB