Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.setSat.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo", uses=false) Using package HelmholtzMedia with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(HelmholtzMedia.Examples.ConvergenceTest.setSat,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_ConvergenceTest_setSat",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HelmholtzMedia.Examples.ConvergenceTest.setSat,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_ConvergenceTest_setSat",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00851/0.00851, allocations: 99.34 kB / 15.73 MB, free: 6.008 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001591/0.001591, allocations: 198.4 kB / 16.67 MB, free: 5.934 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.603/1.603, allocations: 205.1 MB / 222.6 MB, free: 4.508 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04568/0.04568, allocations: 9.097 MB / 279 MB, free: 12.09 MB / 238.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001573/0.001573, allocations: 63.91 kB / 386.9 MB, free: 8.551 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3585/0.3601, allocations: 48.16 MB / 435.1 MB, free: 7.191 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.ConvergenceTest.setSat): time 0.02373/0.3839, allocations: 19.18 MB / 454.3 MB, free: 9.047 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01056/0.3945, allocations: 9.381 MB / 463.7 MB, free: 1.348 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003599/0.3949, allocations: 2.156 kB / 463.7 MB, free: 1.348 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00136/0.3963, allocations: 0.4958 MB / 464.2 MB, free: 0.9922 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008293/0.3972, allocations: 275.1 kB / 464.4 MB, free: 0.7578 MB / 334.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Math/package.mo:1125:3-1182:12:writable] Warning: Pure function 'Modelica.Math.Matrices.solve' contains a call to impure function 'Modelica.Math.Matrices.LAPACK.dgesv_vec'. Notification: Performance of NFTyping.typeClassSections: time 0.01439/0.4116, allocations: 4.753 MB / 469.2 MB, free: 13.67 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005564/0.4121, allocations: 403.5 kB / 469.6 MB, free: 13.43 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.341e-05/0.4122, allocations: 22.44 kB / 469.6 MB, free: 13.43 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003128/0.4125, allocations: 172.5 kB / 469.8 MB, free: 13.33 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001478/0.4127, allocations: 104.2 kB / 469.9 MB, free: 13.28 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.388e-05/0.4127, allocations: 4.156 kB / 469.9 MB, free: 13.28 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0145/0.4272, allocations: 7.396 MB / 477.3 MB, free: 6.555 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.582e-05/0.4274, allocations: 19.86 kB / 477.3 MB, free: 6.535 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000496/0.4279, allocations: 111.4 kB / 477.4 MB, free: 6.426 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0126/0.4405, allocations: 3.269 MB / 480.7 MB, free: 3.148 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.552e-06/0.4405, allocations: 0 / 480.7 MB, free: 3.148 MB / 350.1 MB Notification: Performance of FrontEnd: time 4.829e-06/0.4406, allocations: 0 / 480.7 MB, free: 3.148 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.74e-05/0.4406, allocations: 3.938 kB / 480.7 MB, free: 3.145 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.00208/0.4427, allocations: 0.8349 MB / 481.5 MB, free: 2.258 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.333e-05/0.4427, allocations: 12.03 kB / 481.5 MB, free: 2.246 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.261e-05/0.4428, allocations: 58.52 kB / 481.6 MB, free: 2.18 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003691/0.4432, allocations: 67.75 kB / 481.7 MB, free: 2.113 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001642/0.4433, allocations: 186.7 kB / 481.8 MB, free: 1.891 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.822e-05/0.4434, allocations: 8 kB / 481.8 MB, free: 1.883 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.336e-05/0.4434, allocations: 4 kB / 481.8 MB, free: 1.879 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004021/0.4438, allocations: 233.4 kB / 482.1 MB, free: 1.641 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.088e-05/0.4438, allocations: 0 / 482.1 MB, free: 1.641 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.941e-05/0.4439, allocations: 15.94 kB / 482.1 MB, free: 1.625 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.465e-05/0.4439, allocations: 11.97 kB / 482.1 MB, free: 1.613 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004164/0.4443, allocations: 216.5 kB / 482.3 MB, free: 1.402 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000379/0.4447, allocations: 356.2 kB / 482.7 MB, free: 1.004 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001019/0.4457, allocations: 343.1 kB / 483 MB, free: 0.6602 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003234/0.4461, allocations: 258 kB / 483.2 MB, free: 416 kB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05046/0.4965, allocations: 28.59 MB / 0.4998 GB, free: 15.01 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.306e-05/0.4966, allocations: 30.56 kB / 0.4999 GB, free: 14.97 MB / 398.1 MB Notification: Performance of pre-optimization done (n=73): time 2.404e-06/0.4966, allocations: 0 / 0.4999 GB, free: 14.97 MB / 398.1 MB Notification: Performance of matching and sorting (n=73): time 0.001249/0.4979, allocations: 0.6818 MB / 0.5005 GB, free: 14.29 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.93e-05/0.4979, allocations: 55.34 kB / 0.5006 GB, free: 14.22 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001192/0.4981, allocations: 113.8 kB / 0.5007 GB, free: 14.1 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.201e-05/0.4981, allocations: 29.64 kB / 0.5007 GB, free: 14.06 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.327e-05/0.4981, allocations: 93.44 kB / 0.5008 GB, free: 13.97 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001689/0.4983, allocations: 229.9 kB / 0.501 GB, free: 13.74 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.874e-05/0.4984, allocations: 65.62 kB / 0.5011 GB, free: 13.67 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001306/0.4986, allocations: 334.8 kB / 0.5014 GB, free: 13.34 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002696/0.4988, allocations: 176.5 kB / 0.5016 GB, free: 13.16 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002611/0.4991, allocations: 175.2 kB / 0.5017 GB, free: 12.99 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005999/0.4997, allocations: 424.7 kB / 0.5022 GB, free: 12.57 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.995e-06/0.4997, allocations: 3.938 kB / 0.5022 GB, free: 12.57 MB / 398.1 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.0007317/0.5005, allocations: 478.7 kB / 0.5026 GB, free: 12.09 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.849e-05/0.5005, allocations: 4 kB / 0.5026 GB, free: 12.09 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.464e-06/0.5005, allocations: 0 / 0.5026 GB, free: 12.09 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.659e-05/0.5005, allocations: 4 kB / 0.5026 GB, free: 12.09 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000165/0.5007, allocations: 31.91 kB / 0.5027 GB, free: 12.05 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.486e-06/0.5007, allocations: 4.25 kB / 0.5027 GB, free: 12.05 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001518/0.5009, allocations: 35.66 kB / 0.5027 GB, free: 12.02 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.108e-05/0.5009, allocations: 8 kB / 0.5027 GB, free: 12.01 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 8 (sat_dv.vap.phase,sat_dv.liq.phase,sat_dl.vap.phase,sat_dl.liq.phase,sat_p.vap.phase,sat_p.liq.phase,sat_T.vap.phase,sat_T.liq.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001322/0.501, allocations: 138.9 kB / 0.5028 GB, free: 11.86 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.078e-05/0.5011, allocations: 23.81 kB / 0.5029 GB, free: 11.84 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001011/0.5021, allocations: 0.7636 MB / 0.5036 GB, free: 11.07 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.925e-05/0.5021, allocations: 15.97 kB / 0.5036 GB, free: 11.06 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.831e-06/0.5021, allocations: 3.938 kB / 0.5036 GB, free: 11.05 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.986e-06/0.5022, allocations: 4 kB / 0.5036 GB, free: 11.05 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003542/0.5025, allocations: 432.3 kB / 0.504 GB, free: 10.57 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.663e-06/0.5025, allocations: 3.938 kB / 0.504 GB, free: 10.57 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001542/0.5027, allocations: 27.97 kB / 0.5041 GB, free: 10.54 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.747e-06/0.5027, allocations: 0 / 0.5041 GB, free: 10.54 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.4e-05/0.5027, allocations: 7.938 kB / 0.5041 GB, free: 10.54 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.344e-06/0.5027, allocations: 0 / 0.5041 GB, free: 10.54 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.627e-06/0.5027, allocations: 3.938 kB / 0.5041 GB, free: 10.53 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006931/0.5034, allocations: 0.5154 MB / 0.5046 GB, free: 9.992 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.865e-05/0.5035, allocations: 116.8 kB / 0.5047 GB, free: 9.859 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.583e-05/0.5036, allocations: 8 kB / 0.5047 GB, free: 9.852 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001286/0.5037, allocations: 11.98 kB / 0.5047 GB, free: 9.84 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.915e-05/0.5038, allocations: 15.92 kB / 0.5047 GB, free: 9.824 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.243e-05/0.5038, allocations: 7.984 kB / 0.5047 GB, free: 9.816 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.891e-05/0.5038, allocations: 87.28 kB / 0.5048 GB, free: 9.73 MB / 398.1 MB Notification: Performance of sort global known variables: time 1e-07/0.5038, allocations: 0 / 0.5048 GB, free: 9.73 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.002051/0.5059, allocations: 0.7206 MB / 0.5055 GB, free: 9.008 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 8 (sat_T.liq.phase,sat_T.vap.phase,sat_p.liq.phase,sat_p.vap.phase,sat_dl.liq.phase,sat_dl.vap.phase,sat_dv.liq.phase,sat_dv.vap.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003785/0.5097, allocations: 1.985 MB / 0.5075 GB, free: 6.996 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0007911/0.5105, allocations: 456.9 kB / 0.5079 GB, free: 6.551 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.5105, allocations: 0 / 0.5079 GB, free: 6.551 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003522/0.5108, allocations: 248.5 kB / 0.5081 GB, free: 6.309 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001171/0.512, allocations: 243 kB / 0.5084 GB, free: 6.074 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004109/0.5161, allocations: 3.004 MB / 0.5113 GB, free: 2.977 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002894/0.5165, allocations: 0.7572 MB / 0.512 GB, free: 2.195 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0003351/0.5168, allocations: 196 kB / 0.5122 GB, free: 2.004 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001099/0.5169, allocations: 67.41 kB / 0.5123 GB, free: 1.938 MB / 398.1 MB Notification: Performance of SimCode: time 5.51e-07/0.5169, allocations: 0 / 0.5123 GB, free: 1.938 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06624/0.5832, allocations: 29.61 MB / 0.5412 GB, free: 4.316 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.084/9.667, allocations: 8 kB / 0.5412 GB, free: 4.309 MB / 430.1 MB (rm -f HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.setSat.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.setSat.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.setSat.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.setSat.sim & python3 -m fmpy simulate --output-file HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.setSat_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-05 --interface-type ModelExchange --solver CVode --output-interval 0.004 HelmholtzMedia_HelmholtzMedia_Examples_ConvergenceTest_setSat.fmu > HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.setSat.pipe 2>&1)