Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Media.Examples.R134a.R134a2.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Running command: translateModel(Modelica.Media.Examples.R134a.R134a2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.h|volume.medium.p|volume1.medium.h|volume1.medium.p",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Media.Examples.R134a.R134a2") Notification: Performance of loadModel(Modelica): time 1.775/1.775, allocations: 194.9 MB / 211.7 MB, free: 2.98 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004213/0.0004216, allocations: 12 kB / 263.9 MB, free: 13.56 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08197/0.08242, allocations: 44.51 MB / 308.4 MB, free: 0.9844 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 12.85/12.93, allocations: 5.72 GB / 6.022 GB, free: 18.65 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000196/12.93, allocations: 81.36 kB / 6.022 GB, free: 18.57 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 16.32/29.25, allocations: 4.515 GB / 10.54 GB, free: 4.043 MB / 0.6203 GB Notification: Performance of FrontEnd: time 3.195e-06/29.25, allocations: 4 kB / 10.54 GB, free: 4.039 MB / 0.6203 GB Notification: Performance of Transformations before backend: time 2.861e-05/29.25, allocations: 12 kB / 10.54 GB, free: 4.027 MB / 0.6203 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 116 * Number of variables: 116 Notification: Performance of Generate backend data structure: time 0.04511/29.3, allocations: 2.23 MB / 10.54 GB, free: 2.102 MB / 0.6203 GB Notification: Performance of prepare preOptimizeDAE: time 3.908e-05/29.3, allocations: 12.03 kB / 10.54 GB, free: 2.09 MB / 0.6203 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008439/29.3, allocations: 87.31 kB / 10.54 GB, free: 2.004 MB / 0.6203 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005583/29.3, allocations: 380 kB / 10.54 GB, free: 1.68 MB / 0.6203 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.617e-05/29.3, allocations: 37.81 kB / 10.54 GB, free: 1.656 MB / 0.6203 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.15e-05/29.3, allocations: 41.94 kB / 10.54 GB, free: 1.629 MB / 0.6203 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001392/29.3, allocations: 0.6188 MB / 10.54 GB, free: 1.141 MB / 0.6203 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.904e-05/29.3, allocations: 4.344 kB / 10.54 GB, free: 1.137 MB / 0.6203 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.925e-05/29.3, allocations: 22.77 kB / 10.54 GB, free: 1.129 MB / 0.6203 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.38e-05/29.3, allocations: 12 kB / 10.54 GB, free: 1.117 MB / 0.6203 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001218/29.3, allocations: 0.5229 MB / 10.54 GB, free: 0.75 MB / 0.6203 GB 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.009319/29.31, allocations: 6.097 MB / 10.55 GB, free: 10.94 MB / 0.6359 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001284/29.31, allocations: 438.1 kB / 10.55 GB, free: 10.65 MB / 0.6359 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004361/29.32, allocations: 2.836 MB / 10.55 GB, free: 7.438 MB / 0.6359 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.416e-05/29.32, allocations: 38.38 kB / 10.55 GB, free: 7.395 MB / 0.6359 GB Notification: Performance of pre-optimization done (n=46): time 3.959e-06/29.32, allocations: 0 / 10.55 GB, free: 7.395 MB / 0.6359 GB Notification: Performance of matching and sorting (n=54): time 0.01171/29.33, allocations: 2.036 MB / 10.55 GB, free: 5.762 MB / 0.6359 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.241e-05/29.33, allocations: 63.83 kB / 10.55 GB, free: 5.688 MB / 0.6359 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004223/29.33, allocations: 268.9 kB / 10.55 GB, free: 5.461 MB / 0.6359 GB Notification: Performance of collectPreVariables (initialization): time 7.039e-05/29.33, allocations: 36.77 kB / 10.55 GB, free: 5.426 MB / 0.6359 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001936/29.33, allocations: 283.4 kB / 10.55 GB, free: 5.199 MB / 0.6359 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001879/29.33, allocations: 194 kB / 10.55 GB, free: 5.055 MB / 0.6359 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.822e-05/29.33, allocations: 8 kB / 10.55 GB, free: 5.047 MB / 0.6359 GB Notification: Performance of setup shared object (initialization): time 0.0001845/29.33, allocations: 338.8 kB / 10.55 GB, free: 4.707 MB / 0.6359 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004322/29.33, allocations: 181.2 kB / 10.55 GB, free: 4.531 MB / 0.6359 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005594/29.33, allocations: 324 kB / 10.55 GB, free: 4.156 MB / 0.6359 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005406/29.33, allocations: 228.7 kB / 10.55 GB, free: 3.93 MB / 0.6359 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.586e-06/29.33, allocations: 4 kB / 10.55 GB, free: 3.926 MB / 0.6359 GB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001843/29.33, allocations: 0.6507 MB / 10.55 GB, free: 3.262 MB / 0.6359 GB Notification: Performance of prepare postOptimizeDAE: time 2.379e-05/29.33, allocations: 12.06 kB / 10.55 GB, free: 3.25 MB / 0.6359 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.273e-05/29.33, allocations: 4 kB / 10.55 GB, free: 3.246 MB / 0.6359 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01461/29.35, allocations: 0.5525 MB / 10.55 GB, free: 2.684 MB / 0.6359 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008282/29.35, allocations: 147.7 kB / 10.55 GB, free: 2.539 MB / 0.6359 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3986/29.75, allocations: 2.984 MB / 10.56 GB, free: 115.4 MB / 0.6359 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006186/29.75, allocations: 46.62 kB / 10.56 GB, free: 115.4 MB / 0.6359 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.872e-05/29.75, allocations: 28 kB / 10.56 GB, free: 115.4 MB / 0.6359 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 4 (volume1.medium.phase,ambient.medium.phase,fixedMassFlowRate.medium.phase,volume.medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (73): * 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: 3 * 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: 0 * Non-linear torn systems: 3 {1 1,1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0003499/29.75, allocations: 192.5 kB / 10.56 GB, free: 115.3 MB / 0.6359 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000115/29.75, allocations: 47.41 kB / 10.56 GB, free: 115.3 MB / 0.6359 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002055/29.75, allocations: 1.053 MB / 10.56 GB, free: 115.2 MB / 0.6359 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.781e-05/29.75, allocations: 11.56 kB / 10.56 GB, free: 115.2 MB / 0.6359 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.015e-06/29.75, allocations: 0 / 10.56 GB, free: 115.2 MB / 0.6359 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00139/29.75, allocations: 1.088 MB / 10.56 GB, free: 114.8 MB / 0.6359 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003193/29.75, allocations: 1.729 MB / 10.56 GB, free: 114.5 MB / 0.6359 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.507e-06/29.75, allocations: 0.5625 kB / 10.56 GB, free: 114.5 MB / 0.6359 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005933/29.76, allocations: 101.5 kB / 10.56 GB, free: 114.5 MB / 0.6359 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004853/29.76, allocations: 399.1 kB / 10.56 GB, free: 114.5 MB / 0.6359 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.48e-05/29.76, allocations: 16.84 kB / 10.56 GB, free: 114.5 MB / 0.6359 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006549/29.76, allocations: 1.144 MB / 10.56 GB, free: 113.4 MB / 0.6359 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.319e-06/29.76, allocations: 0 / 10.56 GB, free: 113.4 MB / 0.6359 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002133/29.76, allocations: 1.127 MB / 10.56 GB, free: 113.3 MB / 0.6359 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002286/29.76, allocations: 138.1 kB / 10.56 GB, free: 113.2 MB / 0.6359 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.48e-05/29.76, allocations: 12.12 kB / 10.56 GB, free: 113.2 MB / 0.6359 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004381/29.76, allocations: 34.94 kB / 10.56 GB, free: 113.1 MB / 0.6359 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.335e-05/29.76, allocations: 35.84 kB / 10.56 GB, free: 113.1 MB / 0.6359 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.233e-05/29.76, allocations: 23.72 kB / 10.56 GB, free: 113.1 MB / 0.6359 GB Notification: Performance of sorting global known variables: time 0.0004176/29.76, allocations: 250.5 kB / 10.56 GB, free: 113.1 MB / 0.6359 GB Notification: Performance of sort global known variables: time 7.12e-07/29.76, allocations: 1.938 kB / 10.56 GB, free: 113.1 MB / 0.6359 GB Notification: Performance of remove unused functions: time 0.01481/29.78, allocations: 1.116 MB / 10.57 GB, free: 113.1 MB / 0.6359 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (volume.medium.p,volume.medium.h,volume1.medium.p,volume1.medium.h) * Number of discrete variables: 6 ($cse1.phase,$cse2,$cse5.phase,$cse6,$cse7.phase,$cse8) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (58): * Single equations (assignments): 53 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * 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 Backend phase and start with SimCode phase: time 0.2097/29.99, allocations: 23.7 MB / 10.59 GB, free: 101.3 MB / 0.6359 GB Notification: Performance of simCode: created initialization part: time 0.00179/29.99, allocations: 0.6911 MB / 10.59 GB, free: 101.2 MB / 0.6359 GB Notification: Performance of simCode: created event and clocks part: time 6.276e-06/29.99, allocations: 3.938 kB / 10.59 GB, free: 101.2 MB / 0.6359 GB Notification: Performance of simCode: created simulation system equations: time 0.0007847/29.99, allocations: 368.5 kB / 10.59 GB, free: 101.2 MB / 0.6359 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001755/29.99, allocations: 261.1 kB / 10.59 GB, free: 101.2 MB / 0.6359 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002836/30, allocations: 1.632 MB / 10.59 GB, free: 100.5 MB / 0.6359 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003582/30, allocations: 0.8799 MB / 10.59 GB, free: 99.79 MB / 0.6359 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002014/30, allocations: 53.89 kB / 10.59 GB, free: 99.79 MB / 0.6359 GB Notification: Performance of SimCode: time 1.476e-06/30, allocations: 0 / 10.59 GB, free: 99.79 MB / 0.6359 GB Notification: Performance of Templates: time 0.07618/30.07, allocations: 47 MB / 10.64 GB, free: 96.08 MB / 0.6359 GB "Error: Could not read variable volume.medium.state.der(d) in file Modelica_3.2.2_cpp_Modelica.Media.Examples.R134a.R134a2_res.mat. Warning: Get data of variable volume.medium.state.der(d) from file Modelica_3.2.2_cpp_Modelica.Media.Examples.R134a.R134a2_res.mat failed! Error: Could not read variable volume1.medium.state.der(d) in file Modelica_3.2.2_cpp_Modelica.Media.Examples.R134a.R134a2_res.mat. Warning: Get data of variable volume1.medium.state.der(d) from file Modelica_3.2.2_cpp_Modelica.Media.Examples.R134a.R134a2_res.mat failed! " Variables in the reference:time,volume.medium.h,volume.medium.p,volume1.medium.h,volume1.medium.p Variables in the result:T_start,X_start[1],ambient.T_ambient,ambient.X_ambient[1],ambient.d_ambient,ambient.h_ambient,ambient.medium.MM,ambient.medium.R,ambient.medium.T,ambient.medium.T_degC,ambient.medium.X[1],ambient.medium.d,ambient.medium.h,ambient.medium.p,ambient.medium.p_bar,ambient.medium.phase,ambient.medium.preferredMediumStates,ambient.medium.quality,ambient.medium.sat.Tsat,ambient.medium.sat.psat,ambient.medium.standardOrderComponents,ambient.medium.state.T,ambient.medium.state.d,ambient.medium.state.h,ambient.medium.state.p,ambient.medium.state.phase,ambient.medium.u,ambient.p_ambient,ambient.port.H_flow,ambient.port.h,ambient.port.m_flow,ambient.port.p,ambient.use_T_ambient,ambient.use_p_ambient,fixedMassFlowRate.T_ambient,fixedMassFlowRate.X_ambient[1],fixedMassFlowRate.h_ambient,fixedMassFlowRate.m_flow,fixedMassFlowRate.medium.MM,fixedMassFlowRate.medium.R,fixedMassFlowRate.medium.T,fixedMassFlowRate.medium.T_degC,fixedMassFlowRate.medium.X[1],fixedMassFlowRate.medium.d,fixedMassFlowRate.medium.h,fixedMassFlowRate.medium.p,fixedMassFlowRate.medium.p_bar,fixedMassFlowRate.medium.phase,fixedMassFlowRate.medium.preferredMediumStates,fixedMassFlowRate.medium.quality,fixedMassFlowRate.medium.sat.Tsat,fixedMassFlowRate.medium.sat.psat,fixedMassFlowRate.medium.standardOrderComponents,fixedMassFlowRate.medium.state.T,fixedMassFlowRate.medium.state.d,fixedMassFlowRate.medium.state.h,fixedMassFlowRate.medium.state.p,fixedMassFlowRate.medium.state.phase,fixedMassFlowRate.medium.u,fixedMassFlowRate.port.H_flow,fixedMassFlowRate.port.h,fixedMassFlowRate.port.m_flow,fixedMassFlowRate.port.p,fixedMassFlowRate.use_T_ambient,h_start,p_start,shortPipe.dp,shortPipe.dp_nominal,shortPipe.m_flow,shortPipe.m_flow_nominal,shortPipe.port_a.H_flow,shortPipe.port_a.h,shortPipe.port_a.m_flow,shortPipe.port_a.p,shortPipe.port_b.H_flow,shortPipe.port_b.h,shortPipe.port_b.m_flow,shortPipe.port_b.p,shortPipe1.dp,shortPipe1.dp_nominal,shortPipe1.m_flow,shortPipe1.m_flow_nominal,shortPipe1.port_a.H_flow,shortPipe1.port_a.h,shortPipe1.port_a.m_flow,shortPipe1.port_a.p,shortPipe1.port_b.H_flow,shortPipe1.port_b.h,shortPipe1.port_b.m_flow,shortPipe1.port_b.p,time,volume.T_start,volume.U,volume.V,volume.X_start[1],volume.d_start,der(volume.U),der(volume.m),volume.h_start,volume.m,volume.medium.MM,volume.medium.R,volume.medium.T,volume.medium.T_degC,volume.medium.X[1],volume.medium.d,der(volume.medium.d),der(volume.medium.h),der(volume.medium.p),der(volume.medium.u),volume.medium.h,volume.medium.p,volume.medium.p_bar,volume.medium.phase,volume.medium.preferredMediumStates,volume.medium.quality,volume.medium.sat.Tsat,volume.medium.sat.psat,volume.medium.standardOrderComponents,volume.medium.state.T,volume.medium.state.d,volume.medium.state.h,volume.medium.state.p,volume.medium.state.phase,volume.medium.u,volume.p_start,volume.port.H_flow,volume.port.h,volume.port.m_flow,volume.port.p,volume.use_T_start,volume.use_p_start,volume1.T_start,volume1.U,volume1.V,volume1.X_start[1],volume1.d_start,der(volume1.U),der(volume1.m),volume1.h_start,volume1.m,volume1.medium.MM,volume1.medium.R,volume1.medium.T,volume1.medium.T_degC,volume1.medium.X[1],volume1.medium.d,der(volume1.medium.d),der(volume1.medium.h),der(volume1.medium.p),der(volume1.medium.u),volume1.medium.h,volume1.medium.p,volume1.medium.p_bar,volume1.medium.phase,volume1.medium.preferredMediumStates,volume1.medium.quality,volume1.medium.sat.Tsat,volume1.medium.sat.psat,volume1.medium.standardOrderComponents,volume1.medium.state.T,volume1.medium.state.d,volume1.medium.state.h,volume1.medium.state.p,volume1.medium.state.phase,volume1.medium.u,volume1.p_start,volume1.port.H_flow,volume1.port.h,volume1.port.m_flow,volume1.port.p,volume1.use_T_start,volume1.use_p_start