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.0075/0.0075, allocations: 100.5 kB / 15.73 MB, free: 6.016 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.001814/0.001814, allocations: 193.1 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.515/1.515, allocations: 205.1 MB / 222.6 MB, free: 4.367 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.05098/0.05098, allocations: 9.092 MB / 279 MB, free: 11.94 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.002089/0.002089, allocations: 71.89 kB / 387 MB, free: 8.457 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3013/0.3034, allocations: 48.15 MB / 435.2 MB, free: 7.172 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.Validation.Derivatives_SaturationBoundary): time 0.02504/0.3285, allocations: 19.78 MB / 455 MB, free: 8.594 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01991/0.3484, allocations: 17.14 MB / 472.1 MB, free: 10.48 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006191/0.3491, allocations: 2.531 kB / 472.1 MB, free: 10.48 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001771/0.3509, allocations: 0.5737 MB / 472.7 MB, free: 10.07 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.01677/0.3677, allocations: 5.297 MB / 478 MB, free: 5.891 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003332/0.371, allocations: 1.014 MB / 479 MB, free: 4.871 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001142/0.3722, allocations: 0.7863 MB / 479.8 MB, free: 4.082 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000109/0.3723, allocations: 41.78 kB / 479.8 MB, free: 4.035 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004841/0.3728, allocations: 334.7 kB / 480.1 MB, free: 3.707 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004248/0.3732, allocations: 302.6 kB / 480.4 MB, free: 3.41 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.98e-05/0.3733, allocations: 32 kB / 480.5 MB, free: 3.379 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02119/0.3945, allocations: 9.435 MB / 489.9 MB, free: 9.926 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001548/0.3947, allocations: 87.59 kB / 490 MB, free: 9.84 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005448/0.3952, allocations: 278.5 kB / 490.3 MB, free: 9.566 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01641/0.4117, allocations: 4.118 MB / 494.4 MB, free: 5.438 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.025e-05/0.4117, allocations: 3.984 kB / 494.4 MB, free: 5.434 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.044e-06/0.4117, allocations: 0 / 494.4 MB, free: 5.434 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.906e-05/0.4117, allocations: 0 / 494.4 MB, free: 5.434 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.003787/0.4155, allocations: 1.228 MB / 495.6 MB, free: 4.152 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.631e-05/0.4156, allocations: 12.03 kB / 495.6 MB, free: 4.141 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001259/0.4157, allocations: 106.5 kB / 495.7 MB, free: 4.027 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005057/0.4163, allocations: 87.58 kB / 495.8 MB, free: 3.941 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002522/0.4165, allocations: 230.3 kB / 496 MB, free: 3.676 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.282e-05/0.4166, allocations: 20.5 kB / 496.1 MB, free: 3.656 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.846e-05/0.4166, allocations: 35.94 kB / 496.1 MB, free: 3.621 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001586/0.4182, allocations: 1.255 MB / 497.3 MB, free: 2.363 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.407e-05/0.4183, allocations: 4 kB / 497.3 MB, free: 2.359 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.61e-05/0.4183, allocations: 11.94 kB / 497.4 MB, free: 2.348 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.766e-05/0.4183, allocations: 27.95 kB / 497.4 MB, free: 2.32 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002777/0.4211, allocations: 2.315 MB / 499.7 MB, free: 4 kB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002612/0.4238, allocations: 2.159 MB / 0.4901 GB, free: 13.8 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001742/0.4255, allocations: 1.349 MB / 0.4914 GB, free: 12.44 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001415/0.4269, allocations: 1.274 MB / 0.4927 GB, free: 11.16 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02334/0.4503, allocations: 11.22 MB / 0.5036 GB, free: 14.12 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.845e-05/0.4504, allocations: 47.11 kB / 0.5037 GB, free: 14.07 MB / 398.1 MB Notification: Performance of pre-optimization done (n=185): time 3.026e-06/0.4504, allocations: 4 kB / 0.5037 GB, free: 14.07 MB / 398.1 MB Notification: Performance of matching and sorting (n=185): time 0.005172/0.4556, allocations: 3.596 MB / 0.5072 GB, free: 10.46 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.52e-05/0.4557, allocations: 59.97 kB / 0.5072 GB, free: 10.39 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001394/0.4558, allocations: 113.8 kB / 0.5073 GB, free: 10.27 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.587e-05/0.4559, allocations: 37.7 kB / 0.5074 GB, free: 10.23 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.451e-05/0.456, allocations: 87.08 kB / 0.5075 GB, free: 10.14 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005546/0.4565, allocations: 0.6077 MB / 0.5081 GB, free: 9.531 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000235/0.4568, allocations: 150.2 kB / 0.5082 GB, free: 9.379 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001512/0.4569, allocations: 313.9 kB / 0.5085 GB, free: 9.066 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001267/0.4582, allocations: 1.018 MB / 0.5095 GB, free: 8.047 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001329/0.4595, allocations: 1.039 MB / 0.5105 GB, free: 7.008 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00284/0.4624, allocations: 2.225 MB / 0.5127 GB, free: 4.781 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.719e-06/0.4624, allocations: 0 / 0.5127 GB, free: 4.781 MB / 398.1 MB Notification: Performance of matching and sorting (n=185) (initialization): time 0.003239/0.4657, allocations: 2.344 MB / 0.515 GB, free: 2.434 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.396e-05/0.4657, allocations: 4 kB / 0.515 GB, free: 2.43 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.467e-06/0.4657, allocations: 0 / 0.515 GB, free: 2.43 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.071e-05/0.4657, allocations: 4 kB / 0.515 GB, free: 2.426 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005992/0.4663, allocations: 119.8 kB / 0.5151 GB, free: 2.309 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.098e-05/0.4664, allocations: 0 / 0.5151 GB, free: 2.309 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004191/0.4668, allocations: 91.17 kB / 0.5152 GB, free: 2.219 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.622e-05/0.4669, allocations: 24.3 kB / 0.5152 GB, free: 2.195 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.0002772/0.4672, allocations: 165.7 kB / 0.5154 GB, free: 2.023 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002405/0.4674, allocations: 59.58 kB / 0.5154 GB, free: 1.965 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003954/0.4714, allocations: 2.636 MB / 0.518 GB, free: 15.3 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.34e-05/0.4714, allocations: 27.88 kB / 0.518 GB, free: 15.28 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.023e-06/0.4715, allocations: 3.938 kB / 0.518 GB, free: 15.28 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.529e-05/0.4715, allocations: 7.922 kB / 0.518 GB, free: 15.27 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001424/0.4729, allocations: 1.171 MB / 0.5192 GB, free: 14.05 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.658e-06/0.4729, allocations: 8 kB / 0.5192 GB, free: 14.04 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000646/0.4736, allocations: 131.8 kB / 0.5193 GB, free: 13.91 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.186e-05/0.4736, allocations: 7.938 kB / 0.5193 GB, free: 13.9 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.357e-05/0.4737, allocations: 23.98 kB / 0.5193 GB, free: 13.88 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.416e-06/0.4737, allocations: 4 kB / 0.5193 GB, free: 13.88 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/0.4737, allocations: 0 / 0.5193 GB, free: 13.88 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003118/0.4768, allocations: 2.349 MB / 0.5216 GB, free: 11.51 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003162/0.4771, allocations: 220.1 kB / 0.5218 GB, free: 11.28 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.75e-05/0.4772, allocations: 15.98 kB / 0.5219 GB, free: 11.26 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003849/0.4776, allocations: 20 kB / 0.5219 GB, free: 11.24 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001356/0.4777, allocations: 52.92 kB / 0.5219 GB, free: 11.19 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.096e-05/0.4778, allocations: 27.92 kB / 0.522 GB, free: 11.16 MB / 414.1 MB Notification: Performance of sorting global known variables: time 6.578e-05/0.4779, allocations: 87.27 kB / 0.522 GB, free: 11.08 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4779, allocations: 0 / 0.522 GB, free: 11.08 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002564/0.4805, allocations: 0.896 MB / 0.5229 GB, free: 10.18 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.009247/0.4897, allocations: 4.109 MB / 0.5269 GB, free: 6.039 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.003828/0.4936, allocations: 2.361 MB / 0.5292 GB, free: 3.676 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.08e-06/0.4936, allocations: 0 / 0.5292 GB, free: 3.676 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001716/0.4954, allocations: 1.256 MB / 0.5305 GB, free: 2.426 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002163/0.4975, allocations: 352.4 kB / 0.5308 GB, free: 2.082 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005277/0.5028, allocations: 2.048 MB / 0.5328 GB, free: 15.98 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006613/0.5035, allocations: 0.8779 MB / 0.5336 GB, free: 15.07 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0007815/0.5044, allocations: 258.6 kB / 0.5339 GB, free: 14.82 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003802/0.5048, allocations: 191.3 kB / 0.5341 GB, free: 14.64 MB / 430.1 MB Notification: Performance of SimCode: time 9.42e-07/0.5048, allocations: 0 / 0.5341 GB, free: 14.64 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09793/0.6027, allocations: 43.37 MB / 0.5764 GB, free: 3.312 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.97/11.57, allocations: 11.27 kB / 0.5764 GB, free: 3.305 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)