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.518/1.518, allocations: 171.1 MB / 186.7 MB, free: 1.047 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003521/0.0003522, allocations: 12 kB / 233.2 MB, free: 3.047 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06734/0.06771, allocations: 38.77 MB / 271.9 MB, free: 12.2 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.R134a.R134a2): time 0.2231/0.2908, allocations: 31.47 MB / 303.4 MB, free: 9.16 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.03324/0.3241, allocations: 25.56 MB / 329 MB, free: 0.5664 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006168/0.3248, allocations: 7.031 kB / 329 MB, free: 0.5625 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001034/0.3258, allocations: 347.6 kB / 329.3 MB, free: 380 kB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0008689/0.3267, allocations: 364 kB / 329.7 MB, free: 120 kB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01598/0.3427, allocations: 3.964 MB / 333.6 MB, free: 13.3 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001542/0.3443, allocations: 0.7738 MB / 334.4 MB, free: 12.82 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002786/0.3446, allocations: 121.1 kB / 334.5 MB, free: 12.76 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007949/0.3454, allocations: 403.1 kB / 334.9 MB, free: 12.54 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004151/0.3458, allocations: 273.9 kB / 335.2 MB, free: 12.4 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 6.602e-05/0.3459, allocations: 24.06 kB / 335.2 MB, free: 12.4 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.1034/0.4493, allocations: 69.17 MB / 404.4 MB, free: 8.695 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002728/0.4496, allocations: 115.6 kB / 404.5 MB, free: 8.582 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003143/0.4499, allocations: 141.5 kB / 404.6 MB, free: 8.438 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.05122/0.5012, allocations: 13.85 MB / 418.5 MB, free: 10.58 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.34e-06/0.5012, allocations: 0 / 418.5 MB, free: 10.58 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.612e-06/0.5012, allocations: 0 / 418.5 MB, free: 10.58 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.001e-05/0.5013, allocations: 0 / 418.5 MB, free: 10.58 MB / 346.7 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.008468/0.5097, allocations: 1.318 MB / 419.8 MB, free: 9.211 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.358e-05/0.5098, allocations: 16.02 kB / 419.8 MB, free: 9.195 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008383/0.5106, allocations: 85.12 kB / 419.9 MB, free: 9.113 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006556/0.5113, allocations: 378.1 kB / 420.3 MB, free: 8.703 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.828e-05/0.5114, allocations: 34.19 kB / 420.3 MB, free: 8.672 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001/0.5115, allocations: 51.91 kB / 420.3 MB, free: 8.621 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00154/0.513, allocations: 0.6205 MB / 421 MB, free: 7.961 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.855e-05/0.5131, allocations: 5.312 kB / 421 MB, free: 7.957 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.919e-05/0.5132, allocations: 24 kB / 421 MB, free: 7.934 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.73e-05/0.5132, allocations: 12 kB / 421 MB, free: 7.922 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001378/0.5146, allocations: 0.5268 MB / 421.5 MB, free: 7.391 MB / 346.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.005696/0.5203, allocations: 3.808 MB / 425.3 MB, free: 3.273 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001287/0.5216, allocations: 407.7 kB / 425.7 MB, free: 2.867 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004505/0.5261, allocations: 3.564 MB / 429.3 MB, free: 14.6 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.671e-05/0.5262, allocations: 34.94 kB / 429.3 MB, free: 14.56 MB / 362.7 MB Notification: Performance of pre-optimization done (n=46): time 3.982e-06/0.5263, allocations: 0 / 429.3 MB, free: 14.56 MB / 362.7 MB Notification: Performance of matching and sorting (n=54): time 0.01197/0.5382, allocations: 2.037 MB / 431.4 MB, free: 12.44 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.644e-05/0.5383, allocations: 71.77 kB / 431.4 MB, free: 12.36 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004609/0.5388, allocations: 308.3 kB / 431.7 MB, free: 12.05 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 5.955e-05/0.5389, allocations: 33.7 kB / 431.8 MB, free: 12.02 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000218/0.5391, allocations: 279.1 kB / 432 MB, free: 11.74 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000194/0.5393, allocations: 189.2 kB / 432.2 MB, free: 11.55 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.318e-05/0.5394, allocations: 16 kB / 432.2 MB, free: 11.54 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001836/0.5396, allocations: 338.8 kB / 432.6 MB, free: 11.2 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004374/0.54, allocations: 177.2 kB / 432.7 MB, free: 11.02 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005738/0.5406, allocations: 328.1 kB / 433.1 MB, free: 10.64 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005348/0.5412, allocations: 228.7 kB / 433.3 MB, free: 10.41 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.36e-06/0.5412, allocations: 0 / 433.3 MB, free: 10.41 MB / 362.7 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001801/0.543, allocations: 0.6513 MB / 433.9 MB, free: 9.75 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.64e-05/0.543, allocations: 7.984 kB / 434 MB, free: 9.742 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.513e-05/0.5431, allocations: 11.94 kB / 434 MB, free: 9.73 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01036/0.5534, allocations: 446 kB / 434.4 MB, free: 9.285 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007805/0.5543, allocations: 152.6 kB / 434.5 MB, free: 9.137 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002929/0.5572, allocations: 2.991 MB / 437.5 MB, free: 5.938 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005251/0.5578, allocations: 47.86 kB / 437.6 MB, free: 5.891 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.834e-05/0.5579, allocations: 39.92 kB / 437.6 MB, free: 5.852 MB / 362.7 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 () * 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.0003506/0.5582, allocations: 195.3 kB / 437.8 MB, free: 5.652 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001221/0.5584, allocations: 39.53 kB / 437.9 MB, free: 5.613 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002183/0.5606, allocations: 1.06 MB / 438.9 MB, free: 4.543 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.738e-05/0.5606, allocations: 7.953 kB / 438.9 MB, free: 4.535 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.434e-06/0.5606, allocations: 0 / 438.9 MB, free: 4.535 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001715/0.5623, allocations: 1.087 MB / 440 MB, free: 3.371 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003141/0.5655, allocations: 1.747 MB / 441.8 MB, free: 1.566 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.477e-06/0.5655, allocations: 0 / 441.8 MB, free: 1.566 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005091/0.566, allocations: 107.8 kB / 441.9 MB, free: 1.461 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003487/0.5695, allocations: 357 kB / 442.2 MB, free: 1.105 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.337e-05/0.5696, allocations: 20 kB / 442.2 MB, free: 1.086 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2009/0.7705, allocations: 1.142 MB / 443.4 MB, free: 127.6 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.831e-06/0.7706, allocations: 0.5625 kB / 443.4 MB, free: 127.6 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004175/0.7748, allocations: 1.12 MB / 444.5 MB, free: 127.5 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002866/0.7751, allocations: 148.7 kB / 444.6 MB, free: 127.4 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001712/0.7753, allocations: 10.31 kB / 444.6 MB, free: 127.4 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008443/0.7762, allocations: 27.28 kB / 444.7 MB, free: 127.4 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001345/0.7763, allocations: 38.98 kB / 444.7 MB, free: 127.4 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001115/0.7765, allocations: 25.56 kB / 444.7 MB, free: 127.4 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0006335/0.7771, allocations: 244.2 kB / 445 MB, free: 127.3 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.282e-06/0.7772, allocations: 0 / 445 MB, free: 127.3 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.01044/0.7876, allocations: 0.9579 MB / 445.9 MB, free: 127.3 MB / 362.7 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 () * 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.08182/0.8695, allocations: 7.86 MB / 453.8 MB, free: 123.7 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001795/0.8713, allocations: 0.7005 MB / 454.5 MB, free: 123.5 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.408e-06/0.8713, allocations: 3.938 kB / 454.5 MB, free: 123.5 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007794/0.8721, allocations: 368.7 kB / 454.9 MB, free: 123.4 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001459/0.8736, allocations: 249.8 kB / 455.1 MB, free: 123.3 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002692/0.8763, allocations: 1.632 MB / 456.7 MB, free: 122.5 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003698/0.8767, allocations: 0.8788 MB / 457.6 MB, free: 121.8 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001798/0.8769, allocations: 58.8 kB / 457.7 MB, free: 121.8 MB / 362.7 MB Notification: Performance of SimCode: time 1.584e-06/0.8769, allocations: 0 / 457.7 MB, free: 121.8 MB / 362.7 MB Notification: Performance of Templates: time 0.05292/0.9299, allocations: 39.52 MB / 497.2 MB, free: 85.02 MB / 362.7 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