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.804/1.804, allocations: 209.3 MB / 222.4 MB, free: 7.73 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.78e-05/2.79e-05, allocations: 4 kB / 277.8 MB, free: 15.31 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08391/0.08396, allocations: 48.7 MB / 326.5 MB, free: 14.52 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.092/7.176, allocations: 2.797 GB / 3.116 GB, free: 113.2 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002145/7.176, allocations: 76.23 kB / 3.116 GB, free: 113.2 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.863/8.039, allocations: 206.2 MB / 3.318 GB, free: 79.73 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.867e-06/8.039, allocations: 0 / 3.318 GB, free: 79.73 MB / 426.7 MB Notification: Performance of Transformations before backend: time 2.027e-05/8.039, allocations: 0 / 3.318 GB, free: 79.73 MB / 426.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.004202/8.043, allocations: 1.153 MB / 3.319 GB, free: 79.09 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.274e-05/8.043, allocations: 11.88 kB / 3.319 GB, free: 79.09 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002082/8.043, allocations: 35.11 kB / 3.319 GB, free: 79.07 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002542/8.044, allocations: 217.6 kB / 3.319 GB, free: 78.88 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001374/8.044, allocations: 129.9 kB / 3.319 GB, free: 78.75 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.114e-05/8.044, allocations: 26.88 kB / 3.319 GB, free: 78.75 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005153/8.044, allocations: 312 kB / 3.319 GB, free: 78.66 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.38e-05/8.044, allocations: 0 / 3.319 GB, free: 78.66 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.68e-05/8.044, allocations: 9.406 kB / 3.319 GB, free: 78.66 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.729e-05/8.044, allocations: 11.89 kB / 3.319 GB, free: 78.66 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009203/8.045, allocations: 0.7418 MB / 3.32 GB, free: 78.65 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001383/8.047, allocations: 1.22 MB / 3.321 GB, free: 77.8 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003786/8.047, allocations: 163.9 kB / 3.322 GB, free: 77.77 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001516/8.047, allocations: 83.59 kB / 3.322 GB, free: 77.77 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002841/8.05, allocations: 3.033 MB / 3.325 GB, free: 74.97 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.401e-05/8.05, allocations: 34.06 kB / 3.325 GB, free: 74.93 MB / 426.7 MB Notification: Performance of pre-optimization done (n=13): time 3.684e-06/8.05, allocations: 0 / 3.325 GB, free: 74.93 MB / 426.7 MB Notification: Performance of matching and sorting (n=13): time 0.0003202/8.051, allocations: 99.12 kB / 3.325 GB, free: 74.89 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.318e-05/8.051, allocations: 53.81 kB / 3.325 GB, free: 74.83 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001712/8.051, allocations: 190.3 kB / 3.325 GB, free: 74.73 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 2.095e-05/8.051, allocations: 37.39 kB / 3.325 GB, free: 74.7 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.848e-05/8.051, allocations: 283.7 kB / 3.325 GB, free: 74.46 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.802e-05/8.051, allocations: 47.88 kB / 3.325 GB, free: 74.43 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.812e-05/8.051, allocations: 10.84 kB / 3.325 GB, free: 74.43 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 5.764e-05/8.051, allocations: 321.5 kB / 3.326 GB, free: 74.12 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001059/8.051, allocations: 46.53 kB / 3.326 GB, free: 74.12 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002047/8.051, allocations: 331.5 kB / 3.326 GB, free: 73.74 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001848/8.052, allocations: 103.3 kB / 3.326 GB, free: 73.73 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.963e-06/8.052, allocations: 3.75 kB / 3.326 GB, free: 73.73 MB / 426.7 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0006884/8.052, allocations: 364.1 kB / 3.326 GB, free: 73.63 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.239e-05/8.052, allocations: 15.45 kB / 3.326 GB, free: 73.63 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.367e-05/8.052, allocations: 11.88 kB / 3.326 GB, free: 73.62 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.108e-05/8.053, allocations: 15.09 kB / 3.326 GB, free: 73.62 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003568/8.053, allocations: 99.16 kB / 3.327 GB, free: 73.61 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.984e-05/8.053, allocations: 22.2 kB / 3.327 GB, free: 73.61 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003808/8.053, allocations: 60.03 kB / 3.327 GB, free: 73.58 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.937e-05/8.053, allocations: 29.81 kB / 3.327 GB, free: 73.58 MB / 426.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 () * 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 9.178e-05/8.053, allocations: 138.4 kB / 3.327 GB, free: 73.46 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.152e-05/8.054, allocations: 18.19 kB / 3.327 GB, free: 73.45 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004339/8.054, allocations: 176.4 kB / 3.327 GB, free: 73.36 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.781e-05/8.054, allocations: 7.75 kB / 3.327 GB, free: 73.36 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.106e-06/8.054, allocations: 3.562 kB / 3.327 GB, free: 73.36 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.569e-06/8.054, allocations: 0 / 3.327 GB, free: 73.36 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005338/8.055, allocations: 425.6 kB / 3.327 GB, free: 73.02 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.737e-06/8.055, allocations: 0 / 3.327 GB, free: 73.02 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.452e-05/8.055, allocations: 15.09 kB / 3.327 GB, free: 73.02 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.772e-06/8.055, allocations: 7.609 kB / 3.327 GB, free: 73.02 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.17e-05/8.055, allocations: 2.812 kB / 3.327 GB, free: 73.02 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.976e-06/8.055, allocations: 5.969 kB / 3.327 GB, free: 73.01 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.72e-06/8.055, allocations: 0 / 3.327 GB, free: 73.01 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002064/8.055, allocations: 261.8 kB / 3.328 GB, free: 72.77 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.723e-05/8.055, allocations: 118.7 kB / 3.328 GB, free: 72.66 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.046e-05/8.055, allocations: 0 / 3.328 GB, free: 72.66 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000216/8.055, allocations: 15.39 kB / 3.328 GB, free: 72.66 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.093e-05/8.055, allocations: 7.531 kB / 3.328 GB, free: 72.66 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.69e-05/8.055, allocations: 10.52 kB / 3.328 GB, free: 72.66 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0001266/8.056, allocations: 148.2 kB / 3.328 GB, free: 72.58 MB / 426.7 MB Notification: Performance of sort global known variables: time 8.66e-07/8.056, allocations: 0 / 3.328 GB, free: 72.58 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0008091/8.056, allocations: 120 kB / 3.328 GB, free: 72.57 MB / 426.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 () * 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.0003969/8.057, allocations: 279.9 kB / 3.328 GB, free: 72.46 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0003573/8.057, allocations: 166.8 kB / 3.329 GB, free: 72.43 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.168e-06/8.057, allocations: 3.969 kB / 3.329 GB, free: 72.43 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 5.485e-05/8.057, allocations: 22.69 kB / 3.329 GB, free: 72.43 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003998/8.058, allocations: 46.19 kB / 3.329 GB, free: 72.43 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2524/8.31, allocations: 93.28 MB / 3.42 GB, free: 19.82 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001761/8.31, allocations: 0.7287 MB / 3.42 GB, free: 19.07 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.538e-05/8.31, allocations: 31.44 kB / 3.42 GB, free: 19.04 MB / 426.7 MB Notification: Performance of SimCode: time 2.027e-06/8.311, allocations: 0 / 3.42 GB, free: 19.04 MB / 426.7 MB Notification: Performance of Templates: time 0.007005/8.318, allocations: 4.175 MB / 3.425 GB, free: 14.87 MB / 426.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