Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/package.mo) Running command: "" <> buildModelFMU(Modelica.Media.Examples.MixtureGases,fileNamePrefix="Modelica_3_1_cpp_Modelica_Media_Examples_MixtureGases",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.057/1.057, allocations: 111.1 MB / 126.7 MB, free: 6.137 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002709/0.0002709, allocations: 4 kB / 158.4 MB, free: 15.09 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05365/0.05396, allocations: 25.18 MB / 183.6 MB, free: 5.867 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 2.111/2.165, allocations: 0.6671 GB / 0.8464 GB, free: 60.48 MB / 234.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002305/2.166, allocations: 63.12 kB / 0.8464 GB, free: 60.46 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5021/2.668, allocations: 94.5 MB / 0.9387 GB, free: 47.04 MB / 234.7 MB Notification: Performance of FrontEnd: time 3.427e-06/2.668, allocations: 0 / 0.9387 GB, free: 47.04 MB / 234.7 MB Notification: Performance of Transformations before backend: time 1.244e-05/2.668, allocations: 7.094 kB / 0.9387 GB, free: 47.04 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.003773/2.672, allocations: 0.7848 MB / 0.9395 GB, free: 46.55 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.168e-05/2.672, allocations: 9.781 kB / 0.9395 GB, free: 46.55 MB / 234.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001557/2.672, allocations: 64.12 kB / 0.9395 GB, free: 46.51 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001234/2.672, allocations: 32.64 kB / 0.9396 GB, free: 46.5 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004367/2.672, allocations: 264.8 kB / 0.9398 GB, free: 46.28 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.863e-05/2.672, allocations: 25.81 kB / 0.9398 GB, free: 46.28 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.809e-05/2.673, allocations: 30.83 kB / 0.9399 GB, free: 46.28 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0017/2.674, allocations: 0.5696 MB / 0.9404 GB, free: 46.21 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.89e-05/2.674, allocations: 6.219 kB / 0.9404 GB, free: 46.21 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.998e-05/2.674, allocations: 9.969 kB / 0.9405 GB, free: 46.21 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.107e-05/2.675, allocations: 20.66 kB / 0.9405 GB, free: 46.21 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002125/2.677, allocations: 0.6397 MB / 0.9411 GB, free: 46.21 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.004148/2.681, allocations: 1.43 MB / 0.9425 GB, free: 45.53 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001992/2.683, allocations: 431.8 kB / 0.9429 GB, free: 45.48 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003789/2.687, allocations: 2.068 MB / 0.9449 GB, free: 43.7 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.678e-05/2.687, allocations: 45.91 kB / 0.945 GB, free: 43.65 MB / 234.7 MB Notification: Performance of pre-optimization done (n=35): time 2.565e-06/2.687, allocations: 0 / 0.945 GB, free: 43.65 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.01937/2.706, allocations: 3 MB / 0.9479 GB, free: 42.52 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.198e-05/2.706, allocations: 88.05 kB / 0.948 GB, free: 42.42 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001751/2.706, allocations: 169.1 kB / 0.9481 GB, free: 42.32 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 6.025e-05/2.706, allocations: 31.7 kB / 0.9482 GB, free: 42.29 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.973e-05/2.707, allocations: 246.3 kB / 0.9484 GB, free: 42.08 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001603/2.707, allocations: 175.2 kB / 0.9486 GB, free: 41.97 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.211e-05/2.707, allocations: 12.66 kB / 0.9486 GB, free: 41.97 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 7.466e-05/2.707, allocations: 332.4 kB / 0.9489 GB, free: 41.66 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009097/2.708, allocations: 189.6 kB / 0.9491 GB, free: 41.65 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00102/2.709, allocations: 349.5 kB / 0.9494 GB, free: 41.47 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009905/2.71, allocations: 224.9 kB / 0.9496 GB, free: 41.46 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.27e-06/2.71, allocations: 7.656 kB / 0.9496 GB, free: 41.46 MB / 234.7 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.002504/2.712, allocations: 0.6479 MB / 0.9503 GB, free: 41.38 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.899e-05/2.712, allocations: 5.5 kB / 0.9503 GB, free: 41.38 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.326e-05/2.712, allocations: 7.094 kB / 0.9503 GB, free: 41.38 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002855/2.713, allocations: 59.66 kB / 0.9503 GB, free: 41.36 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00137/2.714, allocations: 168.9 kB / 0.9505 GB, free: 41.35 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006365/2.715, allocations: 1.088 MB / 0.9516 GB, free: 40.3 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008085/2.716, allocations: 40.44 kB / 0.9516 GB, free: 40.29 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.196e-05/2.716, allocations: 38.19 kB / 0.9516 GB, free: 40.29 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.0004315/2.716, allocations: 205 kB / 0.9518 GB, free: 40.16 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001461/2.716, allocations: 25.75 kB / 0.9519 GB, free: 40.15 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002849/2.719, allocations: 0.6375 MB / 0.9525 GB, free: 40.04 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.876e-06/2.719, allocations: 3.938 kB / 0.9525 GB, free: 40.04 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.726e-06/2.719, allocations: 0 / 0.9525 GB, free: 40.04 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.029e-05/2.719, allocations: 2.719 kB / 0.9525 GB, free: 40.04 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003825/2.723, allocations: 1.203 MB / 0.9537 GB, free: 39.36 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.628e-06/2.723, allocations: 7.891 kB / 0.9537 GB, free: 39.35 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001306/2.724, allocations: 130.3 kB / 0.9538 GB, free: 39.35 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001835/2.725, allocations: 45.47 kB / 0.9538 GB, free: 39.32 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.593e-05/2.725, allocations: 25.89 kB / 0.9539 GB, free: 39.31 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001699/2.726, allocations: 2.537 MB / 0.9563 GB, free: 36.7 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.161e-06/2.726, allocations: 8.219 kB / 0.9563 GB, free: 36.7 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003354/2.73, allocations: 0.9909 MB / 0.9573 GB, free: 36.06 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002739/2.73, allocations: 144.3 kB / 0.9575 GB, free: 35.94 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.581e-05/2.73, allocations: 23.55 kB / 0.9575 GB, free: 35.93 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008374/2.731, allocations: 45.17 kB / 0.9575 GB, free: 35.91 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.641e-05/2.731, allocations: 43.19 kB / 0.9576 GB, free: 35.9 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001076/2.731, allocations: 35.06 kB / 0.9576 GB, free: 35.9 MB / 234.7 MB Notification: Performance of sorting global known variables: time 0.0001181/2.731, allocations: 128.5 kB / 0.9577 GB, free: 35.8 MB / 234.7 MB Notification: Performance of sort global known variables: time 3.7e-07/2.731, allocations: 0 / 0.9577 GB, free: 35.8 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.002179/2.734, allocations: 426.5 kB / 0.9581 GB, free: 35.7 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.008244/2.742, allocations: 3.195 MB / 0.9612 GB, free: 33.72 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.002443/2.744, allocations: 0.5115 MB / 0.9617 GB, free: 33.57 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 7.334e-06/2.744, allocations: 0 / 0.9617 GB, free: 33.57 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00128/2.746, allocations: 480.5 kB / 0.9622 GB, free: 33.27 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009842/2.747, allocations: 86.95 kB / 0.9623 GB, free: 33.25 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008648/2.755, allocations: 5.658 MB / 0.9678 GB, free: 28.61 MB / 234.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003196/2.756, allocations: 0.8025 MB / 0.9686 GB, free: 27.84 MB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005809/2.756, allocations: 140.1 kB / 0.9687 GB, free: 27.72 MB / 234.7 MB Notification: Performance of SimCode: time 9.92e-07/2.756, allocations: 0 / 0.9687 GB, free: 27.72 MB / 234.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.51/6.266, allocations: 18.15 MB / 0.9864 GB, free: 10.27 MB / 234.7 MB