Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.Validation.Derivatives_SaturationBoundary.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.Validation.Derivatives_SaturationBoundary,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_Validation_Derivatives_SaturationBoundary",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HelmholtzMedia.Examples.Validation.Derivatives_SaturationBoundary,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_Validation_Derivatives_SaturationBoundary",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.001225/0.001225, allocations: 108 kB / 15.6 MB, free: 132 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.00131/0.00131, allocations: 193.3 kB / 16.53 MB, free: 6.391 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.519/1.519, allocations: 205.1 MB / 222.4 MB, free: 4.562 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04699/0.04699, allocations: 9.093 MB / 278.9 MB, free: 12.18 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.002416/0.002416, allocations: 71.83 kB / 338.1 MB, free: 25.33 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09834/0.1008, allocations: 48.15 MB / 386.3 MB, free: 9.137 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.Validation.Derivatives_SaturationBoundary): time 0.01982/0.1206, allocations: 19.8 MB / 406.1 MB, free: 5.246 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01584/0.1365, allocations: 17.13 MB / 423.2 MB, free: 4.055 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004304/0.137, allocations: 4 kB / 423.2 MB, free: 4.051 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001372/0.1384, allocations: 0.5718 MB / 423.8 MB, free: 3.477 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.typeBindings: time 0.1742/0.3127, allocations: 5.268 MB / 429.1 MB, free: 14.67 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002419/0.3151, allocations: 1.013 MB / 430.1 MB, free: 14.66 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009412/0.3161, allocations: 0.7968 MB / 430.9 MB, free: 14.66 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001113/0.3162, allocations: 41.61 kB / 430.9 MB, free: 14.65 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004515/0.3166, allocations: 328.5 kB / 431.2 MB, free: 14.65 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003717/0.317, allocations: 306.9 kB / 431.5 MB, free: 14.65 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.099e-05/0.3171, allocations: 28.38 kB / 431.6 MB, free: 14.65 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01737/0.3345, allocations: 9.212 MB / 440.8 MB, free: 14.63 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001756/0.3347, allocations: 91.86 kB / 440.9 MB, free: 14.63 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006469/0.3354, allocations: 281.2 kB / 441.1 MB, free: 14.57 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01258/0.3479, allocations: 4.113 MB / 445.2 MB, free: 13.92 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.823e-06/0.348, allocations: 1.625 kB / 445.3 MB, free: 13.92 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.104e-06/0.348, allocations: 0 / 445.3 MB, free: 13.92 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.018e-05/0.348, allocations: 0 / 445.3 MB, free: 13.92 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: 186 * Number of variables: 186 Notification: Performance of Generate backend data structure: time 0.002759/0.3508, allocations: 1.211 MB / 446.5 MB, free: 13.08 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.559e-05/0.3508, allocations: 9.312 kB / 446.5 MB, free: 13.08 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.916e-05/0.3509, allocations: 98.45 kB / 446.6 MB, free: 13.03 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004614/0.3514, allocations: 92.72 kB / 446.7 MB, free: 12.98 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001467/0.3516, allocations: 223.4 kB / 446.9 MB, free: 12.76 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.13e-05/0.3516, allocations: 27.19 kB / 446.9 MB, free: 12.75 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.277e-05/0.3517, allocations: 25.16 kB / 446.9 MB, free: 12.75 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00131/0.353, allocations: 1.254 MB / 448.2 MB, free: 12.55 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.603e-05/0.353, allocations: 7.938 kB / 448.2 MB, free: 12.54 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.728e-05/0.3531, allocations: 13.25 kB / 448.2 MB, free: 12.54 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.504e-05/0.3531, allocations: 28.97 kB / 448.2 MB, free: 12.53 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001926/0.355, allocations: 2.316 MB / 450.5 MB, free: 12.03 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001948/0.357, allocations: 2.157 MB / 452.7 MB, free: 10.54 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001285/0.3583, allocations: 1.345 MB / 454 MB, free: 9.73 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001015/0.3593, allocations: 1.274 MB / 455.3 MB, free: 8.961 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0189/0.3782, allocations: 11.21 MB / 466.5 MB, free: 12.81 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.425e-05/0.3783, allocations: 43.02 kB / 466.6 MB, free: 12.76 MB / 334.1 MB Notification: Performance of pre-optimization done (n=185): time 2.876e-06/0.3783, allocations: 0 / 466.6 MB, free: 12.76 MB / 334.1 MB Notification: Performance of matching and sorting (n=185): time 0.005692/0.384, allocations: 3.599 MB / 470.2 MB, free: 9.156 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.949e-05/0.3841, allocations: 63.97 kB / 470.2 MB, free: 9.082 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001389/0.3843, allocations: 120.4 kB / 470.4 MB, free: 8.961 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 6.266e-05/0.3844, allocations: 37.7 kB / 470.4 MB, free: 8.918 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.433e-05/0.3844, allocations: 90.42 kB / 470.5 MB, free: 8.828 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000616/0.3851, allocations: 0.5834 MB / 471.1 MB, free: 8.25 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002944/0.3854, allocations: 150.2 kB / 471.2 MB, free: 8.098 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000122/0.3855, allocations: 310 kB / 471.5 MB, free: 7.789 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001616/0.3871, allocations: 1.022 MB / 472.5 MB, free: 6.77 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001245/0.3884, allocations: 1.035 MB / 473.6 MB, free: 5.734 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002379/0.3908, allocations: 2.225 MB / 475.8 MB, free: 3.508 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.959e-06/0.3908, allocations: 7.875 kB / 475.8 MB, free: 3.504 MB / 334.1 MB Notification: Performance of matching and sorting (n=185) (initialization): time 0.002793/0.3936, allocations: 2.343 MB / 478.1 MB, free: 1.156 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.271e-05/0.3936, allocations: 4 kB / 478.2 MB, free: 1.152 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.706e-06/0.3937, allocations: 0 / 478.2 MB, free: 1.152 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.967e-05/0.3937, allocations: 4 kB / 478.2 MB, free: 1.148 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006373/0.3943, allocations: 117.5 kB / 478.3 MB, free: 1.039 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.076e-05/0.3943, allocations: 0.7812 kB / 478.3 MB, free: 1.039 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004248/0.3948, allocations: 86.89 kB / 478.4 MB, free: 0.9531 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.697e-05/0.3948, allocations: 23.98 kB / 478.4 MB, free: 0.9297 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: 10 (sat_pminus.vap.phase,sat_pminus.liq.phase,sat_pplus.vap.phase,sat_pplus.liq.phase,sat_Tminus.vap.phase,sat_Tminus.liq.phase,sat_Tplus.vap.phase,sat_Tplus.liq.phase,sat.vap.phase,sat.liq.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (68): * Single equations (assignments): 61 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 7 * 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.000218/0.3951, allocations: 163.8 kB / 478.5 MB, free: 0.7656 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001765/0.3952, allocations: 55.25 kB / 478.6 MB, free: 0.7109 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003125/0.3984, allocations: 2.649 MB / 481.2 MB, free: 14.06 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.027e-05/0.3984, allocations: 27.17 kB / 481.3 MB, free: 14.04 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.893e-06/0.3984, allocations: 0 / 481.3 MB, free: 14.04 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.062e-05/0.3985, allocations: 11.86 kB / 481.3 MB, free: 14.02 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00118/0.3996, allocations: 1.162 MB / 482.4 MB, free: 12.84 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.99e-06/0.3997, allocations: 0 / 482.4 MB, free: 12.84 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006674/0.4003, allocations: 138.2 kB / 482.6 MB, free: 12.71 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.874e-06/0.4003, allocations: 4 kB / 482.6 MB, free: 12.7 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.808e-05/0.4004, allocations: 19.98 kB / 482.6 MB, free: 12.68 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.37e-06/0.4004, allocations: 4 kB / 482.6 MB, free: 12.68 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.803e-06/0.4004, allocations: 0 / 482.6 MB, free: 12.68 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002785/0.4032, allocations: 2.343 MB / 484.9 MB, free: 10.32 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000273/0.4035, allocations: 223.7 kB / 485.2 MB, free: 10.09 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.207e-05/0.4035, allocations: 8 kB / 485.2 MB, free: 10.08 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003696/0.4039, allocations: 23.98 kB / 485.2 MB, free: 10.05 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001065/0.404, allocations: 52.88 kB / 485.3 MB, free: 10 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.31e-05/0.4041, allocations: 25.48 kB / 485.3 MB, free: 9.98 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.851e-05/0.4042, allocations: 88.75 kB / 485.4 MB, free: 9.895 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.4042, allocations: 0 / 485.4 MB, free: 9.895 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.003062/0.4072, allocations: 0.8746 MB / 486.2 MB, free: 9.02 MB / 350.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: 10 (sat.liq.phase,sat.vap.phase,sat_Tplus.liq.phase,sat_Tplus.vap.phase,sat_Tminus.liq.phase,sat_Tminus.vap.phase,sat_pplus.liq.phase,sat_pplus.vap.phase,sat_pminus.liq.phase,sat_pminus.vap.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (84): * Single equations (assignments): 77 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 7 * 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.009361/0.4166, allocations: 4.1 MB / 490.3 MB, free: 5.055 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.004028/0.4207, allocations: 2.396 MB / 492.7 MB, free: 2.676 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.128e-06/0.4207, allocations: 4 kB / 492.7 MB, free: 2.672 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00132/0.422, allocations: 1.248 MB / 494 MB, free: 1.441 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001911/0.424, allocations: 351 kB / 494.3 MB, free: 1.109 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004079/0.4281, allocations: 2.039 MB / 496.4 MB, free: 15.04 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003953/0.4285, allocations: 0.8866 MB / 497.3 MB, free: 14.12 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0005812/0.4291, allocations: 257.8 kB / 497.5 MB, free: 13.87 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002874/0.4294, allocations: 191.3 kB / 497.7 MB, free: 13.68 MB / 366.1 MB Notification: Performance of SimCode: time 1.203e-06/0.4294, allocations: 0 / 497.7 MB, free: 13.68 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0776/0.507, allocations: 43.31 MB / 0.5283 GB, free: 2.453 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.782/10.29, allocations: 7.984 kB / 0.5283 GB, free: 2.445 MB / 398.1 MB (rm -f HelmholtzMedia_HelmholtzMedia.Examples.Validation.Derivatives_SaturationBoundary.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.Validation.Derivatives_SaturationBoundary.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.Validation.Derivatives_SaturationBoundary.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.Validation.Derivatives_SaturationBoundary.sim & python3 -m fmpy simulate --output-file HelmholtzMedia_HelmholtzMedia.Examples.Validation.Derivatives_SaturationBoundary_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.004 HelmholtzMedia_HelmholtzMedia_Examples_Validation_Derivatives_SaturationBoundary.fmu > HelmholtzMedia_HelmholtzMedia.Examples.Validation.Derivatives_SaturationBoundary.pipe 2>&1)