Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.Media.TestAllProperties.LinearWater_pT_Ambient.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) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo) Running command: translateModel(ModelicaTest.Media.TestAllProperties.LinearWater_pT_Ambient,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|eps_h_is|eta|lambda|Pr|p|T|d|h|u|s|g|f|cp|cp2|cv|cv2|h_is|a|beta|beta2|kappa|kappa2|ddpT|ddTp|dddX.1.|MM|h2|d2|err_T|err_d|err_u|s_is|err_h_is|eps",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.Media.TestAllProperties.LinearWater_pT_Ambient") Notification: Performance of loadModel(ModelicaTest): time 1.91/1.91, allocations: 209.3 MB / 224.8 MB, free: 200 kB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004385/0.0004388, allocations: 15.98 kB / 282.6 MB, free: 9.598 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2818/0.2822, allocations: 48.7 MB / 331.3 MB, free: 6.504 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.238/7.521, allocations: 2.797 GB / 3.121 GB, free: 80.31 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001969/7.521, allocations: 74.47 kB / 3.121 GB, free: 80.27 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8588/8.38, allocations: 206.4 MB / 3.323 GB, free: 58.38 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.597e-06/8.38, allocations: 0 / 3.323 GB, free: 58.38 MB / 442.7 MB Notification: Performance of Transformations before backend: time 1.265e-05/8.38, allocations: 0 / 3.323 GB, free: 58.38 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 56 * Number of variables: 56 Notification: Performance of Generate backend data structure: time 0.003948/8.384, allocations: 1.164 MB / 3.324 GB, free: 57.24 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.656e-05/8.384, allocations: 11.97 kB / 3.324 GB, free: 57.23 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001804/8.384, allocations: 27.77 kB / 3.324 GB, free: 57.2 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002421/8.384, allocations: 225.9 kB / 3.324 GB, free: 56.96 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001316/8.384, allocations: 127.1 kB / 3.324 GB, free: 56.82 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.89e-05/8.384, allocations: 20 kB / 3.324 GB, free: 56.8 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005755/8.385, allocations: 327.7 kB / 3.324 GB, free: 56.5 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.491e-05/8.385, allocations: 0 / 3.324 GB, free: 56.5 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.866e-05/8.385, allocations: 15.98 kB / 3.324 GB, free: 56.49 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.579e-05/8.385, allocations: 7.953 kB / 3.324 GB, free: 56.48 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008383/8.386, allocations: 0.7404 MB / 3.325 GB, free: 55.95 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001302/8.387, allocations: 1.235 MB / 3.326 GB, free: 54.77 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003625/8.388, allocations: 154.6 kB / 3.327 GB, free: 54.62 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00225/8.39, allocations: 2.774 MB / 3.329 GB, free: 51.49 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.108e-05/8.39, allocations: 45.89 kB / 3.329 GB, free: 51.44 MB / 442.7 MB Notification: Performance of pre-optimization done (n=13): time 2.63e-06/8.39, allocations: 0 / 3.329 GB, free: 51.44 MB / 442.7 MB Notification: Performance of matching and sorting (n=13): time 0.0003417/8.39, allocations: 128.7 kB / 3.329 GB, free: 51.32 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.098e-05/8.39, allocations: 51.41 kB / 3.329 GB, free: 51.26 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001693/8.39, allocations: 192.3 kB / 3.33 GB, free: 51.09 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 1.906e-05/8.391, allocations: 33.69 kB / 3.33 GB, free: 51.05 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.768e-05/8.391, allocations: 280.2 kB / 3.33 GB, free: 50.79 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.488e-05/8.391, allocations: 54.81 kB / 3.33 GB, free: 50.73 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.395e-05/8.391, allocations: 8 kB / 3.33 GB, free: 50.73 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 5.92e-05/8.391, allocations: 330.4 kB / 3.33 GB, free: 50.4 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.902e-05/8.391, allocations: 48.52 kB / 3.33 GB, free: 50.36 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001889/8.391, allocations: 328.4 kB / 3.331 GB, free: 49.91 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001699/8.391, allocations: 95.66 kB / 3.331 GB, free: 49.83 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.666e-06/8.391, allocations: 7.938 kB / 3.331 GB, free: 49.82 MB / 442.7 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0006371/8.392, allocations: 374.6 kB / 3.331 GB, free: 49.48 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.944e-05/8.392, allocations: 8.781 kB / 3.331 GB, free: 49.48 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.511e-05/8.392, allocations: 16.83 kB / 3.331 GB, free: 49.46 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.495e-05/8.392, allocations: 16 kB / 3.331 GB, free: 49.45 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003004/8.392, allocations: 99.97 kB / 3.331 GB, free: 49.36 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.814e-05/8.392, allocations: 19.45 kB / 3.331 GB, free: 49.34 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003492/8.393, allocations: 55.53 kB / 3.331 GB, free: 49.29 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.681e-05/8.393, allocations: 24 kB / 3.331 GB, free: 49.27 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 46 * 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 (51): * Single equations (assignments): 50 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001418/8.393, allocations: 161.3 kB / 3.332 GB, free: 49.1 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.912e-05/8.393, allocations: 19.72 kB / 3.332 GB, free: 49.08 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004049/8.393, allocations: 168.4 kB / 3.332 GB, free: 48.92 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.448e-05/8.393, allocations: 7.953 kB / 3.332 GB, free: 48.91 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.245e-06/8.393, allocations: 0 / 3.332 GB, free: 48.91 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.45e-06/8.393, allocations: 0 / 3.332 GB, free: 48.91 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000504/8.394, allocations: 430.1 kB / 3.332 GB, free: 48.46 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.139e-06/8.394, allocations: 4 kB / 3.332 GB, free: 48.45 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.73e-05/8.394, allocations: 19.83 kB / 3.332 GB, free: 48.44 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.855e-06/8.394, allocations: 4 kB / 3.332 GB, free: 48.43 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.088e-05/8.394, allocations: 4 kB / 3.332 GB, free: 48.43 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.419e-06/8.394, allocations: 0 / 3.332 GB, free: 48.43 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.585e-06/8.394, allocations: 0 / 3.332 GB, free: 48.43 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001951/8.394, allocations: 261.1 kB / 3.332 GB, free: 48.13 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.023e-05/8.394, allocations: 112.7 kB / 3.333 GB, free: 48.01 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.105e-05/8.395, allocations: 4.031 kB / 3.333 GB, free: 48 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002044/8.395, allocations: 9.672 kB / 3.333 GB, free: 48 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.001e-05/8.395, allocations: 23.69 kB / 3.333 GB, free: 47.98 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.446e-05/8.395, allocations: 4 kB / 3.333 GB, free: 47.98 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0001226/8.395, allocations: 151.7 kB / 3.333 GB, free: 47.84 MB / 442.7 MB Notification: Performance of sort global known variables: time 7.3e-07/8.395, allocations: 0 / 3.333 GB, free: 47.84 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.0007875/8.396, allocations: 115.7 kB / 3.333 GB, free: 47.73 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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 simulation (10): * Single equations (assignments): 9 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003855/8.396, allocations: 267.3 kB / 3.333 GB, free: 47.48 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.0003229/8.396, allocations: 167.8 kB / 3.333 GB, free: 47.34 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.347e-06/8.397, allocations: 0 / 3.333 GB, free: 47.34 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 5.324e-05/8.397, allocations: 33.3 kB / 3.333 GB, free: 47.31 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003938/8.397, allocations: 43.77 kB / 3.333 GB, free: 47.27 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5215/8.919, allocations: 93.75 MB / 3.425 GB, free: 55.32 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001756/8.919, allocations: 0.7321 MB / 3.426 GB, free: 54.62 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.055e-05/8.919, allocations: 26.61 kB / 3.426 GB, free: 54.61 MB / 442.7 MB Notification: Performance of SimCode: time 1.617e-06/8.919, allocations: 3.844 kB / 3.426 GB, free: 54.61 MB / 442.7 MB Notification: Performance of Templates: time 0.007251/8.926, allocations: 4.165 MB / 3.43 GB, free: 54.49 MB / 442.7 MB "Error: Could not read variable _GlobalScope.Modelica.Media.Interfaces.PartialPureSubstance.reference_X[1] in file ModelicaTest_3.2.1_cpp_ModelicaTest.Media.TestAllProperties.LinearWater_pT_Ambient_res.mat. Warning: Get data of variable _GlobalScope.Modelica.Media.Interfaces.PartialPureSubstance.reference_X[1] from file ModelicaTest_3.2.1_cpp_ModelicaTest.Media.TestAllProperties.LinearWater_pT_Ambient_res.mat failed! Error: Could not read variable _derdummy in file ModelicaTest_3.2.1_cpp_ModelicaTest.Media.TestAllProperties.LinearWater_pT_Ambient_res.mat. Warning: Get data of variable _derdummy from file ModelicaTest_3.2.1_cpp_ModelicaTest.Media.TestAllProperties.LinearWater_pT_Ambient_res.mat failed! Error: Could not read variable _dummy in file ModelicaTest_3.2.1_cpp_ModelicaTest.Media.TestAllProperties.LinearWater_pT_Ambient_res.mat. Warning: Get data of variable _dummy from file ModelicaTest_3.2.1_cpp_ModelicaTest.Media.TestAllProperties.LinearWater_pT_Ambient_res.mat failed! Error: Could not read variable eps in file ModelicaTest_3.2.1_cpp_ModelicaTest.Media.TestAllProperties.LinearWater_pT_Ambient_res.mat. Warning: Get data of variable eps from file ModelicaTest_3.2.1_cpp_ModelicaTest.Media.TestAllProperties.LinearWater_pT_Ambient_res.mat failed! Error: Could not read variable t_min in file ModelicaTest_3.2.1_cpp_ModelicaTest.Media.TestAllProperties.LinearWater_pT_Ambient_res.mat. Warning: Get data of variable t_min from file ModelicaTest_3.2.1_cpp_ModelicaTest.Media.TestAllProperties.LinearWater_pT_Ambient_res.mat failed! " Variables in the reference:time,eps_h_is,eta,lambda,Pr,p,T,d,h,u,s,g,f,cp,cp2,cv,cv2,h_is,a,beta,beta2,kappa,kappa2,ddpT,ddTp,dddX[1],MM,h2,d2,err_T,err_d,err_u,s_is,err_h_is,eps Variables in the result:MM,Pr,T,a,beta,beta2,cp,cp2,cv,cv2,d,d2,ddTp,dddX[1],ddpT,eps_h_is,err_T,err_d,err_h_is,err_u,eta,f,g,h,h2,h_is,kappa,kappa2,lambda,medium.MM,medium.R,medium.T,medium.T_degC,medium.X[1],medium.d,medium.h,medium.p,medium.p_bar,medium.preferredMediumStates,medium.standardOrderComponents,medium.state.T,medium.state.p,medium.u,p,s,s_is,state.T,state.p,state2.T,state2.p,state3.T,state3.p,state4.T,state4.p,state5.T,state5.p,state_h_is.T,state_h_is.p,time,u