Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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 2.157/2.157, allocations: 209.2 MB / 225.4 MB, free: 0.5273 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006186/0.0006188, allocations: 8 kB / 283.1 MB, free: 9.684 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3588/0.3595, allocations: 48.7 MB / 331.8 MB, free: 6.492 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.025/8.385, allocations: 2.797 GB / 3.121 GB, free: 66.94 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003963/8.385, allocations: 84.12 kB / 3.122 GB, free: 66.89 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.161/9.546, allocations: 206.5 MB / 3.323 GB, free: 50.21 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.254e-06/9.546, allocations: 0 / 3.323 GB, free: 50.21 MB / 442.7 MB Notification: Performance of Transformations before backend: time 1.592e-05/9.546, allocations: 4 kB / 3.323 GB, free: 50.21 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.00536/9.551, allocations: 1.162 MB / 3.324 GB, free: 49 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.491e-05/9.551, allocations: 12.03 kB / 3.324 GB, free: 48.99 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002192/9.552, allocations: 27.77 kB / 3.324 GB, free: 48.96 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002886/9.552, allocations: 226.7 kB / 3.325 GB, free: 48.7 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001659/9.552, allocations: 123.4 kB / 3.325 GB, free: 48.55 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.635e-05/9.552, allocations: 24 kB / 3.325 GB, free: 48.53 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007341/9.553, allocations: 331.6 kB / 3.325 GB, free: 48.18 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.777e-05/9.553, allocations: 4 kB / 3.325 GB, free: 48.18 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.054e-05/9.553, allocations: 12 kB / 3.325 GB, free: 48.16 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.903e-05/9.553, allocations: 7.953 kB / 3.325 GB, free: 48.16 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00101/9.554, allocations: 0.743 MB / 3.326 GB, free: 47.41 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001658/9.556, allocations: 1.229 MB / 3.327 GB, free: 46.09 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004313/9.556, allocations: 155.8 kB / 3.327 GB, free: 45.93 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003072/9.559, allocations: 2.777 MB / 3.33 GB, free: 42.64 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.604e-05/9.559, allocations: 38.45 kB / 3.33 GB, free: 42.6 MB / 442.7 MB Notification: Performance of pre-optimization done (n=13): time 3.917e-06/9.559, allocations: 4 kB / 3.33 GB, free: 42.59 MB / 442.7 MB Notification: Performance of matching and sorting (n=13): time 0.0004424/9.56, allocations: 125.5 kB / 3.33 GB, free: 42.46 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.918e-05/9.56, allocations: 55.39 kB / 3.33 GB, free: 42.4 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002187/9.56, allocations: 218.9 kB / 3.33 GB, free: 42.18 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 2.481e-05/9.56, allocations: 25.7 kB / 3.33 GB, free: 42.14 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001392/9.56, allocations: 273.3 kB / 3.331 GB, free: 41.88 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.199e-05/9.56, allocations: 59.27 kB / 3.331 GB, free: 41.82 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.81e-05/9.56, allocations: 12 kB / 3.331 GB, free: 41.8 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 7.287e-05/9.56, allocations: 330.8 kB / 3.331 GB, free: 41.47 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001139/9.561, allocations: 40.84 kB / 3.331 GB, free: 41.43 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002383/9.561, allocations: 337 kB / 3.331 GB, free: 40.96 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002117/9.561, allocations: 103.8 kB / 3.331 GB, free: 40.86 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.715e-06/9.561, allocations: 7.938 kB / 3.331 GB, free: 40.85 MB / 442.7 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0007404/9.562, allocations: 369.1 kB / 3.332 GB, free: 40.48 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.566e-05/9.562, allocations: 11.95 kB / 3.332 GB, free: 40.47 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.672e-05/9.562, allocations: 12 kB / 3.332 GB, free: 40.46 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.358e-05/9.562, allocations: 20.7 kB / 3.332 GB, free: 40.44 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000468/9.562, allocations: 95.77 kB / 3.332 GB, free: 40.35 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.021e-05/9.562, allocations: 19.94 kB / 3.332 GB, free: 40.33 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003837/9.563, allocations: 55.47 kB / 3.332 GB, free: 40.27 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.298e-05/9.563, allocations: 32.08 kB / 3.332 GB, free: 40.24 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.0001538/9.563, allocations: 145.7 kB / 3.332 GB, free: 40.09 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.396e-05/9.563, allocations: 23.7 kB / 3.332 GB, free: 40.07 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004989/9.564, allocations: 173.5 kB / 3.332 GB, free: 39.88 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.683e-05/9.564, allocations: 4 kB / 3.332 GB, free: 39.87 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.109e-06/9.564, allocations: 4 kB / 3.332 GB, free: 39.87 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.328e-06/9.564, allocations: 0 / 3.332 GB, free: 39.87 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006203/9.564, allocations: 429.6 kB / 3.333 GB, free: 39.38 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.438e-06/9.564, allocations: 0 / 3.333 GB, free: 39.38 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001197/9.564, allocations: 19.98 kB / 3.333 GB, free: 39.36 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.753e-06/9.565, allocations: 128 / 3.333 GB, free: 39.36 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.366e-05/9.565, allocations: 8 kB / 3.333 GB, free: 39.35 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.39e-06/9.565, allocations: 3.938 kB / 3.333 GB, free: 39.35 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.976e-06/9.565, allocations: 0 / 3.333 GB, free: 39.35 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002179/9.565, allocations: 218.6 kB / 3.333 GB, free: 39.11 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.98e-05/9.565, allocations: 108.8 kB / 3.333 GB, free: 38.98 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.885e-05/9.565, allocations: 12.06 kB / 3.333 GB, free: 38.97 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002609/9.565, allocations: 7.984 kB / 3.333 GB, free: 38.96 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.435e-05/9.565, allocations: 4 kB / 3.333 GB, free: 38.96 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.692e-05/9.565, allocations: 7.984 kB / 3.333 GB, free: 38.95 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0001507/9.565, allocations: 148.5 kB / 3.333 GB, free: 38.8 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.774e-06/9.565, allocations: 4 kB / 3.333 GB, free: 38.8 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.0008609/9.566, allocations: 116 kB / 3.333 GB, free: 38.69 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.0004931/9.567, allocations: 292.8 kB / 3.334 GB, free: 38.39 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.0004961/9.567, allocations: 161.9 kB / 3.334 GB, free: 38.23 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 5.54e-06/9.567, allocations: 320 / 3.334 GB, free: 38.23 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 6.402e-05/9.567, allocations: 31.92 kB / 3.334 GB, free: 38.2 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005392/9.568, allocations: 40.36 kB / 3.334 GB, free: 38.16 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.6513/10.22, allocations: 93.76 MB / 3.425 GB, free: 65.09 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002081/10.22, allocations: 0.7293 MB / 3.426 GB, free: 64.39 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.584e-05/10.22, allocations: 31.73 kB / 3.426 GB, free: 64.38 MB / 442.7 MB Notification: Performance of SimCode: time 1.844e-06/10.22, allocations: 0 / 3.426 GB, free: 64.38 MB / 442.7 MB Notification: Performance of Templates: time 0.009845/10.23, allocations: 4.167 MB / 3.43 GB, free: 64.04 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