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.00738/0.00738, allocations: 98.56 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.00184/0.00184, allocations: 195.5 kB / 16.68 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.59/1.59, allocations: 205.1 MB / 222.6 MB, free: 4.523 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.05103/0.05103, allocations: 9.096 MB / 279 MB, free: 12.08 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.002116/0.002116, allocations: 67.91 kB / 387 MB, free: 8.543 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2567/0.2588, allocations: 48.16 MB / 435.1 MB, free: 7.16 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.ConvergenceTest.setSat): time 0.02105/0.2799, allocations: 19.18 MB / 454.3 MB, free: 9.023 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01043/0.2904, allocations: 9.386 MB / 463.7 MB, free: 1.32 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000279/0.2907, allocations: 2.188 kB / 463.7 MB, free: 1.32 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001209/0.292, allocations: 443.8 kB / 464.1 MB, free: 1.012 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006614/0.2927, allocations: 251.7 kB / 464.4 MB, free: 0.793 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.01292/0.3056, allocations: 4.542 MB / 468.9 MB, free: 13.86 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006214/0.3062, allocations: 402.8 kB / 469.3 MB, free: 13.62 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.95e-05/0.3063, allocations: 24.61 kB / 469.3 MB, free: 13.61 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003411/0.3067, allocations: 169 kB / 469.5 MB, free: 13.52 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001796/0.3069, allocations: 99.72 kB / 469.6 MB, free: 13.47 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.091e-05/0.3069, allocations: 4.531 kB / 469.6 MB, free: 13.47 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01466/0.3216, allocations: 7.391 MB / 477 MB, free: 6.812 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.548e-05/0.3216, allocations: 19.88 kB / 477 MB, free: 6.793 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002997/0.3219, allocations: 115.4 kB / 477.1 MB, free: 6.68 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008056/0.33, allocations: 3.273 MB / 480.4 MB, free: 3.398 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.178e-06/0.33, allocations: 0 / 480.4 MB, free: 3.398 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.3301, allocations: 4 kB / 480.4 MB, free: 3.395 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.233e-06/0.3301, allocations: 0 / 480.4 MB, free: 3.395 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.001657/0.3317, allocations: 0.8348 MB / 481.2 MB, free: 2.508 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.938e-05/0.3318, allocations: 8.031 kB / 481.2 MB, free: 2.5 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.9e-05/0.3319, allocations: 58.53 kB / 481.3 MB, free: 2.434 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003527/0.3322, allocations: 67.77 kB / 481.4 MB, free: 2.367 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001853/0.3324, allocations: 190.7 kB / 481.5 MB, free: 2.141 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.968e-05/0.3325, allocations: 4 kB / 481.5 MB, free: 2.137 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.809e-05/0.3325, allocations: 15.94 kB / 481.6 MB, free: 2.121 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004315/0.3329, allocations: 229.5 kB / 481.8 MB, free: 1.887 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.566e-06/0.3329, allocations: 0 / 481.8 MB, free: 1.887 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.44e-05/0.333, allocations: 4 kB / 481.8 MB, free: 1.883 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.876e-05/0.333, allocations: 15.92 kB / 481.8 MB, free: 1.867 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004547/0.3334, allocations: 212.5 kB / 482 MB, free: 1.66 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004042/0.3339, allocations: 360.2 kB / 482.4 MB, free: 1.258 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001017/0.3349, allocations: 343.1 kB / 482.7 MB, free: 0.9141 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003677/0.3353, allocations: 254 kB / 482.9 MB, free: 0.6641 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05474/0.39, allocations: 28.59 MB / 0.4995 GB, free: 15.27 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.503e-05/0.3901, allocations: 38.55 kB / 0.4996 GB, free: 15.22 MB / 398.1 MB Notification: Performance of pre-optimization done (n=73): time 2.534e-06/0.3901, allocations: 4 kB / 0.4996 GB, free: 15.22 MB / 398.1 MB Notification: Performance of matching and sorting (n=73): time 0.001284/0.3914, allocations: 0.6817 MB / 0.5003 GB, free: 14.53 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.769e-05/0.3915, allocations: 55.34 kB / 0.5003 GB, free: 14.46 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.838e-05/0.3916, allocations: 113.8 kB / 0.5004 GB, free: 14.34 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.291e-05/0.3916, allocations: 33.7 kB / 0.5004 GB, free: 14.3 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.882e-05/0.3917, allocations: 85.45 kB / 0.5005 GB, free: 14.22 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001967/0.3919, allocations: 233.9 kB / 0.5007 GB, free: 13.99 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.376e-05/0.392, allocations: 65.62 kB / 0.5008 GB, free: 13.92 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001654/0.3921, allocations: 334.8 kB / 0.5011 GB, free: 13.58 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003005/0.3924, allocations: 168.5 kB / 0.5013 GB, free: 13.41 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002982/0.3927, allocations: 179.2 kB / 0.5015 GB, free: 13.24 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006554/0.3934, allocations: 424.7 kB / 0.5019 GB, free: 12.82 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.284e-06/0.3934, allocations: 7.938 kB / 0.5019 GB, free: 12.82 MB / 398.1 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.0007775/0.3942, allocations: 474.7 kB / 0.5023 GB, free: 12.34 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.111e-05/0.3942, allocations: 9.094 kB / 0.5023 GB, free: 12.34 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.991e-06/0.3942, allocations: 3.938 kB / 0.5023 GB, free: 12.33 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.44e-05/0.3943, allocations: 0 / 0.5023 GB, free: 12.33 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001636/0.3944, allocations: 31.97 kB / 0.5024 GB, free: 12.3 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.947e-06/0.3945, allocations: 3.938 kB / 0.5024 GB, free: 12.3 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001549/0.3946, allocations: 35.67 kB / 0.5024 GB, free: 12.26 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.961e-05/0.3946, allocations: 7.984 kB / 0.5024 GB, free: 12.25 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.0001361/0.3948, allocations: 133.8 kB / 0.5025 GB, free: 12.11 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.916e-05/0.3948, allocations: 23.81 kB / 0.5026 GB, free: 12.09 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001145/0.396, allocations: 0.7597 MB / 0.5033 GB, free: 11.33 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.996e-05/0.396, allocations: 11.98 kB / 0.5033 GB, free: 11.32 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.723e-06/0.396, allocations: 3.938 kB / 0.5033 GB, free: 11.31 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.371e-06/0.396, allocations: 3.984 kB / 0.5033 GB, free: 11.31 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004606/0.3965, allocations: 424.3 kB / 0.5037 GB, free: 10.84 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.947e-06/0.3965, allocations: 4 kB / 0.5037 GB, free: 10.84 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001637/0.3967, allocations: 35.84 kB / 0.5038 GB, free: 10.8 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.224e-06/0.3967, allocations: 0 / 0.5038 GB, free: 10.8 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.493e-05/0.3967, allocations: 7.984 kB / 0.5038 GB, free: 10.79 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.57e-06/0.3967, allocations: 8 kB / 0.5038 GB, free: 10.79 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.959e-06/0.3967, allocations: 3.938 kB / 0.5038 GB, free: 10.78 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000811/0.3976, allocations: 0.512 MB / 0.5043 GB, free: 10.25 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001169/0.3977, allocations: 116.8 kB / 0.5044 GB, free: 10.11 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.616e-05/0.3977, allocations: 8 kB / 0.5044 GB, free: 10.11 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000126/0.3979, allocations: 11.98 kB / 0.5044 GB, free: 10.09 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.599e-05/0.3979, allocations: 15.92 kB / 0.5044 GB, free: 10.08 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.3e-05/0.3979, allocations: 4 kB / 0.5044 GB, free: 10.07 MB / 398.1 MB Notification: Performance of sorting global known variables: time 5.654e-05/0.398, allocations: 83.58 kB / 0.5045 GB, free: 9.992 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.398, allocations: 0 / 0.5045 GB, free: 9.992 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001914/0.3999, allocations: 0.7206 MB / 0.5052 GB, free: 9.27 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.003887/0.4038, allocations: 2.007 MB / 0.5072 GB, free: 7.238 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0008391/0.4047, allocations: 441 kB / 0.5076 GB, free: 6.809 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.385e-06/0.4047, allocations: 0 / 0.5076 GB, free: 6.809 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003769/0.4051, allocations: 252.5 kB / 0.5078 GB, free: 6.562 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001221/0.4063, allocations: 234.9 kB / 0.5081 GB, free: 6.336 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004175/0.4105, allocations: 3.004 MB / 0.511 GB, free: 3.238 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004321/0.4109, allocations: 0.7572 MB / 0.5117 GB, free: 2.457 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0003875/0.4113, allocations: 204 kB / 0.5119 GB, free: 2.258 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000123/0.4115, allocations: 67.41 kB / 0.512 GB, free: 2.191 MB / 398.1 MB Notification: Performance of SimCode: time 7.52e-07/0.4115, allocations: 0 / 0.512 GB, free: 2.191 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06508/0.4766, allocations: 29.61 MB / 0.5409 GB, free: 4.566 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.073/9.55, allocations: 12 kB / 0.5409 GB, free: 4.555 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)