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.001132/0.001131, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001233/0.001234, allocations: 195.7 kB / 16.53 MB, free: 6.664 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.449/1.449, allocations: 205.1 MB / 222.4 MB, free: 4.586 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04689/0.04689, allocations: 9.093 MB / 278.9 MB, free: 12.16 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.002569/0.00257, allocations: 67.91 kB / 338.1 MB, free: 25.33 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09178/0.09437, allocations: 48.16 MB / 386.3 MB, free: 9.137 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.ConvergenceTest.setSat): time 0.0195/0.1139, allocations: 19.19 MB / 405.5 MB, free: 5.859 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.008829/0.1228, allocations: 9.381 MB / 414.9 MB, free: 12.45 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000186/0.123, allocations: 4 kB / 414.9 MB, free: 12.44 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009781/0.124, allocations: 434 kB / 415.3 MB, free: 12.02 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006608/0.1247, allocations: 258.3 kB / 415.5 MB, free: 11.76 MB / 318.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.013/0.1377, allocations: 4.536 MB / 420.1 MB, free: 7.223 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006045/0.1383, allocations: 397.9 kB / 420.5 MB, free: 6.832 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.29e-05/0.1384, allocations: 20.39 kB / 420.5 MB, free: 6.809 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003543/0.1388, allocations: 179.2 kB / 420.7 MB, free: 6.633 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001496/0.139, allocations: 99.58 kB / 420.8 MB, free: 6.535 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.667e-05/0.139, allocations: 4 kB / 420.8 MB, free: 6.531 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.1805/0.3195, allocations: 7.104 MB / 427.9 MB, free: 20.22 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.484e-05/0.3196, allocations: 26.61 kB / 427.9 MB, free: 20.22 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002727/0.3199, allocations: 113.5 kB / 428 MB, free: 20.22 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008786/0.3287, allocations: 3.274 MB / 431.3 MB, free: 20.2 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.611e-06/0.3287, allocations: 1.656 kB / 431.3 MB, free: 20.2 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.823e-06/0.3287, allocations: 0 / 431.3 MB, free: 20.2 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.662e-06/0.3288, allocations: 0 / 431.3 MB, free: 20.2 MB / 318.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.002267/0.331, allocations: 0.8058 MB / 432.1 MB, free: 19.62 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.093e-05/0.3311, allocations: 10.06 kB / 432.1 MB, free: 19.62 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.609e-05/0.3311, allocations: 57.14 kB / 432.2 MB, free: 19.58 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003738/0.3315, allocations: 63.97 kB / 432.2 MB, free: 19.57 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001062/0.3316, allocations: 185 kB / 432.4 MB, free: 19.36 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.475e-05/0.3317, allocations: 7.281 kB / 432.4 MB, free: 19.36 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.816e-05/0.3317, allocations: 4.719 kB / 432.4 MB, free: 19.36 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003966/0.3321, allocations: 231.1 kB / 432.6 MB, free: 19.33 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.355e-06/0.3321, allocations: 0.6875 kB / 432.6 MB, free: 19.33 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.533e-05/0.3321, allocations: 4.312 kB / 432.6 MB, free: 19.33 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.605e-05/0.3322, allocations: 14.03 kB / 432.7 MB, free: 19.33 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004106/0.3326, allocations: 220.1 kB / 432.9 MB, free: 19.32 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002877/0.3329, allocations: 364.8 kB / 433.2 MB, free: 19.1 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009596/0.3338, allocations: 347.8 kB / 433.6 MB, free: 19.07 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002892/0.3341, allocations: 253.7 kB / 433.8 MB, free: 19.06 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04921/0.3834, allocations: 28.59 MB / 462.4 MB, free: 10.46 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.522e-05/0.3835, allocations: 41.52 kB / 462.4 MB, free: 10.42 MB / 334.1 MB Notification: Performance of pre-optimization done (n=73): time 3.767e-06/0.3835, allocations: 0 / 462.4 MB, free: 10.42 MB / 334.1 MB Notification: Performance of matching and sorting (n=73): time 0.001602/0.3851, allocations: 0.6745 MB / 463.1 MB, free: 10.35 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.143e-05/0.3852, allocations: 52.75 kB / 463.2 MB, free: 10.29 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001153/0.3853, allocations: 115.8 kB / 463.3 MB, free: 10.19 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.771e-05/0.3853, allocations: 25.7 kB / 463.3 MB, free: 10.16 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.703e-05/0.3854, allocations: 86.61 kB / 463.4 MB, free: 10.07 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002161/0.3856, allocations: 230.6 kB / 463.6 MB, free: 9.918 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001331/0.3858, allocations: 56.19 kB / 463.7 MB, free: 9.902 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002115/0.386, allocations: 342.5 kB / 464 MB, free: 9.586 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003807/0.3864, allocations: 173.7 kB / 464.2 MB, free: 9.578 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003171/0.3867, allocations: 180 kB / 464.4 MB, free: 9.566 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006101/0.3873, allocations: 434.9 kB / 464.8 MB, free: 9.527 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.956e-06/0.3873, allocations: 0 / 464.8 MB, free: 9.527 MB / 334.1 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.0006989/0.388, allocations: 471.8 kB / 465.2 MB, free: 9.457 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.03e-05/0.3881, allocations: 3.656 kB / 465.2 MB, free: 9.457 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.11e-05/0.3881, allocations: 4 kB / 465.2 MB, free: 9.453 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.995e-05/0.3881, allocations: 0 / 465.2 MB, free: 9.453 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00016/0.3883, allocations: 28.34 kB / 465.3 MB, free: 9.453 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.319e-05/0.3883, allocations: 4.875 kB / 465.3 MB, free: 9.453 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002594/0.3886, allocations: 38.12 kB / 465.3 MB, free: 9.43 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.189e-05/0.3886, allocations: 13.56 kB / 465.3 MB, free: 9.426 MB / 334.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.0001593/0.3888, allocations: 128.1 kB / 465.5 MB, free: 9.312 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.291e-05/0.3888, allocations: 26.97 kB / 465.5 MB, free: 9.297 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001112/0.39, allocations: 0.7702 MB / 466.2 MB, free: 9.184 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.686e-05/0.39, allocations: 9.562 kB / 466.3 MB, free: 9.184 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.192e-06/0.39, allocations: 1.062 kB / 466.3 MB, free: 9.184 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.318e-06/0.39, allocations: 0 / 466.3 MB, free: 9.184 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004279/0.3904, allocations: 431.9 kB / 466.7 MB, free: 8.961 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.226e-06/0.3905, allocations: 0 / 466.7 MB, free: 8.961 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000143/0.3906, allocations: 28.2 kB / 466.7 MB, free: 8.957 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.999e-06/0.3906, allocations: 3.562 kB / 466.7 MB, free: 8.957 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.437e-05/0.3906, allocations: 5.469 kB / 466.7 MB, free: 8.957 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.376e-06/0.3906, allocations: 0.875 kB / 466.7 MB, free: 8.957 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.3906, allocations: 0 / 466.7 MB, free: 8.957 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006907/0.3913, allocations: 0.5209 MB / 467.2 MB, free: 8.809 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001676/0.3915, allocations: 127.5 kB / 467.4 MB, free: 8.684 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.602e-05/0.3916, allocations: 3.875 kB / 467.4 MB, free: 8.684 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001403/0.3917, allocations: 7.484 kB / 467.4 MB, free: 8.68 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.468e-05/0.3918, allocations: 15.02 kB / 467.4 MB, free: 8.676 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.116e-05/0.3918, allocations: 4 kB / 467.4 MB, free: 8.672 MB / 334.1 MB Notification: Performance of sorting global known variables: time 5.32e-05/0.3918, allocations: 94.2 kB / 467.5 MB, free: 8.59 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.3918, allocations: 0 / 467.5 MB, free: 8.59 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.003119/0.395, allocations: 0.7008 MB / 468.2 MB, free: 8.457 MB / 334.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.006068/0.4011, allocations: 1.994 MB / 470.2 MB, free: 7.52 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0009436/0.402, allocations: 449.9 kB / 470.6 MB, free: 7.461 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.889e-06/0.4021, allocations: 0 / 470.6 MB, free: 7.461 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00032/0.4024, allocations: 255 kB / 470.9 MB, free: 7.434 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001272/0.4037, allocations: 229.2 kB / 471.1 MB, free: 7.336 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004948/0.4086, allocations: 2.942 MB / 474 MB, free: 5.738 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003128/0.409, allocations: 0.7576 MB / 474.8 MB, free: 5.016 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0003452/0.4093, allocations: 194 kB / 475 MB, free: 4.926 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001011/0.4095, allocations: 71.41 kB / 475.1 MB, free: 4.91 MB / 334.1 MB Notification: Performance of SimCode: time 6.62e-07/0.4095, allocations: 0 / 475.1 MB, free: 4.91 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05589/0.4654, allocations: 29.71 MB / 0.4929 GB, free: 7.879 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.563/9.029, allocations: 8.906 kB / 0.4929 GB, free: 7.871 MB / 366.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)