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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/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.62/1.62, allocations: 171.2 MB / 184.2 MB, free: 12.07 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.759e-05/2.777e-05, allocations: 4 kB / 228.8 MB, free: 15.44 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2092/0.2093, allocations: 38.77 MB / 267.6 MB, free: 9.438 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 12.56/12.77, allocations: 5.484 GB / 5.745 GB, free: 22.55 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002126/12.77, allocations: 71.16 kB / 5.745 GB, free: 22.51 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.932/17.7, allocations: 0.9846 GB / 6.73 GB, free: 54.73 MB / 490.9 MB Notification: Performance of FrontEnd: time 1.879e-06/17.7, allocations: 0 / 6.73 GB, free: 54.73 MB / 490.9 MB Notification: Performance of Transformations before backend: time 3.085e-05/17.7, allocations: 12.77 kB / 6.73 GB, free: 54.73 MB / 490.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.02411/17.73, allocations: 1.555 MB / 6.732 GB, free: 54.09 MB / 490.9 MB Notification: Performance of prepare preOptimizeDAE: time 4.43e-05/17.73, allocations: 10.22 kB / 6.732 GB, free: 54.09 MB / 490.9 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008993/17.73, allocations: 92.39 kB / 6.732 GB, free: 54.07 MB / 490.9 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006033/17.73, allocations: 384.6 kB / 6.732 GB, free: 53.86 MB / 490.9 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.708e-05/17.73, allocations: 37.25 kB / 6.732 GB, free: 53.86 MB / 490.9 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.244e-05/17.73, allocations: 44.12 kB / 6.732 GB, free: 53.86 MB / 490.9 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001444/17.73, allocations: 0.6177 MB / 6.733 GB, free: 53.71 MB / 490.9 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.164e-05/17.73, allocations: 4.5 kB / 6.733 GB, free: 53.71 MB / 490.9 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.688e-05/17.73, allocations: 24.14 kB / 6.733 GB, free: 53.71 MB / 490.9 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.471e-05/17.73, allocations: 14.59 kB / 6.733 GB, free: 53.71 MB / 490.9 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001357/17.73, allocations: 0.5241 MB / 6.733 GB, free: 53.7 MB / 490.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.007849/17.74, allocations: 6.097 MB / 6.739 GB, free: 51.14 MB / 490.9 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001181/17.74, allocations: 430.6 kB / 6.74 GB, free: 51.11 MB / 490.9 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004132/17.74, allocations: 200.2 kB / 6.74 GB, free: 51.11 MB / 490.9 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003414/17.74, allocations: 2.849 MB / 6.743 GB, free: 48.66 MB / 490.9 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.599e-05/17.74, allocations: 42.41 kB / 6.743 GB, free: 48.62 MB / 490.9 MB Notification: Performance of pre-optimization done (n=46): time 4.423e-06/17.74, allocations: 0 / 6.743 GB, free: 48.62 MB / 490.9 MB Notification: Performance of matching and sorting (n=54): time 0.01097/17.75, allocations: 1.819 MB / 6.744 GB, free: 48.25 MB / 490.9 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.805e-05/17.75, allocations: 55.66 kB / 6.744 GB, free: 48.18 MB / 490.9 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003601/17.76, allocations: 278.2 kB / 6.745 GB, free: 48.07 MB / 490.9 MB Notification: Performance of collectPreVariables (initialization): time 5.172e-05/17.76, allocations: 35.7 kB / 6.745 GB, free: 48.04 MB / 490.9 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001191/17.76, allocations: 282.6 kB / 6.745 GB, free: 47.85 MB / 490.9 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001352/17.76, allocations: 196 kB / 6.745 GB, free: 47.75 MB / 490.9 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.522e-05/17.76, allocations: 10.25 kB / 6.745 GB, free: 47.75 MB / 490.9 MB Notification: Performance of setup shared object (initialization): time 7.199e-05/17.76, allocations: 341.7 kB / 6.746 GB, free: 47.43 MB / 490.9 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003839/17.76, allocations: 168.7 kB / 6.746 GB, free: 47.43 MB / 490.9 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004683/17.76, allocations: 323.6 kB / 6.746 GB, free: 47.27 MB / 490.9 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004621/17.76, allocations: 221.7 kB / 6.746 GB, free: 47.27 MB / 490.9 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.469e-06/17.76, allocations: 4.312 kB / 6.746 GB, free: 47.27 MB / 490.9 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001635/17.76, allocations: 0.6459 MB / 6.747 GB, free: 47.19 MB / 490.9 MB Notification: Performance of prepare postOptimizeDAE: time 2.163e-05/17.76, allocations: 6.469 kB / 6.747 GB, free: 47.19 MB / 490.9 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.224e-05/17.76, allocations: 3.344 kB / 6.747 GB, free: 47.19 MB / 490.9 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01463/17.77, allocations: 0.5498 MB / 6.747 GB, free: 47.17 MB / 490.9 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008011/17.77, allocations: 146.4 kB / 6.748 GB, free: 47.16 MB / 490.9 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001863/17.78, allocations: 2.985 MB / 6.75 GB, free: 44.29 MB / 490.9 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006425/17.78, allocations: 51.89 kB / 6.751 GB, free: 44.29 MB / 490.9 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.695e-05/17.78, allocations: 25.59 kB / 6.751 GB, free: 44.29 MB / 490.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.0001766/17.78, allocations: 145.7 kB / 6.751 GB, free: 44.18 MB / 490.9 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001117/17.78, allocations: 40.78 kB / 6.751 GB, free: 44.16 MB / 490.9 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001918/17.78, allocations: 1.055 MB / 6.752 GB, free: 44.05 MB / 490.9 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.699e-05/17.78, allocations: 15.34 kB / 6.752 GB, free: 44.05 MB / 490.9 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.831e-06/17.78, allocations: 6.75 kB / 6.752 GB, free: 44.05 MB / 490.9 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001415/17.78, allocations: 1.073 MB / 6.753 GB, free: 43.66 MB / 490.9 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002859/17.78, allocations: 1.719 MB / 6.754 GB, free: 43.3 MB / 490.9 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.716e-06/17.78, allocations: 1.75 kB / 6.754 GB, free: 43.3 MB / 490.9 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005521/17.78, allocations: 98.33 kB / 6.755 GB, free: 43.3 MB / 490.9 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003801/17.79, allocations: 383.6 kB / 6.755 GB, free: 43.28 MB / 490.9 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.647e-05/17.79, allocations: 16.33 kB / 6.755 GB, free: 43.28 MB / 490.9 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007735/17.79, allocations: 1.148 MB / 6.756 GB, free: 42.24 MB / 490.9 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.559e-06/17.79, allocations: 1.969 kB / 6.756 GB, free: 42.24 MB / 490.9 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001927/17.79, allocations: 1.1 MB / 6.757 GB, free: 42.05 MB / 490.9 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000223/17.79, allocations: 138.6 kB / 6.757 GB, free: 41.93 MB / 490.9 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.804e-05/17.79, allocations: 15.17 kB / 6.757 GB, free: 41.92 MB / 490.9 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004785/17.79, allocations: 32.98 kB / 6.757 GB, free: 41.92 MB / 490.9 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.523e-05/17.79, allocations: 33.89 kB / 6.757 GB, free: 41.92 MB / 490.9 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.656e-05/17.79, allocations: 27.75 kB / 6.757 GB, free: 41.92 MB / 490.9 MB Notification: Performance of sorting global known variables: time 0.00035/17.79, allocations: 248.9 kB / 6.758 GB, free: 41.84 MB / 490.9 MB Notification: Performance of sort global known variables: time 8.11e-07/17.79, allocations: 0 / 6.758 GB, free: 41.84 MB / 490.9 MB Notification: Performance of remove unused functions: time 0.01457/17.81, allocations: 1.107 MB / 6.759 GB, free: 41.66 MB / 490.9 MB 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 () * 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.2055/18.01, allocations: 23.7 MB / 6.782 GB, free: 29.87 MB / 490.9 MB Notification: Performance of simCode: created initialization part: time 0.001849/18.01, allocations: 0.6906 MB / 6.783 GB, free: 29.75 MB / 490.9 MB Notification: Performance of simCode: created event and clocks part: time 6.621e-06/18.01, allocations: 3.781 kB / 6.783 GB, free: 29.75 MB / 490.9 MB Notification: Performance of simCode: created simulation system equations: time 0.0008179/18.01, allocations: 365.3 kB / 6.783 GB, free: 29.75 MB / 490.9 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001663/18.02, allocations: 250.7 kB / 6.783 GB, free: 29.74 MB / 490.9 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00229/18.02, allocations: 1.08 MB / 6.784 GB, free: 29.44 MB / 490.9 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003605/18.02, allocations: 0.878 MB / 6.785 GB, free: 28.74 MB / 490.9 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001951/18.02, allocations: 56.3 kB / 6.785 GB, free: 28.73 MB / 490.9 MB Notification: Performance of SimCode: time 1.814e-06/18.02, allocations: 0 / 6.785 GB, free: 28.73 MB / 490.9 MB Notification: Performance of Templates: time 0.07397/18.09, allocations: 46.86 MB / 6.831 GB, free: 21.43 MB / 490.9 MB "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],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