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.0079/0.0079, allocations: 103.8 kB / 15.74 MB, free: 6.445 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.001448/0.001448, allocations: 196.4 kB / 16.67 MB, free: 6.352 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.623/1.623, allocations: 205.1 MB / 222.5 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.04733/0.04733, allocations: 9.096 MB / 279 MB, free: 12.05 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.001586/0.001586, allocations: 78.39 kB / 387 MB, free: 8.453 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3154/0.317, allocations: 48.15 MB / 435.2 MB, free: 7.18 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.Validation.Derivatives_SaturationBoundary): time 0.02078/0.3379, allocations: 19.79 MB / 455 MB, free: 8.578 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01936/0.3573, allocations: 17.13 MB / 472.1 MB, free: 10.47 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005465/0.3579, allocations: 2.5 kB / 472.1 MB, free: 10.47 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001797/0.3597, allocations: 0.643 MB / 472.7 MB, free: 10.01 MB / 350.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.01374/0.3735, allocations: 5.551 MB / 478.3 MB, free: 5.547 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003054/0.3765, allocations: 1.081 MB / 479.4 MB, free: 4.461 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001003/0.3776, allocations: 0.7941 MB / 480.2 MB, free: 3.664 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001034/0.3777, allocations: 45.77 kB / 480.2 MB, free: 3.613 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003945/0.3781, allocations: 334.7 kB / 480.5 MB, free: 3.285 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003696/0.3785, allocations: 306.6 kB / 480.8 MB, free: 2.984 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.357e-05/0.3785, allocations: 32 kB / 480.9 MB, free: 2.953 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01802/0.3965, allocations: 9.431 MB / 490.3 MB, free: 9.504 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000186/0.3968, allocations: 87.59 kB / 490.4 MB, free: 9.418 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005853/0.3974, allocations: 278.5 kB / 490.7 MB, free: 9.145 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01532/0.4127, allocations: 4.118 MB / 494.8 MB, free: 5.016 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.007e-05/0.4128, allocations: 4 kB / 494.8 MB, free: 5.012 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.525e-06/0.4128, allocations: 0 / 494.8 MB, free: 5.012 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.104e-05/0.4128, allocations: 0 / 494.8 MB, free: 5.012 MB / 366.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.003133/0.4159, allocations: 1.232 MB / 496 MB, free: 3.727 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.689e-05/0.416, allocations: 12.03 kB / 496 MB, free: 3.715 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001131/0.4161, allocations: 102.5 kB / 496.1 MB, free: 3.605 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004571/0.4166, allocations: 91.56 kB / 496.2 MB, free: 3.516 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001929/0.4168, allocations: 222.3 kB / 496.4 MB, free: 3.258 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.038e-05/0.4168, allocations: 20.56 kB / 496.5 MB, free: 3.238 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.007e-05/0.4169, allocations: 28 kB / 496.5 MB, free: 3.211 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001407/0.4183, allocations: 1.263 MB / 497.7 MB, free: 1.945 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.247e-05/0.4183, allocations: 0 / 497.7 MB, free: 1.945 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.224e-05/0.4184, allocations: 11.94 kB / 497.8 MB, free: 1.934 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.833e-05/0.4184, allocations: 35.94 kB / 497.8 MB, free: 1.898 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00233/0.4207, allocations: 2.311 MB / 0.4884 GB, free: 15.59 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002239/0.423, allocations: 2.163 MB / 0.4905 GB, free: 13.38 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001459/0.4245, allocations: 1.353 MB / 0.4918 GB, free: 12.01 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001272/0.4258, allocations: 1.278 MB / 0.4931 GB, free: 10.73 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02065/0.4464, allocations: 11.22 MB / 0.504 GB, free: 13.7 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.22e-05/0.4465, allocations: 39.12 kB / 0.5041 GB, free: 13.65 MB / 398.1 MB Notification: Performance of pre-optimization done (n=185): time 3.216e-06/0.4465, allocations: 0 / 0.5041 GB, free: 13.65 MB / 398.1 MB Notification: Performance of matching and sorting (n=185): time 0.004414/0.4509, allocations: 3.604 MB / 0.5076 GB, free: 10.04 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.181e-05/0.451, allocations: 59.97 kB / 0.5076 GB, free: 9.973 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.703e-05/0.4511, allocations: 113.8 kB / 0.5077 GB, free: 9.852 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.751e-05/0.4512, allocations: 37.7 kB / 0.5078 GB, free: 9.809 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.427e-05/0.4512, allocations: 87.06 kB / 0.5079 GB, free: 9.719 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004135/0.4516, allocations: 0.6078 MB / 0.5084 GB, free: 9.105 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001959/0.4518, allocations: 150.2 kB / 0.5086 GB, free: 8.953 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 9.814e-05/0.4519, allocations: 309.9 kB / 0.5089 GB, free: 8.645 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001065/0.453, allocations: 1.022 MB / 0.5099 GB, free: 7.621 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00111/0.4541, allocations: 1.039 MB / 0.5109 GB, free: 6.582 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002291/0.4564, allocations: 2.221 MB / 0.5131 GB, free: 4.359 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.188e-06/0.4565, allocations: 0 / 0.5131 GB, free: 4.359 MB / 398.1 MB Notification: Performance of matching and sorting (n=185) (initialization): time 0.002774/0.4592, allocations: 2.348 MB / 0.5154 GB, free: 2.008 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.297e-05/0.4593, allocations: 4 kB / 0.5154 GB, free: 2.004 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.406e-06/0.4593, allocations: 0 / 0.5154 GB, free: 2.004 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.074e-05/0.4593, allocations: 4 kB / 0.5154 GB, free: 2 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000573/0.4599, allocations: 111.9 kB / 0.5155 GB, free: 1.891 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.422e-05/0.4599, allocations: 3.984 kB / 0.5155 GB, free: 1.887 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003835/0.4603, allocations: 87.19 kB / 0.5156 GB, free: 1.801 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.38e-05/0.4604, allocations: 27.97 kB / 0.5156 GB, free: 1.773 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: 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.0002248/0.4606, allocations: 169.7 kB / 0.5158 GB, free: 1.598 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001858/0.4608, allocations: 63.58 kB / 0.5158 GB, free: 1.535 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00321/0.464, allocations: 2.64 MB / 0.5184 GB, free: 14.88 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.165e-05/0.4641, allocations: 27.95 kB / 0.5184 GB, free: 14.85 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.762e-06/0.4641, allocations: 3.938 kB / 0.5184 GB, free: 14.84 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.252e-05/0.4641, allocations: 7.922 kB / 0.5184 GB, free: 14.84 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001124/0.4652, allocations: 1.171 MB / 0.5196 GB, free: 13.61 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.206e-06/0.4652, allocations: 4 kB / 0.5196 GB, free: 13.61 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005959/0.4658, allocations: 131.8 kB / 0.5197 GB, free: 13.48 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.222e-05/0.4659, allocations: 4 kB / 0.5197 GB, free: 13.48 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.603e-05/0.4659, allocations: 16 kB / 0.5197 GB, free: 13.46 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.711e-06/0.4659, allocations: 8 kB / 0.5197 GB, free: 13.45 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.963e-06/0.4659, allocations: 0 / 0.5197 GB, free: 13.45 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002757/0.4687, allocations: 2.345 MB / 0.522 GB, free: 11.09 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002541/0.469, allocations: 220.1 kB / 0.5222 GB, free: 10.86 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.228e-05/0.469, allocations: 19.94 kB / 0.5222 GB, free: 10.84 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003554/0.4694, allocations: 23.98 kB / 0.5223 GB, free: 10.82 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001141/0.4695, allocations: 52.92 kB / 0.5223 GB, free: 10.77 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.596e-05/0.4696, allocations: 27.94 kB / 0.5223 GB, free: 10.74 MB / 414.1 MB Notification: Performance of sorting global known variables: time 5.233e-05/0.4696, allocations: 87.27 kB / 0.5224 GB, free: 10.65 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4696, allocations: 0 / 0.5224 GB, free: 10.65 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002816/0.4725, allocations: 0.892 MB / 0.5233 GB, free: 9.758 MB / 414.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.007917/0.4804, allocations: 4.109 MB / 0.5273 GB, free: 5.617 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.002988/0.4834, allocations: 2.361 MB / 0.5296 GB, free: 3.254 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.979e-06/0.4835, allocations: 0 / 0.5296 GB, free: 3.254 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001562/0.485, allocations: 1.256 MB / 0.5308 GB, free: 2.004 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002108/0.4872, allocations: 351.6 kB / 0.5312 GB, free: 1.66 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004212/0.4914, allocations: 2.044 MB / 0.5332 GB, free: 15.57 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004203/0.4919, allocations: 0.8857 MB / 0.534 GB, free: 14.65 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.000569/0.4924, allocations: 258.6 kB / 0.5343 GB, free: 14.4 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003002/0.4928, allocations: 191.3 kB / 0.5345 GB, free: 14.21 MB / 430.1 MB Notification: Performance of SimCode: time 6.11e-07/0.4928, allocations: 0 / 0.5345 GB, free: 14.21 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07625/0.569, allocations: 43.37 MB / 0.5768 GB, free: 2.883 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.56/11.13, allocations: 7.984 kB / 0.5768 GB, free: 2.875 MB / 462.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)