Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Media.Examples.R134a.R134a2.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/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.1_cpp_Modelica.Media.Examples.R134a.R134a2") Notification: Performance of loadModel(Modelica): time 1.614/1.614, allocations: 171.3 MB / 179.2 MB, free: 7.5 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.004e-05/2.022e-05, allocations: 3.938 kB / 222.5 MB, free: 8.688 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07165/0.07169, allocations: 38.76 MB / 261.3 MB, free: 1.84 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 13.1/13.17, allocations: 5.483 GB / 5.739 GB, free: 88.38 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002146/13.17, allocations: 74.41 kB / 5.739 GB, free: 88.38 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.594/17.76, allocations: 0.9588 GB / 6.697 GB, free: 28.84 MB / 458.9 MB Notification: Performance of FrontEnd: time 2.437e-06/17.76, allocations: 2.625 kB / 6.697 GB, free: 28.84 MB / 458.9 MB Notification: Performance of Transformations before backend: time 3.687e-05/17.76, allocations: 8 kB / 6.697 GB, free: 28.83 MB / 458.9 MB 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.02469/17.79, allocations: 1.559 MB / 6.699 GB, free: 27.62 MB / 458.9 MB Notification: Performance of prepare preOptimizeDAE: time 3.998e-05/17.79, allocations: 8.031 kB / 6.699 GB, free: 27.61 MB / 458.9 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008685/17.79, allocations: 91.62 kB / 6.699 GB, free: 27.54 MB / 458.9 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000613/17.79, allocations: 387.6 kB / 6.699 GB, free: 27.27 MB / 458.9 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.508e-05/17.79, allocations: 16 kB / 6.699 GB, free: 27.25 MB / 458.9 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.634e-05/17.79, allocations: 28 kB / 6.699 GB, free: 27.22 MB / 458.9 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008846/17.79, allocations: 449.4 kB / 6.7 GB, free: 26.98 MB / 458.9 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008894/17.79, allocations: 0.5087 MB / 6.7 GB, free: 26.62 MB / 458.9 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.541e-05/17.79, allocations: 0 / 6.7 GB, free: 26.62 MB / 458.9 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.93e-05/17.79, allocations: 4 kB / 6.7 GB, free: 26.61 MB / 458.9 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.271e-05/17.79, allocations: 16.56 kB / 6.7 GB, free: 26.6 MB / 458.9 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.007874/17.8, allocations: 6.41 MB / 6.707 GB, free: 21.29 MB / 458.9 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006576/17.8, allocations: 344.4 kB / 6.707 GB, free: 21.09 MB / 458.9 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003182/17.8, allocations: 173.6 kB / 6.707 GB, free: 20.99 MB / 458.9 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002878/17.8, allocations: 2.428 MB / 6.709 GB, free: 18.4 MB / 458.9 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.9e-05/17.8, allocations: 41.53 kB / 6.71 GB, free: 18.36 MB / 458.9 MB Notification: Performance of pre-optimization done (n=44): time 3.779e-06/17.8, allocations: 3.562 kB / 6.71 GB, free: 18.36 MB / 458.9 MB Notification: Performance of matching and sorting (n=52): time 0.01872/17.82, allocations: 2.277 MB / 6.712 GB, free: 16.88 MB / 458.9 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.436e-05/17.82, allocations: 59.84 kB / 6.712 GB, free: 16.81 MB / 458.9 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003014/17.82, allocations: 250.8 kB / 6.712 GB, free: 16.63 MB / 458.9 MB Notification: Performance of collectPreVariables (initialization): time 4.325e-05/17.82, allocations: 29.7 kB / 6.712 GB, free: 16.6 MB / 458.9 MB Notification: Performance of collectInitialEqns (initialization): time 0.000117/17.82, allocations: 296 kB / 6.712 GB, free: 16.37 MB / 458.9 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001255/17.82, allocations: 173.3 kB / 6.713 GB, free: 16.26 MB / 458.9 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.023e-05/17.82, allocations: 0 / 6.713 GB, free: 16.26 MB / 458.9 MB Notification: Performance of setup shared object (initialization): time 6.845e-05/17.82, allocations: 336.5 kB / 6.713 GB, free: 15.94 MB / 458.9 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003361/17.82, allocations: 156.3 kB / 6.713 GB, free: 15.86 MB / 458.9 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003914/17.82, allocations: 313.6 kB / 6.713 GB, free: 15.58 MB / 458.9 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005419/17.83, allocations: 0.5361 MB / 6.714 GB, free: 15.29 MB / 458.9 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.281e-06/17.83, allocations: 0 / 6.714 GB, free: 15.29 MB / 458.9 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.006487/17.84, allocations: 0.9121 MB / 6.715 GB, free: 14.73 MB / 458.9 MB Notification: Performance of prepare postOptimizeDAE: time 2.217e-05/17.84, allocations: 8 kB / 6.715 GB, free: 14.72 MB / 458.9 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.189e-05/17.84, allocations: 4 kB / 6.715 GB, free: 14.71 MB / 458.9 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000422/17.84, allocations: 88.23 kB / 6.715 GB, free: 14.65 MB / 458.9 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006538/17.84, allocations: 146.2 kB / 6.715 GB, free: 14.54 MB / 458.9 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004988/17.84, allocations: 3.145 MB / 6.718 GB, free: 11.46 MB / 458.9 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006368/17.84, allocations: 36.11 kB / 6.718 GB, free: 11.43 MB / 458.9 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.255e-05/17.84, allocations: 32.59 kB / 6.718 GB, free: 11.41 MB / 458.9 MB 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 () * 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.0001872/17.84, allocations: 127.2 kB / 6.718 GB, free: 11.29 MB / 458.9 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001063/17.84, allocations: 41.55 kB / 6.718 GB, free: 11.25 MB / 458.9 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003054/17.85, allocations: 1.061 MB / 6.719 GB, free: 10.65 MB / 458.9 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.667e-05/17.85, allocations: 15.03 kB / 6.719 GB, free: 10.64 MB / 458.9 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.825e-06/17.85, allocations: 0 / 6.719 GB, free: 10.64 MB / 458.9 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00249/17.85, allocations: 1.105 MB / 6.72 GB, free: 9.828 MB / 458.9 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003996/17.85, allocations: 1.65 MB / 6.722 GB, free: 8.887 MB / 458.9 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.992e-06/17.85, allocations: 0 / 6.722 GB, free: 8.887 MB / 458.9 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005165/17.85, allocations: 96.39 kB / 6.722 GB, free: 8.812 MB / 458.9 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005451/17.85, allocations: 120.3 kB / 6.722 GB, free: 8.742 MB / 458.9 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.414e-05/17.85, allocations: 12.88 kB / 6.722 GB, free: 8.734 MB / 458.9 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008896/17.86, allocations: 1.202 MB / 6.723 GB, free: 7.598 MB / 458.9 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.648e-06/17.86, allocations: 2.766 kB / 6.723 GB, free: 7.598 MB / 458.9 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003189/17.86, allocations: 1.172 MB / 6.725 GB, free: 6.836 MB / 458.9 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001769/17.86, allocations: 125.3 kB / 6.725 GB, free: 6.703 MB / 458.9 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.756e-05/17.86, allocations: 3.188 kB / 6.725 GB, free: 6.703 MB / 458.9 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004394/17.86, allocations: 26.28 kB / 6.725 GB, free: 6.684 MB / 458.9 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.083e-05/17.86, allocations: 32.36 kB / 6.725 GB, free: 6.664 MB / 458.9 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.249e-05/17.86, allocations: 23.25 kB / 6.725 GB, free: 6.648 MB / 458.9 MB Notification: Performance of sorting global known variables: time 0.0002185/17.86, allocations: 187.9 kB / 6.725 GB, free: 6.516 MB / 458.9 MB Notification: Performance of sort global known variables: time 7.66e-07/17.86, allocations: 4 kB / 6.725 GB, free: 6.512 MB / 458.9 MB Notification: Performance of remove unused functions: time 0.01509/17.87, allocations: 1.062 MB / 6.726 GB, free: 5.633 MB / 458.9 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (volume.medium.p,volume.medium.h,volume1.medium.p,volume1.medium.h) * Number of discrete variables: 6 ($cse1.phase,$cse2,$cse3.phase,$cse4,$cse5.phase,$cse6) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (55): * Single equations (assignments): 50 * 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.2165/18.09, allocations: 23.85 MB / 6.749 GB, free: 14.68 MB / 490.9 MB Notification: Performance of simCode: created initialization part: time 0.001831/18.09, allocations: 0.6523 MB / 6.75 GB, free: 14.24 MB / 490.9 MB Notification: Performance of simCode: created event and clocks part: time 5.233e-06/18.09, allocations: 0 / 6.75 GB, free: 14.24 MB / 490.9 MB Notification: Performance of simCode: created simulation system equations: time 0.0007902/18.09, allocations: 338.5 kB / 6.75 GB, free: 14.06 MB / 490.9 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001396/18.1, allocations: 202.2 kB / 6.75 GB, free: 13.94 MB / 490.9 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002417/18.1, allocations: 1.034 MB / 6.751 GB, free: 13.11 MB / 490.9 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006109/18.1, allocations: 0.8725 MB / 6.752 GB, free: 12.28 MB / 490.9 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002074/18.1, allocations: 51.42 kB / 6.752 GB, free: 12.24 MB / 490.9 MB Notification: Performance of SimCode: time 1.832e-06/18.1, allocations: 0 / 6.752 GB, free: 12.24 MB / 490.9 MB Notification: Performance of Templates: time 0.3904/18.49, allocations: 46.55 MB / 6.798 GB, free: 81.18 MB / 0.495 GB "Error: Could not read variable volume.medium.state.der(d) in file Modelica_3.2.1_cpp_Modelica.Media.Examples.R134a.R134a2_res.mat. Warning: Get data of variable volume.medium.state.der(d) from file Modelica_3.2.1_cpp_Modelica.Media.Examples.R134a.R134a2_res.mat failed! Error: Could not read variable volume1.medium.state.der(d) in file Modelica_3.2.1_cpp_Modelica.Media.Examples.R134a.R134a2_res.mat. Warning: Get data of variable volume1.medium.state.der(d) from file Modelica_3.2.1_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],_D_cse1.T,_D_cse1.cv,_D_cse1.dpT,_D_cse1.h,_D_cse1.p,_D_cse1.pd,_D_cse1.phase,_D_cse1.pt,_D_cse1.rho,_D_cse2,_D_cse3.T,_D_cse3.cv,_D_cse3.dpT,_D_cse3.h,_D_cse3.p,_D_cse3.pd,_D_cse3.phase,_D_cse3.pt,_D_cse3.rho,_D_cse4,_D_cse5.T,_D_cse5.cv,_D_cse5.dpT,_D_cse5.h,_D_cse5.p,_D_cse5.pd,_D_cse5.phase,_D_cse5.pt,_D_cse5.rho,_D_cse6,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