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.969/1.969, allocations: 209.2 MB / 224.8 MB, free: 216 kB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004535/0.0004537, allocations: 8 kB / 282.5 MB, free: 9.652 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.282/0.2825, allocations: 48.7 MB / 331.2 MB, free: 6.48 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestAllProperties.LinearWater_pT_Ambient): time 0.03277/0.3153, allocations: 22.41 MB / 353.6 MB, free: 5.84 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.004133/0.3195, allocations: 2.574 MB / 356.2 MB, free: 3.793 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001898/0.3197, allocations: 1.469 kB / 356.2 MB, free: 3.793 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002597/0.32, allocations: 44.08 kB / 356.2 MB, free: 3.754 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002064/0.3221, allocations: 0.6071 MB / 356.8 MB, free: 3.254 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004821/0.3226, allocations: 127.5 kB / 356.9 MB, free: 3.172 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005383/0.3231, allocations: 262 kB / 357.2 MB, free: 3.02 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.468e-05/0.3232, allocations: 8.406 kB / 357.2 MB, free: 3.02 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.05117/0.3744, allocations: 21.76 MB / 379 MB, free: 14.72 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004053/0.3748, allocations: 135.6 kB / 379.1 MB, free: 14.59 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 3.653e-05/0.3749, allocations: 4 kB / 379.1 MB, free: 14.58 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01225/0.3871, allocations: 5.544 MB / 384.6 MB, free: 9.035 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001007/0.3873, allocations: 39.88 kB / 384.7 MB, free: 8.996 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001087/0.3874, allocations: 69.52 kB / 384.7 MB, free: 8.922 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007077/0.3881, allocations: 279.4 kB / 385 MB, free: 8.648 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.47e-06/0.3882, allocations: 4 kB / 385 MB, free: 8.645 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.232e-06/0.3882, allocations: 3.938 kB / 385 MB, free: 8.641 MB / 314.7 MB Notification: Performance of Transformations before backend: time 7.01e-06/0.3882, allocations: 0 / 385 MB, free: 8.641 MB / 314.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.001278/0.3895, allocations: 0.5539 MB / 385.6 MB, free: 8.035 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.033e-05/0.3895, allocations: 15.97 kB / 385.6 MB, free: 8.02 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001723/0.3897, allocations: 23.81 kB / 385.6 MB, free: 7.996 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003181/0.39, allocations: 218.8 kB / 385.8 MB, free: 7.742 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001891/0.3903, allocations: 135.3 kB / 386 MB, free: 7.586 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.157e-05/0.3903, allocations: 23.95 kB / 386 MB, free: 7.562 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006983/0.391, allocations: 323.7 kB / 386.3 MB, free: 7.215 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.975e-05/0.3911, allocations: 11.92 kB / 386.3 MB, free: 7.203 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.742e-05/0.3911, allocations: 8 kB / 386.3 MB, free: 7.195 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.863e-05/0.3911, allocations: 8 kB / 386.3 MB, free: 7.188 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001152/0.3923, allocations: 0.743 MB / 387.1 MB, free: 6.445 MB / 314.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.00194/0.3943, allocations: 1.351 MB / 388.4 MB, free: 4.973 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004624/0.3947, allocations: 163.8 kB / 388.6 MB, free: 4.805 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003611/0.3984, allocations: 2.86 MB / 391.4 MB, free: 1.414 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.763e-05/0.3984, allocations: 38.55 kB / 391.5 MB, free: 1.367 MB / 314.7 MB Notification: Performance of pre-optimization done (n=15): time 3.103e-06/0.3985, allocations: 0 / 391.5 MB, free: 1.367 MB / 314.7 MB Notification: Performance of matching and sorting (n=15): time 0.0004335/0.3989, allocations: 142.2 kB / 391.6 MB, free: 1.223 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.607e-05/0.399, allocations: 51.41 kB / 391.7 MB, free: 1.16 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002506/0.3992, allocations: 210.6 kB / 391.9 MB, free: 0.9453 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.72e-05/0.3993, allocations: 33.7 kB / 391.9 MB, free: 0.9062 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001944/0.3995, allocations: 277.2 kB / 392.2 MB, free: 0.6328 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.912e-05/0.3996, allocations: 51.3 kB / 392.2 MB, free: 0.582 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.752e-05/0.3996, allocations: 8 kB / 392.2 MB, free: 0.5742 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001728/0.3998, allocations: 326.8 kB / 392.6 MB, free: 252 kB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001255/0.3999, allocations: 48.84 kB / 392.6 MB, free: 200 kB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003884/0.4003, allocations: 322.1 kB / 392.9 MB, free: 15.75 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002169/0.4005, allocations: 111.7 kB / 393 MB, free: 15.64 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.969e-06/0.4006, allocations: 4 kB / 393 MB, free: 15.63 MB / 330.7 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0007962/0.4014, allocations: 373.4 kB / 393.4 MB, free: 15.27 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.501e-05/0.4014, allocations: 8.781 kB / 393.4 MB, free: 15.26 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.93e-05/0.4014, allocations: 12.16 kB / 393.4 MB, free: 15.25 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.019e-05/0.4015, allocations: 16 kB / 393.4 MB, free: 15.23 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003595/0.4019, allocations: 99.77 kB / 393.5 MB, free: 15.13 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.562e-05/0.4019, allocations: 19.92 kB / 393.6 MB, free: 15.11 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003568/0.4023, allocations: 47.53 kB / 393.6 MB, free: 15.07 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.829e-05/0.4023, allocations: 28 kB / 393.6 MB, free: 15.04 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 44 * 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.0001865/0.4025, allocations: 157.5 kB / 393.8 MB, free: 14.88 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.188e-05/0.4026, allocations: 19.81 kB / 393.8 MB, free: 14.86 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005273/0.4032, allocations: 189.2 kB / 394 MB, free: 14.66 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.076e-05/0.4032, allocations: 4 kB / 394 MB, free: 14.66 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.842e-06/0.4032, allocations: 3.938 kB / 394 MB, free: 14.65 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.512e-06/0.4032, allocations: 0 / 394 MB, free: 14.65 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007736/0.404, allocations: 449.7 kB / 394.4 MB, free: 14.14 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.722e-06/0.404, allocations: 0 / 394.4 MB, free: 14.14 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001236/0.4042, allocations: 23.94 kB / 394.5 MB, free: 14.12 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.61e-06/0.4042, allocations: 0 / 394.5 MB, free: 14.12 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.584e-05/0.4042, allocations: 7.984 kB / 394.5 MB, free: 14.11 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.071e-06/0.4042, allocations: 0 / 394.5 MB, free: 14.11 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.218e-06/0.4042, allocations: 4 kB / 394.5 MB, free: 14.11 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000301/0.4045, allocations: 226.8 kB / 394.7 MB, free: 13.86 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001372/0.4047, allocations: 116.7 kB / 394.8 MB, free: 13.73 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.593e-05/0.4048, allocations: 8.062 kB / 394.8 MB, free: 13.72 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002298/0.405, allocations: 15.97 kB / 394.8 MB, free: 13.7 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.871e-05/0.405, allocations: 11.98 kB / 394.8 MB, free: 13.69 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.763e-05/0.4051, allocations: 4 kB / 394.8 MB, free: 13.69 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001763/0.4053, allocations: 152.4 kB / 395 MB, free: 13.54 MB / 330.7 MB Notification: Performance of sort global known variables: time 7.4e-07/0.4053, allocations: 0 / 395 MB, free: 13.54 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0007119/0.406, allocations: 96 kB / 395.1 MB, free: 13.45 MB / 330.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 (12): * Single equations (assignments): 11 * 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.0003359/0.4063, allocations: 183 kB / 395.3 MB, free: 13.26 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0004037/0.4068, allocations: 165.8 kB / 395.4 MB, free: 13.1 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.809e-06/0.4068, allocations: 4 kB / 395.4 MB, free: 13.09 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 7.506e-05/0.4069, allocations: 32.48 kB / 395.5 MB, free: 13.06 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004704/0.4073, allocations: 48.45 kB / 395.5 MB, free: 13.01 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009728/0.4083, allocations: 0.5422 MB / 396.1 MB, free: 12.42 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004319/0.4088, allocations: 0.7365 MB / 396.8 MB, free: 11.66 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.135e-05/0.4089, allocations: 35.42 kB / 396.8 MB, free: 11.62 MB / 330.7 MB Notification: Performance of SimCode: time 1.507e-06/0.4089, allocations: 3.938 kB / 396.8 MB, free: 11.62 MB / 330.7 MB Notification: Performance of Templates: time 0.007881/0.4168, allocations: 3.58 MB / 400.4 MB, free: 8.047 MB / 330.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